Hello,
Does anyone know a solution for my problem:
An "mqtt-in" sends a String: "ON" every 8 seconds. This activates an "openHAB_Switch_Item". If the transmission is interrupted by "mqtt-in" for more than 20 seconds, a "trigger node" sends a String: "OFF" and the "openHAB_Switch_Item" is switched off.
That works and it's all OK!
Which node do I have to put between "mqtt-in" and "openHAB_Switch_Item" so that an "ON" is only sent once and not every 8 seconds? And how do I have to configure this node?
So sends "mqtt-in", then once "ON" until the "trigger node" "OFF" switch. Sends "mqtt-in" again, then again "ON" etc.
Do you understand what I mean?
[{"id":"66b37773.104628","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"6d48a4d2.67b09c","type":"inject","z":"66b37773.104628","name":"MQTT Broker","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ON","payloadType":"str","x":570,"y":420,"wires":[["8afbb924.857ce8","d1901a6c.7558a8"]]},{"id":"8afbb924.857ce8","type":"openhab2-out","z":"66b37773.104628","name":"openHAB Switch Item","controller":"","itemname":"GTag_NR_gruen","topic":"ItemCommand","payload":"","x":1110,"y":420,"wires":[[]]},{"id":"d1901a6c.7558a8","type":"trigger","z":"66b37773.104628","name":"","op1":"","op2":"OFF","op1type":"nul","op2type":"str","duration":"20","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":360,"wires":[["8afbb924.857ce8"]]}]
Thank you and have a healthy Christmas