Input : inject chaque 30min --> ping sur l'ip de mes modules --> switch si message false --> change : set mon message Mqtt --> Mqtt output
Code : Tout sélectionner
[{"id":"373d278c.10fbe","type":"inject","z":"f424d061.3f403","name":"","topic":"1","payload":"","payloadType":"date","repeat":"1800","crontab":"","once":true,"onceDelay":"","x":120,"y":1020,"wires":[["1a51b6d5.ae2d01","3df21847.316638","b9de3586.dd9e9","25b43f8b.7c089","fe59e978.f1dda"]]},{"id":"1a51b6d5.ae2d01","type":"conf ping","z":"f424d061.3f403","name":"Ping Salon 1","host":"192.168.1.101","timeout":"5","requests":"5","x":350,"y":860,"wires":[["573fd08d.2856d"]]},{"id":"573fd08d.2856d","type":"switch","z":"f424d061.3f403","name":"","property":"payload","propertyType":"msg","rules":[{"t":"false"}],"checkall":"true","repair":false,"outputs":1,"x":610,"y":860,"wires":[["e48d18ca.5b3f1"]]},{"id":"e48d18ca.5b3f1","type":"change","z":"f424d061.3f403","name":"","rules":[{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"payload.idx","pt":"msg","to":"3","tot":"num"},{"t":"set","p":"payload.nvalue","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":860,"wires":[["785a838a.585654"]]},{"id":"785a838a.585654","type":"mqtt out","z":"f424d061.3f403","name":"","topic":"domoticz/in","qos":"2","retain":"","broker":"15045d80.c79a83","x":1070,"y":1000,"wires":[]},{"id":"15045d80.c79a83","type":"mqtt-broker","z":"","name":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""}]