5108 lines
217 KiB
JSON
5108 lines
217 KiB
JSON
[
|
|
{
|
|
"id": "alarm_device_tracker_for_twins",
|
|
"automation": "- alias: Faux device tracker for twins\n id: alarm_device_tracker_for_twins\n trigger:\n - platform: state\n entity_id: input_boolean.girls_home_override\n to: null\n condition:\n condition: template\n value_template: '{{ trigger.to_state.state in [''off'', ''on''] }}'\n action:\n - service: device_tracker.see\n data_template:\n dev_id: faux_girls_home\n location_name: '{{ ''home'' if ''on'' == trigger.to_state.state else ''not_home''\n }}'\n mode: single\n max_exceeded: silent",
|
|
"config": [
|
|
{
|
|
"name": "Girls home override",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.girls_home_override",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_guests_present_reminder",
|
|
"automation": "- alias: Guests Present Reminder\n id: alarm_guests_present_reminder\n trigger:\n - platform: state\n entity_id: group.presence_home\n to: not_home\n condition:\n - condition: state\n entity_id: binary_sensor.guests_present\n state: 'on'\n actions:\n - service: notify.mobile_app_michaels_iphone\n data:\n message: 🛡️ Guests home, alarm not armed 🛡️",
|
|
"config": [
|
|
{
|
|
"name": "Presence home group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Guests present",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.guests_present",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "2c36b0b2-3180-40e1-9cc8-f37660cf62e7",
|
|
"automation": "- alias: Reminder to disable guests present\n id: 2c36b0b2-3180-40e1-9cc8-f37660cf62e7\n trigger:\n - platform: state\n entity_id: person.mike\n to: home\n conditions:\n - condition: state\n entity_id: binary_sensor.guests_present\n state: 'on'\n actions:\n - service: notify.mobile_app_michaels_iphone\n data:\n title: Guests Present Reminder\n message: Need to disable guests present?\n data:\n url: /dashboard-security/home\n clickAction: /dashboard-security/home",
|
|
"config": [
|
|
{
|
|
"name": "Guests present",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.guests_present",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Mike",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mike",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_arm_based_on_presence",
|
|
"automation": "- alias: Auto Arm and Disarm System\n id: alarm_arm_based_on_presence\n triggers:\n - platform: state\n entity_id:\n - group.presence_home\n not_to:\n - unavailable\n - unknown\n conditions:\n - condition: state\n entity_id: binary_sensor.guests_present\n state: 'off'\n - condition: state\n entity_id: device_tracker.faux_girls_home\n state: not_home\n actions:\n - service: calendar.get_events\n target:\n entity_id: calendar.house_planning\n data:\n duration:\n hours: 8\n response_variable: cal\n - if:\n - condition: template\n value_template: '{{ cal[''calendar.house_planning''].events | selectattr(''summary'',\n ''contains'', ''Cleaners'') | list | length == 0 }}'\n then:\n - service: alarm_control_panel.alarm_{{ 'disarm' if 'home' == trigger.to_state.state\n else 'arm_away' }}\n target:\n entity_id: alarm_control_panel.master\n - if:\n - condition: template\n value_template: '{{ trigger.to_state.state == ''home'' }}'\n then:\n - service: select.select_option\n entity_id: select.my_ecobee_current_mode\n data:\n option: home\n mode: single\n max_exceeded: silent",
|
|
"config": [
|
|
{
|
|
"name": "Presence home group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Guests present",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.guests_present",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Faux girls home tracker",
|
|
"room": "unknown",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.faux_girls_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "House planning calendar",
|
|
"room": "unknown",
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.house_planning",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "My ecobee current mode select",
|
|
"room": "unknown",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.my_ecobee_current_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_auto_arm_night_mode",
|
|
"automation": "- alias: Auto Arm Alarm Night\n id: alarm_auto_arm_night_mode\n triggers:\n - platform: time\n at: 00:00:00\n - platform: time\n at: 01:00:00\n - platform: event\n event_type: goodnight_event\n conditions:\n - condition: state\n entity_id:\n - person.mike\n - person.tiff\n match: any\n state: home\n - condition: state\n entity_id: alarm_control_panel.master\n state: disarmed\n actions:\n - parallel:\n - service: light.turn_off\n target:\n floor_id:\n - basement\n - main_floor\n - service: cover.close_cover\n entity_id: cover.garage\n - service: lock.lock\n entity_id:\n - lock.locks\n - wait_template: '{{ is_state(''cover.garage'', ''closed'') }}'\n - service: homeassistant.turn_off\n entity_id: media_player.living_room_tv\n - wait_template: '{{ is_state(''binary_sensor.basement_presence'', ''off'') }}'\n - service: alarm_control_panel.alarm_arm_night\n target:\n entity_id: alarm_control_panel.master",
|
|
"config": [
|
|
{
|
|
"name": "Mike",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mike",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tiff",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.tiff",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"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": "Lock locks",
|
|
"room": "unknown",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.locks",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage cover",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement presence sensor",
|
|
"room": "basement",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.basement_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_disable_armed_night_ios_wakeup",
|
|
"automation": "- alias: Disable Armed Night on iOS alarm wakeup\n id: alarm_disable_armed_night_ios_wakeup\n trigger:\n - platform: event\n event_type: ios_wakeup_event\n - platform: time\n at: 05:00:00\n condition:\n - condition: state\n entity_id: alarm_control_panel.master\n state: armed_night\n action:\n - service: alarm_control_panel.alarm_disarm\n target:\n entity_id: alarm_control_panel.master",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_lock_all_doors_armed",
|
|
"automation": "- alias: Lock all doors when alarm armed\n id: alarm_lock_all_doors_armed\n trigger:\n - platform: state\n entity_id: alarm_control_panel.master\n to:\n - arming\n - armed_night\n - armed_vacation\n - armed_away\n action:\n - service: lock.lock\n entity_id:\n - lock.front_door\n - lock.side_door",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door lock",
|
|
"room": "front_door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Side door lock",
|
|
"room": "side_door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.side_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_alert_garage_left_open",
|
|
"automation": "- alias: Alert armed state and garage open\n id: alarm_alert_garage_left_open\n trigger:\n - platform: state\n entity_id: alarm_control_panel.master\n to:\n - arming\n - armed_night\n - armed_vacation\n - armed_away\n condition:\n - condition: state\n entity_id: cover.garage\n state: open\n action:\n - service: camera.snapshot\n continue_on_error: true\n target:\n entity_id: camera.garage_low_resolution_channel\n data:\n filename: /media/garage/snapshot.jpg\n - service: notify.mobile_app_michaels_iphone\n data:\n message: 🚪 Garage Door Left Open 🚪\n data:\n image: /media/local/garage/snapshot.jpg\n tag: alarmo-garage-open-alert\n actions:\n - action: CLOSE_GARAGE\n title: Close Garage\n activationMode: background\n authenticationRequired: true\n destructive: true\n behavior: default\n push:\n sound:\n name: default\n critical: 1\n volume: 1.0",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage cover",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage low resolution channel camera",
|
|
"room": "garage",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.garage_low_resolution_channel",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_lights_on_triggered_night",
|
|
"automation": "- alias: Turn on indoor lights when triggered at night\n id: alarm_lights_on_triggered_night\n trigger:\n - platform: state\n entity_id: alarm_control_panel.master\n from: armed_night\n to: triggered\n action:\n - service: light.turn_on\n target:\n floor_id:\n - basement\n - main_floor",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_turn_off_all_lights",
|
|
"automation": "- alias: Turn off all indoor lights when armed\n id: alarm_turn_off_all_lights\n trigger:\n - platform: state\n entity_id: alarm_control_panel.master\n to:\n - armed_vacation\n - armed_away\n action:\n - service: light.turn_off\n target:\n floor_id:\n - basement\n - main_floor\n - top_floor",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_turn_off_lights_bedtime",
|
|
"automation": "- alias: Turn off lights at bedtime\n id: alarm_turn_off_lights_bedtime\n trigger:\n - platform: state\n entity_id: alarm_control_panel.master\n to: armed_night\n action:\n - service: light.turn_off\n target:\n floor_id:\n - basement\n - main_floor",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_set_switch_status_leds",
|
|
"automation": "- alias: Set Switch Status LEDs\n id: alarm_set_switch_status_leds\n mode: queued\n max: 10\n trigger:\n - platform: state\n entity_id:\n - lock.locks\n - cover.garage\n - binary_sensor.doors\n not_from:\n - unknown\n - unavailable\n not_to:\n - unknown\n - unavailable\n - opening\n - closing\n - platform: state\n entity_id: cover.garage\n to: closing\n id: closing\n - platform: state\n entity_id: cover.garage\n to: opening\n id: opening\n condition:\n - condition: state\n entity_id: group.adults\n state: home\n - condition: template\n value_template: '{{ has_value(''cover.garage'') and has_value(''lock.locks'')\n and has_value(''binary_sensor.doors'') }}'\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: opening\n sequence:\n - service: script.blue_set_led\n data:\n color: '0'\n effect: fast_rising\n level: 40\n duration: '15'\n entity_id:\n - light.front_hall\n - light.kitchen_light\n - light.back_deck_light\n - light.main_stairs\n - light.upstairs_hall\n - light.main_bath_light\n - light.basement_stairs\n - light.basement_hall\n - conditions:\n - condition: trigger\n id: closing\n sequence:\n - service: script.blue_set_led\n data:\n color: '0'\n effect: fast_falling\n level: 40\n duration: '15'\n entity_id:\n - light.front_hall\n - light.kitchen_light\n - light.back_deck_light\n - light.main_stairs\n - light.upstairs_hall\n - light.main_bath_light\n - light.basement_stairs\n - light.basement_hall\n default:\n - variables:\n duration: \"{% if is_state('binary_sensor.doors', 'off') and is_state('cover.garage',\\\n \\ 'closed') and is_state('lock.locks', 'locked') %}\\n 30\\n{% else %}\\n\\\n \\ 255\\n{% endif %}\"\n color: \"{# red 0, yellow 20, green 85 #} {% if is_state('cover.garage', 'closed')\\\n \\ and is_state('binary_sensor.doors', 'off') and is_state('lock.locks',\\\n \\ 'locked') %}\\n 85\\n{% elif is_state('binary_sensor.doors', 'off') and\\\n \\ is_state('cover.garage', 'closed') and is_state('lock.locks', 'unlocked')\\\n \\ %}\\n 20\\n{% else %}\\n 0\\n{% endif %}\"\n - service: script.blue_set_led\n data:\n color: '{{ color }}'\n effect: solid\n level: 40\n duration: '{{ duration }}'\n entity_id:\n - light.front_hall\n - light.kitchen_light\n - light.back_deck_light\n - light.main_stairs\n - light.upstairs_hall\n - light.main_bath_light\n - light.basement_stairs\n - light.basement_hall",
|
|
"config": [
|
|
{
|
|
"name": "Basement hall light",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement stairs light",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_stairs",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Lock locks",
|
|
"room": "unknown",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.locks",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage cover",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Doors binary sensor",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main bath light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bath_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Upstairs hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.upstairs_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main stairs light",
|
|
"room": "stairs",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_stairs",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Back deck light",
|
|
"room": "deck",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.back_deck_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Blue Set LED",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.blue_set_led",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "b08f5491-f6f0-4c03-b8a9-14c4a4b68ac5",
|
|
"automation": "- alias: Notify Water Shutoff Jammed\n id: b08f5491-f6f0-4c03-b8a9-14c4a4b68ac5\n triggers:\n - platform: state\n entity_id: binary_sensor.water_shutoff_valve_jammed\n to: 'on'\n actions:\n - service: notify.mobile_app_michaels_iphone\n data:\n message: 🚰 Water Shutoff Valve Jammed 🚰\n data:\n tag: water-shutoff-valve-jammed\n push:\n sound:\n name: default\n critical: 1\n volume: 1.0",
|
|
"config": [
|
|
{
|
|
"name": "Water shutoff valve jammed",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.water_shutoff_valve_jammed",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "7dad3c90-f96f-4976-878c-0ab3d1a6241a",
|
|
"automation": "- alias: Shut off water when leak detected and not home or overnight\n id: 7dad3c90-f96f-4976-878c-0ab3d1a6241a\n triggers:\n - platform: state\n entity_id: alarm_control_panel.water\n to:\n - triggered\n conditions:\n not:\n - condition: state\n entity_id: alarm_control_panel.master\n state:\n - disarmed\n actions:\n - service: valve.close_valve\n entity_id: valve.water_shutoff",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Water alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.water",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Water shutoff valve",
|
|
"room": "unknown",
|
|
"type": "valve",
|
|
"id": {
|
|
"entity_id": "valve.water_shutoff",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3fa42dee-e85e-4787-8bdd-4d0db3dd7e59",
|
|
"automation": "- alias: Alert on Alarm Trigger\n id: 3fa42dee-e85e-4787-8bdd-4d0db3dd7e59\n triggers:\n - platform: state\n entity_id: alarm_control_panel.master\n to:\n - triggered\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: \"{{ trigger.to_state is defined and\\n trigger.to_state.attributes.open_sensors\\\n \\ is defined and\\n trigger.to_state.attributes.open_sensors.values()\\n\\\n \\ | select('ne', 'unavailable')\\n | list\\n | count == 0 }}\\n\"\n sequence:\n - service: notify.mobile_app_michaels_iphone\n data:\n message: 'Cause: {%- for k, v in (trigger.to_state.attributes.open_sensors\n or {}).items() %} {{ state_attr(k, ''friendly_name'') or k }}: {{ v }}\n {%- endfor %}\n\n '\n title: 🚨 Alarmo Alert! 🚨\n data:\n url: /dashboard-security/home\n clickAction: /dashboard-security/home\n default:\n - service: notify.mobile_app_michaels_iphone\n data:\n message: 'Cause: {%- for k, v in (trigger.to_state.attributes.open_sensors\n or {}).items() %} {{ state_attr(k, ''friendly_name'') or k }}: {{ ''wet''\n if state_attr(k, ''device_class'') == ''moisture'' else v }} {%- endfor\n %}\n\n '\n title: 🚨 Alarmo Alert! 🚨\n data:\n push:\n sound:\n name: default\n critical: 1\n url: /dashboard-security/home\n clickAction: /dashboard-security/home",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "appliances_water_softener_salt_bin_low",
|
|
"automation": "- alias: Water Softener Salt Bin Low\n id: appliances_water_softener_salt_bin_low\n trigger:\n - platform: numeric_state\n entity_id: sensor.salt_sensor_weight\n below: 9\n for:\n hours: 24\n action:\n - service: notify.mobile_app_michaels_iphone\n data:\n message: Water Softener Salt Low! {{ states('sensor.salt_sensor_weight') }}kg\n data:\n tag: water-softener-salt-low",
|
|
"config": [
|
|
{
|
|
"name": "Salt sensor weight",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.salt_sensor_weight",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1688483068220'",
|
|
"automation": "- id: '1688483068220'\n alias: Enable Tesla Wifi When Tag Scanned\n description: ''\n trigger:\n - platform: tag\n tag_id: e4c51def-84c8-4349-913d-9c711e814b37\n condition: []\n action:\n - service: homeassistant.turn_on\n data: {}\n target:\n entity_id: switch.tesla\n mode: single\n max_exceeded: silent",
|
|
"config": [
|
|
{
|
|
"name": "Tesla switch",
|
|
"room": "unknown",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tesla",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_light_on_pir_entrance",
|
|
"automation": "- alias: Basement Light on pir entrance\n id: basement_light_on_pir_entrance\n triggers:\n - platform: state\n entity_id: binary_sensor.basement_stairs_motion_occupancy\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: alarm_control_panel.master\n state: disarmed\n actions:\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.basement_hall_motion_occupancy\n to: 'on'\n - platform: state\n entity_id: sensor.basement_fp1_presence_event\n to:\n - enter\n - approach\n timeout:\n minutes: 5\n continue_on_timeout: false\n - service: light.turn_on\n entity_id: light.basement_lights",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement lights",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement stairs motion occupancy",
|
|
"room": "basement",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.basement_stairs_motion_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement hall motion occupancy",
|
|
"room": "basement",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.basement_hall_motion_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement fp1 presence event",
|
|
"room": "basement",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.basement_fp1_presence_event",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_light_presence_controls_on",
|
|
"automation": "- alias: Basement Light Presence Control On\n id: basement_light_presence_controls_on\n mode: restart\n trigger:\n - platform: state\n entity_id: binary_sensor.basement_presence\n to: 'on'\n id: lights_on\n - platform: state\n entity_id: sensor.basement_fp1_presence_event\n to:\n - enter\n - approach\n id: lights_on\n - platform: state\n entity_id: binary_sensor.basement_presence\n to: 'off'\n id: timer_start\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.basement_lights_off\n id: timer_lights_off\n action:\n choose:\n - conditions:\n - condition: trigger\n id: lights_on\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'off'\n sequence:\n - service: timer.cancel\n target:\n entity_id: timer.basement_lights_off\n - if:\n - condition: state\n entity_id: light.basement_room_light_dimmer\n state: 'off'\n then:\n - service: light.turn_on\n entity_id:\n - light.basement_hall\n - light.basement_room_light_dimmer\n - conditions:\n - condition: trigger\n id: timer_start\n - condition: state\n entity_id: light.basement_lights\n state: 'on'\n sequence:\n - service: timer.start\n entity_id: timer.basement_lights_off\n - conditions:\n - condition: trigger\n id: timer_lights_off\n - condition: state\n entity_id: binary_sensor.basement_presence\n state: 'off'\n sequence:\n - service: light.turn_off\n entity_id:\n - light.basement_lights",
|
|
"config": [
|
|
{
|
|
"name": "Basement lights",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement hall light",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement room light dimmer",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_room_light_dimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement presence sensor",
|
|
"room": "basement",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.basement_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement fp1 presence event",
|
|
"room": "basement",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.basement_fp1_presence_event",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Workday sensor",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workday_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement lights off timer",
|
|
"room": "basement",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.basement_lights_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_sync_hall_room_lights",
|
|
"automation": "- alias: Sync Basement Hall Light to Basement Room Light\n id: basement_sync_hall_room_lights\n trigger:\n - platform: state\n to: null\n entity_id: light.basement_hall\n condition:\n - condition: state\n entity_id: alarm_control_panel.master\n state: disarmed\n - condition: template\n value_template: '{{ trigger.to_state.state in [''off'', ''on''] }}'\n action:\n - service: homeassistant.turn_{{ trigger.to_state.state }}\n entity_id: light.basement_room_light_dimmer",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement hall light",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement room light dimmer",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_room_light_dimmer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_night_auto_off",
|
|
"automation": "- alias: Basement Lights off Night\n id: basement_night_auto_off\n trigger:\n - platform: time\n at: '23:00:00'\n action:\n service: homeassistant.turn_off\n entity_id:\n - light.basement_room_light_dimmer\n - light.basement_hall",
|
|
"config": [
|
|
{
|
|
"name": "Basement hall light",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement room light dimmer",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_room_light_dimmer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_top_of_stairs_action_control",
|
|
"automation": "- alias: Top of basement stairs action control\n id: basement_top_of_stairs_action_control\n trigger:\n - trigger: device\n domain: mqtt\n device_id: db7cbb2e9f9508cfb87c54e915766ff3\n type: action\n subtype: up_double\n id: turn_on\n - trigger: device\n domain: mqtt\n device_id: db7cbb2e9f9508cfb87c54e915766ff3\n type: action\n subtype: down_double\n id: turn_off\n - trigger: device\n domain: mqtt\n device_id: 2dfe60ede49072748ae1109333546706\n type: action\n subtype: up_double\n id: turn_on\n - trigger: device\n domain: mqtt\n device_id: 2dfe60ede49072748ae1109333546706\n type: action\n subtype: down_double\n id: turn_off\n - trigger: device\n domain: mqtt\n device_id: 4fd03b2b6cc39b1cc034f88e88f749d6\n type: action\n subtype: up_double\n id: turn_on\n - trigger: device\n domain: mqtt\n device_id: 4fd03b2b6cc39b1cc034f88e88f749d6\n type: action\n subtype: down_double\n id: turn_off\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: turn_on\n sequence:\n - service: light.turn_on\n target:\n area_id: basement\n - conditions:\n - condition: trigger\n id: turn_off\n sequence:\n - service: light.turn_off\n target:\n floor_id: basement\n - service: switch.turn_off\n entity_id: switch.basement_space_heater",
|
|
"config": [
|
|
{
|
|
"name": "Basement space heater",
|
|
"room": "basement",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.basement_space_heater",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID db7cbb2e9f9508cfb87c54e915766ff3",
|
|
"room": "basement",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "db7cbb2e9f9508cfb87c54e915766ff3"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID 2dfe60ede49072748ae1109333546706",
|
|
"room": "basement",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "2dfe60ede49072748ae1109333546706"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID 4fd03b2b6cc39b1cc034f88e88f749d6",
|
|
"room": "basement",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "4fd03b2b6cc39b1cc034f88e88f749d6"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_space_heater_control",
|
|
"automation": "- alias: Basement Space Heater Control\n id: basement_space_heater_control\n triggers:\n - platform: state\n entity_id: binary_sensor.basement_presence\n to: 'on'\n id: turn_on\n - platform: state\n entity_id: binary_sensor.basement_presence\n to: 'off'\n id: turn_off\n for:\n minutes: 5\n - platform: template\n value_template: '{{ ''armed_'' in states(''alarm_control_panel.master'') }}'\n id: turn_off\n condition:\n - condition: state\n entity_id: sensor.season\n state: winter\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: turn_on\n - condition: state\n entity_id: alarm_control_panel.master\n state: disarmed\n - condition: state\n entity_id: binary_sensor.home_grid_status\n state: 'on'\n sequence:\n - service: switch.turn_on\n entity_id: switch.basement_space_heater\n - conditions:\n - condition: trigger\n id: turn_off\n sequence:\n - service: switch.turn_off\n entity_id: switch.basement_space_heater",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement space heater",
|
|
"room": "basement",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.basement_space_heater",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement presence sensor",
|
|
"room": "basement",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.basement_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Season sensor",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.season",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home grid status",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_grid_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_stairs_light_motion_control",
|
|
"automation": "- alias: Basement Stairs Light Motion Control\n id: basement_stairs_light_motion_control\n triggers:\n - platform: state\n entity_id: binary_sensor.basement_stairs_motion_occupancy\n from: 'off'\n to: 'on'\n id: turn_on\n - platform: state\n entity_id: binary_sensor.basement_stairs_motion_occupancy\n to: 'off'\n for:\n minutes: 10\n id: turn_off\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: group.adults\n state: home\n - condition: state\n entity_id: alarm_control_panel.master\n state: disarmed\n - condition: trigger\n id: turn_on\n - condition: time\n after: 07:45:00\n sequence:\n - service: light.turn_on\n entity_id: light.basement_stairs\n default:\n - service: light.turn_off\n entity_id: light.basement_stairs",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement stairs light",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_stairs",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement stairs motion occupancy",
|
|
"room": "basement",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.basement_stairs_motion_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "batteries_change_battery_notification",
|
|
"automation": "- alias: Battery Low Notification\n id: batteries_change_battery_notification\n description: Battery Low Notification with auto dismiss\n trigger:\n - platform: event\n event_type: battery_notes_battery_threshold\n event_data:\n battery_low: true\n id: low\n alias: Battery went low\n - platform: event\n event_type: battery_notes_battery_threshold\n event_data:\n battery_low: false\n id: high\n alias: Battery went high\n action:\n - choose:\n - conditions:\n - condition: trigger\n id:\n - low\n sequence:\n - service: persistent_notification.create\n data:\n title: '{{ trigger.event.data.device_name }} Battery Low\n\n '\n notification_id: '{{ trigger.event.data.device_id }}-{{ trigger.event.data.source_entity_id\n }}'\n message: 'The device has a battery level of {{ trigger.event.data.battery_level\n }}% {{ ''\\n'' -}} You need {{ trigger.event.data.battery_quantity }}x\n {{ trigger.event.data.battery_type }}\n\n '\n - conditions:\n - condition: trigger\n id:\n - high\n sequence:\n - service: persistent_notification.dismiss\n data:\n notification_id: '{{ trigger.event.data.device_id }}-{{ trigger.event.data.source_entity_id\n }}'\n mode: queued",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "bedroom_comfort_arrive_past_bedtime",
|
|
"automation": "- alias: Bedroom Comfort when arrival past bedtime\n id: bedroom_comfort_arrive_past_bedtime\n trigger:\n platform: state\n entity_id: group.adults\n from: not_home\n to: home\n condition:\n - condition: time\n after: '22:00:00'\n before: 07:00:00\n action:\n service: homeassistant.turn_on\n entity_id:\n - switch.master_white_noise\n - switch.master_humidifier",
|
|
"config": [
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master white noise",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.master_white_noise",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master humidifier",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.master_humidifier",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedroom_comfort_early_evenings",
|
|
"automation": "- alias: Bedroom Humidifier On Early Evenings\n id: bedroom_comfort_early_evenings\n trigger:\n - platform: time\n at: '21:30:00'\n condition:\n - condition: state\n entity_id: group.adults\n state: home\n action:\n service: homeassistant.turn_on\n entity_id:\n - switch.master_humidifier",
|
|
"config": [
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master humidifier",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.master_humidifier",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedroom_comfort_evenings",
|
|
"automation": "- alias: Bedroom Comfort On Evenings\n id: bedroom_comfort_evenings\n trigger:\n - platform: time\n at: '22:30:00'\n condition:\n - condition: state\n entity_id: group.adults\n state: home\n action:\n service: homeassistant.turn_on\n entity_id:\n - switch.master_white_noise\n - switch.master_humidifier",
|
|
"config": [
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master white noise",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.master_white_noise",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master humidifier",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.master_humidifier",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedroom_comfort_if_in_bed_early",
|
|
"automation": "- alias: Bedroom Comfort if in bed\n id: bedroom_comfort_if_in_bed_early\n trigger:\n - platform: state\n entity_id: sensor.tiffanys_iphone_battery_state\n from: Not Charging\n to: Charging\n - platform: state\n entity_id: sensor.tiffanys_iphone_battery_state\n from: Not Charging\n to: Full\n - platform: time\n at: '22:45:00'\n condition:\n - condition: time\n after: '22:00:00'\n - condition: state\n entity_id: group.adults\n state: home\n action:\n service: homeassistant.turn_on\n entity_id:\n - switch.master_white_noise\n - switch.master_humidifier",
|
|
"config": [
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master white noise",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.master_white_noise",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master humidifier",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.master_humidifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tiffanys iphone battery state",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tiffanys_iphone_battery_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedroom_off_mornings_nursery_active",
|
|
"automation": "- alias: Bedroom off mornings\n id: bedroom_off_mornings_nursery_active\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.bedroom_ecobee_motion\n - binary_sensor.bedroom_ecobee_occupancy\n - light.main_bath_light\n to: 'on'\n - platform: time\n at: 07:30:00\n - platform: state\n entity_id:\n - switch.master_white_noise\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.sleeping_in\n state: 'off'\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'off'\n - condition: time\n after: 07:00:00\n - condition: time\n before: 08:00:00\n action:\n service: homeassistant.turn_off\n entity_id:\n - switch.master_white_noise\n - switch.master_humidifier",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master white noise",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.master_white_noise",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master humidifier",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.master_humidifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleeping in input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping_in",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom ecobee motion",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_ecobee_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom ecobee occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_ecobee_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main bath light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bath_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "spare_bedroom_fan_toggle",
|
|
"automation": "- alias: Spare Bedroom Fan Toggle\n id: spare_bedroom_fan_toggle\n trigger:\n - platform: event\n event_type: ios_bedtime_event\n condition:\n - condition: state\n entity_id: person.mike\n state: home\n action:\n service: homeassistant.turn_on\n entity_id:\n - switch.spare_bedroom_fan",
|
|
"config": [
|
|
{
|
|
"name": "Mike",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mike",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Spare bedroom fan",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.spare_bedroom_fan",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedroom_reset_sleeping_in",
|
|
"automation": "- alias: Reset Sleeping in\n id: bedroom_reset_sleeping_in\n trigger:\n - platform: time\n at: '12:00:00'\n condition:\n - condition: state\n entity_id: input_boolean.sleeping_in\n state: 'on'\n action:\n service: homeassistant.turn_off\n entity_id: input_boolean.sleeping_in",
|
|
"config": [
|
|
{
|
|
"name": "Sleeping in input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping_in",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedroom_morning_wake_up_sequence",
|
|
"automation": "- alias: Front Bedroom Morning Wake Up Sequence\n id: bedroom_morning_wake_up_sequence\n trigger:\n - platform: event\n event_type: ios_wakeup_event\n action:\n - service: homeassistant.turn_off\n entity_id:\n - switch.spare_bedroom_fan",
|
|
"config": [
|
|
{
|
|
"name": "Spare bedroom fan",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.spare_bedroom_fan",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "xmas_exteior_lights_on",
|
|
"automation": "- alias: Exterior Christmas Lights On\n id: xmas_exteior_lights_on\n triggers:\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 0.25\n conditions:\n - condition: template\n value_template: '{{ now().month in [11, 12, 1, 2] }}'\n actions:\n service: homeassistant.turn_on\n entity_id: light.exterior_christmas_lights",
|
|
"config": [
|
|
{
|
|
"name": "Exterior Christmas lights",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_christmas_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "xmas_exterior_lights_off",
|
|
"automation": "- alias: Exterior Christmas Lights Off\n id: xmas_exterior_lights_off\n triggers:\n - platform: time\n at: '23:30:00'\n - platform: sun\n event: sunrise\n actions:\n service: homeassistant.turn_off\n entity_id: light.exterior_christmas_lights",
|
|
"config": [
|
|
{
|
|
"name": "Exterior Christmas lights",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_christmas_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "xmas_lights_room_occupied",
|
|
"automation": "- alias: Christmas Tree lights on when living room occupied\n id: xmas_lights_room_occupied\n triggers:\n - platform: state\n entity_id: binary_sensor.living_room_occupancy\n to: 'on'\n id: turn_on\n - platform: state\n entity_id: binary_sensor.living_room_occupancy\n to: 'off'\n for:\n minutes: 30\n id: turn_off\n - platform: event\n event_type: ios_wakeup_event\n id: turn_on\n - platform: zone\n entity_id:\n - person.mike\n - person.tiff\n zone: zone.home\n event: enter\n id: turn_on\n - platform: state\n entity_id: alarm_control_panel.master\n to:\n - armed_night\n - armed_vacation\n - armed_away\n id: turn_off\n condition:\n - condition: template\n value_template: '{{ now().month in [11, 12, 1, 2] }}'\n - condition: time\n after: 06:00:00\n before: '22:30:00'\n - condition: state\n entity_id: alarm_control_panel.master\n state: disarmed\n actions:\n choose:\n - conditions:\n - condition: trigger\n id: turn_on\n sequence:\n - service: homeassistant.turn_on\n entity_id: light.christmas_tree\n - conditions:\n - condition: trigger\n id: turn_off\n sequence:\n - service: homeassistant.turn_off\n entity_id: light.christmas_tree",
|
|
"config": [
|
|
{
|
|
"name": "Mike",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mike",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tiff",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.tiff",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room occupancy",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Christmas tree",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.christmas_tree",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "xmas_tree_lights_off_night",
|
|
"automation": "- alias: Christmas Tree off at bedtime\n id: xmas_tree_lights_off_night\n triggers:\n platform: time\n at: '22:30:00'\n actions:\n service: homeassistant.turn_off\n entity_id: light.christmas_tree",
|
|
"config": [
|
|
{
|
|
"name": "Christmas tree",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.christmas_tree",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "external_xmas_lights_on_arrive_home",
|
|
"automation": "- alias: Exterior Christmas Lights on arriving home\n id: external_xmas_lights_on_arrive_home\n triggers:\n - platform: zone\n entity_id:\n - person.mike\n - person.tiff\n zone: zone.home\n event: enter\n condition:\n - condition: template\n value_template: '{{ now().month in [11, 12, 1, 2] }}'\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 3.35\n - condition: time\n after: '15:30:00'\n actions:\n service: homeassistant.turn_on\n entity_id: light.exterior_christmas_lights",
|
|
"config": [
|
|
{
|
|
"name": "Mike",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mike",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tiff",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.tiff",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Exterior Christmas lights",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_christmas_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "disable_climate_door_ajar",
|
|
"automation": "- alias: Disable Climate If Door or Window Ajar\n id: disable_climate_door_ajar\n trigger:\n - platform: state\n id: notification_door_open\n entity_id:\n - binary_sensor.doors\n - binary_sensor.windows\n to: 'on'\n for:\n minutes: 5\n condition:\n - not:\n - condition: state\n entity_id: climate.my_ecobee\n state: 'off'\n action:\n - variables:\n climate_restore_state: '{{ states(''climate.my_ecobee'') }}'\n - service: notify.adults\n data:\n title: A Door or window has been left open\n message: Disabling thermostat\n data:\n tag: front-door-open-warning\n push:\n name: default\n critical: 1\n - service: climate.turn_off\n target:\n entity_id: climate.my_ecobee\n - wait_for_trigger:\n - platform: template\n value_template: '{{ is_state(''binary_sensor.doors'', ''off'') and is_state(''binary_sensor.windows'',\n ''off'') }}\n\n '\n - service: climate.set_hvac_mode\n target:\n entity_id: climate.my_ecobee\n data:\n hvac_mode: '{{ climate_restore_state }}'\n - service: notify.adults\n data:\n message: clear_notification\n data:\n tag: front-door-open-warning",
|
|
"config": [
|
|
{
|
|
"name": "My ecobee climate",
|
|
"room": "unknown",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.my_ecobee",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Doors binary sensor",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Windows binary sensor",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.windows",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "furnace_on_if_left_off_cold_forecast",
|
|
"automation": "- alias: Furnace on if left off and cold forecast\n id: furnace_on_if_left_off_cold_forecast\n trigger:\n - platform: time\n at: '22:00:00'\n - platform: time\n at: 00:00:00\n condition:\n - condition: state\n entity_id: climate.my_ecobee\n state:\n - 'off'\n action:\n - service: weather.get_forecasts\n target:\n entity_id: weather.tomorrow_io_home_nowcast\n data:\n type: hourly\n response_variable: forecast\n - condition: template\n value_template: '{{ forecast[''weather.tomorrow_io_home_nowcast''].forecast |\n map(attribute=''temperature'')| list | min < 10 }}'\n - service: notify.mobile_app_michaels_iphone\n data:\n message: Furnace enabled, cold weather forecast\n data:\n tag: furnace-enabled-cold-notification\n group: furnace-notification\n - service: climate.set_hvac_mode\n data:\n hvac_mode: heat\n target:\n entity_id: climate.my_ecobee",
|
|
"config": [
|
|
{
|
|
"name": "My ecobee climate",
|
|
"room": "unknown",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.my_ecobee",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tomorrow io home nowcast weather",
|
|
"room": "unknown",
|
|
"type": "weather",
|
|
"id": {
|
|
"entity_id": "weather.tomorrow_io_home_nowcast",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "comfort_co2_high_notification",
|
|
"automation": "- alias: CO2 High Notification\n id: comfort_co2_high_notification\n trigger:\n - platform: numeric_state\n entity_id: sensor.airthings_wave_111512_carbon_dioxide\n above: 950\n for:\n hours: 1\n condition:\n - condition: state\n entity_id: group.adults\n state: home\n action:\n - service: notify.mobile_app_michaels_iphone\n data:\n message: CO2 is high, is HRV on?\n data:\n url: /lovelace/air-quality\n clickAction: /lovelace/air-quality\n tag: comfort-co2-high-notification",
|
|
"config": [
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Airthings wave 111512 carbon dioxide",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.airthings_wave_111512_carbon_dioxide",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "doorbell_set_doorbell_chime_state",
|
|
"automation": "- alias: Set Doorbell Chime State\n id: doorbell_set_doorbell_chime_state\n mode: single\n max_exceeded: silent\n triggers:\n - platform: state\n entity_id:\n - input_boolean.nap_mode\n - input_boolean.quite_mode\n - switch.master_white_noise\n - schedule.doorbell_do_not_distrub\n not_to:\n - unavailable\n - unknown\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id:\n - input_boolean.nap_mode\n - input_boolean.quite_mode\n - switch.master_white_noise\n - schedule.doorbell_do_not_distrub\n state: 'off'\n sequence:\n - service: select.select_option\n target:\n entity_id: select.front_door_chime_type\n data:\n option: Mechanical\n - delay:\n seconds: 10\n - wait_template: '{{ is_state(''select.front_door_chime_type'', ''Mechanical'')\n }}'\n timeout:\n minutes: 10\n - if:\n - '{{ not wait.completed }}'\n then:\n - service: select.select_option\n target:\n entity_id: select.front_door_chime_type\n data:\n option: Mechanical\n - service: notify.mobile_app_michaels_iphone\n data:\n message: Check Doorbell Mechanical State\n default:\n - service: select.select_option\n target:\n entity_id: select.front_door_chime_type\n data:\n option: None",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master white noise",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.master_white_noise",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door chime type select",
|
|
"room": "front_door",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.front_door_chime_type",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Quite mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quite_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Doorbell do not distrub schedule",
|
|
"room": "unknown",
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.doorbell_do_not_distrub",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "doorbell_notification_message",
|
|
"automation": "- alias: Doorbell notification Message\n id: doorbell_notification_message\n mode: single\n max_exceeded: silent\n triggers:\n platform: state\n entity_id: binary_sensor.front_door_doorbell\n from: 'off'\n to: 'on'\n actions:\n - service: camera.snapshot\n continue_on_error: true\n target:\n entity_id: camera.front_door_low_resolution_channel\n data:\n filename: /media/doorbell/snapshot.jpg\n - service: notify.adults\n data:\n title: Ding Dong\n message: Someone is at the front door\n data:\n url: /dashboard-doorbell/doorbell\n clickAction: dashboard-doorbell/doorbell\n image: /media/local/doorbell/snapshot.jpg\n tag: doorbell-notification\n group: doorbell-group\n actions:\n - action: NOT_INTERESTED\n title: Not interested\n activationMode: background\n authenticationRequired: true\n destructive: true\n behavior: default",
|
|
"config": [
|
|
{
|
|
"name": "Front door doorbell",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_doorbell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door low resolution channel camera",
|
|
"room": "front_door",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.front_door_low_resolution_channel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door binary sensor",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "doorbell_not_interested_message",
|
|
"automation": "- alias: Not Interested Message\n id: doorbell_not_interested_message\n triggers:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: NOT_INTERESTED\n - trigger: state\n entity_id: input_button.sorry_not_interested\n actions:\n - service: tts.cloud_say\n data:\n entity_id: media_player.front_door_speaker\n message: Sorry, not interested\n cache: true\n - delay:\n seconds: 1\n - action: text.set_value\n target:\n entity_id: text.front_door_doorbell\n data:\n value: Not interested\n - delay:\n seconds: 15\n - action: automation.trigger\n data:\n skip_condition: true\n target:\n entity_id: automation.set_doorbell_message",
|
|
"config": [
|
|
{
|
|
"name": "Front door speaker",
|
|
"room": "front_door",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.front_door_speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door doorbell text",
|
|
"room": "front_door",
|
|
"type": "text",
|
|
"id": {
|
|
"entity_id": "text.front_door_doorbell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sorry not interested input button",
|
|
"room": "unknown",
|
|
"type": "input_button",
|
|
"id": {
|
|
"entity_id": "input_button.sorry_not_interested",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set Doorbell Message",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.set_doorbell_message",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "doorbell_activated",
|
|
"automation": "- alias: Doorbell activated\n id: doorbell_activated\n mode: single\n max_exceeded: silent\n triggers:\n - platform: state\n entity_id: binary_sensor.front_door_doorbell\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: group.adults\n state: home\n - condition: state\n entity_id: alarm_control_panel.master\n state: disarmed\n actions:\n - parallel:\n - service: media_player.media_pause\n entity_id: media_player.living_room_tv\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ now().month == 10 and now().day == 31 and now().hour\n > 17 }}'\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'off'\n sequence:\n - service: script.sonos_say\n data:\n entity_id:\n - media_player.sonos_living_room\n message: Trick or treat!\n volume: 25\n default:\n - service: script.sonos_say\n data:\n entity_id:\n - media_player.sonos_basement\n - media_player.sonos_living_room\n message: Someone is at the door\n volume: 30\n - service: script.blue_set_led\n data:\n color: '150'\n effect: fast_blink\n level: 70\n duration: 60\n entity_id:\n - light.front_hall\n - light.living_room_light\n - light.back_deck_light\n - light.main_stairs\n - light.upstairs_hall\n - light.main_bath_light\n - light.basement_stairs\n - delay:\n seconds: 30",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement stairs light",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_stairs",
|
|
"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": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door doorbell",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_doorbell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door binary sensor",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main bath light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bath_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Upstairs hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.upstairs_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main stairs light",
|
|
"room": "stairs",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_stairs",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Back deck light",
|
|
"room": "deck",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.back_deck_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sonos living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sonos basement",
|
|
"room": "basement",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_basement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Blue Set LED",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.blue_set_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sonos Say",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.sonos_say",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "doorbell_halloween_audio_message",
|
|
"automation": "- alias: Halloween Doorbell Audio\n id: doorbell_halloween_audio_message\n mode: single\n max_exceeded: silent\n triggers:\n - platform: state\n entity_id: binary_sensor.front_door_doorbell\n from: 'off'\n to: 'on'\n conditions:\n - condition: time\n after: '16:00:00'\n before: '21:00:00'\n - condition: template\n value_template: '{{ now().month == 10 and now().day == 31 }}'\n - condition: numeric_state\n entity_id: sensor.home_nearest_distance\n below: 500\n actions:\n - service: tts.cloud_say\n data:\n entity_id: media_player.front_door_speaker\n message: Boo! Happy Halloween!\n cache: true\n - delay:\n seconds: 60",
|
|
"config": [
|
|
{
|
|
"name": "Front door doorbell",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_doorbell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door speaker",
|
|
"room": "front_door",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.front_door_speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door binary sensor",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home nearest distance",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_nearest_distance",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "doorbell_package_detected",
|
|
"automation": "- alias: Doorbell package detected\n id: doorbell_package_detected\n triggers:\n - platform: state\n entity_id: binary_sensor.front_door_package_detected\n to: 'on'\n actions:\n - service: camera.snapshot\n target:\n entity_id: camera.front_door_package_camera\n data:\n filename: /media/doorbell/package.jpg\n - service: notify.adults\n data:\n title: Package Detected\n message: Check the front porch\n data:\n image: /media/local/doorbell/package.jpg\n tag: doorbell-package-notification\n group: doorbell-package",
|
|
"config": [
|
|
{
|
|
"name": "Front door package detected",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_package_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door package camera",
|
|
"room": "front_door",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.front_door_package_camera",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door binary sensor",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "doorbell_set_message",
|
|
"automation": "- alias: Set doorbell message\n id: doorbell_set_message\n max_exceeded: silent\n triggers:\n - platform: state\n entity_id:\n - switch.nap_mode\n - input_boolean.quite_mode\n - switch.master_white_noise\n - schedule.doorbell_do_not_distrub\n to:\n - 'on'\n - 'off'\n - platform: time\n at: '17:00:00'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ now().month == 10 and now().day == 31 }}'\n - condition: numeric_state\n entity_id: sensor.home_nearest_distance\n below: 500\n - condition: time\n after: '17:00:00'\n before: '21:00:00'\n sequence:\n - service: text.set_value\n target:\n entity_id: text.front_door_doorbell\n data:\n value: Trick or Treat!\n - conditions:\n - condition: state\n entity_id:\n - switch.nap_mode\n - input_boolean.quite_mode\n - switch.master_white_noise\n - schedule.doorbell_do_not_distrub\n match: any\n state: 'on'\n sequence:\n - service: select.select_option\n data:\n option: DO NOT DISTURB\n target:\n entity_id: select.front_door_doorbell_text\n default:\n - service: select.select_option\n data:\n option: Default Message (WELCOME)\n target:\n entity_id: select.front_door_doorbell_text",
|
|
"config": [
|
|
{
|
|
"name": "Master white noise",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.master_white_noise",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door doorbell text",
|
|
"room": "front_door",
|
|
"type": "text",
|
|
"id": {
|
|
"entity_id": "text.front_door_doorbell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door doorbell text select",
|
|
"room": "front_door",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.front_door_doorbell_text",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Quite mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quite_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Doorbell do not distrub schedule",
|
|
"room": "unknown",
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.doorbell_do_not_distrub",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home nearest distance",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_nearest_distance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nap mode switch",
|
|
"room": "unknown",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.nap_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "080e0639-daa4-4632-adcf-fd4be3b42f4c",
|
|
"automation": "- alias: Set doorbell chime on shutdown\n id: 080e0639-daa4-4632-adcf-fd4be3b42f4c\n triggers:\n - platform: homeassistant\n event: shutdown\n conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'off'\n - condition: state\n entity_id: input_boolean.quite_mode\n state: 'off'\n - condition: state\n entity_id: switch.master_white_noise\n state: 'off'\n - condition: state\n entity_id: schedule.doorbell_do_not_distrub\n state: 'off'\n actions:\n - service: select.select_option\n target:\n entity_id: select.front_door_chime_type\n data:\n option: Mechanical",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master white noise",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.master_white_noise",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door chime type select",
|
|
"room": "front_door",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.front_door_chime_type",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Quite mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quite_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Doorbell do not distrub schedule",
|
|
"room": "unknown",
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.doorbell_do_not_distrub",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "media_energy_saver_not_home",
|
|
"automation": "- alias: Save media power when not home\n id: media_energy_saver_not_home\n trigger:\n - platform: state\n entity_id: alarm_control_panel.master\n to:\n - armed_night\n - armed_vacation\n id: power_off\n - platform: state\n entity_id: sensor.current_hydro_time_of_use_state\n to:\n - Mid Peak\n - On Peak\n from:\n - Off Peak\n id: power_off\n - platform: state\n entity_id: alarm_control_panel.master\n to:\n - armed_away\n for:\n minutes: 30\n id: power_off\n - platform: state\n entity_id: alarm_control_panel.master\n to: disarmed\n not_from: triggered\n id: power_on\n - platform: state\n entity_id: sensor.current_hydro_time_of_use_state\n to: Off Peak\n id: power_on\n - platform: time\n at: '15:30:00'\n id: power_on\n - platform: state\n entity_id: schedule.tv_power\n to: 'on'\n id: power_on\n action:\n choose:\n - conditions:\n - condition: trigger\n id: power_off\n - not:\n - condition: state\n entity_id: media_player.apple_tv_living_room\n state: playing\n - condition: state\n entity_id: media_player.living_room_tv\n state: 'on'\n sequence:\n - service: homeassistant.turn_off\n entity_id: switch.entertainment_switch_relay\n - conditions:\n - condition: trigger\n id: power_on\n - condition: state\n entity_id: alarm_control_panel.master\n state: disarmed\n - or:\n - condition: state\n entity_id: schedule.tv_power\n state: 'on'\n - condition: state\n entity_id: calendar.ontario_holidays\n state: 'on'\n sequence:\n - service: homeassistant.turn_on\n entity_id: switch.entertainment_switch_relay",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"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": "Entertainment switch relay",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.entertainment_switch_relay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Apple TV living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.apple_tv_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Current hydro time of use state",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.current_hydro_time_of_use_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "TV power schedule",
|
|
"room": "unknown",
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.tv_power",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Ontario holidays calendar",
|
|
"room": "unknown",
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.ontario_holidays",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "energy_save_powerwall_on_holidays",
|
|
"automation": "- alias: Save powerwall on holidays\n id: energy_save_powerwall_on_holidays\n triggers:\n - platform: state\n entity_id: schedule.holiday_powerwall\n to: 'on'\n id: son\n - platform: state\n entity_id: schedule.holiday_powerwall\n to: 'off'\n conditions:\n - condition: state\n entity_id: calendar.ontario_holidays\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: son\n sequence:\n - service: number.set_value\n target:\n entity_id: number.home_backup_reserve\n data:\n value: 100\n - service: notify.mobile_app_michaels_iphone\n data:\n message: Powerwall set for holidays\n data:\n tag: powerwall\n group: enery\n default:\n - service: number.set_value\n target:\n entity_id: number.home_backup_reserve\n data:\n value: 20\n - service: notify.mobile_app_michaels_iphone\n data:\n message: Powerwall holidays off\n data:\n tag: powerwall\n group: enery",
|
|
"config": [
|
|
{
|
|
"name": "Ontario holidays calendar",
|
|
"room": "unknown",
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.ontario_holidays",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Holiday powerwall schedule",
|
|
"room": "unknown",
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.holiday_powerwall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home backup reserve number",
|
|
"room": "unknown",
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.home_backup_reserve",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "energy_save_power_grid_outage",
|
|
"automation": "- alias: Save power on grid outage\n id: energy_save_power_grid_outage\n triggers:\n - platform: state\n entity_id: binary_sensor.home_grid_status\n from: 'on'\n to: 'off'\n id: power_loss\n actions:\n - service: homeassistant.turn_off\n target:\n entity_id:\n - switch.basement_space_heater",
|
|
"config": [
|
|
{
|
|
"name": "Basement space heater",
|
|
"room": "basement",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.basement_space_heater",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home grid status",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_grid_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_garage_left_open_notification",
|
|
"automation": "- alias: Garage Left Open Notification\n id: exterior_garage_left_open_notification\n trigger:\n - platform: state\n entity_id: cover.garage\n to: open\n id: garage_open\n - platform: state\n entity_id: cover.garage\n to: closed\n id: garage_closed\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.garage_left_open\n id: timer_fired\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: ACK_GARAGE\n id: ack_garage\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: CLOSE_GARAGE\n id: close_garage\n action:\n choose:\n - conditions:\n - condition: trigger\n id: garage_open\n sequence:\n - service: timer.start\n entity_id: timer.garage_left_open\n - conditions:\n - condition: trigger\n id: timer_fired\n - condition: state\n entity_id: cover.garage\n state: open\n sequence:\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.garage_motion\n to: 'off'\n for:\n minutes: 10\n - if:\n - '{{ not wait.completed }}'\n then:\n - service: timer.start\n entity_id: timer.garage_left_open\n - stop: Motion in garage not continuing\n - condition: state\n entity_id: cover.garage\n state: open\n - service: timer.start\n entity_id: timer.garage_left_open\n - service: notify.mobile_app_michaels_iphone\n data:\n message: Garage Door Left Open\n data:\n tag: garage-door-open-alert\n entity_id: camera.garage_low_resolution_channel\n actions:\n - action: CLOSE_GARAGE\n title: Close Garage\n activationMode: background\n authenticationRequired: true\n destructive: false\n behavior: default\n - action: ACK_GARAGE\n title: Acknowledge Garage\n activationMode: background\n authenticationRequired: true\n destructive: true\n behavior: default\n - conditions:\n - or:\n - condition: trigger\n id: ack_garage\n - condition: trigger\n id: garage_closed\n sequence:\n - service: timer.cancel\n entity_id: timer.garage_left_open\n - service: notify.mobile_app_michaels_iphone\n data:\n message: clear_notification\n data:\n tag: garage-door-open-alert\n - conditions:\n - condition: trigger\n id: close_garage\n sequence:\n - service: timer.cancel\n entity_id: timer.garage_left_open\n - service: cover.close_cover\n entity_id: cover.garage",
|
|
"config": [
|
|
{
|
|
"name": "Garage cover",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage low resolution channel camera",
|
|
"room": "garage",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.garage_low_resolution_channel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage left open timer",
|
|
"room": "garage",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.garage_left_open",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage motion",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_motion",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_lights_on_evenings",
|
|
"automation": "- alias: Exterior Lights on Evenings\n id: exterior_lights_on_evenings\n trigger:\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 0.25\n - platform: state\n entity_id: binary_sensor.front_door_person_detected\n to: 'on'\n for:\n minutes: 2\n condition:\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 0.25\n action:\n service: light.turn_on\n entity_id: light.exterior_lights",
|
|
"config": [
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door person detected",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_person_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Exterior lights",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door binary sensor",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_keep_lights_on_evenings",
|
|
"automation": "- alias: Keep Exterior Lights on Evenings\n id: exterior_keep_lights_on_evenings\n mode: single\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id:\n - switch.front_porch\n - switch.side_door\n to: 'off'\n for:\n minutes: 2\n condition:\n - not:\n - condition: template\n value_template: '{{ now().month == 10 and now().day == 31 and now().hour > 17\n }}'\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 0.25\n - condition: time\n after: '15:00:00'\n before: '23:30:00'\n action:\n service: light.turn_on\n entity_id: light.exterior_lights",
|
|
"config": [
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Exterior lights",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front porch switch",
|
|
"room": "front_porch",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.front_porch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Side door switch",
|
|
"room": "side_door",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.side_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_lights_off_overnight",
|
|
"automation": "- alias: Exterior Lights off Night, or sunrise\n id: exterior_lights_off_overnight\n trigger:\n - platform: time\n at: '23:30:00'\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: 0.25\n action:\n - service: light.turn_off\n entity_id: light.exterior_lights",
|
|
"config": [
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Exterior lights",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_lights_off_outside_normal_hours",
|
|
"automation": "- alias: Keep Exterior Lights off overnight if turned on outside normal hours\n id: exterior_lights_off_outside_normal_hours\n trigger:\n - platform: state\n entity_id: light.exterior_lights\n to: 'on'\n for:\n hours: 1\n condition:\n - and:\n - condition: time\n after: '23:30:00'\n before: 06:00:00\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 0.25\n action:\n - wait_template: '{{ is_state(\"binary_sensor.front_door_person_detected\", \"off\")\n }}'\n - service: light.turn_off\n entity_id: light.exterior_lights",
|
|
"config": [
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door person detected",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_person_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Exterior lights",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door binary sensor",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_lights_off_daylight",
|
|
"automation": "- alias: Keep Exterior Lights off during daylight\n id: exterior_lights_off_daylight\n trigger:\n - platform: state\n entity_id: light.exterior_lights\n to: 'on'\n for:\n minutes: 10\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: 0.25\n condition:\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: 0.25\n action:\n - service: light.turn_off\n entity_id: light.exterior_lights",
|
|
"config": [
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Exterior lights",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_sync_exterior_lights",
|
|
"automation": "- alias: Sync Exterior Lights\n id: exterior_sync_exterior_lights\n mode: single\n max_exceeded: silent\n trigger:\n - platform: state\n to: null\n entity_id:\n - light.front_porch\n - light.side_door\n condition:\n - condition: template\n value_template: '{{ trigger.to_state.state in [\"off\", \"on\"] }}'\n action:\n service: light.turn_{{ trigger.to_state.state }}\n entity_id: light.exterior_lights",
|
|
"config": [
|
|
{
|
|
"name": "Exterior lights",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front porch light",
|
|
"room": "front_porch",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_porch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Side door light",
|
|
"room": "side_door",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.side_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_exterior_lights_on_triggers",
|
|
"automation": "- alias: Turn on external lights, multiple triggers\n id: exterior_exterior_lights_on_triggers\n mode: single\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id: cover.garage\n to: open\n - platform: state\n entity_id: lock.locks\n to: unlocked\n - platform: zone\n entity_id:\n - person.mike\n - person.tiff\n zone: zone.home\n event: enter\n - platform: state\n entity_id: binary_sensor.doors\n to: 'on'\n - platform: state\n entity_id: binary_sensor.front_door_doorbell\n from: 'off'\n to: 'on'\n condition:\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 0.25\n action:\n - service: light.turn_on\n entity_id: light.exterior_lights",
|
|
"config": [
|
|
{
|
|
"name": "Mike",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mike",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tiff",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.tiff",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Lock locks",
|
|
"room": "unknown",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.locks",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage cover",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Doors binary sensor",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door doorbell",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_doorbell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Exterior lights",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door binary sensor",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_lock_side_door_dog",
|
|
"automation": "- alias: Lock the side door when forgotten feeding the dog\n id: exterior_lock_side_door_dog\n trigger:\n - platform: state\n entity_id: lock.side_door\n to: unlocked\n for:\n minutes: 1\n - platform: state\n entity_id: binary_sensor.side_door_open\n to: 'off'\n for:\n seconds: 15\n condition:\n or:\n - condition: time\n after: 06:30:00\n before: 08:00:00\n - and:\n - condition: time\n after: '16:00:00'\n before: '17:00:00'\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n action:\n - wait_template: '{{ is_state(''binary_sensor.side_door_open'', ''off'') }}'\n - service: lock.lock\n entity_id: lock.side_door",
|
|
"config": [
|
|
{
|
|
"name": "Workday sensor",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workday_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Side door lock",
|
|
"room": "side_door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.side_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Side door open",
|
|
"room": "side_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.side_door_open",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_garage_below_freezing",
|
|
"automation": "- alias: Garage below freezeing warning\n id: exterior_garage_below_freezing\n trigger:\n - platform: numeric_state\n entity_id: sensor.garage_temperature\n below: 2.0\n action:\n - service: notify.mobile_app_michaels_iphone\n data:\n message: 🚨 Garage temperature low! 🚨",
|
|
"config": [
|
|
{
|
|
"name": "Garage temperature",
|
|
"room": "garage",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.garage_temperature",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_auto_unlock_front_door_if_garage_opened",
|
|
"automation": "- alias: Unlock front door when arriving home and opening garage\n id: exterior_auto_unlock_front_door_if_garage_opened\n mode: single\n max_exceeded: silent\n trigger:\n - platform: zone\n entity_id:\n - person.mike\n - person.tiff\n zone: zone.home\n event: enter\n action:\n - wait_for_trigger:\n - platform: state\n entity_id: cover.garage\n to: open\n not_from:\n - unknown\n - unavailable\n timeout:\n minutes: 15\n continue_on_timeout: false\n - service: lock.unlock\n entity_id: lock.front_door",
|
|
"config": [
|
|
{
|
|
"name": "Mike",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mike",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tiff",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.tiff",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage cover",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door lock",
|
|
"room": "front_door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.front_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_lock_jammed_notification",
|
|
"automation": "- alias: Lock Jammed Notification\n id: exterior_lock_jammed_notification\n mode: queued\n max: 5\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.front_door_lock_jammed\n - binary_sensor.side_door_lock_jammed\n from: 'off'\n to: 'on'\n for:\n minutes: 5\n actions:\n - service: notify.mobile_app_michaels_iphone\n data:\n title: 🔓 Lock Jammed 🔓\n message: '{{ trigger.to_state.name }}'\n data:\n tag: exterior-lock-jammed",
|
|
"config": [
|
|
{
|
|
"name": "Front door lock jammed",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_lock_jammed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Side door lock jammed",
|
|
"room": "side_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.side_door_lock_jammed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door binary sensor",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "exterior_area_with_jammed_lock",
|
|
"automation": "- alias: Exiting Area with jammed lock\n id: exterior_area_with_jammed_lock\n triggers:\n - platform: state\n entity_id:\n - device_tracker.sparky_location\n - device_tracker.michaels_iphone\n - device_tracker.tiffanys_iphone\n to: away\n conditions:\n - condition: state\n entity_id:\n - binary_sensor.front_door_lock_jammed\n - binary_sensor.side_door_lock_jammed\n match: any\n state: 'on'\n actions:\n - service: notify.mobile_app_michaels_iphone\n data:\n title: 🔓 Lock Jammed 🔓\n message: '{{ trigger.to_state.name }}'\n data:\n tag: exterior-lock-jammed\n push:\n sound:\n name: default\n critical: 1\n volume: 1.0",
|
|
"config": [
|
|
{
|
|
"name": "Front door lock jammed",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_lock_jammed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Side door lock jammed",
|
|
"room": "side_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.side_door_lock_jammed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sparky location tracker",
|
|
"room": "unknown",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.sparky_location",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Michaels iphone tracker",
|
|
"room": "unknown",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.michaels_iphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tiffanys iphone tracker",
|
|
"room": "unknown",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.tiffanys_iphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door binary sensor",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "girls_bathroom_night_light_timer_control",
|
|
"automation": "- alias: Girls Bathroom Night Light Timer Control\n id: girls_bathroom_night_light_timer_control\n triggers:\n - platform: state\n entity_id: binary_sensor.bathroom_night_light_occupancy\n to:\n - 'on'\n - platform: state\n entity_id: binary_sensor.bathroom_night_light_occupancy\n to:\n - 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: binary_sensor.nursery_door\n to: 'off'\n for:\n minutes: 10\n conditions:\n - condition: time\n after: '22:00:00'\n before: 06:00:00\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'on'\n actions:\n - if:\n - condition: template\n value_template: '{{ trigger.to_state.state == ''off'' }}'\n then:\n - service: timer.start\n target:\n entity_id: timer.girls_bathroom_nightlight_off\n else:\n - service: timer.cancel\n target:\n entity_id: timer.girls_bathroom_nightlight_off",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom night light occupancy",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bathroom_night_light_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery door",
|
|
"room": "nursery",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nursery_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls bathroom nightlight off timer",
|
|
"room": "bathroom",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.girls_bathroom_nightlight_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "girls_bathroom_night_light",
|
|
"automation": "- alias: Girls Bathroom Night Light\n id: girls_bathroom_night_light\n triggers:\n - platform: sun\n event: sunset\n id: turn_on\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 2.0\n id: turn_on\n - platform: state\n entity_id: group.adults\n from: not_home\n to: home\n id: turn_on\n - platform: state\n entity_id:\n - binary_sensor.nursery_door\n - binary_sensor.bathroom_night_light_occupancy\n - input_boolean.nap_mode\n to: 'on'\n id: turn_on\n - platform: state\n entity_id: input_boolean.nap_mode\n to: 'on'\n id: turn_on\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: 2.0\n id: turn_off\n - platform: time\n at: '22:00:00'\n id: turn_off\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.girls_bathroom_nightlight_off\n id: turn_off\n conditions:\n - not:\n - condition: state\n entity_id: alarm_control_panel.master\n state:\n - armed_vacation\n - armed_away\n actions:\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 2.0\n - condition: trigger\n id: turn_on\n sequence:\n - service: light.turn_on\n target:\n entity_id: light.bathroom_night_light\n data:\n brightness_pct: 20\n rgb_color:\n - 255\n - 164\n - 8\n - conditions:\n - condition: trigger\n id: turn_off\n sequence:\n - wait_template: '{{ is_state(\"binary_sensor.bathroom_night_light_occupancy\",\n \"off\") }}'\n - service: light.turn_off\n target:\n entity_id: light.bathroom_night_light",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom night light occupancy",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bathroom_night_light_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery door",
|
|
"room": "nursery",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nursery_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls bathroom nightlight off timer",
|
|
"room": "bathroom",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.girls_bathroom_nightlight_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom night light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom_night_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "homekit_faux_event_nursery",
|
|
"automation": "- alias: Faux Motion for Nursery Door Event\n id: homekit_faux_event_nursery\n trigger:\n - platform: state\n entity_id: binary_sensor.nursery_door\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'on'\n for:\n minutes: 5\n action:\n - event: homekit_faux_camera_event",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery door",
|
|
"room": "nursery",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nursery_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "infra_le_cert_refresh",
|
|
"automation": "- alias: Lets Encrypt Cert Refresh\n id: infra_le_cert_refresh\n trigger:\n - platform: time\n at: 03:12:00\n action:\n - service: hassio.addon_restart\n data:\n addon: core_letsencrypt\n - delay:\n minutes: 5\n - service: hassio.addon_restart\n data:\n addon: core_nginx_proxy",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "inovelli_clear_led_start",
|
|
"automation": "- alias: Clear Switch LED signals on start\n id: inovelli_clear_led_start\n trigger:\n - platform: homeassistant\n event: start\n action:\n - service: script.blue_set_led\n data:\n color: '255'\n effect: clear_effect\n level: 70\n duration: 65\n entity_id: \"{{ states.light\\n | map(attribute=\\\"entity_id\\\")\\n | select('is_device_attr',\\\n \\ 'model', '2-in-1 switch + dimmer (VZM31-SN)')\\n | list}}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "Blue Set LED",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.blue_set_led",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "update_complications_state_changes",
|
|
"automation": "- alias: Update Complications On Specific State changes\n id: update_complications_state_changes\n triggers:\n - platform: state\n entity_id:\n - cover.garage\n - lock.front_door\n - lock.side_door\n - input_boolean.nap_mode\n to: null\n actions:\n - service: notify.mobile_app_michaels_iphone\n data:\n message: update_complications",
|
|
"config": [
|
|
{
|
|
"name": "Garage cover",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door lock",
|
|
"room": "front_door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Side door lock",
|
|
"room": "side_door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.side_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "pick_up_girls_reminder",
|
|
"automation": "- alias: Pick up girls reminder\n id: pick_up_girls_reminder\n mode: single\n max_exceeded: silent\n trigger:\n - platform: zone\n entity_id:\n - device_tracker.michaels_iphone\n - device_tracker.tiffanys_iphone\n zone: zone.school\n event: enter\n id: enter_pickup_zone\n - platform: zone\n entity_id:\n - device_tracker.michaels_iphone\n - device_tracker.tiffanys_iphone\n zone: zone.camp\n event: enter\n id: enter_camp_zone\n - platform: time\n at: input_datetime.pickup_girls_reminder\n id: pickup_reminder\n condition:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: time\n after: 06:00:00\n before: '16:00:00'\n action:\n - choose:\n - conditions:\n - or:\n - and:\n - condition: trigger\n id: enter_pickup_zone\n - condition: template\n value_template: '{{ now().month >= 9 or now().month <= 6 }}'\n - condition: trigger\n id: enter_camp_zone\n sequence:\n if:\n - condition: trigger\n id: enter_camp_zone\n then:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.pickup_girls_reminder\n data:\n date: '{{ now().strftime(''%Y-%m-%d'') }}'\n time: '{{ states(''input_datetime.camp_pickup_time'') }}'\n else:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.pickup_girls_reminder\n data:\n date: '{{ now().strftime(''%Y-%m-%d'') }}'\n time: '15:45:00'\n - conditions:\n - condition: trigger\n id: pickup_reminder\n sequence:\n - service: notify.mobile_app_michaels_iphone\n data:\n title: Pickup Reminder\n message: Pickup the twins!\n data:\n tag: pickup-reminder\n group: pickup-notification\n push:\n sound:\n name: default\n critical: 1\n volume: 0.5",
|
|
"config": [
|
|
{
|
|
"name": "Workday sensor",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workday_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Michaels iphone tracker",
|
|
"room": "unknown",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.michaels_iphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tiffanys iphone tracker",
|
|
"room": "unknown",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.tiffanys_iphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Pickup girls reminder input datetime",
|
|
"room": "unknown",
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.pickup_girls_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Camp pickup time input datetime",
|
|
"room": "unknown",
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.camp_pickup_time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "laundry_simple_laundry_notification",
|
|
"automation": "- alias: Laundry Notification\n id: laundry_simple_laundry_notification\n mode: queued\n max: 5\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id: binary_sensor.washer_status\n from: 'on'\n to: 'off'\n id: notify_to_move\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.laundry_done\n id: notify_to_move\n - platform: state\n entity_id: group.adults\n to: home\n for:\n minutes: 10\n id: arrived_home\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: laundry_moved\n id: laundry_moved\n - platform: state\n entity_id: binary_sensor.dryer_status\n to: 'on'\n for:\n minutes: 5\n id: laundry_moved\n - platform: state\n entity_id: binary_sensor.washer_status\n from: 'off'\n to: 'on'\n for:\n minutes: 15\n id: laundry_moved\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: notify_to_move\n sequence:\n - service: timer.start\n entity_id: timer.laundry_done\n - if:\n - condition: state\n entity_id: binary_sensor.washer_status\n state: 'on'\n then:\n - stop: Washer is running, likely moved.\n - service: notify.adults\n data:\n message: clear_notification\n data:\n tag: laundry-done-notification\n - repeat:\n for_each: '{{ states.person | selectattr(''state'', ''eq'', ''home'') |\n map(attribute=''attributes.notifier'') | list}}\n\n '\n sequence:\n - service: '{{ repeat.item }}'\n data:\n title: Laundry is done!\n message: Laundry cycle complete\n data:\n tag: laundry-done-notification\n url: /dashboard-laundry/home\n clickAction: /dashboard-laundry/home\n group: laundry-notification-group\n actions:\n - action: laundry_moved\n title: Laundry Moved\n authenticationRequired: true\n destructive: true\n behavior: default\n - if:\n - condition: state\n entity_id: group.adults\n state: home\n then:\n - service: script.blue_set_led\n data:\n color: '255'\n effect: slow_chase\n level: 70\n duration: 65\n entity_id:\n - light.front_hall\n - light.living_room_light\n - light.back_deck_light\n - light.main_stairs\n - light.upstairs_hall\n - light.main_bath_light\n - light.basement_stairs\n - light.basement_room_light_dimmer\n - conditions:\n - condition: trigger\n id: laundry_moved\n sequence:\n parallel:\n - service: timer.cancel\n entity_id: timer.laundry_done\n - service: notify.adults\n data:\n message: clear_notification\n data:\n tag: laundry-done-notification\n - service: script.blue_set_led\n data:\n color: '255'\n effect: clear_effect\n level: 70\n duration: 65\n entity_id:\n - light.front_hall\n - light.living_room_light\n - light.back_deck_light\n - light.main_stairs\n - light.upstairs_hall\n - light.main_bath_light\n - light.basement_stairs\n - conditions:\n - condition: trigger\n id: arrived_home\n - condition: state\n entity_id: timer.laundry_done\n state: active\n sequence:\n - service: timer.finish\n entity_id: timer.laundry_done",
|
|
"config": [
|
|
{
|
|
"name": "Basement room light dimmer",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_room_light_dimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Basement stairs light",
|
|
"room": "basement",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.basement_stairs",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Washer status",
|
|
"room": "laundry",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.washer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Laundry done timer",
|
|
"room": "laundry",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.laundry_done",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dryer status",
|
|
"room": "laundry",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.dryer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main bath light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bath_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Upstairs hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.upstairs_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main stairs light",
|
|
"room": "stairs",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_stairs",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Back deck light",
|
|
"room": "deck",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.back_deck_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Blue Set LED",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.blue_set_led",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "living_room_lights_on_when_dark",
|
|
"automation": "- alias: Turn living room lights on when dark\n id: living_room_lights_on_when_dark\n trigger:\n - platform: state\n entity_id: binary_sensor.living_room_occupancy\n to: 'on'\n condition:\n - condition: state\n entity_id: light.kitchen_island\n state: 'off'\n for:\n minutes: 15\n - condition: numeric_state\n entity_id: sensor.living_room_motion_illuminance\n below: 20\n - condition: state\n entity_id: group.adults\n state: home\n - condition: state\n entity_id: alarm_control_panel.master\n state: disarmed\n action:\n - service: light.turn_on\n entity_id: light.kitchen_island",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room occupancy",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen island light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_island",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room motion illuminance",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.living_room_motion_illuminance",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "living_front_hall_lock_garage_control",
|
|
"automation": "- alias: Front Hall Lock and Garage Control\n id: living_front_hall_lock_garage_control\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 949dd8fd2c9e4403656fc84e75de9607\n type: action\n subtype: up_triple\n id: lock_unlock\n - trigger: device\n domain: mqtt\n device_id: 949dd8fd2c9e4403656fc84e75de9607\n type: action\n subtype: up_quadruple\n id: garage_up\n - trigger: device\n domain: mqtt\n device_id: 949dd8fd2c9e4403656fc84e75de9607\n type: action\n subtype: down_triple\n id: lock_lock\n - trigger: device\n domain: mqtt\n device_id: 949dd8fd2c9e4403656fc84e75de9607\n type: action\n subtype: down_quadruple\n id: garage_down\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: lock_unlock\n sequence:\n - service: lock.unlock\n entity_id: lock.front_door\n - conditions:\n - condition: trigger\n id: lock_lock\n sequence:\n - service: lock.lock\n entity_id: lock.front_door\n - conditions:\n - condition: trigger\n id: garage_up\n sequence:\n - service: cover.open_cover\n entity_id: cover.garage\n - conditions:\n - condition: trigger\n id: garage_down\n sequence:\n - service: cover.close_cover\n entity_id: cover.garage",
|
|
"config": [
|
|
{
|
|
"name": "Garage cover",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door lock",
|
|
"room": "front_door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID 949dd8fd2c9e4403656fc84e75de9607",
|
|
"room": "hall",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "949dd8fd2c9e4403656fc84e75de9607"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "living_garage_control_kitchen_switch",
|
|
"automation": "- alias: Garage Control with Kitchen Switch\n id: living_garage_control_kitchen_switch\n trigger:\n - trigger: device\n domain: mqtt\n device_id: e97867a8181f2b6c5aef264706584f91\n type: action\n subtype: up_triple\n id: garage_up_trigger\n - trigger: device\n domain: mqtt\n device_id: e97867a8181f2b6c5aef264706584f91\n type: action\n subtype: down_triple\n id: garage_down_trigger\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: garage_up_trigger\n sequence:\n - service: cover.open_cover\n entity_id: cover.garage\n - conditions:\n - condition: trigger\n id: garage_down_trigger\n sequence:\n - service: cover.close_cover\n entity_id: cover.garage",
|
|
"config": [
|
|
{
|
|
"name": "Garage cover",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID e97867a8181f2b6c5aef264706584f91",
|
|
"room": "kitchen",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "e97867a8181f2b6c5aef264706584f91"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "living_front_lock_control_living_switch",
|
|
"automation": "- alias: Lock Control with Living Switch\n id: living_front_lock_control_living_switch\n trigger:\n - trigger: device\n domain: mqtt\n device_id: c2fce543d85f8ffccd89691a42f784d9\n type: action\n subtype: up_triple\n id: garage_up_trigger\n - trigger: device\n domain: mqtt\n device_id: c2fce543d85f8ffccd89691a42f784d9\n type: action\n subtype: down_triple\n id: garage_down_trigger\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: door_unlock_trigger\n sequence:\n - service: lock.unlock\n entity_id: lock.front_door\n - conditions:\n - condition: trigger\n id: door_lock_trigger\n sequence:\n - service: lock.lock\n entity_id: lock.front_door",
|
|
"config": [
|
|
{
|
|
"name": "Front door lock",
|
|
"room": "front_door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID c2fce543d85f8ffccd89691a42f784d9",
|
|
"room": "living_room",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "c2fce543d85f8ffccd89691a42f784d9"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "living_room_light_group_multitap_control",
|
|
"automation": "- alias: Living room light group multitap control\n id: living_room_light_group_multitap_control\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: device\n domain: mqtt\n device_id: c2fce543d85f8ffccd89691a42f784d9\n type: action\n subtype: up_double\n id: turn_on\n - trigger: device\n domain: mqtt\n device_id: c2fce543d85f8ffccd89691a42f784d9\n type: action\n subtype: down_double\n id: turn_off\n - trigger: device\n domain: mqtt\n device_id: e97867a8181f2b6c5aef264706584f91\n type: action\n subtype: up_double\n id: turn_on\n - trigger: device\n domain: mqtt\n device_id: e97867a8181f2b6c5aef264706584f91\n type: action\n subtype: down_double\n id: turn_off\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: turn_on\n sequence:\n - service: light.turn_on\n entity_id: light.living_room_light_group\n - conditions:\n - condition: trigger\n id: turn_off\n sequence:\n - service: light.turn_off\n entity_id: light.living_room_light_group",
|
|
"config": [
|
|
{
|
|
"name": "Living room light group",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light_group",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID e97867a8181f2b6c5aef264706584f91",
|
|
"room": "kitchen",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "e97867a8181f2b6c5aef264706584f91"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID c2fce543d85f8ffccd89691a42f784d9",
|
|
"room": "living_room",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "c2fce543d85f8ffccd89691a42f784d9"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "living_room_turn_on_lights_arrival_dark",
|
|
"automation": "- alias: Turn on lights when arriving home\n id: living_room_turn_on_lights_arrival_dark\n trigger:\n - platform: state\n entity_id: group.adults\n to: home\n condition:\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 2.0\n - condition: state\n entity_id: binary_sensor.guests_present\n state: 'off'\n action:\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.front_door\n to: 'on'\n timeout:\n minutes: 30\n continue_on_timeout: false\n - parallel:\n - if:\n - not:\n - condition: state\n entity_id: media_player.apple_tv_living_room\n state: playing\n then:\n - service: light.turn_on\n entity_id: light.living_room_light_group\n - service: light.turn_on\n entity_id: light.front_hall",
|
|
"config": [
|
|
{
|
|
"name": "Guests present",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.guests_present",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Apple TV living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.apple_tv_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room light group",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light_group",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door binary sensor",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_floor_light_default_local_level",
|
|
"automation": "- alias: Set Main floor Lights default local level\n id: main_floor_light_default_local_level\n mode: single\n max_exceeded: silent\n trigger:\n - platform: sun\n event: sunset\n variables:\n default_level: 80\n - platform: state\n entity_id: input_boolean.nap_mode\n to: 'on'\n variables:\n default_level: 80\n - platform: sun\n event: sunrise\n variables:\n default_level: 200\n - platform: state\n entity_id: alarm_control_panel.master\n to: armed_night\n variables:\n default_level: 60\n action:\n - service: script.blue_set_default_level\n data:\n default_level: '{{ default_level | default(100) }}'\n entity_id:\n - light.kitchen_light\n - light.living_room_light\n - light.front_hall",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Blue Set Default Level",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.blue_set_default_level",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_floor_front_door_turn_on_hall_light",
|
|
"automation": "- alias: Front door open turns on front hall light\n id: main_floor_front_door_turn_on_hall_light\n mode: single\n max_exceeded: silent\n triggers:\n - platform: state\n entity_id: binary_sensor.front_door\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 5.0\n - condition: time\n before: '21:30:00'\n actions:\n - service: light.turn_on\n entity_id: light.front_hall",
|
|
"config": [
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door binary sensor",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_floor_front_hall_light_off_high_sun_elevation",
|
|
"automation": "- alias: Turn off front hall lights\n id: main_floor_front_hall_light_off_high_sun_elevation\n triggers:\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: 10.0\n actions:\n - service: light.turn_off\n entity_id:\n - light.front_hall",
|
|
"config": [
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_hall",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cd72c85e-327a-4958-8e2b-fef856573302",
|
|
"automation": "- alias: Set Adaptive on Living Room Late Mornings\n id: cd72c85e-327a-4958-8e2b-fef856573302\n trigger:\n - platform: time\n at: 09:30:00\n condition:\n - condition: state\n entity_id: light.living_room_light_group\n state: 'on'\n action:\n - service: adaptive_lighting.apply\n data:\n entity_id: switch.adaptive_lighting_adapt_brightness_living_room\n transition: 90",
|
|
"config": [
|
|
{
|
|
"name": "Living room light group",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light_group",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive lighting adapt brightness living room switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_adapt_brightness_living_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "lock_status_change",
|
|
"automation": "- alias: Lock Status Change\n id: lock_status_change\n trigger:\n - platform: event\n event_type: zwave_js_notification\n event_data:\n command_class: 113\n type: 6\n event: 6\n condition:\n - condition: state\n entity_id: person.mike\n state: not_home\n action:\n service: notify.mobile_app_michaels_iphone\n data:\n title: Lock Event\n message: '{% set user_slot = trigger.event.data.parameters.userId %} {% if user_slot\n == 1 %} {% set user = \"Mike\" %} {% elif user_slot == 2 %} {% set user = \"Dad\"\n %} {% elif user_slot == 3 %} {% set user = \"Brendan\" %} {% elif user_slot\n == 4 %} {% set user = \"Tiff\" %} {% elif user_slot == 5 %} {% set user = \"Lisa\"\n %} {% elif user_slot == 15 %} {% set user = \"Cleaners\" %} {% endif %} Unlocked{%\n if user is defined %} by {{user}}{% endif %}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "Mike",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mike",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "lock_secure_house_evenings",
|
|
"automation": "- alias: Secure House Evenings\n id: lock_secure_house_evenings\n trigger:\n - platform: time\n at: '22:30:00'\n - platform: state\n entity_id:\n - lock.locks\n to: unlocked\n for:\n minutes: 5\n condition:\n condition: time\n after: '22:25:00'\n before: 07:00:00\n action:\n - parallel:\n - sequence:\n - wait_template: '{{ is_state(''binary_sensor.front_door'', ''off'') }}'\n - service: lock.lock\n entity_id: lock.front_door\n - sequence:\n - wait_template: '{{ is_state(''binary_sensor.side_door_open'', ''off'') }}'\n - service: lock.lock\n entity_id: lock.side_door",
|
|
"config": [
|
|
{
|
|
"name": "Lock locks",
|
|
"room": "unknown",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.locks",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door lock",
|
|
"room": "front_door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Side door lock",
|
|
"room": "side_door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.side_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Side door open",
|
|
"room": "side_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.side_door_open",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door binary sensor",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "lock_enable_cleaner_code",
|
|
"automation": "- alias: Enable Cleaners Lock Code\n id: lock_enable_cleaner_code\n mode: queued\n trigger:\n - platform: calendar\n event: start\n entity_id: calendar.house_planning\n offset: -03:00:00\n id: set_lock\n - platform: calendar\n event: start\n entity_id: calendar.house_planning\n id: set_lock\n - platform: calendar\n event: end\n entity_id: calendar.house_planning\n id: clear_lock\n condition:\n - condition: template\n value_template: '{{ ''Cleaners'' in trigger.calendar_event.summary}}'\n action:\n choose:\n - conditions:\n - condition: trigger\n id: set_lock\n sequence:\n - service: zwave_js.set_lock_usercode\n data:\n code_slot: '15'\n usercode: secret cleaners_door_code\n entity_id: lock.front_door\n - service: notify.mobile_app_michaels_iphone\n data:\n message: Setting cleaners lock code\n data:\n tag: cleaners-code\n - service: alarm_control_panel.alarm_disarm\n target:\n entity_id: alarm_control_panel.master\n - conditions:\n - condition: trigger\n id: clear_lock\n sequence:\n - service: zwave_js.clear_lock_usercode\n data:\n code_slot: '15'\n entity_id: lock.front_door\n - service: notify.mobile_app_michaels_iphone\n data:\n message: Clearing cleaners lock code\n data:\n tag: cleaners-code\n - choose:\n - conditions:\n - condition: state\n entity_id: group.presence_home\n state: not_home\n sequence:\n - if:\n - condition: numeric_state\n entity_id: sensor.home_nearest_distance\n above: 55000\n then:\n - service: alarm_control_panel.alarm_arm_vacation\n target:\n entity_id: alarm_control_panel.master\n else:\n - service: alarm_control_panel.alarm_arm_away\n target:\n entity_id: alarm_control_panel.master",
|
|
"config": [
|
|
{
|
|
"name": "Presence home group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "House planning calendar",
|
|
"room": "unknown",
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.house_planning",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door lock",
|
|
"room": "front_door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home nearest distance",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_nearest_distance",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "lock_secure_house_nearby_but_offline",
|
|
"automation": "- alias: Lock doors when nearby but not on wifi\n id: lock_secure_house_nearby_but_offline\n trigger:\n - platform: state\n entity_id:\n - device_tracker.mikeiphone14_unifi\n - device_tracker.tiffanys_iphone_unifi\n to: not_home\n for:\n minutes: 10\n condition:\n - condition: state\n entity_id: group.adults\n state: home\n - condition: state\n entity_id:\n - device_tracker.mikeiphone14_unifi\n - device_tracker.tiffanys_iphone_unifi\n state: not_home\n - condition: state\n entity_id: lock.locks\n state: unlocked\n action:\n - service: notify.mobile_app_michaels_iphone\n data:\n message: Wifi Auto Lock Triggered\n - service: lock.lock\n entity_id: lock.locks",
|
|
"config": [
|
|
{
|
|
"name": "Lock locks",
|
|
"room": "unknown",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.locks",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tiffanys iphone tracker",
|
|
"room": "unknown",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.tiffanys_iphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Mikeiphone14 unifi tracker",
|
|
"room": "unknown",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.mikeiphone14_unifi",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tiffanys iphone unifi tracker",
|
|
"room": "unknown",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.tiffanys_iphone_unifi",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bath_set_default_local_level",
|
|
"automation": "- alias: Set Main Bath Default Local Level for Light\n id: main_bath_set_default_local_level\n trigger:\n - platform: sun\n event: sunset\n variables:\n default_level: 60\n - platform: sun\n event: sunrise\n variables:\n default_level: 254\n - platform: state\n entity_id: alarm_control_panel.master\n to: armed_night\n variables:\n default_level: 20\n action:\n - service: script.blue_set_default_level\n data:\n default_level: '{{ default_level | default(100) }}'\n entity_id:\n - light.main_bath_light",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main bath light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bath_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Blue Set Default Level",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.blue_set_default_level",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bath_time_light_shower",
|
|
"automation": "- alias: Dim Main Bath Light for Shower\n id: main_bath_time_light_shower\n trigger:\n - platform: state\n entity_id: light.main_bath_light\n to: 'on'\n - platform: time\n at: '21:30:30'\n condition:\n - condition: state\n entity_id: light.main_bath_light\n state: 'on'\n - condition: time\n after: '21:30:00'\n action:\n - service: light.turn_on\n target:\n entity_id: light.main_bath_light\n data:\n brightness_pct: 3\n transition: 10",
|
|
"config": [
|
|
{
|
|
"name": "Main bath light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bath_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bath_full_brightness",
|
|
"automation": "- alias: Main Bath Full Brightness\n id: main_bath_full_brightness\n triggers:\n - trigger: device\n domain: mqtt\n device_id: e3bc901892c55fbcaa6dd42876632c35\n type: action\n subtype: up_double\n actions:\n - service: light.turn_on\n target:\n entity_id: light.main_bath_light\n data:\n brightness_pct: 100",
|
|
"config": [
|
|
{
|
|
"name": "Main bath light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bath_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID e3bc901892c55fbcaa6dd42876632c35",
|
|
"room": "bathroom",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "e3bc901892c55fbcaa6dd42876632c35"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bath_on_humidity",
|
|
"automation": "- alias: Main Bath Fan on for humidity\n id: main_bath_on_humidity\n triggers:\n - platform: numeric_state\n entity_id: sensor.bathroom_humidity_derivative\n above: 1\n conditions:\n - condition: state\n entity_id: group.adults\n state: home\n actions:\n - action: notify.mobile_app_michaels_iphone\n data:\n message: Shower fan should run",
|
|
"config": [
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom humidity derivative",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bathroom_humidity_derivative",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "monitoring_healthcheck",
|
|
"automation": "- id: monitoring_healthcheck\n alias: Healthchecks monitoring outbound call\n description: Send a ping to Healthcheck every minute\n mode: single\n trigger:\n platform: time_pattern\n minutes: /5\n action:\n - service: rest_command.healthcheck",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "mornings_wake_up_sequence",
|
|
"automation": "- alias: Morning Wake Up Sequence\n id: mornings_wake_up_sequence\n mode: single\n max_exceeded: silent\n trigger:\n - platform: event\n event_type: ios_wakeup_event\n - platform: state\n entity_id: input_boolean.nap_mode\n to: 'off'\n - platform: state\n entity_id: binary_sensor.living_room_occupancy\n to: 'on'\n condition:\n - condition: state\n entity_id: group.adults\n state: home\n - condition: time\n after: 05:00:00\n before: 09:00:00\n - or:\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 3.0\n - condition: numeric_state\n entity_id: sensor.tomorrow_io_home_cloud_cover\n above: 65\n action:\n - service: homeassistant.turn_on\n entity_id:\n - light.kitchen_island\n - switch.christmas_tree\n - wait_template: '{{ is_state(''binary_sensor.living_room_occupancy'', ''on'') }}'\n timeout:\n hours: 1\n continue_on_timeout: false\n - service: light.turn_on\n target:\n entity_id:\n - light.kitchen_light\n - light.living_room_light\n data:\n brightness_pct: 28\n transition: 120",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room occupancy",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen island light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_island",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tomorrow io home cloud cover",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tomorrow_io_home_cloud_cover",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Christmas Tree",
|
|
"room": "Living Room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.christmas_tree",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_nap_mode_toggle",
|
|
"automation": "- alias: Nap Mode Button Toggle\n id: nursery_nap_mode_toggle\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 1cb9a601720330d677b308f3d186b9ff\n type: action\n subtype: single\n actions:\n - service: homeassistant.toggle\n entity_id:\n - input_boolean.nap_mode\n - delay:\n seconds: 1",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID 1cb9a601720330d677b308f3d186b9ff",
|
|
"room": "nursery",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "1cb9a601720330d677b308f3d186b9ff"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_led_on",
|
|
"automation": "- alias: Nursery LED On\n mode: single\n max_exceeded: silent\n id: nursery_led_on\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 1ccea5c5991d06dc7b15dd83b69832e4\n type: action\n subtype: 'on'\n actions:\n - service: homeassistant.turn_on\n entity_id: switch.nursery_power_loss_gate\n - wait_template: '{{ not is_state(\"light.nursery_led\", \"unavailable\") }}'\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'off'\n sequence:\n - service: script.led_strip_on\n data:\n scene_id: scene.nursery_led_on\n - conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'on'\n sequence:\n - service: script.led_strip_on\n data:\n scene_id: scene.nursery_led_on_low",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery LED",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery power loss gate",
|
|
"room": "nursery",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.nursery_power_loss_gate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID 1ccea5c5991d06dc7b15dd83b69832e4",
|
|
"room": "nursery",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "1ccea5c5991d06dc7b15dd83b69832e4"
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery LED On",
|
|
"room": "Nursery",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.nursery_led_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "LED Strip On",
|
|
"room": "Nursery",
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.led_strip_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_led_off",
|
|
"automation": "- alias: Nursery LED Off\n id: nursery_led_off\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 1ccea5c5991d06dc7b15dd83b69832e4\n type: action\n subtype: 'off'\n - platform: sun\n event: sunrise\n offset: +02:00:00\n actions:\n - wait_template: '{{ not is_state(\"light.nursery_led\", \"unavailable\") }}'\n - service: light.turn_off\n data:\n entity_id:\n - light.nursery_led",
|
|
"config": [
|
|
{
|
|
"name": "Nursery LED",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID 1ccea5c5991d06dc7b15dd83b69832e4",
|
|
"room": "nursery",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "1ccea5c5991d06dc7b15dd83b69832e4"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_set_nap_accessories",
|
|
"automation": "- alias: Set Nap Accessories\n id: nursery_set_nap_accessories\n triggers:\n platform: state\n entity_id: input_boolean.nap_mode\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'on'\n sequence:\n - service: scene.turn_on\n entity_id: scene.baby_nap_on\n - service: media_player.volume_set\n data:\n volume_level: 0.15\n entity_id: media_player.sonos_living_room\n - conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'off'\n sequence:\n - choose:\n - conditions:\n - condition: time\n after: '17:00:00'\n before: 08:30:00\n sequence:\n - service: scene.turn_on\n entity_id: scene.baby_nap_off\n - service: script.led_strip_on\n data:\n scene_id: scene.nursery_led_on\n default:\n - service: scene.turn_on\n entity_id: scene.baby_nap_off\n - service: light.turn_on\n entity_id: light.nursery_light",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery light",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sonos living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Baby Nap Off",
|
|
"room": "Nursery",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.baby_nap_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Baby Nap On",
|
|
"room": "Nursery",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.baby_nap_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery LED On",
|
|
"room": "Nursery",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.nursery_led_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "LED Strip On",
|
|
"room": "Nursery",
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.led_strip_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_humidifer_evenings",
|
|
"automation": "- alias: Nursery Humidifier on evenings\n id: nursery_humidifer_evenings\n triggers:\n - platform: state\n entity_id: input_boolean.nap_mode\n from: 'off'\n to: 'on'\n id: manual_on\n - platform: time\n at: '19:00:00'\n id: early_on\n conditions:\n or:\n - condition: trigger\n id: manual_on\n - and:\n - condition: trigger\n id: early_on\n - condition: state\n entity_id: group.adults\n state: home\n actions:\n - service: homeassistant.turn_on\n entity_id: fan.nursery_humidifier",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery humidifier",
|
|
"room": "nursery",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.nursery_humidifier",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "girls_fan_control",
|
|
"automation": "- alias: Girls Fan Control\n id: girls_fan_control\n triggers:\n - platform: state\n entity_id: input_boolean.nap_mode\n to: 'on'\n id: nap_on\n - platform: state\n entity_id: alarm_control_panel.master\n from: armed_vacation\n not_to:\n - unknown\n - unavailable\n - triggered\n variables:\n fan_speed_percentage: 33\n - platform: numeric_state\n entity_id: sensor.girls_room_temperature\n above: 22.0\n below: 25\n variables:\n fan_speed_percentage: 33\n - platform: numeric_state\n entity_id: sensor.girls_room_temperature\n above: 24.9\n variables:\n fan_speed_percentage: 66\n - platform: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n above: 150\n - platform: numeric_state\n entity_id: sensor.girls_room_temperature\n below: 22.5\n id: force_off\n conditions:\n - not:\n - condition: state\n entity_id: sensor.season\n state: winter\n - condition: state\n entity_id: alarm_control_panel.master\n state: armed_vacation\n - condition: state\n entity_id: climate.my_ecobee\n state: heat\n - condition: time\n after: '11:00:00'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: force_off\n sequence:\n - service: fan.turn_off\n target:\n entity_id: fan.girls_ceiling_fan\n - conditions:\n - or:\n - condition: numeric_state\n entity_id: weather.tomorrow_io_home_nowcast\n attribute: temperature\n above: 18\n - condition: numeric_state\n entity_id: sensor.girls_room_temperature\n above: 21\n sequence:\n - if:\n - condition: trigger\n id: nap_on\n - condition: numeric_state\n entity_id: sensor.girls_room_temperature\n above: 25\n then:\n - service: fan.turn_on\n target:\n entity_id: fan.girls_ceiling_fan\n data:\n percentage: 66\n else:\n - service: fan.turn_on\n target:\n entity_id: fan.girls_ceiling_fan\n data:\n percentage: '{{ fan_speed_percentage | default(33) }}'",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Season sensor",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.season",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "My ecobee climate",
|
|
"room": "unknown",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.my_ecobee",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tomorrow io home nowcast weather",
|
|
"room": "unknown",
|
|
"type": "weather",
|
|
"id": {
|
|
"entity_id": "weather.tomorrow_io_home_nowcast",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls room temperature",
|
|
"room": "girls_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.girls_room_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls ceiling fan",
|
|
"room": "girls_room",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.girls_ceiling_fan",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_temp_warning",
|
|
"automation": "- alias: Nursery Temperature Warning\n id: nursery_temp_warning\n triggers:\n - platform: numeric_state\n entity_id: sensor.girls_room_temperature\n below: 17\n for:\n minutes: 30\n - platform: numeric_state\n entity_id: sensor.girls_room_temperature\n above: 25\n for:\n minutes: 10\n conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'on'\n actions:\n - repeat:\n for_each: '{{ states.person | selectattr(''state'', ''eq'', ''home'') | map(attribute=''attributes.notifier'')\n | list}}\n\n '\n sequence:\n - service: '{{ repeat.item }}'\n data:\n title: Nursery Temperature Warning\n message: 'Temperature {% if trigger.below != None %}Low{% else %}High{%\n endif %}: {{ trigger.to_state.state }}\n\n '\n data:\n url: /lovelace/girls-room\n clickAction: /lovelace/girls-room\n tag: nursery-temp-warning\n group: nursery-notification",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls room temperature",
|
|
"room": "girls_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.girls_room_temperature",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_off_if_forgotten",
|
|
"automation": "- alias: Turn nursery off if forgotten\n id: nursery_off_if_forgotten\n mode: queued\n max: 15\n triggers:\n - platform: template\n value_template: '{{ is_state(''binary_sensor.girls_room_camera_motion'', ''off'')\n and is_state(''binary_sensor.girls_room_occupancy'', ''off'') }}'\n id: timer_start\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.girls_lights_off\n id: timer_finished\n - platform: state\n entity_id: light.girls_fan\n to: 'on'\n id: cancel_timer\n conditions:\n - or:\n - condition: state\n entity_id: light.nursery_light\n state: 'on'\n - condition: state\n entity_id: light.nursery_led\n state: 'on'\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'off'\n - condition: time\n before: '19:00:00'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: cancel_timer\n sequence:\n - service: timer.cancel\n entity_id: timer.girls_lights_off\n - conditions:\n - condition: trigger\n id: timer_start\n sequence:\n - service: timer.start\n entity_id: timer.girls_lights_off\n - conditions:\n - condition: trigger\n id: timer_finished\n - or:\n - condition: state\n entity_id: light.nursery_light\n state: 'on'\n - condition: state\n entity_id: light.nursery_led\n state: 'on'\n sequence:\n - service: light.turn_on\n entity_id: light.nursery_led\n - delay: 10\n - service: light.turn_off\n entity_id: light.nursery_light\n - delay: 30\n - service: light.turn_off\n entity_id: light.nursery_led",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls room camera motion",
|
|
"room": "girls_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.girls_room_camera_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls room occupancy",
|
|
"room": "girls_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.girls_room_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls lights off timer",
|
|
"room": "girls_room",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.girls_lights_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls fan light",
|
|
"room": "girls_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.girls_fan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery light",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery LED",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_led",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_turn_off_white_noise_forgotten",
|
|
"automation": "- alias: Turn off nursery accessories if forgotten\n id: nursery_turn_off_white_noise_forgotten\n triggers:\n - platform: state\n entity_id:\n - switch.nursery_white_noise\n - fan.nursery_humidifier\n to: 'on'\n for:\n minutes: 30\n conditions:\n - condition: time\n before: '17:00:00'\n - condition: state\n entity_id: switch.nap_mode\n state: 'off'\n actions:\n - service: homeassistant.turn_off\n target:\n entity_id: '{{ trigger.entity_id }}'",
|
|
"config": [
|
|
{
|
|
"name": "Nursery white noise",
|
|
"room": "nursery",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.nursery_white_noise",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery humidifier",
|
|
"room": "nursery",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.nursery_humidifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nap mode switch",
|
|
"room": "unknown",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.nap_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_nap_off_via_lightswitch",
|
|
"automation": "- alias: Turn off nap mode via light switch\n id: nursery_nap_off_via_lightswitch\n triggers:\n - platform: state\n entity_id: light.nursery_light\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'on'\n actions:\n - service: input_boolean.turn_off\n entity_id: input_boolean.nap_mode",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery light",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_nap_on_door_open",
|
|
"automation": "- alias: Notify if door left open during nap\n id: nursery_nap_on_door_open\n triggers:\n - platform: state\n entity_id: binary_sensor.nursery_door\n to: 'on'\n for:\n minutes: 10\n id: left_open\n - platform: state\n entity_id: binary_sensor.nursery_door\n to: 'off'\n for:\n minutes: 5\n conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'on'\n - not:\n - condition: time\n after: 01:30:00\n before: 07:00:00\n actions:\n - if:\n - condition: trigger\n id: left_open\n then:\n - repeat:\n for_each: '{{ states.person | selectattr(''state'', ''eq'', ''home'') | map(attribute=''attributes.notifier'')\n | list}}\n\n '\n sequence:\n - service: '{{ repeat.item }}'\n data:\n title: Nursery Door Left Open\n message: Door is Open\n data:\n url: /lovelace/girls-room\n clickAction: /lovelace/girls-room\n tag: nursery-door-open-warning\n group: nursery-notification\n else:\n - service: notify.adults\n data:\n message: clear_notification\n data:\n tag: nursery-door-open-warning",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery door",
|
|
"room": "nursery",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nursery_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_quite_mode_control",
|
|
"automation": "- alias: Quiet mode control\n id: nursery_quite_mode_control\n triggers:\n - platform: time\n at: '19:00:00'\n id: quite_on\n - platform: state\n entity_id: input_boolean.nap_mode\n to: 'on'\n id: quite_on\n - platform: time\n at: 08:00:00\n id: quite_off\n - platform: state\n entity_id: input_boolean.nap_mode\n to: 'off'\n id: quite_off\n - platform: state\n entity_id: light.nursery_led\n to: null\n id: led_control\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: quite_on\n sequence:\n - service: homeassistant.turn_on\n entity_id: input_boolean.quite_mode\n - conditions:\n - condition: trigger\n id: quite_off\n sequence:\n - service: homeassistant.turn_off\n entity_id: input_boolean.quite_mode\n - conditions:\n - condition: trigger\n id: led_control\n - condition: time\n after: '18:30:00'\n - condition: template\n value_template: '{{ trigger.to_state.state in [''off'', ''on''] }}'\n sequence:\n - service: homeassistant.turn_{{ trigger.to_state.state }}\n entity_id: input_boolean.quite_mode",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Quite mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quite_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery LED",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_led",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_nap_mode_on_forgotten",
|
|
"automation": "- alias: Turn on nap mode if forgotten\n id: nursery_nap_mode_on_forgotten\n triggers:\n - platform: state\n entity_id: binary_sensor.nursery_door\n to: 'off'\n for:\n minutes: 1\n conditions:\n - condition: time\n after: '19:30:00'\n - condition: state\n entity_id: light.nursery_light\n state: 'off'\n actions:\n - service: homeassistant.turn_on\n entity_id: input_boolean.nap_mode",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery door",
|
|
"room": "nursery",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nursery_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery light",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_door_open_during_sleep",
|
|
"automation": "- alias: Nursey Door Open During Sleep\n id: nursery_door_open_during_sleep\n mode: single\n max_exceeded: silent\n triggers:\n - platform: state\n entity_id: binary_sensor.nursery_door\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'on'\n for:\n minutes: 10\n - condition: state\n entity_id: group.adults\n state: home\n - not:\n - condition: time\n after: 01:30:00\n before: 07:00:00\n actions:\n - repeat:\n for_each: '{{ states.person | selectattr(''state'', ''eq'', ''home'') | map(attribute=''attributes.notifier'')\n | list}}\n\n '\n sequence:\n - service: '{{ repeat.item }}'\n data:\n title: Nursery Door Opened!\n message: 'Someone has left the nursery\n\n '\n data:\n url: /lovelace/girls-room\n clickAction: /lovelace/girls-room\n tag: nursery-escape-warning\n group: nursery-notification\n - choose:\n - conditions:\n - condition: state\n entity_id: media_player.apple_tv_living_room\n state: playing\n sequence:\n - service: media_player.media_pause\n entity_id: media_player.apple_tv_living_room\n - delay:\n minutes: 3",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Apple TV living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.apple_tv_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery door",
|
|
"room": "nursery",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nursery_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_set_girls_wakeup_time",
|
|
"automation": "- alias: Set the girls wakeup time\n id: nursery_set_girls_wakeup_time\n triggers:\n - platform: time\n at: 09:00:00\n actions:\n - service: calendar.get_events\n target:\n entity_id: calendar.ontario_holidays\n data:\n duration:\n hours: 24\n response_variable: holidays\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.girls_wakeup_time\n data:\n time: \"{%- if holidays[\\\"calendar.ontario_holidays\\\"][\\\"events\\\"]| count > 0\\\n \\ -%}\\n 07:30:00\\n{%- elif (now() + timedelta(hours=24)).isoweekday() in\\\n \\ [6, 7] -%}\\n 07:30:00\\n{%- else -%}\\n 07:00:00\\n{%- endif -%}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "Ontario holidays calendar",
|
|
"room": "unknown",
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.ontario_holidays",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls wakeup time input datetime",
|
|
"room": "girls_room",
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.girls_wakeup_time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_let_girls_out_of_bed_time_trigger",
|
|
"automation": "- alias: Let the girls out of bed\n id: nursery_let_girls_out_of_bed_time_trigger\n triggers:\n - platform: time\n at: input_datetime.girls_wakeup_time\n conditions:\n - or:\n - condition: state\n entity_id: group.adults\n state: home\n - condition: state\n entity_id: binary_sensor.guests_present\n state: 'on'\n actions:\n - wait_template: '{{ not is_state(\"light.nursery_led\", \"unavailable\") }}'\n - service: script.led_strip_on\n data:\n scene_id: scene.nursery_led_on",
|
|
"config": [
|
|
{
|
|
"name": "Guests present",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.guests_present",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adults group",
|
|
"room": "unknown",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.adults",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery LED",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls wakeup time input datetime",
|
|
"room": "girls_room",
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.girls_wakeup_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery LED On",
|
|
"room": "Nursery",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.nursery_led_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "LED Strip On",
|
|
"room": "Nursery",
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.led_strip_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nusery_led_strip_reenable",
|
|
"automation": "- alias: Reenable nursery light on power loss\n id: nusery_led_strip_reenable\n triggers:\n - platform: state\n entity_id: sensor.ups_status\n from: Online\n - platform: state\n entity_id: input_boolean.nap_mode\n to: 'off'\n from: 'on'\n - platform: time\n at:\n - input_datetime.girls_wakeup_time\n - '18:30:00'\n actions:\n - wait_template: '{{ not is_state(\"switch.nursery_power_loss_gate\", \"unavailable\")\n }}'\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'off'\n sequence:\n - service: homeassistant.turn_on\n entity_id: switch.nursery_power_loss_gate\n - conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'on'\n - condition: time\n after: 07:00:00\n before: 08:00:00\n sequence:\n - service: homeassistant.turn_on\n entity_id: switch.nursery_power_loss_gate",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery power loss gate",
|
|
"room": "nursery",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.nursery_power_loss_gate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls wakeup time input datetime",
|
|
"room": "girls_room",
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.girls_wakeup_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "UPS status",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ups_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_show_camera_automatically",
|
|
"automation": "- alias: Show Nursery Camera on TV automatically\n id: nursery_show_camera_automatically\n triggers:\n - platform: state\n entity_id: input_boolean.nap_mode\n to: 'on'\n conditions:\n not:\n - condition: state\n entity_id: media_player.apple_tv_living_room\n state: playing\n actions:\n - service: switch.turn_on\n entity_id: switch.entertainment_switch_relay\n - service: homeassistant.turn_on\n entity_id: remote.apple_tv_living_room\n - service: remote.send_command\n target:\n entity_id: remote.apple_tv_living_room\n data:\n command: wakeup\n - delay:\n seconds: 30\n - event: homekit_faux_camera_event\n - delay:\n seconds: 5\n - service: remote.send_command\n target:\n entity_id: remote.apple_tv_living_room\n data:\n command: home",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Entertainment switch relay",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.entertainment_switch_relay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Apple TV living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.apple_tv_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Remote apple tv living room",
|
|
"room": "living_room",
|
|
"type": "remote",
|
|
"id": {
|
|
"entity_id": "remote.apple_tv_living_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_turn_on_kitchen_lighting",
|
|
"automation": "- alias: Set living room lighting when bedtime starts\n id: nursery_turn_on_kitchen_lighting\n triggers:\n - platform: state\n entity_id: input_boolean.nap_mode\n to: 'on'\n conditions:\n - condition: time\n after: '18:00:00'\n actions:\n - service: light.turn_on\n entity_id:\n - light.kitchen_island\n - service: light.turn_off\n target:\n entity_id:\n - light.living_room_light\n - light.kitchen_light\n data:\n transition: 90",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen island light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_island",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_girls_light_control",
|
|
"automation": "- alias: Girls Light Control\n id: nursery_girls_light_control\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 619b1285a00b9c9b050cedb19e02d4c1\n type: action\n subtype: single\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'off'\n - condition: time\n before: '19:15:00'\n sequence:\n - service: light.toggle\n entity_id: light.nursery_light\n - service: light.turn_off\n data:\n entity_id:\n - light.nursery_led\n default:\n - service: light.toggle\n data:\n entity_id:\n - light.nursery_led\n - service: light.turn_off\n entity_id: light.nursery_light\n - delay:\n seconds: 5",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery light",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery LED",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID 619b1285a00b9c9b050cedb19e02d4c1",
|
|
"room": "girls_room",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "619b1285a00b9c9b050cedb19e02d4c1"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_warmer_temp_led",
|
|
"automation": "- alias: Set warmer temperature for LED strip\n id: nursery_warmer_temp_led\n triggers:\n - platform: time\n at: '19:00:00'\n - platform: state\n entity_id: light.nursery_led\n to: 'on'\n conditions:\n - condition: time\n after: '18:00:00'\n before: '21:00:00'\n - condition: state\n entity_id: light.nursery_led\n state: 'on'\n actions:\n - service: light.turn_on\n target:\n entity_id: light.nursery_led\n data:\n brightness: 254\n color_temp_kelvin: 2000",
|
|
"config": [
|
|
{
|
|
"name": "Nursery LED",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_led",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nursery_led_on_bedtime_routine",
|
|
"automation": "- alias: Turn on LED strip for bedtime routine\n id: nursery_led_on_bedtime_routine\n triggers:\n - platform: state\n entity_id: light.nursery_light\n to: 'on'\n conditions:\n - condition: time\n after: '18:00:00'\n actions:\n - service: light.turn_on\n data:\n entity_id:\n - light.nursery_led\n - service: scene.turn_on\n entity_id: scene.nursery_led_on\n - delay:\n seconds: 1",
|
|
"config": [
|
|
{
|
|
"name": "Nursery light",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery LED",
|
|
"room": "nursery",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nursery_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery LED On",
|
|
"room": "Nursery",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.nursery_led_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "girls_control_hall_lights_bedtime",
|
|
"automation": "- alias: Control hall lights at bedtime\n id: girls_control_hall_lights_bedtime\n mode: single\n max_exceeded: silent\n triggers:\n - platform: state\n entity_id: input_boolean.nap_mode\n to: 'on'\n actions:\n - service: light.turn_off\n entity_id: light.upstairs_hall\n - if:\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 4.0\n then:\n - service: light.turn_on\n entity_id: light.main_stairs\n else:\n - service: light.turn_off\n entity_id: light.main_stairs",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Upstairs hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.upstairs_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main stairs light",
|
|
"room": "stairs",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_stairs",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "girls_hall_lights_off_door_open",
|
|
"automation": "- alias: Turn off hall lights door open\n id: girls_hall_lights_off_door_open\n mode: restart\n trace:\n stored_traces: 50\n triggers:\n - platform: state\n entity_id: binary_sensor.nursery_door\n to: 'on'\n not_from:\n - unknown\n - unavailable\n id: lights_off\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.bedtime_stairs_light_off\n id: lights_off\n - platform: state\n entity_id: binary_sensor.nursery_door\n to: 'off'\n not_from:\n - unknown\n - unavailable\n id: lights_on\n conditions:\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: lights_off\n sequence:\n - service: light.turn_off\n entity_id:\n - light.main_stairs\n - light.upstairs_hall\n - service: timer.cancel\n entity_id: timer.bedtime_stairs_light_off\n - conditions:\n - and:\n - condition: trigger\n id: lights_on\n - condition: time\n after: '18:30:00'\n before: '21:45:00'\n sequence:\n - delay:\n seconds: 5\n - service: light.turn_on\n entity_id: light.main_stairs\n - service: timer.start\n entity_id: timer.bedtime_stairs_light_off",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nursery door",
|
|
"room": "nursery",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nursery_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedtime stairs light off timer",
|
|
"room": "stairs",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.bedtime_stairs_light_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Upstairs hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.upstairs_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main stairs light",
|
|
"room": "stairs",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_stairs",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "girls_linked_led_to_light_state",
|
|
"automation": "- alias: Link Switch LED to light state\n id: girls_linked_led_to_light_state\n mode: restart\n triggers:\n - platform: state\n entity_id: light.girls_fan\n to:\n - 'on'\n - 'off'\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state in [\"off\", \"on\"] }}'\n actions:\n service: light.turn_{{ trigger.to_state.state }}\n entity_id: light.girls_room_switch",
|
|
"config": [
|
|
{
|
|
"name": "Girls fan light",
|
|
"room": "girls_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.girls_fan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls room switch light",
|
|
"room": "girls_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.girls_room_switch",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "girls_mute_speaker_at_bedtime",
|
|
"automation": "- alias: Mute Girls Speaker at bedtime\n id: girls_mute_speaker_at_bedtime\n triggers:\n - platform: state\n entity_id: input_boolean.nap_mode\n to: 'on'\n actions:\n - service: media_player.volume_set\n data:\n volume_level: 0.01\n entity_id: media_player.girls_room_sonos",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls room sonos",
|
|
"room": "girls_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.girls_room_sonos",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "girls_yoto_player_bedtime",
|
|
"automation": "- alias: Yoto Player Auto Play at bedtime\n id: girls_yoto_player_bedtime\n triggers:\n - platform: state\n entity_id: input_boolean.nap_mode\n from: 'off'\n to: 'on'\n conditions:\n not:\n - condition: state\n entity_id: media_player.bedroom_player\n state: playing\n actions:\n - wait_template: '{{ states(''binary_sensor.bedroom_player_online'') not in [''offline'',\n ''unknown'', ''unavailable''] }}'\n timeout:\n minutes: 30\n continue_on_timeout: false\n - action: media_player.play_media\n data:\n media_content_id: 7AzCP-01-01\n media_content_type: music\n target:\n entity_id: media_player.bedroom_player\n - action: media_player.volume_set\n data:\n volume_level: 0.5\n target:\n entity_id: media_player.bedroom_player",
|
|
"config": [
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bedroom_player",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom player online",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_player_online",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "girls_yoto_auto_sleep_players_overnight",
|
|
"automation": "- alias: Auto sleep timer for Yotos overnight\n id: girls_yoto_auto_sleep_players_overnight\n triggers:\n - platform: state\n entity_id:\n - media_player.bedroom_player\n - media_player.merry_and_vivs_player\n to: playing\n conditions:\n - condition: time\n after: '23:00:00'\n before: 06:00:00\n actions:\n - action: number.set_value\n data:\n value: 900\n target:\n entity_id: \"{% if trigger.entity_id == \\\"media_player.bedroom_player\\\" %}\\n\\\n \\ number.bedroom_player_sleep_timer_seconds_remaining\\n{% else %}\\n number.merry_and_vivs_player_sleep_timer_seconds_remaining\\n\\\n {% endif %}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bedroom_player",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Merry and vivs player",
|
|
"room": "girls_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.merry_and_vivs_player",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom player sleep timer seconds remaining",
|
|
"room": "bedroom",
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.bedroom_player_sleep_timer_seconds_remaining",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Merry and vivs player sleep timer seconds remaining",
|
|
"room": "girls_room",
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.merry_and_vivs_player_sleep_timer_seconds_remaining",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "girls_yoto_auto_off",
|
|
"automation": "- alias: Yoto Player Turn off automatically\n id: girls_yoto_auto_off\n triggers:\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.bedtime_stairs_light_off\n actions:\n - wait_template: '{{ is_state(''binary_sensor.girls_room_motion'', ''off'') and\n is_state(''binary_sensor.girls_room_occupancy'', ''off'') }}'\n timeout:\n minutes: 90\n continue_on_timeout: false\n - action: media_player.media_stop\n target:\n entity_id:\n - media_player.bedroom_player\n - media_player.merry_and_vivs_player",
|
|
"config": [
|
|
{
|
|
"name": "Girls room occupancy",
|
|
"room": "girls_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.girls_room_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bedroom_player",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Merry and vivs player",
|
|
"room": "girls_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.merry_and_vivs_player",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Girls room motion",
|
|
"room": "girls_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.girls_room_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedtime stairs light off timer",
|
|
"room": "stairs",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.bedtime_stairs_light_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "return_home_annoucement",
|
|
"automation": "- alias: Return Home Annoucement\n id: return_home_annoucement\n trigger:\n platform: zone\n entity_id:\n - device_tracker.michaels_iphone\n zone: zone.home\n event: enter\n condition:\n - condition: state\n entity_id: person.tiff\n state: home\n - condition: state\n entity_id: input_boolean.nap_mode\n state: 'on'\n action:\n - service: notify.mobile_app_tiffanys_iphone\n data:\n title: Mike is almost home\n message: Keep Stella Quiet\n - delay:\n minutes: 15\n mode: single\n max_exceeded: silent",
|
|
"config": [
|
|
{
|
|
"name": "Tiff",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.tiff",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nap mode input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nap_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Michaels iphone tracker",
|
|
"room": "unknown",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.michaels_iphone",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tiff_return_home_notification",
|
|
"automation": "- alias: Tiff Returning Home Notification\n id: tiff_return_home_notification\n trigger:\n platform: zone\n entity_id: person.tiff\n zone: zone.home\n event: enter\n condition:\n - condition: state\n entity_id: person.mike\n state: home\n for:\n minutes: 10\n action:\n - service: notify.mobile_app_michaels_iphone\n data:\n title: Tiff is returning home\n message: Tiff has entered the home zone\n data:\n tag: tiff-return-home\n group: presence-notification",
|
|
"config": [
|
|
{
|
|
"name": "Mike",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mike",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tiff",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.tiff",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "update_notification",
|
|
"automation": "- alias: Update notification\n id: update_notification\n trigger:\n - platform: state\n entity_id: binary_sensor.docker_hub_update_available\n to: 'on'\n action:\n - service: notify.mobile_app_michaels_iphone\n data:\n message: There is a new Home Assistant release available.",
|
|
"config": [
|
|
{
|
|
"name": "Docker hub update available",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.docker_hub_update_available",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "general_presence_notification_home",
|
|
"automation": "- alias: Presence Arriving\n id: general_presence_notification_home\n trigger:\n - platform: state\n entity_id:\n - person.bumpa\n - person.lisa\n from: not_home\n to: home\n condition:\n - condition: state\n entity_id: person.mike\n state: home\n action:\n service: notify.mobile_app_michaels_iphone\n data:\n title: HASS Presence Notification\n message: '{{ trigger.to_state.attributes.friendly_name }} is arriving\n\n '\n data:\n tag: person-presence-notification\n group: presence-notification",
|
|
"config": [
|
|
{
|
|
"name": "Mike",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mike",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bumpa person",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.bumpa",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Lisa person",
|
|
"room": "unknown",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.lisa",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ask_pupper_home",
|
|
"automation": "- alias: Ask if Pupper Home after Dark\n id: ask_pupper_home\n trigger:\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 5\n condition:\n - condition: state\n entity_id: alarm_control_panel.master\n state: armed_away\n - not:\n - condition: state\n entity_id: alarm_control_panel.master\n state: armed_vacation\n action:\n - variables:\n action_home: '{{ ''HOME_'' ~ context.id }}'\n action_away: '{{ ''AWAY_'' ~ context.id }}'\n - service: notify.mobile_app_michaels_iphone\n data:\n message: Is the pupper home alone?\n data:\n actions:\n - action: '{{ action_home }}'\n title: Pupper Home\n activationMode: background\n authenticationRequired: true\n destructive: false\n behavior: default\n - action: '{{ action_away }}'\n title: Not Home\n activationMode: background\n authenticationRequired: true\n destructive: true\n behavior: default\n - wait_for_trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_home }}'\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_away }}'\n - choose:\n - conditions: '{{ wait.trigger.event.data.action == action_home }}'\n sequence:\n - service: input_boolean.turn_on\n entity_id: input_boolean.pupper_home\n - conditions: '{{ wait.trigger.event.data.action == action_away }}'\n sequence:\n - service: input_boolean.turn_off\n entity_id: input_boolean.pupper_home",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Pupper home input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.pupper_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "set_pupper_light_on",
|
|
"automation": "- alias: Set light on for Pupper at dark\n id: set_pupper_light_on\n trigger:\n - platform: sun\n event: sunset\n - platform: state\n entity_id: alarm_control_panel.master\n to: armed_away\n condition:\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 2.0\n - condition: state\n entity_id: input_boolean.pupper_home\n state: 'on'\n action:\n - delay:\n minutes: 5\n - service: homeassistant.turn_on\n entity_id: light.kitchen_island",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun sun",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen island light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_island",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Pupper home input boolean",
|
|
"room": "unknown",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.pupper_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_evening_convenience_control",
|
|
"automation": "- alias: Evening Convenience Control\n id: upstairs_evening_convenience_control\n mode: single\n max_exceeded: silent\n trigger:\n - trigger: device\n domain: mqtt\n device_id: e3bc901892c55fbcaa6dd42876632c35\n type: action\n subtype: down_double\n - trigger: device\n domain: mqtt\n device_id: 0d619322f1e8664e17f93285090c18bd\n type: action\n subtype: down_double\n - trigger: device\n domain: mqtt\n device_id: 67df18469d484ee9d7870f2a5fb692cb\n type: action\n subtype: down_double\n condition:\n - condition: time\n after: '21:00:00'\n actions:\n - event: goodnight_event",
|
|
"config": [
|
|
{
|
|
"name": "Device ID e3bc901892c55fbcaa6dd42876632c35",
|
|
"room": "bathroom",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "e3bc901892c55fbcaa6dd42876632c35"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID 0d619322f1e8664e17f93285090c18bd",
|
|
"room": "unknown",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "0d619322f1e8664e17f93285090c18bd"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID 67df18469d484ee9d7870f2a5fb692cb",
|
|
"room": "unknown",
|
|
"type": "unknown",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "67df18469d484ee9d7870f2a5fb692cb"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacation_mode_depart",
|
|
"automation": "- alias: Vacation mode\n id: vacation_mode_depart\n mode: single\n max_exceeded: silent\n trigger:\n - platform: numeric_state\n entity_id: sensor.home_nearest_distance\n above: 55000\n condition:\n - condition: state\n entity_id: device_tracker.faux_girls_home\n state: not_home\n - condition: state\n entity_id: binary_sensor.guests_present\n state: 'off'\n action:\n - service: select.select_option\n entity_id: select.my_ecobee_current_mode\n data:\n option: away\n - service: light.turn_off\n continue_on_error: true\n target:\n floor_id:\n - top_floor\n - main_floor\n - basement\n - service: fan.turn_off\n target:\n floor_id:\n - top_floor\n - service: cover.close_cover\n entity_id: cover.garage\n - service: lock.lock\n entity_id:\n - lock.locks\n - service: alarm_control_panel.alarm_arm_vacation\n target:\n entity_id: alarm_control_panel.master",
|
|
"config": [
|
|
{
|
|
"name": "Guests present",
|
|
"room": "unknown",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.guests_present",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Faux girls home tracker",
|
|
"room": "unknown",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.faux_girls_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "My ecobee current mode select",
|
|
"room": "unknown",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.my_ecobee_current_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Lock locks",
|
|
"room": "unknown",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.locks",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage cover",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home nearest distance",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_nearest_distance",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacaiton_keep_ecobee_away",
|
|
"automation": "- alias: Keep Ecobee in Away mode\n id: vacaiton_keep_ecobee_away\n trigger:\n - platform: state\n entity_id: select.my_ecobee_current_mode\n from: away\n not_to:\n - unknown\n - unavailable\n condition:\n - condition: state\n entity_id: alarm_control_panel.master\n state: armed_vacation\n action:\n - service: notify.mobile_app_michaels_iphone\n data:\n message: Consider Setting Ecobee Vacation\n - service: select.select_option\n entity_id: select.my_ecobee_current_mode\n data:\n option: away",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "My ecobee current mode select",
|
|
"room": "unknown",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.my_ecobee_current_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacation_mode_return",
|
|
"automation": "- alias: Returning from vacation\n id: vacation_mode_return\n mode: single\n max_exceeded: silent\n trigger:\n - platform: numeric_state\n entity_id: sensor.home_nearest_distance\n below: 55000\n condition:\n - not:\n - condition: state\n entity_id: alarm_control_panel.master\n state: disarmed\n action:\n - service: select.select_option\n entity_id: select.my_ecobee_current_mode\n data:\n option: home\n - service: alarm_control_panel.alarm_arm_away\n target:\n entity_id: alarm_control_panel.master",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "My ecobee current mode select",
|
|
"room": "unknown",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.my_ecobee_current_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home nearest distance",
|
|
"room": "unknown",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_nearest_distance",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacation_lighting",
|
|
"automation": "- alias: Vacation Lighting\n mode: single\n max_exceeded: silent\n id: vacation_lighting\n trigger:\n - platform: state\n entity_id: alarm_control_panel.master\n to:\n - armed_vacation\n id: armed\n - platform: state\n entity_id: alarm_control_panel.master\n to: disarmed\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: armed\n sequence:\n - service: switch.turn_on\n entity_id: switch.simulated_light_presence\n default:\n - service: switch.turn_off\n entity_id: switch.simulated_light_presence",
|
|
"config": [
|
|
{
|
|
"name": "Master alarm",
|
|
"room": "unknown",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.master",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Simulated light presence switch",
|
|
"room": "unknown",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.simulated_light_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |