Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up| ################################################################# | |
| ## Water Sensor Automations | |
| ################################################################# | |
| ########################################################## | |
| ## Flash Lights when Water Detected | |
| ########################################################## | |
| - alias: Water Works - Sound Alarm When Water Detected Lights | |
| id: 'water_works_sound_alarm_when_water_detected_lights' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.basement_drain_water_sensor_liquid_detected | |
| from: 'off' | |
| to: 'on' | |
| - platform: state | |
| entity_id: binary_sensor.kitchen_sink_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| - platform: state | |
| entity_id: binary_sensor.bathroom_sink_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| - platform: state | |
| entity_id: binary_sensor.upstairs_bathrooom_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| - platform: state | |
| entity_id: binary_sensor.utility_sink_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| - platform: state | |
| entity_id: binary_sensor.washing_machine_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.disable_water_automations | |
| state: 'off' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights | |
| data: | |
| brightness_pct: 100 | |
| color_name: "blue" | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights | |
| data: | |
| flash: long | |
| ########################################################## | |
| ## Shut Off Water Main When Water Detected | |
| ########################################################## | |
| - alias: Water Works - Shut Off Water Main When Water Detected | |
| id: 'water_works_shut_off_water_main_when_water_detected' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.basement_drain_water_sensor_liquid_detected | |
| from: 'off' | |
| to: 'on' | |
| - platform: state | |
| entity_id: binary_sensor.kitchen_sink_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| - platform: state | |
| entity_id: binary_sensor.bathroom_sink_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| - platform: state | |
| entity_id: binary_sensor.upstairs_bathrooom_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| - platform: state | |
| entity_id: binary_sensor.utility_sink_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| - platform: state | |
| entity_id: binary_sensor.washing_machine_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_water_automations | |
| state: 'off' | |
| - condition: state | |
| entity_id: switch.water_main | |
| state: 'on' | |
| action: | |
| - service: switch.turn_off | |
| entity_id: | |
| - switch.water_main | |
| ########################################################## | |
| ## Shut Off Water Main When Vacation Mode On | |
| ########################################################## | |
| - alias: Water Works - Shut Off Water Main When Vacation Mode On | |
| id: 'water_works_shut_off_water_main_when_vacation_mode_on' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.vacation_mode | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_water_automations | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.disable_home_away | |
| state: 'off' | |
| - condition: state | |
| entity_id: switch.water_main | |
| state: 'on' | |
| action: | |
| - service: switch.turn_off | |
| entity_id: | |
| - switch.water_main | |
| ########################################################## | |
| ## Turn On Water Main When Vacation Mode Off | |
| ########################################################## | |
| - alias: Water Works - Turn On Water Main When Vacation Mode Off | |
| id: 'water_works_turn_on_water_main_when_vacation_mode_off' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.vacation_mode | |
| from: 'on' | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_water_automations | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.disable_home_away | |
| state: 'off' | |
| - condition: state | |
| entity_id: switch.water_main | |
| state: 'off' | |
| action: | |
| - service: switch.turn_on | |
| entity_id: | |
| - switch.water_main | |
| ################################################################# | |
| ## Notifications | |
| ################################################################# | |
| ########################################################## | |
| ## Water Main Turned Off iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Water Main Turned Off iOS Notification | |
| id: 'water_works_water_main_turned_off_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: switch.water_main | |
| from: 'on' | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Water Main Has Been Shut Off! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-main-off' | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Water Main Has Been Shut Off! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-main-off' | |
| ########################################################## | |
| ## Water Main Turned On iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Water Main Turned On iOS Notification | |
| id: 'water_works_water_main_turned_on_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: switch.water_main | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.disable_startup_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Water Main Has Been Turned Back On | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-main-on' | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Water Main Has Been Turned Back On. | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-main-on' | |
| ########################################################## | |
| ## Sump Pump Power Off iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Sump Pump Power Off iOS Notification | |
| id: 'water_works_sump_pump_power_off_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: switch.sump_pump_switch | |
| from: 'on' | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Sump Pump Switch Turned Off! | |
| ########################################################## | |
| ## Basement Drain Water Sensor iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Basement Drain Water Sensor iOS Notification | |
| id: 'water_works_basement_drain_water_sensor_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.basement_drain_water_sensor_liquid_detected | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Water Detected in Basement Drain! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-basement-drain' | |
| ########################################################## | |
| ## Kitchen Sink Water Sensor iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Kitchen Sink Water Sensor iOS Notification | |
| id: 'water_works_kitchen_sink_water_sensor_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.kitchen_sink_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Water Detected Under Kitchen Sink! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-kitchen-sink' | |
| ########################################################## | |
| ## Bathroom Sink Water Sensor iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Bathroom Sink Water Sensor iOS Notification | |
| id: 'water_works_bathroom_sink_water_sensor_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.bathroom_sink_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Water Detected Under Bathroom Sink! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-basement-sink' | |
| ########################################################## | |
| ## Basement Door Water Sensor iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Basement Door Water Sensor iOS Notification | |
| id: 'water_works_basement_door_water_sensor_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.basement_door_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Water Detected by Basement Door! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-basement-door' | |
| ########################################################## | |
| ## Upstairs Bathroom Water Sensor iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Upstairs Bathroom Water Sensor iOS Notification | |
| id: 'water_works_upstairs_bathroom_water_sensor_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.upstairs_bathrooom_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Water Detected in Upstairs Bathroom! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-upstairs-bathroom' | |
| ########################################################## | |
| ## Coal Room Water Sensor iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Coal Room Water Sensor iOS Notification | |
| id: 'water_works_coal_room_water_sensor_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.coal_room_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Water Detected in Coal Room! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-coal-room' | |
| ########################################################## | |
| ## Utility Sink Water Sensor iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Utility Sink Water Sensor iOS Notification | |
| id: 'water_works_utility_sink_water_sensor_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.utility_sink_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Water Detected Under Utility Sink! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-utility-sink' | |
| ########################################################## | |
| ## Washing Machine Water Sensor iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Washing Machine Water Sensor iOS Notification | |
| id: 'water_works_washing_mashine_water_sensor_ios_notficiation' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.washing_machine_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Water Detected by Washing Machine! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-washing-machine' | |
| ########################################################## | |
| ## Sump Pump Water Sensor iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Sump Pump Water Sensor iOS Notification | |
| id: 'water_works_sump_pump_water_sensor_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.sump_pump_water_sensor_liquid_detected | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Water Detected in Sump Pump! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-sump-pump' | |
| ########################################################## | |
| ## Sump Pump On iOS Notification | |
| ########################################################## | |
| - alias: Water Works - Sump Pump On iOS Notification | |
| id: 'water_works_sump_pump_on_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.sump_pump_status | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Sump Pump has Turned On! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'water-sump-pump' | |
| ########################################################## | |
| ## Basement Drain Water Sensor Audio Notification | |
| ########################################################## | |
| - alias: Water Works - Basement Drain Water Sensor Audio Notification | |
| id: 'water_works_basement_drain_water_sensor_audio_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.basement_drain_water_sensor_liquid_detected | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.disable_water_automations | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: script.turn_on | |
| entity_id: script.say | |
| data: | |
| variables: | |
| master: 'media_player.sonos_living_room' | |
| where: 'media_player.sonos_surround_sound, media_player.sonos_living_room, media_player.sonos_dining_room, media_player.sonos_kitchen, media_player.sonos_bathroom, media_player.sonos_bedroom, media_player.sonos_USER1s_office, media_player.sonos_USER2s_office, media_player.sonos_move' | |
| volume: .5 | |
| what: 'Water Detected in Basement Drain! Shutting Off Water Supply' | |
| ########################################################## | |
| ## Kitchen Sink Water Sensor Audio Notification | |
| ########################################################## | |
| - alias: Water Works - Kitchen Sink Water Sensor Audio Notification | |
| id: 'water_works_kitchen_sink_water_sensor_audio_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.kitchen_sink_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.disable_water_automations | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: script.turn_on | |
| entity_id: script.say | |
| data: | |
| variables: | |
| master: 'media_player.sonos_living_room' | |
| where: 'media_player.sonos_surround_sound, media_player.sonos_living_room, media_player.sonos_dining_room, media_player.sonos_kitchen, media_player.sonos_bathroom, media_player.sonos_bedroom, media_player.sonos_USER1s_office, media_player.sonos_USER2s_office, media_player.sonos_move' | |
| volume: '.5' | |
| what: 'Water Detected Under Kitchen Sink! Shutting Off Water Supply' | |
| ########################################################## | |
| ## Bathroom Sink Water Sensor Audio Notification | |
| ########################################################## | |
| - alias: Water Works - Bathroom Sink Water Sensor Audio Notification | |
| id: 'water_works_bathroom_sink_water_sensor_audio_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.bathroom_sink_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.disable_water_automations | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: script.turn_on | |
| entity_id: script.say | |
| data: | |
| variables: | |
| master: 'media_player.sonos_living_room' | |
| where: 'media_player.sonos_surround_sound, media_player.sonos_living_room, media_player.sonos_dining_room, media_player.sonos_kitchen, media_player.sonos_bathroom, media_player.sonos_bedroom, media_player.sonos_USER1s_office, media_player.sonos_USER2s_office, media_player.sonos_move' | |
| volume: .5 | |
| what: 'Water Detected Under Bathroom Sink! Shutting Off Water Supply' | |
| ########################################################## | |
| ## Upstairs Bathroom Sink Water Sensor Audio Notification | |
| ########################################################## | |
| - alias: Water Works - Upstairs Bathroom Sink Water Sensor Audio Notification | |
| id: 'water_works_upstairs_bathroom_sink_water_sensor_audio_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.upstairs_bathrooom_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.disable_water_automations | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: script.turn_on | |
| entity_id: script.say | |
| data: | |
| variables: | |
| master: 'media_player.sonos_living_room' | |
| where: 'media_player.sonos_surround_sound, media_player.sonos_living_room, media_player.sonos_dining_room, media_player.sonos_kitchen, media_player.sonos_bathroom, media_player.sonos_bedroom, media_player.sonos_USER1s_office, media_player.sonos_USER2s_office, media_player.sonos_move' | |
| volume: '.5' | |
| what: 'Water Detected In Upstairs Bathroom! Shutting Off Water Supply' | |
| ########################################################## | |
| ## Utility Sink Water Sensor Audio Notification | |
| ########################################################## | |
| - alias: Water Works - Utility Sink Water Sensor Audio Notification | |
| id: 'water_works_utility_sink_water_sensor_audio_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.utility_sink_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.disable_water_automations | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: script.turn_on | |
| entity_id: script.say | |
| data: | |
| variables: | |
| master: 'media_player.sonos_living_room' | |
| where: 'media_player.sonos_surround_sound, media_player.sonos_living_room, media_player.sonos_dining_room, media_player.sonos_kitchen, media_player.sonos_bathroom, media_player.sonos_bedroom, media_player.sonos_USER1s_office, media_player.sonos_USER2s_office, media_player.sonos_move' | |
| volume: .5 | |
| what: 'Water Detected Under Utility Sink! Shutting Off Water Supply' | |
| ########################################################## | |
| ## Washing Machine Water Sensor Audio Notification | |
| ########################################################## | |
| - alias: Water Works - Washing Machine Water Sensor Audio Notification | |
| id: 'water_works_washing_machine_water_sensor_audio_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.washing_machine_water_sensor | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.disable_water_automations | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: script.turn_on | |
| entity_id: script.say | |
| data: | |
| variables: | |
| master: 'media_player.sonos_living_room' | |
| where: 'media_player.sonos_surround_sound, media_player.sonos_living_room, media_player.sonos_dining_room, media_player.sonos_kitchen, media_player.sonos_bathroom, media_player.sonos_bedroom, media_player.sonos_USER1s_office, media_player.sonos_USER2s_office, media_player.sonos_move' | |
| volume: '.5' | |
| what: 'Water Detected by Washing Machine! Shutting Off Water Supply' |