Rules "Let" variables, any way to set & change them with mqtt?

Moderators: grovkillen, Stuntteam, TD-er

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

Rules "Let" variables, any way to set & change them with mqtt?

#1 Post by JR01 » 16 Aug 2019, 19:42

Hi, for a sprinkler system use case, I want to use the Let,1,[VAR#1] variables to drive the functions of the sprinkler system. For instance, want to update the daily schedule, if the system should be in Auto / or manual mode, which legs to sprinkle today, how long, etc. The rules will then execute the schedules based on the variables. But, I want to update the variables daily for that schedule.

So, can one update the variables with mqtt somehow?
-----------
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.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Rules "Let" variables, any way to set & change them with mqtt?

#2 Post by grovkillen » 16 Aug 2019, 19:44

You want to update the VAR-value? Over MQTT?

Just send the commands to the cmd topic of that unit.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests