[{"id":"eca76a48.700108","type":"subflow","name":"Sirène Faible","info":"","category":"","in":[{"x":40,"y":180,"wires":[{"id":"ffc90616.9f1bb8"},{"id":"c167448.97a1fb8"},{"id":"5f72a913.621208"}]}],"out":[{"x":700,"y":180,"wires":[{"id":"ffc90616.9f1bb8","port":0},{"id":"c167448.97a1fb8","port":0},{"id":"5f72a913.621208","port":0}]}],"env":[],"color":"#DDAA99"},{"id":"ffc90616.9f1bb8","type":"api-call-service","z":"eca76a48.700108","name":"Sirene GW Salon: Faible","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"xiaomi_aqara","service":"play_ringtone","entityId":"","data":"{\"gw_mac\":\"286c07891667\",\"ringtone_id\":4,\"ringtone_vol\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":350,"y":120,"wires":[[]]},{"id":"c167448.97a1fb8","type":"api-call-service","z":"eca76a48.700108","name":"Sirene GW garage : Faible","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"xiaomi_aqara","service":"play_ringtone","entityId":"","data":"{\"gw_mac\":\"286C07F08F9D\",\"ringtone_id\":4,\"ringtone_vol\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":360,"y":180,"wires":[[]]},{"id":"5f72a913.621208","type":"api-call-service","z":"eca76a48.700108","name":"Sirene GW Ext: Faible","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"xiaomi_aqara","service":"play_ringtone","entityId":"","data":"{\"gw_mac\":\"04cf8c913a93\",\"ringtone_id\":4,\"ringtone_vol\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":340,"y":240,"wires":[[]]},{"id":"d23c299.2ab8bd8","type":"subflow","name":"House disarmed (2)","info":"","category":"","in":[{"x":40,"y":180,"wires":[{"id":"3b483a9b.413a96"},{"id":"5c4a963c.ab9138"},{"id":"1fc82891.f82217"},{"id":"b2f9947c.b84c48"},{"id":"9304587e.335eb8"},{"id":"94d9949.ef98868"},{"id":"51f928d9.f45328"}]}],"out":[],"env":[],"color":"#DDAA99","status":{"x":260,"y":440,"wires":[{"id":"e4fb64d1.04fd28","port":0}]}},{"id":"3b483a9b.413a96","type":"api-call-service","z":"d23c299.2ab8bd8","name":"Allumer awtrix salon","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.awtrix_salon","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":280,"y":20,"wires":[["ae222a76.a96018"]]},{"id":"79016075.5a69d","type":"cast-to-client","z":"d23c299.2ab8bd8","name":"","url":"","contentType":"","message":"","language":"fr","ip":"192.168.100.123","port":"","volume":"50","x":580,"y":80,"wires":[[]]},{"id":"5c4a963c.ab9138","type":"change","z":"d23c299.2ab8bd8","name":"Message","rules":[{"t":"set","p":"payload","pt":"msg","to":"Maison désarmée","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":240,"y":80,"wires":[["79016075.5a69d","25fee7a4.a406f8"]]},{"id":"ae222a76.a96018","type":"api-call-service","z":"d23c299.2ab8bd8","name":"Nextion Salon On","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.nextion_salon_sw","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":570,"y":20,"wires":[[]]},{"id":"9304587e.335eb8","type":"api-call-service","z":"d23c299.2ab8bd8","name":"Media player OFF","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"media_player","service":"turn_off","entityId":"media_player.salon","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":270,"y":260,"wires":[[]]},{"id":"1fc82891.f82217","type":"api-call-service","z":"d23c299.2ab8bd8","name":"","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"xiaomi_aqara","service":"stop_ringtone","entityId":"","data":"{\"gw_mac\":\"286c07891667\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":310,"y":140,"wires":[[]]},{"id":"b2f9947c.b84c48","type":"api-call-service","z":"d23c299.2ab8bd8","name":"Luminaire off","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.hue_color_spot_1, light.hue_color_spot_2, light.hue_color_spot_3","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":250,"y":200,"wires":[[]]},{"id":"94d9949.ef98868","type":"api-call-service","z":"d23c299.2ab8bd8","name":"Notification HA Telephone","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"notify","service":"mobile_app_redmi_note_7","entityId":"","data":"{\"message\":\"Alarme désactivée\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":290,"y":320,"wires":[[]]},{"id":"51f928d9.f45328","type":"api-call-service","z":"d23c299.2ab8bd8","name":"Lumiere GW Xiaomi","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.gateway_light_286c07f08f9d","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":280,"y":380,"wires":[[]]},{"id":"e4fb64d1.04fd28","type":"poll-state","z":"d23c299.2ab8bd8","name":"Alarm state","server":"31e2ebaf.83d604","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"60","updateIntervalUnits":"seconds","outputinitially":false,"outputonchanged":false,"entity_id":"alarm_control_panel.home_alarm","state_type":"str","halt_if":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":110,"y":440,"wires":[[]]},{"id":"25fee7a4.a406f8","type":"discord-send-messages","z":"d23c299.2ab8bd8","name":"","channel":"700026162738495498","token":"","x":560,"y":120,"wires":[]},{"id":"baaf1701.c507d8","type":"subflow","name":"Armed away (2)","info":"","category":"","in":[{"x":40,"y":20,"wires":[{"id":"3ea4d418.44f0dc"}]}],"out":[],"env":[],"status":{"x":220,"y":180,"wires":[{"id":"f6e4cd4d.2406d","port":0}]}},{"id":"3ea4d418.44f0dc","type":"api-current-state","z":"baaf1701.c507d8","name":"Armed away?","server":"31e2ebaf.83d604","version":1,"outputs":2,"halt_if":"armed_away","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"alarm_control_panel.home_alarm","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":180,"y":20,"wires":[["e568e19.f901c2"],[]]},{"id":"e568e19.f901c2","type":"api-call-service","z":"baaf1701.c507d8","name":"Eteindre awtrix salon","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.awtrix_salon","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":400,"y":20,"wires":[["284e1a10.390a66"]]},{"id":"284e1a10.390a66","type":"api-call-service","z":"baaf1701.c507d8","name":"Nextion Salon Off","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.nextion_salon_sw","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":630,"y":20,"wires":[[]]},{"id":"f6e4cd4d.2406d","type":"poll-state","z":"baaf1701.c507d8","name":"Alarm state","server":"31e2ebaf.83d604","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"60","updateIntervalUnits":"seconds","outputinitially":false,"outputonchanged":false,"entity_id":"alarm_control_panel.home_alarm","state_type":"str","halt_if":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":90,"y":180,"wires":[[]]},{"id":"9180c7b7.4edf38","type":"subflow","name":"Armed Home (2)","info":"","category":"","in":[{"x":40,"y":40,"wires":[{"id":"70f20f44.46b5b"}]}],"out":[],"env":[],"status":{"x":220,"y":120,"wires":[{"id":"c196d4a8.5117a8","port":0}]}},{"id":"70f20f44.46b5b","type":"api-current-state","z":"9180c7b7.4edf38","name":"Armed Home?","server":"31e2ebaf.83d604","version":1,"outputs":2,"halt_if":"armed_home","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"alarm_control_panel.home_alarm","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":160,"y":40,"wires":[["7820cecf.e3efb"],[]]},{"id":"c196d4a8.5117a8","type":"server-state-changed","z":"9180c7b7.4edf38","name":"Alarm state","server":"31e2ebaf.83d604","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"alarm_control_panel.home_alarm","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":90,"y":120,"wires":[[]]},{"id":"7820cecf.e3efb","type":"api-call-service","z":"9180c7b7.4edf38","name":"Eteindre awtrix salon","server":"31e2ebaf.83d604","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.awtrix_salon","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":440,"y":40,"wires":[[]]},{"id":"e06b6371.28d5","type":"server-state-changed","z":"cf169ee2.b0ec","name":"Home Alarm Mode","server":"31e2ebaf.83d604","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"alarm_control_panel.home_alarm","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":false,"x":130,"y":120,"wires":[["b6fd0015.ab22a"]]},{"id":"b6fd0015.ab22a","type":"switch","z":"cf169ee2.b0ec","name":"Filter Alarm Status","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"armed_home","vt":"str"},{"t":"eq","v":"armed_away","vt":"str"},{"t":"eq","v":"disarmed","vt":"str"},{"t":"eq","v":"triggered","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":350,"y":120,"wires":[["5dd7e2a9.72ccec"],["d1901efe.8f20b"],["1e8de610.a9937a"],["46eb9568.7b364c"]]},{"id":"f377f37e.91ac3","type":"comment","z":"cf169ee2.b0ec","name":"Trigger automation________________________________","info":"","x":250,"y":200,"wires":[]},{"id":"5dd7e2a9.72ccec","type":"subflow:9180c7b7.4edf38","z":"cf169ee2.b0ec","name":"Armed Home","env":[],"x":610,"y":80,"wires":[]},{"id":"d1901efe.8f20b","type":"subflow:baaf1701.c507d8","z":"cf169ee2.b0ec","name":"Armed Away","env":[],"x":610,"y":140,"wires":[]},{"id":"6344a3de.a2ee8c","type":"subflow:d23c299.2ab8bd8","z":"cf169ee2.b0ec","name":"Disarmed","env":[],"x":820,"y":200,"wires":[]},{"id":"1e8de610.a9937a","type":"api-current-state","z":"cf169ee2.b0ec","name":"Disarmed?","server":"31e2ebaf.83d604","version":1,"outputs":2,"halt_if":"disarmed","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"alarm_control_panel.home_alarm","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":610,"y":200,"wires":[["18395834.d5ca48","6344a3de.a2ee8c"],[]]},{"id":"46eb9568.7b364c","type":"api-current-state","z":"cf169ee2.b0ec","name":"Déclenchée?","server":"31e2ebaf.83d604","version":1,"outputs":2,"halt_if":"triggered","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"alarm_control_panel.home_alarm","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":610,"y":260,"wires":[["6f515d9e.37b6d4"],[]]},{"id":"6f515d9e.37b6d4","type":"subflow:eca76a48.700108","z":"cf169ee2.b0ec","name":"Sirène Faible","env":[],"x":830,"y":260,"wires":[["7a080f0a.debc4"]]},{"id":"31e2ebaf.83d604","type":"server","z":"","name":"Home Assistant ip","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]