Page 1 of 1

Homie Receiver P086 ~ Can I use their stored variables in formulaes?

Posted: 17 Aug 2019, 21:27
by JR01
Hi, thanks for the Homie Receiver - it works well. I can set their values (if not String) with a mqtt message, an example - sending a 1 to

Code: Select all

homie/ESP62DEV/homieRec3/durLeg1/set
I would like the use the variables from the Receiver in Rules, but it does not seam to work:

Code: Select all

on homieRec3#durLeg1 do
   // code 
 endon
Was this outside of scope of the Plugin?

Re: Homie Receiver P086 ~ Can I use their stored variables in formulaes?

Posted: 13 Sep 2019, 18:10
by HarpieC
Hi,
sorry for come back to you so late. I`m not very often on the forum (more scanning github) I currently working on an updated version of the homie plugins and a full features custom homie node for Node-RED

please try to use

Code: Select all

on durLeg1 do
instead of

Code: Select all

on homieRec3#durLeg1 do
I plan a new pull request soon with a lot of updates, bugfixes including storing the values (except strings). Access to the variables should work with

Code: Select all

[homieRec3#durLeg1]
but I'm not sure if the current version can do this. Now I think I will change the naming scheme to device#property to be consistent with other plugins.

Hope this helps, Chris

Re: Homie Receiver P086 ~ Can I use their stored variables in formulaes?

Posted: 15 Sep 2019, 12:26
by JR01
Thank you Chris, no
but I'm not sure if the current version can do this
- in my tests does not work.

Per your reply to my other post, I also need the variables to not be stored in float by default, but if I pass the var as integer, which I need in the clock event.

Thank you, looking forward to the pull request for P086 !