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

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

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

#1 Post by JR01 » 17 Aug 2019, 21:27

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?
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

HarpieC
Normal user
Posts: 22
Joined: 20 Mar 2016, 20:33

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

#2 Post by HarpieC » 13 Sep 2019, 18:10

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

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

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

#3 Post by JR01 » 15 Sep 2019, 12:26

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 !
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 23 guests