so i have 7 water Sensors… and it works to go through set change option
now when i incorporate a input boolean toggle switch on or off… it no longer runs right after the switch…
and id like to modify but not sure how… i have currently 7 water sensors and each one will send a message to nexition screens and text… which sensor it is but id like to add a message if multiple sensors going off to text or message that multiple zones are going off
but here is what i have
[{"id":"defaade2897e85b2","type":"server-state-changed","z":"2871d1fcfe064a5f","name":"Water Sensor #1","server":"915baa48.9b1898","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["binary_sensor.water_sensor_1_sauna"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"on","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"seconds","ignorePrevStateNull":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":80,"y":120,"wires":[["d7fdbf181511adf8"],[]]},{"id":"d7fdbf181511adf8","type":"change","z":"2871d1fcfe064a5f","name":"","rules":[{"t":"set","p":"message","pt":"msg","to":"Water Sensor #1 Sauna Room Is Flooding Pump Activated","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":120,"wires":[["9388b1e25328a168"]]},{"id":"05a12cc1fed22958","type":"api-call-service","z":"2871d1fcfe064a5f","name":"Set Warning On Display Screens","server":"915baa48.9b1898","version":7,"debugenabled":false,"action":"python_script.set_state","floorId":[],"areaId":[],"deviceId":[],"entityId":[],"labelId":[],"data":"{\t \"entity_id\":\"sensor.warning_message\",\t \"state\":msg.message\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":false,"domain":"python_script","service":"set_state","x":720,"y":260,"wires":[["424cde56ed3f5f66","aa2187de5aa4909d"]]},{"id":"058e52d565df89c3","type":"change","z":"2871d1fcfe064a5f","name":"Set Msg to \"unknown\"","rules":[{"t":"set","p":"message","pt":"msg","to":"unknown","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":400,"wires":[["22d40fe7d5dd8cfa"]]},{"id":"b8b52471e33f31b4","type":"server-state-changed","z":"2871d1fcfe064a5f","name":"Water Sensor #2","server":"915baa48.9b1898","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["switch.water_sensor_2_siren_well_pump"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"on","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"seconds","ignorePrevStateNull":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":80,"y":180,"wires":[["691b8348be81ba2b"],[]]},{"id":"d75bd861a8ed8b6a","type":"server-state-changed","z":"2871d1fcfe064a5f","name":"Water Sensor #3","server":"915baa48.9b1898","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["switch.water_sensor_3_siren_work_bench_window"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"on","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"seconds","ignorePrevStateNull":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":80,"y":240,"wires":[["25e63bb4a607096a"],[]]},{"id":"70d76ffd6325abbc","type":"server-state-changed","z":"2871d1fcfe064a5f","name":"Water Sensor #4","server":"915baa48.9b1898","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["switch.water_sensor_4_siren_back_room_window_1"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"on","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"seconds","ignorePrevStateNull":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":80,"y":300,"wires":[["1a2082c524203e44"],[]]},{"id":"0474bf09b3908cae","type":"server-state-changed","z":"2871d1fcfe064a5f","name":"Water Sensor #5","server":"915baa48.9b1898","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["switch.water_sensor_5_siren_back_room_window_2"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"on","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":false,"for":"0","forType":"num","forUnits":"seconds","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":80,"y":360,"wires":[["6aa667869835a5ba"],[]]},{"id":"1232562656dfbf56","type":"server-state-changed","z":"2871d1fcfe064a5f","name":"Water Sensor #6","server":"915baa48.9b1898","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["switch.water_sensor_6_siren_back_room_window_3"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"on","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"seconds","ignorePrevStateNull":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":80,"y":420,"wires":[["4a3c2cc8f6778c07"],[]]},{"id":"691b8348be81ba2b","type":"change","z":"2871d1fcfe064a5f","name":"","rules":[{"t":"set","p":"message","pt":"msg","to":"Water Sensor #2 Well Pump","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":180,"wires":[["dbd610749340c2fb"]]},{"id":"25e63bb4a607096a","type":"change","z":"2871d1fcfe064a5f","name":"","rules":[{"t":"set","p":"message","pt":"msg","to":"Water Sensor #3 Workbench Window","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":240,"wires":[["dbd610749340c2fb"]]},{"id":"1a2082c524203e44","type":"change","z":"2871d1fcfe064a5f","name":"","rules":[{"t":"set","p":"message","pt":"msg","to":"Water Sensor #4 Back Room Window #1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":300,"wires":[["dbd610749340c2fb"]]},{"id":"6aa667869835a5ba","type":"change","z":"2871d1fcfe064a5f","name":"","rules":[{"t":"set","p":"message","pt":"msg","to":"Water Sensor #5 Back Room Window #2","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":360,"wires":[["dbd610749340c2fb"]]},{"id":"4a3c2cc8f6778c07","type":"change","z":"2871d1fcfe064a5f","name":"","rules":[{"t":"set","p":"message","pt":"msg","to":"Water Sensor #6 Back Room Window #3","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":420,"wires":[["dbd610749340c2fb"]]},{"id":"c0e4667316401d2b","type":"server-state-changed","z":"2871d1fcfe064a5f","name":"Water Sensor #7","server":"915baa48.9b1898","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["switch.water_sensor_7_siren_server_rack"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"on","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"seconds","ignorePrevStateNull":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":80,"y":480,"wires":[["eab75bc6f91bed46"],[]]},{"id":"eab75bc6f91bed46","type":"change","z":"2871d1fcfe064a5f","name":"","rules":[{"t":"set","p":"message","pt":"msg","to":"Water Sensor #7 Server Rack","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":480,"wires":[["05a12cc1fed22958"]]},{"id":"424cde56ed3f5f66","type":"delay","z":"2871d1fcfe064a5f","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":580,"y":340,"wires":[["058e52d565df89c3"]]},{"id":"22d40fe7d5dd8cfa","type":"api-call-service","z":"2871d1fcfe064a5f","name":"Set Warning On Display Screens","server":"915baa48.9b1898","version":7,"debugenabled":false,"action":"python_script.set_state","floorId":[],"areaId":[],"deviceId":[],"entityId":[],"labelId":[],"data":"{\t \"entity_id\":\"sensor.warning_message\",\t \"state\":msg.message\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":false,"domain":"python_script","service":"set_state","x":660,"y":460,"wires":[[]]},{"id":"9388b1e25328a168","type":"api-call-service","z":"2871d1fcfe064a5f","name":"Turn On Pump","server":"915baa48.9b1898","version":7,"debugenabled":false,"action":"switch.turn_on","floorId":[],"areaId":[],"deviceId":[],"entityId":["switch.h_sauna_pump"],"labelId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":false,"domain":"switch","service":"turn_on","x":520,"y":120,"wires":[["b2fab280db7c34fc"]]},{"id":"b2fab280db7c34fc","type":"delay","z":"2871d1fcfe064a5f","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"hours","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":680,"y":120,"wires":[["587f6fdb2605603d"]]},{"id":"587f6fdb2605603d","type":"api-call-service","z":"2871d1fcfe064a5f","name":"Turn Off Pump","server":"915baa48.9b1898","version":7,"debugenabled":false,"action":"switch.turn_off","floorId":[],"areaId":[],"deviceId":[],"entityId":["switch.h_sauna_pump"],"labelId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":false,"domain":"switch","service":"turn_off","x":840,"y":120,"wires":[[]]},{"id":"aa2187de5aa4909d","type":"change","z":"2871d1fcfe064a5f","name":"","rules":[{"t":"set","p":"warning_alert","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":360,"wires":[[]]},{"id":"e4f249baa6f14629","type":"link out","z":"2871d1fcfe064a5f","name":"Email Text Out","mode":"link","links":["b9baed495e81e3c9"],"x":795,"y":220,"wires":[]},{"id":"ad135b467ea60d94","type":"comment","z":"2871d1fcfe064a5f","name":"Email Send To Cell Phones","info":"","x":810,"y":180,"wires":[]},{"id":"62b947f3c04e5840","type":"inject","z":"2871d1fcfe064a5f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":80,"y":540,"wires":[["eab75bc6f91bed46"]]},{"id":"dbd610749340c2fb","type":"api-current-state","z":"2871d1fcfe064a5f","name":"Warning Water Sensors Alarm","server":"915baa48.9b1898","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.warning_water_sensors_alarm","state_type":"str","blockInputOverrides":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":550,"y":180,"wires":[["05a12cc1fed22958","e4f249baa6f14629"],[]]},{"id":"915baa48.9b1898","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]
the Warning Water Sensors Alarm state node is causing the issue i also had before trigger node… etc
but if i bypass it the sensor goes and displays the zone thats been triggered… but having the toggle swtich in there so on means it will display and sound off alarm if water detected… or off and it doesnt run the warning or sound… but right now it cant send the msg.message through the switch and it beasiclly stops at the switch… so thats where i stuck
here is smaller one just 4 items…
the msg.message does not go through the switch node for on or off… it stops there and doesnt pass through to the debug message
[{"id":"31c7db66758ac695","type":"api-current-state","z":"2871d1fcfe064a5f","name":"Warning Water Sensors Alarm","server":"915baa48.9b1898","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.warning_water_sensors_alarm","state_type":"str","blockInputOverrides":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"message","propertyType":"msg","value":"","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1010,"y":600,"wires":[["c46fc55377f67024"],["c46fc55377f67024"]]},{"id":"8f2b9565c8aa219e","type":"inject","z":"2871d1fcfe064a5f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":760,"y":620,"wires":[["391918d30f7246b9"]]},{"id":"391918d30f7246b9","type":"change","z":"2871d1fcfe064a5f","name":"","rules":[{"t":"set","p":"message","pt":"msg","to":"Water Sensor #7 Server Rack","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":930,"y":660,"wires":[["31c7db66758ac695"]]},{"id":"c46fc55377f67024","type":"debug","z":"2871d1fcfe064a5f","name":"debug 18","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":940,"y":560,"wires":[]},{"id":"915baa48.9b1898","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]
i just noticed with the debug you need to set it to msg.message to receive the message… but so far it doesnt work still past the toggle switch