[ { "id": "'1702687858384'", "automation": "- id: '1702687858384'\n alias: Garden Tower Pumps - Turn On\n description: Turn the Garden Tower pumps on after being off for 45 minutes\n trigger:\n - platform: state\n entity_id:\n - switch.garden_tower_pumps_switch\n to: 'off'\n for:\n hours: 0\n minutes: 30\n seconds: 0\n condition: []\n action:\n - service: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.garden_tower_pumps_switch\n mode: single", "config": [ { "name": "garden tower pumps switch", "room": "garden", "type": "switch", "id": { "entity_id": "switch.garden_tower_pumps_switch", "device_id": null } } ] }, { "id": "'1702687906351'", "automation": "- id: '1702687906351'\n alias: Garden Tower Pumps - Turn Off\n description: Turn the Garden Tower pumps off after being on for 5 minutes\n trigger:\n - platform: state\n entity_id:\n - switch.garden_tower_pumps_switch\n to: 'on'\n for:\n hours: 0\n minutes: 5\n seconds: 0\n condition: []\n action:\n - service: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.garden_tower_pumps_switch\n mode: single", "config": [ { "name": "garden tower pumps switch", "room": "garden", "type": "switch", "id": { "entity_id": "switch.garden_tower_pumps_switch", "device_id": null } } ] }, { "id": "'1702687973093'", "automation": "- id: '1702687973093'\n alias: Garden Tower Pumps - Toggle After Reboot\n description: Toggle the Garden Tower pump switch when Home Assistant starts\n trigger:\n - platform: homeassistant\n event: start\n action:\n - service: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.garden_tower_pumps_switch\n mode: single", "config": [ { "name": "garden tower pumps switch", "room": "garden", "type": "switch", "id": { "entity_id": "switch.garden_tower_pumps_switch", "device_id": null } } ] }, { "id": "'1702688753601'", "automation": "- id: '1702688753601'\n alias: Turn Off Grow Tent Fans\n description: Turn the grow tent fans off at 7pm\n trigger:\n - platform: time\n at: '19:00:00'\n condition: []\n action:\n - service: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id:\n - switch.grow_tent_fans_switch\n mode: single", "config": [ { "name": "grow tent fans switch", "room": "grow tent", "type": "switch", "id": { "entity_id": "switch.grow_tent_fans_switch", "device_id": null } } ] }, { "id": "'1702688838173'", "automation": "- id: '1702688838173'\n alias: Turn On Grow Tent Fans\n description: Turn on grow tent fans at 7am\n trigger:\n - platform: time\n at: 07:00:00\n condition: []\n action:\n - service: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id:\n - switch.grow_tent_fans_switch\n mode: single", "config": [ { "name": "grow tent fans switch", "room": "grow tent", "type": "switch", "id": { "entity_id": "switch.grow_tent_fans_switch", "device_id": null } } ] }, { "id": "'1702689491954'", "automation": "- id: '1702689491954'\n alias: Guest Bedroom Door Opened Notification\n description: Send a phone alert when the guest bedroom door is opened.\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.guest_bedroom_door_sensor_ias_zone\n to: 'on'\n condition: []\n action:\n - service: notify.mobile_app_tis_iphone\n data:\n message: Guest bedroom door opened\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n mode: single", "config": [ { "name": "guest bedroom door sensor", "room": "guest bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.guest_bedroom_door_sensor_ias_zone", "device_id": null } }, { "name": "mobile app ti's iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_tis_iphone", "device_id": null } } ] }, { "id": "'1703623708618'", "automation": "- id: '1703623708618'\n alias: Leak Detection & Notifier\n description: ''\n use_blueprint:\n path: tteggelit/leak-detector-notifier.yaml\n input:\n notify_device: c649c07764020e9d99e38656cf640e62", "config": [ { "name": "notify device", "room": null, "type": "device", "id": { "entity_id": null, "device_id": "c649c07764020e9d99e38656cf640e62" } }, { "name": "ti's device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "5965ecf66909f3a0f926b23f8d4cef8b", "device_id": "c649c07764020e9d99e38656cf640e62" } } ] }, { "id": "'1703637809076'", "automation": "- id: '1703637809076'\n alias: Turn On Holiday Decorations\n description: Turn on holiday decorations sunset\n triggers:\n - event: sunset\n offset: 0\n trigger: sun\n conditions: []\n actions:\n - metadata: {}\n data: {}\n target:\n entity_id:\n - switch.studio_window_light_outlet_switch\n - switch.loft_window_lights_outlet_switch_2\n - switch.daylan_s_window_lights_outlet_switch_3\n - switch.aidan_s_window_lights_outlet_switch_4\n - switch.front_decorations\n action: switch.turn_on\n mode: single", "config": [ { "name": "studio window light outlet switch", "room": "studio", "type": "switch", "id": { "entity_id": "switch.studio_window_light_outlet_switch", "device_id": null } }, { "name": "loft window lights outlet switch 2", "room": "loft", "type": "switch", "id": { "entity_id": "switch.loft_window_lights_outlet_switch_2", "device_id": null } }, { "name": "daylan's window lights outlet switch 3", "room": "daylan's room", "type": "switch", "id": { "entity_id": "switch.daylan_s_window_lights_outlet_switch_3", "device_id": null } }, { "name": "aidan's window lights outlet switch 4", "room": "aidan's room", "type": "switch", "id": { "entity_id": "switch.aidan_s_window_lights_outlet_switch_4", "device_id": null } }, { "name": "front decorations", "room": "front", "type": "switch", "id": { "entity_id": "switch.front_decorations", "device_id": null } } ] }, { "id": "'1703637961990'", "automation": "- id: '1703637961990'\n alias: Turn Off Holiday Decorations\n description: Turn off the holiday decorations at 10:30pm\n triggers:\n - at: '22:30:00'\n trigger: time\n conditions: []\n actions:\n - metadata: {}\n data: {}\n target:\n entity_id:\n - switch.studio_window_light_outlet_switch\n - switch.loft_window_lights_outlet_switch_2\n - switch.front_decorations\n - switch.living_room_smart_plug_2_switch\n action: switch.turn_off\n mode: single", "config": [ { "name": "studio window light outlet switch", "room": "studio", "type": "switch", "id": { "entity_id": "switch.studio_window_light_outlet_switch", "device_id": null } }, { "name": "loft window lights outlet switch 2", "room": "loft", "type": "switch", "id": { "entity_id": "switch.loft_window_lights_outlet_switch_2", "device_id": null } }, { "name": "front decorations", "room": "front", "type": "switch", "id": { "entity_id": "switch.front_decorations", "device_id": null } }, { "name": "living room smart plug 2 switch", "room": "living room", "type": "switch", "id": { "entity_id": "switch.living_room_smart_plug_2_switch", "device_id": null } } ] }, { "id": "'1703648655388'", "automation": "- id: '1703648655388'\n alias: Basement Freezer Open Notification\n description: Notify if the freezer is left open for more than 2 minutes\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.basement_freezer_opening\n to: 'on'\n for:\n hours: 0\n minutes: 2\n seconds: 0\n condition: []\n action:\n - service: notify.mobile_app_tis_iphone\n data:\n message: Basement freezer left open\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n mode: single", "config": [ { "name": "basement freezer opening", "room": "basement", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.basement_freezer_opening", "device_id": null } }, { "name": "mobile app ti's iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_tis_iphone", "device_id": null } } ] }, { "id": "'1703693744670'", "automation": "- id: '1703693744670'\n alias: Daylan's Door Opened Notification\n description: Notify when Daylan's door opens during the night\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.daylan_s_door_sensor_opening_2\n to: 'on'\n condition:\n - condition: time\n after: '21:30:00'\n before: 06:00:00\n weekday:\n - sun\n - mon\n - tue\n - wed\n - thu\n - fri\n - sat\n action:\n - service: notify.mobile_app_tis_iphone\n data:\n message: Daylan's door opened during the night\n mode: single", "config": [ { "name": "daylan's door sensor", "room": "daylan's room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.daylan_s_door_sensor_opening_2", "device_id": null } }, { "name": "mobile app ti's iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_tis_iphone", "device_id": null } } ] }, { "id": "'1703693873687'", "automation": "- id: '1703693873687'\n alias: Turn Off Boys' Holiday Decorations\n description: Turn off boys' window holiday lights at 9pm\n triggers:\n - at: '21:00:00'\n trigger: time\n conditions: []\n actions:\n - metadata: {}\n data: {}\n target:\n entity_id:\n - switch.daylan_s_window_lights_outlet_switch_3\n - switch.aidan_s_window_lights_outlet_switch_4\n action: switch.turn_off\n mode: single", "config": [ { "name": "daylan's window lights outlet switch 3", "room": "daylan's room", "type": "switch", "id": { "entity_id": "switch.daylan_s_window_lights_outlet_switch_3", "device_id": null } }, { "name": "aidan's window lights outlet switch 4", "room": "aidan's room", "type": "switch", "id": { "entity_id": "switch.aidan_s_window_lights_outlet_switch_4", "device_id": null } } ] }, { "id": "'1703714762428'", "automation": "- id: '1703714762428'\n alias: Turn On Kitchen Cabinet Lights (Evening)\n description: Turn on kitchen cabinet lights 45 minutes before sunset\n triggers:\n - event: sunset\n offset: -00:45:00\n trigger: sun\n conditions: []\n actions:\n - target:\n entity_id: scene.normal_cabinet_lights\n metadata: {}\n action: scene.turn_on\n data: {}\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.living_room_side_light_switch\n mode: single", "config": [ { "name": "normal cabinet lights scene", "room": "kitchen", "type": "scene", "id": { "entity_id": "scene.normal_cabinet_lights", "device_id": null } }, { "name": "living room side light switch", "room": "living room", "type": "switch", "id": { "entity_id": "switch.living_room_side_light_switch", "device_id": null } } ] }, { "id": "'1703715453766'", "automation": "- id: '1703715453766'\n alias: Turn Off Kitchen Cabinet Lights\n description: Turn off kitchen cabinet lights\n triggers:\n - at: 01:00:00\n trigger: time\n - event: sunrise\n offset: 00:30:00\n trigger: sun\n conditions: []\n actions:\n - metadata: {}\n data: {}\n target:\n entity_id:\n - light.kitchen_cabinet_lights_left_light_2\n - light.kitchen_cabinet_lights_right_light_3\n action: light.turn_off\n mode: single", "config": [ { "name": "kitchen cabinet lights left light 2", "room": "kitchen", "type": "light", "id": { "entity_id": "light.kitchen_cabinet_lights_left_light_2", "device_id": null } }, { "name": "kitchen cabinet lights right light 3", "room": "kitchen", "type": "light", "id": { "entity_id": "light.kitchen_cabinet_lights_right_light_3", "device_id": null } } ] }, { "id": "'1704080218841'", "automation": "- id: '1704080218841'\n alias: Turn On Pantry Light\n description: Turn on pantry light when motion detected\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.pantry_motion_sensor_motion_4\n to: 'on'\n condition: []\n action:\n - service: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.pantry_light\n mode: single", "config": [ { "name": "pantry motion sensor", "room": "pantry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.pantry_motion_sensor_motion_4", "device_id": null } }, { "name": "pantry light", "room": "pantry", "type": "switch", "id": { "entity_id": "switch.pantry_light", "device_id": null } } ] }, { "id": "'1704080276347'", "automation": "- id: '1704080276347'\n alias: Turn Off Pantry Light\n description: Turn off pantry light when motion is no longer detected\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.pantry_motion_sensor_motion_4\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n condition: []\n action:\n - service: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.pantry_light\n mode: single", "config": [ { "name": "pantry motion sensor", "room": "pantry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.pantry_motion_sensor_motion_4", "device_id": null } }, { "name": "pantry light", "room": "pantry", "type": "switch", "id": { "entity_id": "switch.pantry_light", "device_id": null } } ] }, { "id": "'1704080363630'", "automation": "- id: '1704080363630'\n alias: Turn On Master Closet Light\n description: Turn on master closet light when motion is detected\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.master_closet_light_motion_detection\n to: 'on'\n condition: []\n action:\n - service: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.master_closet_light\n mode: single", "config": [ { "name": "master closet light motion detection", "room": "master closet", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.master_closet_light_motion_detection", "device_id": null } }, { "name": "master closet light", "room": "master closet", "type": "switch", "id": { "entity_id": "switch.master_closet_light", "device_id": null } } ] }, { "id": "'1704080533451'", "automation": "- id: '1704080533451'\n alias: Turn Off Master Closet Light\n description: Turn off master closet light when motion is no longer detected\n triggers:\n - entity_id:\n - binary_sensor.master_closet_light_motion_detection\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n trigger: state\n conditions: []\n actions:\n - target:\n entity_id:\n - switch.master_closet_light\n data: {}\n action: switch.turn_off\n mode: single", "config": [ { "name": "master closet light motion detection", "room": "master closet", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.master_closet_light_motion_detection", "device_id": null } }, { "name": "master closet light", "room": "master closet", "type": "switch", "id": { "entity_id": "switch.master_closet_light", "device_id": null } } ] }, { "id": "'1704080588094'", "automation": "- id: '1704080588094'\n alias: Carriage Lights - Turn On\n description: Turn on carriage lights at sunset\n trigger:\n - platform: sun\n event: sunset\n offset: 0\n condition: []\n action:\n - service: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.carriage_lights\n mode: single", "config": [ { "name": "carriage lights", "room": "exterior", "type": "switch", "id": { "entity_id": "switch.carriage_lights", "device_id": null } } ] }, { "id": "'1704080632778'", "automation": "- id: '1704080632778'\n alias: Carriage Lights - Turn Off\n description: Turn off carriage lights at sunrise\n trigger:\n - platform: sun\n event: sunrise\n offset: 0\n condition: []\n action:\n - service: switch.turn_off\n target:\n entity_id:\n - switch.carriage_lights\n data: {}\n mode: single", "config": [ { "name": "carriage lights", "room": "exterior", "type": "switch", "id": { "entity_id": "switch.carriage_lights", "device_id": null } } ] }, { "id": "'1704152978232'", "automation": "- id: '1704152978232'\n alias: Deck Lights - Turn On\n description: Turn on the deck lights at sunset\n trigger:\n - platform: sun\n event: sunset\n offset: 0\n condition: []\n action:\n - service: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.deck_lights\n mode: single", "config": [ { "name": "deck lights", "room": "deck", "type": "switch", "id": { "entity_id": "switch.deck_lights", "device_id": null } } ] }, { "id": "'1704153027046'", "automation": "- id: '1704153027046'\n alias: Deck Lights - Turn Off\n description: Turn off the deck lights at 10:30\n trigger:\n - platform: time\n at: '22:30:00'\n condition: []\n action:\n - service: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.deck_lights\n mode: single", "config": [ { "name": "deck lights", "room": "deck", "type": "switch", "id": { "entity_id": "switch.deck_lights", "device_id": null } } ] }, { "id": "'1704753058492'", "automation": "- id: '1704753058492'\n alias: Amy and Ti Left Home\n description: Take some actions when both Amy and Ti aren't home\n trigger:\n - platform: device\n device_id: c649c07764020e9d99e38656cf640e62\n domain: device_tracker\n entity_id: 5965ecf66909f3a0f926b23f8d4cef8b\n type: leaves\n zone: zone.home\n - platform: device\n device_id: ba46bf63c37c0f5c0e4c054b5d7286c7\n domain: device_tracker\n entity_id: 82547043c87592e35391f94b52bc7d8c\n type: leaves\n zone: zone.home\n condition:\n - condition: and\n conditions:\n - condition: device\n device_id: c649c07764020e9d99e38656cf640e62\n domain: device_tracker\n entity_id: 5965ecf66909f3a0f926b23f8d4cef8b\n type: is_not_home\n - condition: device\n device_id: ba46bf63c37c0f5c0e4c054b5d7286c7\n domain: device_tracker\n entity_id: 82547043c87592e35391f94b52bc7d8c\n type: is_not_home\n action:\n - service: notify.mobile_app_tis_iphone\n data:\n message: Amy and Ti left home\n mode: single", "config": [ { "name": "notify device", "room": null, "type": "device", "id": { "entity_id": null, "device_id": "c649c07764020e9d99e38656cf640e62" } }, { "name": "amy's device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "82547043c87592e35391f94b52bc7d8c", "device_id": "ba46bf63c37c0f5c0e4c054b5d7286c7" } }, { "name": "ti's device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "5965ecf66909f3a0f926b23f8d4cef8b", "device_id": "c649c07764020e9d99e38656cf640e62" } }, { "name": "mobile app ti's iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_tis_iphone", "device_id": null } } ] }, { "id": "'1705443498464'", "automation": "- id: '1705443498464'\n alias: Low Battery Notification and Todo Generator\n description: Find sensors that have low batteries that need a todo created, notify\n about the sensor battery, and create a todo in Todoist\n trigger:\n - platform: time\n at: 09:00:00\n condition: []\n action:\n - service: script.todo_test\n data: {}\n mode: single", "config": [ { "name": "todo test script", "room": null, "type": "script", "id": { "entity_id": "script.todo_test", "device_id": null } } ] }, { "id": "'1711215722258'", "automation": "- id: '1711215722258'\n alias: Alarm Away Actions\n description: Check various states if the house alarm is set to away.\n triggers:\n - entity_id:\n - alarm_control_panel.abode_alarm\n to: armed_away\n trigger: state\n conditions: []\n actions:\n - metadata: {}\n data:\n preset_mode: away_indefinitely\n target:\n entity_id: climate.thermostat\n action: climate.set_preset_mode\n - metadata: {}\n data: {}\n target:\n entity_id: alarm_control_panel.ring_location_mode\n action: alarm_control_panel.alarm_arm_away\n - alias: If Front Door is open, then notify, otherwise check if it's locked\n if:\n - condition: state\n entity_id: binary_sensor.front_door_sensor\n state: 'on'\n then:\n - metadata: {}\n data:\n message: Front door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_tis_iphone\n - data:\n message: Front door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_amys_iphone\n else:\n - alias: If the front door is unlocked, then attempt to lock it and notify if\n locking fails\n if:\n - condition: state\n entity_id: lock.front_door_lock_door_lock\n state: unlocked\n then:\n - metadata: {}\n data: {}\n target:\n entity_id: lock.front_door_lock_door_lock\n action: lock.lock\n - delay:\n hours: 0\n minutes: 0\n seconds: 30\n milliseconds: 0\n alias: Wait 30 seconds\n - alias: If Front Door still unlocked, notify\n if:\n - condition: state\n entity_id: lock.front_door_lock_door_lock\n state: unlocked\n then:\n - metadata: {}\n data:\n message: Front door unlocked!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_tis_iphone\n - data:\n message: Front door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_amys_iphone\n - alias: If the garage door is open, then attempt to close it and if that fails,\n notify\n if:\n - condition: state\n entity_id: cover.garage_door\n state: open\n then:\n - metadata: {}\n data: {}\n target:\n entity_id: cover.garage_door\n action: cover.close_cover\n - delay:\n hours: 0\n minutes: 1\n seconds: 0\n milliseconds: 0\n - alias: Notify if the garage door is still open\n if:\n - condition: state\n entity_id: cover.garage_door\n state: open\n then:\n - metadata: {}\n data:\n message: Garage door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_tis_iphone\n - data:\n message: Garage door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_amys_iphone\n - alias: If the 3rd car garage door is open, then attempt to close it and if that\n fails, notify\n if:\n - condition: state\n entity_id: binary_sensor.third_car_garage_door_opening\n state: 'on'\n then:\n - metadata: {}\n data:\n message: Third car garage door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_tis_iphone\n - data:\n message: Third car garage door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_amys_iphone\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id:\n - switch.christmas_tree_switch_3\n - switch.living_room_air_purifier_switch\n - switch.living_room_side_light_switch\n mode: single", "config": [ { "name": "living room side light switch", "room": "living room", "type": "switch", "id": { "entity_id": "switch.living_room_side_light_switch", "device_id": null } }, { "name": "christmas tree switch 3", "room": "living room", "type": "switch", "id": { "entity_id": "switch.christmas_tree_switch_3", "device_id": null } }, { "name": "living room air purifier switch", "room": "living room", "type": "switch", "id": { "entity_id": "switch.living_room_air_purifier_switch", "device_id": null } }, { "name": "abode alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.abode_alarm", "device_id": null } }, { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "ring location mode", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.ring_location_mode", "device_id": null } }, { "name": "front door sensor", "room": "front door", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door_sensor", "device_id": null } }, { "name": "front door lock", "room": "front door", "type": "lock", "id": { "entity_id": "lock.front_door_lock_door_lock", "device_id": null } }, { "name": "garage door", "room": "garage", "type": "cover", "id": { "entity_id": "cover.garage_door", "device_id": null } }, { "name": "third car garage door opening", "room": "garage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.third_car_garage_door_opening", "device_id": null } }, { "name": "mobile app ti's iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_tis_iphone", "device_id": null } }, { "name": "mobile app amy's iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_amys_iphone", "device_id": null } } ] }, { "id": "'1711216712567'", "automation": "- id: '1711216712567'\n alias: Alarm Disarmed Actions\n description: Actions to run when the alarm is disarmed\n triggers:\n - entity_id:\n - alarm_control_panel.abode_alarm\n to: disarmed\n trigger: state\n conditions: []\n actions:\n - alias: Turn on cabinet and living room side lights if it's dark\n if:\n - condition: sun\n before: sunrise\n before_offset: +00:30:00\n after: sunset\n after_offset: -00:30:00\n then:\n - metadata: {}\n target:\n entity_id: scene.normal_cabinet_lights\n action: scene.turn_on\n data: {}\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.living_room_side_light_switch\n - metadata: {}\n data:\n preset_mode: home\n target:\n entity_id: climate.thermostat\n action: climate.set_preset_mode\n - metadata: {}\n data: {}\n target:\n entity_id: alarm_control_panel.ring_location_mode\n action: alarm_control_panel.alarm_disarm\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id:\n - switch.christmas_tree_switch_3\n - switch.living_room_air_purifier_switch\n mode: single", "config": [ { "name": "normal cabinet lights scene", "room": "kitchen", "type": "scene", "id": { "entity_id": "scene.normal_cabinet_lights", "device_id": null } }, { "name": "living room side light switch", "room": "living room", "type": "switch", "id": { "entity_id": "switch.living_room_side_light_switch", "device_id": null } }, { "name": "christmas tree switch 3", "room": "living room", "type": "switch", "id": { "entity_id": "switch.christmas_tree_switch_3", "device_id": null } }, { "name": "living room air purifier switch", "room": "living room", "type": "switch", "id": { "entity_id": "switch.living_room_air_purifier_switch", "device_id": null } }, { "name": "abode alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.abode_alarm", "device_id": null } }, { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "ring location mode", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.ring_location_mode", "device_id": null } } ] }, { "id": "'1711921755033'", "automation": "- id: '1711921755033'\n alias: Alarm Home Actions\n description: Check various states if the house alarm is set to home.\n triggers:\n - entity_id:\n - alarm_control_panel.abode_alarm\n to: armed_home\n trigger: state\n conditions: []\n actions:\n - data:\n entity_id: climate.thermostat\n action: ecobee.resume_program\n - metadata: {}\n data: {}\n target:\n entity_id: alarm_control_panel.ring_location_mode\n action: alarm_control_panel.alarm_arm_home\n - alias: If Front Door is open, then notify, otherwise check if it's locked\n if:\n - condition: state\n entity_id: binary_sensor.front_door_sensor\n state: 'on'\n then:\n - metadata: {}\n data:\n message: Front door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_tis_iphone\n - metadata: {}\n data:\n message: Front door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_amys_iphone\n else:\n - alias: If the front door is unlocked, then attempt to lock it and notify if\n locking fails\n if:\n - condition: state\n entity_id: lock.front_door_lock_door_lock\n state: unlocked\n then:\n - metadata: {}\n data: {}\n target:\n entity_id: lock.front_door_lock_door_lock\n action: lock.lock\n - delay:\n hours: 0\n minutes: 0\n seconds: 30\n milliseconds: 0\n alias: Wait 30 seconds\n - alias: If Front Door still unlocked, notify\n if:\n - condition: state\n entity_id: lock.front_door_lock_door_lock\n state: unlocked\n then:\n - metadata: {}\n data:\n message: Front door unlocked!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_tis_iphone\n - metadata: {}\n data:\n message: Front door unlocked!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_amys_iphone\n - alias: If the garage door is open, then attempt to close it and if that fails,\n notify\n if:\n - condition: state\n entity_id: cover.garage_door\n state: open\n then:\n - metadata: {}\n data: {}\n target:\n entity_id: cover.garage_door\n action: cover.close_cover\n - delay:\n hours: 0\n minutes: 1\n seconds: 0\n milliseconds: 0\n - alias: Notify if the garage door is still open\n if:\n - condition: state\n entity_id: cover.garage_door\n state: open\n then:\n - metadata: {}\n data:\n message: Garage door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_tis_iphone\n - metadata: {}\n data:\n message: Garage door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_amys_iphone\n - alias: If the third car garage door is open notify\n if:\n - condition: state\n entity_id: binary_sensor.third_car_garage_door_opening_3\n state: 'on'\n then:\n - metadata: {}\n data:\n message: Third car garage door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_tis_iphone\n - metadata: {}\n data:\n message: Third car garage door is open!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1\n action: notify.mobile_app_amys_iphone\n - action: media_player.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: media_player.living_room_tv\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id:\n - switch.christmas_tree_switch_3\n - switch.living_room_air_purifier_switch\n - switch.living_room_side_light_switch\n - metadata: {}\n data: {}\n target:\n entity_id:\n - light.kitchen_cabinet_lights_left_light_2\n - light.kitchen_cabinet_lights_right_light_3\n action: light.turn_off\n - metadata: {}\n data: {}\n target:\n entity_id: switch.deck_lights\n action: switch.turn_off\n - metadata: {}\n data: {}\n target:\n entity_id: light.living_room_lights\n action: light.turn_off\n mode: single", "config": [ { "name": "living room side light switch", "room": "living room", "type": "switch", "id": { "entity_id": "switch.living_room_side_light_switch", "device_id": null } }, { "name": "kitchen cabinet lights left light 2", "room": "kitchen", "type": "light", "id": { "entity_id": "light.kitchen_cabinet_lights_left_light_2", "device_id": null } }, { "name": "kitchen cabinet lights right light 3", "room": "kitchen", "type": "light", "id": { "entity_id": "light.kitchen_cabinet_lights_right_light_3", "device_id": null } }, { "name": "deck lights", "room": "deck", "type": "switch", "id": { "entity_id": "switch.deck_lights", "device_id": null } }, { "name": "christmas tree switch 3", "room": "living room", "type": "switch", "id": { "entity_id": "switch.christmas_tree_switch_3", "device_id": null } }, { "name": "living room air purifier switch", "room": "living room", "type": "switch", "id": { "entity_id": "switch.living_room_air_purifier_switch", "device_id": null } }, { "name": "abode alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.abode_alarm", "device_id": null } }, { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "ring location mode", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.ring_location_mode", "device_id": null } }, { "name": "front door sensor", "room": "front door", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door_sensor", "device_id": null } }, { "name": "front door lock", "room": "front door", "type": "lock", "id": { "entity_id": "lock.front_door_lock_door_lock", "device_id": null } }, { "name": "garage door", "room": "garage", "type": "cover", "id": { "entity_id": "cover.garage_door", "device_id": null } }, { "name": "third car garage door opening", "room": "garage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.third_car_garage_door_opening", "device_id": null } }, { "name": "third car garage door opening 3", "room": "garage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.third_car_garage_door_opening_3", "device_id": null } }, { "name": "living room tv", "room": "living room", "type": "media_player", "id": { "entity_id": "media_player.living_room_tv", "device_id": null } }, { "name": "living room lights", "room": "living room", "type": "light", "id": { "entity_id": "light.living_room_lights", "device_id": null } }, { "name": "mobile app ti's iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_tis_iphone", "device_id": null } }, { "name": "mobile app amy's iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_amys_iphone", "device_id": null } }, { "name": "ecobee service", "room": "house", "type": "climate", "id": { "entity_id": "ecobee.resume_program", "device_id": null } } ] }, { "id": "'1714824591977'", "automation": "- id: '1714824591977'\n alias: Turn On HVAC Fan to Recirculate Air\n description: ''\n triggers:\n - entity_id:\n - sensor.guest_bedroom_temperature\n above: sensor.current_thermostat_setpoint\n for:\n hours: 0\n minutes: 5\n seconds: 0\n trigger: numeric_state\n - entity_id:\n - sensor.master_bedroom_temperature\n above: sensor.current_thermostat_setpoint\n for:\n hours: 0\n minutes: 5\n seconds: 0\n trigger: numeric_state\n - entity_id:\n - sensor.daylans_bedroom_temperature\n above: sensor.current_thermostat_setpoint\n for:\n hours: 0\n minutes: 5\n seconds: 0\n trigger: numeric_state\n - entity_id:\n - alarm_control_panel.abode_alarm\n to: armed_away\n for:\n hours: 0\n minutes: 45\n seconds: 0\n trigger: state\n enabled: true\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: climate.thermostat\n attribute: hvac_action\n state: idle\n - condition: state\n entity_id: sensor.current_thermostat_fan_state\n state: 'off'\n for:\n hours: 0\n minutes: 30\n seconds: 0\n - condition: or\n conditions:\n - condition: state\n entity_id: climate.thermostat\n enabled: true\n state: cool\n - condition: state\n entity_id: climate.thermostat\n state: heat_cool\n actions:\n - target:\n entity_id: climate.thermostat\n data:\n fan_mode: 'on'\n action: climate.set_fan_mode\n mode: single", "config": [ { "name": "abode alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.abode_alarm", "device_id": null } }, { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "guest bedroom temperature", "room": "guest bedroom", "type": "sensor", "id": { "entity_id": "sensor.guest_bedroom_temperature", "device_id": null } }, { "name": "current thermostat setpoint", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.current_thermostat_setpoint", "device_id": null } }, { "name": "master bedroom temperature", "room": "master bedroom", "type": "sensor", "id": { "entity_id": "sensor.master_bedroom_temperature", "device_id": null } }, { "name": "daylan's bedroom temperature", "room": "daylan's room", "type": "sensor", "id": { "entity_id": "sensor.daylans_bedroom_temperature", "device_id": null } }, { "name": "current thermostat fan state", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.current_thermostat_fan_state", "device_id": null } } ] }, { "id": "'1715649661226'", "automation": "- id: '1715649661226'\n alias: Turn Off HVAC Fan Recirculation\n description: Sets the thermostat's fan mode back to auto after 15 minutes of the\n fan running\n trigger:\n - platform: state\n entity_id:\n - climate.thermostat\n attribute: fan_mode\n to: 'on'\n for:\n hours: 0\n minutes: 30\n seconds: 0\n - platform: state\n entity_id:\n - climate.thermostat\n attribute: hvac_action\n to: cooling\n condition: []\n action:\n - service: climate.set_fan_mode\n target:\n entity_id: climate.thermostat\n data:\n fan_mode: auto\n mode: single", "config": [ { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } } ] }, { "id": "'1736628413798'", "automation": "- id: '1736628413798'\n alias: Turn Off Living Room Lights\n description: Turn off living room lights after sunrise\n triggers:\n - event: sunrise\n offset: 00:30:00\n trigger: sun\n conditions: []\n actions:\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.living_room_side_light_switch\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: light.living_room_lights\n mode: single", "config": [ { "name": "living room side light switch", "room": "living room", "type": "switch", "id": { "entity_id": "switch.living_room_side_light_switch", "device_id": null } }, { "name": "living room lights", "room": "living room", "type": "light", "id": { "entity_id": "light.living_room_lights", "device_id": null } } ] }, { "id": "'1743037637897'", "automation": "- id: '1743037637897'\n alias: Turn On Basement Grow Lights\n description: ''\n triggers:\n - trigger: time\n at: 06:00:00\n conditions: []\n actions:\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.basement_grow_lights_switch\n mode: single", "config": [ { "name": "basement grow lights switch", "room": "basement", "type": "switch", "id": { "entity_id": "switch.basement_grow_lights_switch", "device_id": null } } ] }, { "id": "'1743037694647'", "automation": "- id: '1743037694647'\n alias: Turn Off Basement Grow Lights\n description: ''\n triggers:\n - trigger: time\n at: '18:00:00'\n conditions: []\n actions:\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.basement_grow_lights_switch\n mode: single", "config": [ { "name": "basement grow lights switch", "room": "basement", "type": "switch", "id": { "entity_id": "switch.basement_grow_lights_switch", "device_id": null } } ] }, { "id": "'1749577082608'", "automation": "- id: '1749577082608'\n alias: Front Door Unlocked Notification\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - lock.front_door_lock_door_lock\n to: unlocked\n for:\n hours: 1\n minutes: 0\n seconds: 0\n conditions:\n - condition: state\n entity_id: binary_sensor.front_door_sensor\n state: 'off'\n for:\n hours: 1\n minutes: 0\n seconds: 0\n actions:\n - action: notify.mobile_app_tis_iphone\n metadata: {}\n data:\n message: Front door unlocked for over an hour\n mode: single", "config": [ { "name": "front door sensor", "room": "front door", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door_sensor", "device_id": null } }, { "name": "front door lock", "room": "front door", "type": "lock", "id": { "entity_id": "lock.front_door_lock_door_lock", "device_id": null } }, { "name": "mobile app ti's iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_tis_iphone", "device_id": null } } ] }, { "id": "'1753314059071'", "automation": "- id: '1753314059071'\n alias: Aidan's Night Stand Light Automation\n description: ''\n use_blueprint:\n path: Malte/zha-ikea-four-button-remote-styrbar-for-lights-e2001-e2002.yaml\n input:\n remote: e0e52daeb29bc802759b6bdbb18df41b\n light:\n entity_id: light.aidan_s_night_stand_light\n button_left_short: []", "config": [ { "name": "aidan's night stand light", "room": "aidan's room", "type": "light", "id": { "entity_id": "light.aidan_s_night_stand_light", "device_id": null } }, { "name": "zha ikea remote", "room": "aidan's room", "type": "remote", "id": { "entity_id": null, "device_id": "e0e52daeb29bc802759b6bdbb18df41b" } } ] }, { "id": "Timed Hot Water Recirculation", "automation": "- alias: Timed Hot Water Recirculation\n description: Recirculates hot water every 15 minutes but only while the alarm is\n disarmed (i.e., someone's home and not sleeping) and not between 1:30am and 4:00am\n triggers:\n - entity_id:\n - binary_sensor.water_heater_recirculation\n to: 'off'\n for:\n hours: 0\n minutes: 20\n seconds: 0\n trigger: state\n conditions:\n - condition: and\n conditions:\n - condition: time\n after: 04:00:00\n before: 01:30:00\n - condition: numeric_state\n entity_id: sensor.rinnai_201900685wzd5_water_flow_rate\n below: 1\n enabled: true\n - condition: state\n entity_id: alarm_control_panel.abode_alarm\n state: disarmed\n actions:\n - data:\n recirculation_minutes: 5\n target:\n entity_id: water_heater.rinnai_201900685wzd5_water_heater\n action: rinnai.start_recirculation\n mode: single", "config": [ { "name": "abode alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.abode_alarm", "device_id": null } }, { "name": "water heater recirculation", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.water_heater_recirculation", "device_id": null } }, { "name": "rinnai water flow rate", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.rinnai_201900685wzd5_water_flow_rate", "device_id": null } }, { "name": "rinnai water heater", "room": "utility", "type": "water_heater", "id": { "entity_id": "water_heater.rinnai_201900685wzd5_water_heater", "device_id": null } } ] }, { "id": "Motion Hot Water Recirculation", "automation": "- alias: Motion Hot Water Recirculation\n description: Recirculate the hot water when motion is detected in the any of the\n bathrooms and water hasn't been recirculated in the last 15 minutes\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.master_bathroom_motion_sensor_motion_2\n - binary_sensor.downstairs_bathroom_motion_sensor_motion_3\n to: 'on'\n condition:\n - condition: state\n entity_id: binary_sensor.water_heater_recirculation\n state: 'off'\n for:\n hours: 0\n minutes: 10\n seconds: 0\n enabled: true\n action:\n - service: rinnai.start_recirculation\n data:\n recirculation_minutes: 5\n target:\n entity_id: water_heater.rinnai_201900685wzd5_water_heater\n mode: single", "config": [ { "name": "water heater recirculation", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.water_heater_recirculation", "device_id": null } }, { "name": "rinnai water heater", "room": "utility", "type": "water_heater", "id": { "entity_id": "water_heater.rinnai_201900685wzd5_water_heater", "device_id": null } }, { "name": "master bathroom motion sensor", "room": "master bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.master_bathroom_motion_sensor_motion_2", "device_id": null } }, { "name": "downstairs bathroom motion sensor", "room": "downstairs bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.downstairs_bathroom_motion_sensor_motion_3", "device_id": null } } ] }, { "id": "Recirculate Hot Water After Returning Home", "automation": "- alias: Recirculate Hot Water After Returning Home\n description: Recirculate the hot water if we've been away from home for more than\n 30 minutes\n trigger:\n - platform: state\n entity_id:\n - alarm_control_panel.abode_alarm\n to: disarmed\n condition:\n - condition: state\n entity_id: binary_sensor.water_heater_recirculation\n state: 'off'\n for:\n hours: 0\n minutes: 30\n seconds: 0\n action:\n - service: rinnai.start_recirculation\n target:\n entity_id: water_heater.rinnai_201900685wzd5_water_heater\n data:\n recirculation_minutes: 5\n mode: single", "config": [ { "name": "abode alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.abode_alarm", "device_id": null } }, { "name": "water heater recirculation", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.water_heater_recirculation", "device_id": null } }, { "name": "rinnai water heater", "room": "utility", "type": "water_heater", "id": { "entity_id": "water_heater.rinnai_201900685wzd5_water_heater", "device_id": null } } ] }, { "id": "Clear NWS Alert Pop Up", "automation": "- alias: Clear NWS Alert Pop Up\n triggers:\n - trigger: state\n entity_id: sensor.nws_alert_count\n to: '0'\n actions:\n - action: persistent_notification.dismiss\n data:\n notification_id: nws_alert_1\n - action: persistent_notification.dismiss\n data:\n notification_id: nws_alert_2\n - action: persistent_notification.dismiss\n data:\n notification_id: nws_alert_3\n - action: persistent_notification.dismiss\n data:\n notification_id: nws_alert_4", "config": [ { "name": "nws alert count", "room": null, "type": "sensor", "id": { "entity_id": "sensor.nws_alert_count", "device_id": null } } ] }, { "id": "NWS Alert Pop Up 1", "automation": "- alias: NWS Alert Pop Up 1\n triggers:\n - trigger: state\n entity_id: sensor.nws_alert_count\n conditions:\n - condition: numeric_state\n entity_id: sensor.nws_alert_count\n above: 0\n actions:\n - parallel:\n - if:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.nws_alert_event_1\n state: None\n then:\n - parallel:\n - action: persistent_notification.create\n metadata: {}\n data:\n notification_id: nws_alert_1\n title: '{{ states.sensor.nws_alert_event_1.state }}\n\n '\n message: '{{ state_attr(''sensor.nws_alert_event_1'', ''description'')\n }}\n\n '\n - if:\n - condition: template\n value_template: \"{{ is_state_attr('sensor.nws_alert_event_1', 'severity',\\\n \\ 'Extreme') or\\n is_state_attr('sensor.nws_alert_event_1', 'severity',\\\n \\ 'Severe') }}\\n\"\n then:\n - if:\n - condition: template\n value_template: \"{{ 'Tornado' in state_attr('sensor.nws_alert_event_1',\\\n \\ 'description') and\\n 'Warning' in state_attr('sensor.nws_alert_event_1',\\\n \\ 'description') and\\n 'Kendall' in state_attr('sensor.nws_alert_event_1',\\\n \\ 'areadesc') }}\\n\"\n then:\n - parallel:\n - action: script.critical_nws_tts_alert_1\n - action: script.critical_nws_mobile_alert_1\n else:\n - if:\n - condition: and\n conditions:\n - condition: time\n after: 05:30:00\n before: '22:00:00'\n - condition: template\n value_template: \"{{ is_state_attr('sensor.nws_alert_event_1', 'certainty',\\\n \\ 'Observed') or\\n is_state_attr('sensor.nws_alert_event_1',\\\n \\ 'certainty', 'Likely') }}\\n\"\n - condition: template\n value_template: \"{{ is_state_attr('sensor.nws_alert_event_1', 'urgency',\\\n \\ 'Immediate') or\\n is_state_attr('sensor.nws_alert_event_1',\\\n \\ 'urgency', 'Expected') }}\\n\"\n then:\n - action: script.critical_nws_mobile_alert_1\n else:\n - action: script.critical_nws_mobile_notification_1\n else:\n - if:\n - condition: not\n conditions:\n - condition: template\n value_template: '{{ is_state_attr(''sensor.nws_alert_event_1'', ''severity'',\n ''Unknown'') }}\n\n '\n then:\n - action: script.critical_nws_mobile_notification_1\n - if:\n - condition: and\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.nws_alert_event_2\n state: None\n - condition: template\n value_template: '{{ state_attr(''sensor.nws_alert_event_2'', ''description'')\n != state_attr(''sensor.nws_alert_event_1'', ''description'') }}\n\n '\n then:\n - parallel:\n - action: persistent_notification.create\n metadata: {}\n data:\n notification_id: nws_alert_2\n title: '{{ states.sensor.nws_alert_event_2.state }}\n\n '\n message: '{{ state_attr(''sensor.nws_alert_event_2'', ''description'')\n }}\n\n '\n - if:\n - condition: template\n value_template: \"{{ is_state_attr('sensor.nws_alert_event_2', 'severity',\\\n \\ 'Extreme') or\\n is_state_attr('sensor.nws_alert_event_2', 'severity',\\\n \\ 'Severe') }}\\n\"\n then:\n - if:\n - condition: template\n value_template: \"{{ 'Tornado' in state_attr('sensor.nws_alert_event_2',\\\n \\ 'description') and\\n 'Warning' in state_attr('sensor.nws_alert_event_2',\\\n \\ 'description') and\\n 'Kendall' in state_attr('sensor.nws_alert_event_2',\\\n \\ 'areadesc') }}\\n\"\n then:\n - parallel:\n - action: script.critical_nws_tts_alert_2\n - action: script.critical_nws_mobile_alert_2\n else:\n - if:\n - condition: and\n conditions:\n - condition: time\n after: 05:30:00\n before: '22:00:00'\n - condition: template\n value_template: \"{{ is_state_attr('sensor.nws_alert_event_2', 'certainty',\\\n \\ 'Observed') or\\n is_state_attr('sensor.nws_alert_event_2',\\\n \\ 'certainty', 'Likely') }}\\n\"\n - condition: template\n value_template: \"{{ is_state_attr('sensor.nws_alert_event_2', 'urgency',\\\n \\ 'Immediate') or\\n is_state_attr('sensor.nws_alert_event_2',\\\n \\ 'urgency', 'Expected') }}\\n\"\n then:\n - action: script.critical_nws_mobile_alert_2\n else:\n - action: script.critical_nws_mobile_notification_2\n else:\n - if:\n - condition: not\n conditions:\n - condition: template\n value_template: '{{ is_state_attr(''sensor.nws_alert_event_2'', ''severity'',\n ''Unknown'') }}\n\n '\n then:\n - action: script.critical_nws_mobile_notification_2\n - if:\n - condition: and\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.nws_alert_event_3\n state: None\n - condition: template\n value_template: \"{{ state_attr('sensor.nws_alert_event_3', 'description')\\\n \\ != state_attr('sensor.nws_alert_event_1', 'description') or\\n state_attr('sensor.nws_alert_event_3',\\\n \\ 'description') != state_attr('sensor.nws_alert_event_2', 'description')\\\n \\ }}\\n\"\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.nws_alert_event_3\n state: None\n then:\n - parallel:\n - action: persistent_notification.create\n metadata: {}\n data:\n notification_id: nws_alert_3\n title: '{{ states.sensor.nws_alert_event_3.state }}\n\n '\n message: '{{ state_attr(''sensor.nws_alert_event_3'', ''description'')\n }}\n\n '\n - if:\n - condition: template\n value_template: \"{{ is_state_attr('sensor.nws_alert_event_3', 'severity',\\\n \\ 'Extreme') or\\n is_state_attr('sensor.nws_alert_event_3', 'severity',\\\n \\ 'Severe') }}\\n\"\n then:\n - if:\n - condition: template\n value_template: \"{{ 'Tornado' in state_attr('sensor.nws_alert_event_3',\\\n \\ 'description') and\\n 'Warning' in state_attr('sensor.nws_alert_event_3',\\\n \\ 'description') and\\n 'Kendall' in state_attr('sensor.nws_alert_event_3',\\\n \\ 'areadesc') }}\\n\"\n then:\n - parallel:\n - action: script.critical_nws_tts_alert_3\n - action: script.critical_nws_mobile_alert_3\n else:\n - if:\n - condition: and\n conditions:\n - condition: time\n after: 05:30:00\n before: '22:00:00'\n - condition: template\n value_template: \"{{ is_state_attr('sensor.nws_alert_event_3', 'certainty',\\\n \\ 'Observed') or\\n is_state_attr('sensor.nws_alert_event_3',\\\n \\ 'certainty', 'Likely') }}\\n\"\n - condition: template\n value_template: \"{{ is_state_attr('sensor.nws_alert_event_3', 'urgency',\\\n \\ 'Immediate') or\\n is_state_attr('sensor.nws_alert_event_3',\\\n \\ 'urgency', 'Expected') }}\\n\"\n then:\n - action: script.critical_nws_mobile_alert_3\n else:\n - action: script.critical_nws_mobile_notification_3\n else:\n - if:\n - condition: not\n conditions:\n - condition: template\n value_template: '{{ is_state_attr(''sensor.nws_alert_event_3'', ''severity'',\n ''Unknown'') }}\n\n '\n then:\n - action: script.critical_nws_mobile_notification_3\n - if:\n - condition: and\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.nws_alert_event_4\n state: None\n - condition: template\n value_template: \"{{ state_attr('sensor.nws_alert_event_4', 'description')\\\n \\ != state_attr('sensor.nws_alert_event_1', 'description') or\\n state_attr('sensor.nws_alert_event_4',\\\n \\ 'description') != state_attr('sensor.nws_alert_event_2', 'description')\\\n \\ or\\n state_attr('sensor.nws_alert_event_4', 'description') != state_attr('sensor.nws_alert_event_3',\\\n \\ 'description') }}\\n\"\n then:\n - parallel:\n - action: persistent_notification.create\n metadata: {}\n data:\n notification_id: nws_alert_4\n title: '{{ states.sensor.nws_alert_event_4.state }}\n\n '\n message: '{{ state_attr(''sensor.nws_alert_event_4'', ''description'')\n }}\n\n '\n - if:\n - condition: template\n value_template: \"{{ is_state_attr('sensor.nws_alert_event_4', 'severity',\\\n \\ 'Extreme') or\\n is_state_attr('sensor.nws_alert_event_4', 'severity',\\\n \\ 'Severe') }}\\n\"\n then:\n - if:\n - condition: template\n value_template: \"{{ 'Tornado' in state_attr('sensor.nws_alert_event_4',\\\n \\ 'description') and\\n 'Warning' in state_attr('sensor.nws_alert_event_4',\\\n \\ 'description') and\\n 'Kendall' in state_attr('sensor.nws_alert_event_4',\\\n \\ 'areadesc') }}\\n\"\n then:\n - parallel:\n - action: script.critical_nws_tts_alert_4\n - action: script.critical_nws_mobile_alert_4\n else:\n - if:\n - condition: and\n conditions:\n - condition: time\n after: 05:30:00\n before: '22:00:00'\n - condition: template\n value_template: \"{{ is_state_attr('sensor.nws_alert_event_4', 'certainty',\\\n \\ 'Observed') or\\n is_state_attr('sensor.nws_alert_event_4',\\\n \\ 'certainty', 'Likely') }}\\n\"\n - condition: template\n value_template: \"{{ is_state_attr('sensor.nws_alert_event_4', 'urgency',\\\n \\ 'Immediate') or\\n is_state_attr('sensor.nws_alert_event_4',\\\n \\ 'urgency', 'Expected') }}\\n\"\n then:\n - action: script.critical_nws_mobile_alert_4\n else:\n - action: script.critical_nws_mobile_notification_4\n else:\n - if:\n - condition: not\n conditions:\n - condition: template\n value_template: '{{ is_state_attr(''sensor.nws_alert_event_4'', ''severity'',\n ''Unknown'') }}\n\n '\n then:\n - action: script.critical_nws_mobile_notification_4", "config": [ { "name": "nws alert count", "room": null, "type": "sensor", "id": { "entity_id": "sensor.nws_alert_count", "device_id": null } }, { "name": "nws alert event 1", "room": null, "type": "sensor", "id": { "entity_id": "sensor.nws_alert_event_1", "device_id": null } }, { "name": "nws alert event 2", "room": null, "type": "sensor", "id": { "entity_id": "sensor.nws_alert_event_2", "device_id": null } }, { "name": "nws alert event 3", "room": null, "type": "sensor", "id": { "entity_id": "sensor.nws_alert_event_3", "device_id": null } }, { "name": "nws alert event 4", "room": null, "type": "sensor", "id": { "entity_id": "sensor.nws_alert_event_4", "device_id": null } } ] } ]