As you see in the attached flow, I have 4 water sensors that will turn off my water valve. I also have them sending an alert to my HA app on my phone as well as sending me an email.
Is there anyway to specify in the alert to my phone and email, which sensor detected water; without making a separate node for each sensor?
Attached is my flow. I get most of my flow by just importing others and then working off that framework. If you could edit mine or show me an example I can look off of, I’d appreciate it.
[{"id":"13a84f71.bdbac1","type":"server-state-changed","z":"5ce4431.0d95bbc","name":"Water leak detected at water heater","server":"456659de.370498","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.water_leak_sensor_water_heater","entityidfiltertype":"exact","outputinitially":false,"state_type":"habool","haltifstate":"true","halt_if_type":"bool","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":200,"y":100,"wires":[["7bdcf8b8.16a328","9a80962f.a5dce8"],[]]},{"id":"9a80962f.a5dce8","type":"api-call-service","z":"5ce4431.0d95bbc","name":"Turn off water valve","server":"456659de.370498","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.water_valve_shutoff","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":100,"wires":[[]]},{"id":"968a10b0.80d91","type":"server-state-changed","z":"5ce4431.0d95bbc","name":"Water leak detected at kitchen sink","server":"456659de.370498","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.water_leak_sensor_under_kitchen_sink","entityidfiltertype":"exact","outputinitially":false,"state_type":"habool","haltifstate":"true","halt_if_type":"bool","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":190,"y":160,"wires":[["7bdcf8b8.16a328","9a80962f.a5dce8"],[]]},{"id":"2f657e2e.2f6dd2","type":"server-state-changed","z":"5ce4431.0d95bbc","name":"Water leak detected at bidet","server":"456659de.370498","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.water_leak_sensor_bidet","entityidfiltertype":"exact","outputinitially":false,"state_type":"habool","haltifstate":"true","halt_if_type":"bool","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":170,"y":220,"wires":[["7bdcf8b8.16a328","9a80962f.a5dce8"],[]]},{"id":"a806aa50.9f1888","type":"server-state-changed","z":"5ce4431.0d95bbc","name":"Water leak detected at laundry room","server":"456659de.370498","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.water_leak_sensor_laundry_room","entityidfiltertype":"exact","outputinitially":false,"state_type":"habool","haltifstate":"true","halt_if_type":"bool","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":200,"y":280,"wires":[["7bdcf8b8.16a328","9a80962f.a5dce8"],[]]},{"id":"7bdcf8b8.16a328","type":"api-call-service","z":"5ce4431.0d95bbc","name":"Send alert to phones","server":"456659de.370498","version":1,"debugenabled":false,"service_domain":"notify","service":"mobile_app_pixel_3","entityId":"","data":"{\"title\":\"\",\"message\":\"WATER LEAK DETECTED AT XXX\",\"data\":{\"sticky\":\"true\",\"priority\":\"Normal\",\"ttl\":0,\"tag\":\"tagname\",\"color\":\"red\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":530,"y":180,"wires":[["e0fd83d2.af4aa"]]},{"id":"e0fd83d2.af4aa","type":"function","z":"5ce4431.0d95bbc","name":"","func":"msg = {\n payload :\"A water leak has been detected at XXX \" + Date ().toString(),\n topic : \"WATER LEAK DETECTED!!!!!\"\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":720,"y":180,"wires":[["f55f762d.e17e18"]]},{"id":"f55f762d.e17e18","type":"e-mail","z":"5ce4431.0d95bbc","server":"smtp.gmail.com","port":"465","secure":true,"tls":true,"name":"[email protected]","dname":"","x":920,"y":180,"wires":[]},{"id":"456659de.370498","type":"server","name":"Home Assistant","addon":true}]