Hi need a bit of guidance

i have a switch node that outputs either true or false .
when it outputs true i want it to publish (cmnd/tasmota_dht11/TelePeriod 10)
and when it outputs false i want it to publish )cmnd/tasmota_dht11/TelePeriod 40)

my switch node is as follows

my mqtt

and the response in tasmota

ive been at it all day and my head is about to explode , what am i doing wrong,
thanks
martin

Making a educated guess here, I presume teleperiod is the command and 10 and 40 are the value.
Try setting cmnd/tasmota_dht11/TelePeriod as the topic, and set msg.payload to 10 or 40 after the switch node, using a change node on each wire.

The ai response on this duckduckgo serach asistant seems to think so to tasmota teleperiod command at DuckDuckGo

1 Like

worked great thanks.
martin