Dummy variables / send to controller

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Dummy variables / send to controller

#1 Post by mrwee » 21 Jun 2021, 19:36

Just playing around with the best way of setting dummy variables via MQTT. I find that dummy devices can only send to controller in interval from 1 sec and up. It cannot be set to 0 like normal devices.
Executing "TaskValueSetAndRun" via MQTT doesn't seem to push an immediate controller update of the new value. How to do that then?

Alternative is an MQTT Import, but it feels like crossing the river for water :)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Dummy variables / send to controller

#2 Post by TD-er » 21 Jun 2021, 20:19

TaskValueSetAndRun will immediately push the value to the connected controller's send queue :)
How quickly data gets flushed there depends on the controller queue settings.
See: https://espeasy.readthedocs.io/en/lates ... parameters

You can also call publish from the rules, which also append nicely to the controller queue.

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: Dummy variables / send to controller

#3 Post by mrwee » 22 Jun 2021, 15:07

Works :D

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests