[ { "id": "'1628956688014'", "automation": "- id: '1628956688014'\n alias: 'Alarm: Disarmed'\n description: ''\n trigger:\n - trigger: state\n entity_id: alarm_control_panel.house_alarm\n to: disarmed\n conditions:\n - condition: state\n entity_id: input_boolean.enable_alarm_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_bell: disarmed.'\n title: ':bell: Alarm'\n log_level: Normal\n - action: script.send_to_home_log\n data:\n message: ':camera: Turning off indoor cameras.'\n log_level: Debug\n - action: script.set_central_heating_to_home_mode\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "enable alarm automations", "room": "house", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_alarm_automations", "device_id": null } } ] }, { "id": "'1587680439012'", "automation": "- id: '1587680439012'\n alias: 'Alarm: Arm Overnight Home Mode'\n description: ''\n trace:\n stored_traces: 10\n triggers:\n - trigger: state\n entity_id:\n - schedule.alarm_scheduled_home_mode\n from: 'off'\n to: 'on'\n - trigger: time\n at: 00:00:00\n - trigger: time_pattern\n hours: '0'\n minutes: /30\n - trigger: time\n at: 01:00:00\n - trigger: time_pattern\n hours: '1'\n minutes: /30\n - trigger: time\n at: 02:00:00\n conditions:\n - or:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: disarmed\n - not:\n - condition: state\n entity_id: lock.front_door\n state: locked\n - condition: state\n entity_id: input_boolean.enable_alarm_automations\n state: 'on'\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.alarmed_doors_and_windows\n state: 'on'\n sequence:\n - action: script.send_direct_notification\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute |\n int > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: The\n following entrances are still open: {% for entity in state_attr(''binary_sensor.alarmed_doors_and_windows'',''entity_id'')\n %}{% if states(entity) == ''on'' %}{{ ''\\n* '' ~ state_attr(entity,\n ''friendly_name'') }} {% endif %}{% endfor %}\"\n\n Trying again later.'\n title: ':warning: :bell: Alarm'\n people:\n entity_id:\n - person.danny\n - person.terina\n default:\n - parallel:\n - action: script.arm_alarm_overnight\n data:\n message: It's late.\n - action: script.lock_front_door\n data: {}\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "enable alarm automations", "room": "house", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_alarm_automations", "device_id": null } }, { "name": "alarm scheduled home mode", "room": "house", "type": "schedule", "id": { "entity_id": "schedule.alarm_scheduled_home_mode", "device_id": null } }, { "name": "front door lock", "room": "porch", "type": "lock", "id": { "entity_id": "lock.front_door", "device_id": null } }, { "name": "alarmed doors and windows", "room": "house", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.alarmed_doors_and_windows", "device_id": null } }, { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } } ] }, { "id": "'1587680439015'", "automation": "- id: '1587680439015'\n alias: 'Alarm: Arm Overnight Home Mode Final Check'\n description: ''\n triggers:\n - trigger: time\n at: 02:05:00\n conditions:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: disarmed\n - condition: state\n entity_id: input_boolean.enable_alarm_automations\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.alarmed_doors_and_windows\n state: 'on'\n sequence:\n - parallel:\n - action: script.send_direct_notification\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute |\n int > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Did\n not turned on because the following: {% for opening in state_attr(''binary_sensor.alarmed_doors_and_windows'',\n ''entity_id'') %}{% if states(opening) == ''on'' %} {{ ''* '' ~ state_attr(opening,\n ''friendly_name'') ~ ''\\n'' }}{% endif %}{% endfor %}'\n title: ':warning: :bell: Alarm :warning:'\n people:\n entity_id:\n - person.danny\n - person.terina\n - alias: Turn on bedroom light to warn not all doors/windows are closed.\n action: light.turn_on\n data:\n rgb_color:\n - 17\n - 0\n - 255\n brightness: 255\n target:\n entity_id:\n - light.under_bed_left\n - light.under_bed_right\n - light.bedroom_lamp_left\n - light.bedroom_lamp_right\n - conditions:\n - condition: state\n entity_id: binary_sensor.alarmed_doors_and_windows\n state: 'off'\n sequence:\n - choose:\n - alias: Danny not home and not long distance after last check\n conditions:\n - not:\n - condition: state\n entity_id: person.danny\n state: home\n - condition: template\n value_template: '{{ states(''sensor.danny_home_nearest_distance'')|float(0)\n > states(''input_number.long_distance_away_from_home'')|int(0) - 1\n }}'\n - condition: state\n entity_id: person.terina\n state: home\n for:\n minutes: '5'\n sequence:\n - parallel:\n - action: script.send_direct_notification\n data:\n message: 'Final check for people failed. :running: :house_with_garden:\n Danny is not home and this is the final check. :no_bell: Alarm turned\n on.'\n title: ':warning: :bell: Alarm'\n people:\n entity_id:\n - person.danny\n - person.terina\n - action: script.set_alarm_to_home_mode\n - action: script.lock_front_door\n - alias: Terina not home and not long distance and after last check\n conditions:\n - condition: state\n entity_id: person.danny\n state: home\n for:\n minutes: '5'\n - not:\n - condition: state\n entity_id: person.terina\n state: home\n - condition: template\n value_template: '{{ states(''sensor.terina_home_nearest_distance'')|float(0)\n > states(''input_number.long_distance_away_from_home'')|int(0) - 1\n }}'\n sequence:\n - parallel:\n - action: script.send_direct_notification\n data:\n message: 'Final check for people failed. :house_with_garden: :woman_dancing:\n Terina is not home and this is the final check. :no_bell: Alarm\n turned on.'\n title: ':bell: Alarm'\n people:\n entity_id:\n - person.danny\n - person.terina\n - action: script.set_alarm_to_home_mode\n - action: script.lock_front_door\n default: []\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "enable alarm automations", "room": "house", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_alarm_automations", "device_id": null } }, { "name": "alarmed doors and windows", "room": "house", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.alarmed_doors_and_windows", "device_id": null } }, { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "under bed left light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.under_bed_left", "device_id": null } }, { "name": "under bed right light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.under_bed_right", "device_id": null } }, { "name": "bedroom lamp left", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_lamp_left", "device_id": null } }, { "name": "bedroom lamp right", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_lamp_right", "device_id": null } }, { "name": "danny home nearest distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.danny_home_nearest_distance", "device_id": null } }, { "name": "long distance away from home", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.long_distance_away_from_home", "device_id": null } }, { "name": "terina home nearest distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.terina_home_nearest_distance", "device_id": null } } ] }, { "id": "'1587680439013'", "automation": "- id: '1587680439013'\n alias: 'Alarm: Arm Overnight When Doors And Windows Shut'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.alarmed_doors_and_windows\n from: 'on'\n to: 'off'\n for: 00:00:30\n conditions:\n - condition: state\n entity_id: group.adult_people\n state: home\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: disarmed\n - condition: state\n entity_id: binary_sensor.alarmed_doors_and_windows\n state: 'off'\n - condition: state\n entity_id: schedule.alarm_scheduled_home_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_alarm_automations\n state: 'on'\n actions:\n - action: script.arm_alarm_overnight\n data:\n message: 'All alarmed :door: doors and :window: windows are now closed.'\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "enable alarm automations", "room": "house", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_alarm_automations", "device_id": null } }, { "name": "alarm scheduled home mode", "room": "house", "type": "schedule", "id": { "entity_id": "schedule.alarm_scheduled_home_mode", "device_id": null } }, { "name": "alarmed doors and windows", "room": "house", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.alarmed_doors_and_windows", "device_id": null } }, { "name": "Adult People", "room": null, "type": "group", "id": { "entity_id": "group.adult_people", "device_id": null } } ] }, { "id": "'1630366065607'", "automation": "- id: '1630366065607'\n alias: 'Alarm: Armed'\n description: ''\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.house_alarm\n to: armed_away\n conditions:\n - condition: state\n entity_id: input_boolean.enable_alarm_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ' Set to away mode (all sensors on). Turning on all :camera_with_flash:\n cameras.'\n title: ':bell: Alarm'\n log_level: Normal\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "enable alarm automations", "room": "house", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_alarm_automations", "device_id": null } } ] }, { "id": "'1614197981954'", "automation": "- id: '1614197981954'\n alias: 'Alarm: Disconnected'\n description: ''\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.house_alarm\n to: unavailable\n for:\n hours: 0\n minutes: 1\n seconds: 0\n conditions:\n - condition: state\n entity_id: input_boolean.enable_alarm_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_direct_notification\n data:\n title: ':bell: Alarm'\n message: ':warning: Disconnected from Home Assistant :warning:'\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "enable alarm automations", "room": "house", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_alarm_automations", "device_id": null } }, { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } } ] }, { "id": "'1658658845650'", "automation": "- id: '1658658845650'\n alias: 'Alarm: Disconnected For A Period Of Time'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - alarm_control_panel.house_alarm\n to: unavailable\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions:\n - condition: state\n entity_id: input_boolean.enable_alarm_automations\n state: 'on'\n actions:\n - action: script.send_to_home_log\n data:\n message: Alarm has been unavailable for 5 minutes. Restarting Ring MQTT add-on.\n title: ':bell: Alarm'\n log_level: Normal\n - action: hassio.addon_restart\n data:\n addon: fdb328a7_ring_mqtt\n - wait_for_trigger:\n - trigger: state\n entity_id:\n - alarm_control_panel.house_alarm\n from: unavailable\n timeout: '{{ states(''input_text.restart_ring_mqtt_add_on_timeout'') }}'\n continue_on_timeout: true\n - choose:\n - conditions:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: unavailable\n sequence:\n - action: script.send_to_home_log\n data:\n message: Restarting Ring MQTT add-on failed.\n title: ':bell: Alarm'\n log_level: Normal\n - conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: unavailable\n sequence:\n - action: script.send_to_home_log\n data:\n message: Ring MQTT restarted successfully.\n title: ':bell: Alarm'\n log_level: Normal\n default: []\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "enable alarm automations", "room": "house", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_alarm_automations", "device_id": null } }, { "name": "Restart Ring MQTT Add On Timeout", "room": null, "type": "input_text", "id": { "entity_id": "input_text.restart_ring_mqtt_add_on_timeout", "device_id": null } } ] }, { "id": "'1589026420341'", "automation": "- id: '1589026420341'\n alias: 'Alarm: Triggered'\n description: ''\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.house_alarm\n to: triggered\n conditions:\n - condition: state\n entity_id: input_boolean.enable_alarm_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_direct_notification\n data:\n message: Has triggered!\n title: ':rotating_light: Alarm'\n people:\n entity_id:\n - person.danny\n - person.terina\n - person.leo\n - action: script.send_actionable_notification_with_2_buttons\n data:\n message: Triggered! Turn off?\n title: ':rotating_light: Alarm'\n people:\n entity_id:\n - person.danny\n - person.terina\n action1_title: 'Yes'\n action1_name: switch_off_alarm\n action2_title: 'No'\n action2_name: ignore\n - action: script.post_home_assistant_direct_notification\n data:\n message: Has triggered!\n title: 🚨 Alarm\n people:\n entity_id:\n - person.danny\n - person.terina\n - person.leo\n priority: high\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "enable alarm automations", "room": "house", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_alarm_automations", "device_id": null } }, { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "leo person", "room": "house", "type": "person", "id": { "entity_id": "person.leo", "device_id": null } } ] }, { "id": "'1676493888411'", "automation": "- id: '1676493888411'\n alias: 'Attic: Hatch Opened'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.attic_hatch_contact\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Attic hatch opened. Turning lights on.\n title: Attic\n log_level: Debug\n - action: light.turn_on\n data: {}\n target:\n entity_id: light.attic\n mode: single", "config": [ { "name": "attic hatch contact", "room": "attic", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.attic_hatch_contact", "device_id": null } }, { "name": "attic light", "room": "attic", "type": "light", "id": { "entity_id": "light.attic", "device_id": null } } ] }, { "id": "'1676493961946'", "automation": "- id: '1676493961946'\n alias: 'Attic: Hatch Closed'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.attic_hatch_contact\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Attic hatch opened. Turning lights off.\n title: Attic\n log_level: Debug\n - action: light.turn_off\n data: {}\n target:\n entity_id: light.attic\n mode: single", "config": [ { "name": "attic hatch contact", "room": "attic", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.attic_hatch_contact", "device_id": null } }, { "name": "attic light", "room": "attic", "type": "light", "id": { "entity_id": "light.attic", "device_id": null } } ] }, { "id": "'1664827040573'", "automation": "- id: '1664827040573'\n alias: 'Attic: Lights On'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - light.attic\n to: 'on'\n for:\n hours: 0\n minutes: 30\n seconds: 0\n conditions: []\n actions:\n - action: script.send_actionable_notification_with_2_buttons\n data:\n message: Lights have been on for 15 minutes. Turn off?\n title: Attic\n people:\n entity_id:\n - person.danny\n - person.terina\n action1_title: 'Yes'\n action1_name: switch_off_attic_lights\n action2_title: 'No'\n action2_name: ignore\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "attic light", "room": "attic", "type": "light", "id": { "entity_id": "light.attic", "device_id": null } } ] }, { "id": "'1590564595890'", "automation": "- id: '1590564595890'\n alias: 'Living Room: UPS Below 5 Minutes Run time'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.lounge_ups_battery_runtime\n below: '301'\n condition:\n - condition: state\n entity_id: sensor.lounge_ups_status_data\n state: OB DISCHRG\n actions:\n - action: script.send_direct_notification\n data:\n message: ':warning: Less than 5 minutes left on :battery: :warning:'\n title: ':battery: Living Room UPS'\n people:\n entity_id:\n - person.danny\n - person.terina\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "lounge ups battery runtime", "room": "living room", "type": "sensor", "id": { "entity_id": "sensor.lounge_ups_battery_runtime", "device_id": null } }, { "name": "lounge ups status data", "room": "living room", "type": "sensor", "id": { "entity_id": "sensor.lounge_ups_status_data", "device_id": null } } ] }, { "id": "'1591705795121'", "automation": "- id: '1591705795121'\n alias: 'Office: Server UPS On Battery With Less Than 5 Minutes'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.server_ups_battery_runtime\n below: '301'\n condition:\n - condition: state\n entity_id: sensor.server_ups_status_data\n state: OB DISCHRG\n actions:\n - action: script.send_direct_notification\n data:\n message: ':warning: Less than 5 minutes left on :battery: battery :warning:'\n title: ':battery: Server UPS'\n people:\n entity_id:\n - person.danny\n - person.terina\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "server ups battery runtime", "room": "office", "type": "sensor", "id": { "entity_id": "sensor.server_ups_battery_runtime", "device_id": null } }, { "name": "server ups status data", "room": "office", "type": "sensor", "id": { "entity_id": "sensor.server_ups_status_data", "device_id": null } } ] }, { "id": "'1604998439600'", "automation": "- id: '1604998439600'\n alias: 'House: Water detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.water_leak_sensors\n to: 'on'\n condition: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':warning: :droplet: Potential leak detected :droplet: :warning:'\n log_level: Normal\n mode: single", "config": [ { "name": "water leak sensors", "room": "house", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.water_leak_sensors", "device_id": null } } ] }, { "id": "'1604998512525'", "automation": "- id: '1604998512525'\n alias: 'House: Water Not Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.water_leak_sensors\n from: 'on'\n to: 'off'\n condition: []\n actions:\n - action: script.send_to_home_log\n data:\n message: Potential leak has stopped\n log_level: Normal\n mode: single", "config": [ { "name": "water leak sensors", "room": "house", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.water_leak_sensors", "device_id": null } } ] }, { "id": "'1613246359438'", "automation": "- id: '1613246359438'\n alias: 'Office: Computer UPS On Battery With Less Than 5 Minutes'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.computer_ups_battery_runtime\n below: '301'\n condition:\n - condition: state\n entity_id: sensor.computer_ups_status_data\n state: OB DISCHRG\n actions:\n - action: script.send_direct_notification\n data:\n message: ':warning: Less than 5 minutes left on :battery: battery :warning:'\n title: ':battery: PC UPS'\n people:\n entity_id:\n - person.danny\n - person.terina\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "computer ups battery runtime", "room": "office", "type": "sensor", "id": { "entity_id": "sensor.computer_ups_battery_runtime", "device_id": null } }, { "name": "computer ups status data", "room": "office", "type": "sensor", "id": { "entity_id": "sensor.computer_ups_status_data", "device_id": null } }, { "name": "Computer UPS Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.computer_ups_status", "device_id": null } } ] }, { "id": "'1613264719942'", "automation": "- id: '1613264719942'\n alias: 'Office: Alarm Armed Home Mode & Motion Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.office_area_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: armed_home\n - condition: state\n entity_id: group.jd_computer\n state: 'off'\n actions:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motioned detected in the office!'\n log_level: Normal\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "office area motion", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_area_motion", "device_id": null } }, { "name": "jd computer group", "room": "office", "type": "group", "id": { "entity_id": "group.jd_computer", "device_id": null } } ] }, { "id": "'1613264961246'", "automation": "- id: '1613264961246'\n alias: 'Kitchen: Alarm Armed Home Mode & Motion Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_area_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: armed_home\n - condition: state\n entity_id: group.jd_computer\n state: 'off'\n actions:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motioned detected in the kitchen!'\n log_level: Normal\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "jd computer group", "room": "office", "type": "group", "id": { "entity_id": "group.jd_computer", "device_id": null } }, { "name": "kitchen area motion", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_area_motion", "device_id": null } } ] }, { "id": "'1617395256574'", "automation": "- id: '1617395256574'\n alias: 'Leo''s Room: Bed Occupied At Night'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.leos_bed_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: cover.leos_bedroom_blinds\n state: open\n - condition: time\n after: '18:30:00'\n - condition: state\n entity_id: input_boolean.enable_leos_blind_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_leos_bed_sensor\n state: 'on'\n actions:\n - action: script.send_to_home_log\n data:\n message: ':city_sunrise: :bed: Someone is in Leo''s bed. Closing blinds.'\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.leos_bedroom_window_contact\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':warning: :window: Leo''s bedroom window is still open. Waiting\n until it''s closed before closing blinds. :warning:'\n log_level: Normal\n default:\n - action: cover.close_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n - wait_for_trigger:\n - trigger: state\n entity_id: binary_sensor.leos_bedroom_window_contact\n to: 'off'\n timeout: 03:00:00\n - action: script.send_to_home_log\n data:\n message: ':white_check_mark: :window: Leo''s window closed. Closing blinds.'\n log_level: Normal\n - action: cover.close_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n mode: single", "config": [ { "name": "leos bed occupied", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bed_occupied", "device_id": null } }, { "name": "leos bedroom blinds", "room": "leos bedroom", "type": "cover", "id": { "entity_id": "cover.leos_bedroom_blinds", "device_id": null } }, { "name": "enable leos blind automations", "room": "leos bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_blind_automations", "device_id": null } }, { "name": "enable leos bed sensor", "room": "leos bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_bed_sensor", "device_id": null } }, { "name": "leos bedroom window contact", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bedroom_window_contact", "device_id": null } } ] }, { "id": "'1622973276606'", "automation": "- id: '1622973276606'\n alias: 'Office: Arm Office Door'\n description: ''\n triggers:\n - trigger: state\n entity_id: input_boolean.alarm_office_door\n from: 'off'\n to: 'on'\n condition: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.office_door_contact\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':warning: :alarm: Unable to arm office door because the door is\n not closed. Disabling alarm.'\n log_level: Normal\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.alarm_office_door\n default:\n - action: script.send_to_home_log\n data:\n message: ':bell: :door: Office door armed.'\n log_level: Normal\n mode: single", "config": [ { "name": "alarm office door", "room": "office", "type": "input_boolean", "id": { "entity_id": "input_boolean.alarm_office_door", "device_id": null } }, { "name": "office door contact", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_door_contact", "device_id": null } } ] }, { "id": "'1622973478458'", "automation": "- id: '1622973478458'\n alias: 'Office: Trigger Armed Door'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.office_door_contact\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.alarm_office_door\n state: 'on'\n actions:\n - action: script.send_to_home_log\n data:\n message: ':rotating_light: :door: Office door armed and was opened:rotating_light:'\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.alarm_office_door\n mode: queued\n max: 10", "config": [ { "name": "alarm office door", "room": "office", "type": "input_boolean", "id": { "entity_id": "input_boolean.alarm_office_door", "device_id": null } }, { "name": "office door contact", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_door_contact", "device_id": null } } ] }, { "id": "'1627509008928'", "automation": "- id: '1627509008928'\n alias: Enter No Children Mode\n description: ''\n triggers:\n - trigger: state\n entity_id: input_select.home_mode\n to: No Children\n condition: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':repeat: Entering No Children mode.'\n log_level: Normal\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } } ] }, { "id": "'1634576629865'", "automation": "- id: '1634576629865'\n alias: 'NFC Tag: Scanned Locked By User'\n description: ''\n triggers:\n - trigger: event\n event_type: tag_scanned\n context:\n user_id:\n - 06cbf6deafc54cf0beffa49552a396b1\n - 2df8a2a6e0be4d5d902aad2d39ed4c9b\n condition: []\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.tag_id == ''47e42f4c-3ffa-463f-ae2f-ed0b97a4fe9c''}}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':door: :label: Front door tag scanned by {{ states.person|selectattr(''attributes.user_id'',\n ''=='', trigger.event.context.user_id)|map(attribute=''attributes.friendly_name'')|first\n }}.'\n log_level: Normal\n - action: script.nfc_front_door\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.tag_id == ''8b6d6755-b4d5-4b23-8e8b-cf224d221bb7''}}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':door: :label: Bedroom right tag scanned by {{ states.person|selectattr(''attributes.user_id'',\n ''=='', trigger.event.context.user_id)|map(attribute=''attributes.friendly_name'')|first\n }}.'\n log_level: Normal\n - action: script.nfc_bedroom_right\n default: []\n mode: single", "config": [] }, { "id": "'1636203020481'", "automation": "- id: '1636203020481'\n alias: 'Porch: Some One Leaving'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.front_door\n from: 'off'\n to: 'on'\n condition: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.porch_motion_occupancy\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':door: Someone leaving.'\n - conditions:\n - condition: state\n entity_id: binary_sensor.porch_motion_occupancy\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':test_tube: :door: Someone entering.'\n log_level: Normal\n default: []\n mode: single", "config": [ { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "porch motion occupancy", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.porch_motion_occupancy", "device_id": null } } ] }, { "id": "'1647094935963'", "automation": "- id: '1647094935963'\n alias: Exit Naughty Step Mode\n description: ''\n triggers:\n - trigger: state\n entity_id: input_boolean.naughty_step_mode\n from: 'on'\n to: 'off'\n condition: []\n actions:\n - action: script.send_to_home_log\n data:\n message: Exiting naught step mode.\n log_level: Normal\n - action: input_boolean.turn_on\n data: {}\n target:\n entity_id:\n - input_boolean.enable_living_room_motion_triggers\n - input_boolean.enable_stairs_motion_triggers\n mode: single", "config": [ { "name": "naughty step mode", "room": "house", "type": "input_boolean", "id": { "entity_id": "input_boolean.naughty_step_mode", "device_id": null } }, { "name": "enable living room motion triggers", "room": "living room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_motion_triggers", "device_id": null } }, { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } } ] }, { "id": "'1653857006776'", "automation": "- id: '1653857006776'\n alias: 'Porch: Heating Turned On Check Entrances'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - climate.thermostat\n attribute: hvac_action\n to: heating\n from: idle\n condition:\n - condition: state\n entity_id: climate.thermostat\n state: auto\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.front_door\n state: 'on'\n sequence:\n - action: script.send_direct_notification\n data:\n message: Consider closing the front door or turning the heating off.\n title: 'Heating turned on and front :door: door is open.'\n default: []\n mode: single", "config": [ { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } } ] }, { "id": "'1659198098255'", "automation": "- id: '1659198098255'\n alias: 'House: Turn On Fake Presence'\n description: ''\n triggers:\n - trigger: sun\n event: sunset\n offset: 0\n - trigger: time_pattern\n hours: '17'\n minutes: /15\n - trigger: time_pattern\n hours: '18'\n minutes: /15\n - trigger: time_pattern\n hours: '19'\n minutes: /15\n - trigger: time_pattern\n hours: '20'\n minutes: /15\n - trigger: time_pattern\n hours: '21'\n minutes: /15\n - trigger: time_pattern\n hours: '22'\n minutes: /15\n condition:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: armed_away\n - condition: state\n entity_id: group.tracked_people\n state: not_home\n - condition: sun\n after: sunset\n after_offset: -02:00:00\n - or:\n - condition: template\n value_template: '{{ states(''sensor.terina_home_nearest_distance'')|float(0)\n > states(''input_number.long_distance_away_from_home'')|int(0) - 1 }}'\n - condition: template\n value_template: '{{ states(''sensor.danny_home_nearest_distance'')|float(0)\n > states(''input_number.long_distance_away_from_home'')|int(0) - 1 }}'\n actions:\n - action: script.send_to_home_log\n data:\n message: Changing lights to pretend someone is at home.\n log_level: Normal\n - action: script.downstairs_random_light\n data: {}\n - action: script.upstairs_random_lights\n data: {}\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "danny home nearest distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.danny_home_nearest_distance", "device_id": null } }, { "name": "long distance away from home", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.long_distance_away_from_home", "device_id": null } }, { "name": "terina home nearest distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.terina_home_nearest_distance", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } } ] }, { "id": "'1660326219450'", "automation": "- id: '1660326219450'\n alias: 'Weather: Morning Check For Hot Day Forecast'\n description: ''\n triggers:\n - trigger: time\n at: 09:00:00\n condition:\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n - condition: time\n weekday:\n - fri\n - thu\n - tue\n - mon\n - wed\n actions:\n - action: script.send_to_home_log\n data:\n message: Checking if hot water needs to be turned off.\n title: ':sun_small_cloud: Weather'\n log_level: Normal\n - action: script.set_how_water_to_away_mode\n data: {}\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } } ] }, { "id": "'1660326219451'", "automation": "- id: '1660326219451'\n alias: 'Weather: Afternoon Check For Hot Day Forecast'\n description: ''\n triggers:\n - trigger: time\n at: '14:00:00'\n condition:\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n - condition: time\n weekday:\n - fri\n - thu\n - tue\n - mon\n - wed\n - condition: state\n entity_id: input_boolean.enable_hot_water_automations\n state: 'on'\n actions:\n - action: script.send_to_home_log\n data:\n message: Checking if hot water needs to be turned on.\n title: ':sun_small_cloud: Weather'\n - action: script.set_hot_water_to_home_mode\n data: {}\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Enable Hot Water Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hot_water_automations", "device_id": null } } ] }, { "id": "'1674478124534'", "automation": "- id: '1674478124534'\n alias: 'Conservatory: Cold Temperature'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.conservatory_area_mean_temperature\n below: 3\n condition: []\n actions:\n - action: climate.set_preset_mode\n data:\n preset_mode: boost\n - action: script.send_to_home_log\n data:\n message: Conservatory fell below 3c. Boosting central heating.\n log_level: Normal\n mode: single", "config": [ { "name": "conservatory area mean temperature", "room": "conservatory", "type": "sensor", "id": { "entity_id": "sensor.conservatory_area_mean_temperature", "device_id": null } } ] }, { "id": "'1674916813112'", "automation": "- id: '1674916813112'\n alias: 'Bedroom: Lamps Off And Stairs Light On'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - light.bedroom_lamps\n from: 'on'\n to: 'off'\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: light.stairs\n state: 'on'\n - condition: state\n entity_id: light.stairs_2\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Bedroom light turned off. Turning stairs lights off.\n title: ':bed: Bedroom'\n debug: Debug\n - action: scene.turn_on\n data:\n transition: 2\n target:\n entity_id: scene.stairs_light_off\n mode: single", "config": [ { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "stairs 2 light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs_2", "device_id": null } }, { "name": "bedroom lamps", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_lamps", "device_id": null } }, { "name": "Stairs Light Off", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_off", "device_id": null } } ] }, { "id": "'1698342875093'", "automation": "- id: '1698342875093'\n alias: 'Kitchen: mmWave Turned On Whilst In Holiday Mode'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.kitchen_motion_mmwave_sensor\n to: 'on'\n condition:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n actions:\n - action: switch.turn_off\n data: {}\n target:\n entity_id: switch.kitchen_motion_mmwave_sensor\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Kitchen Motion mmWave Sensor", "room": "Kitchen", "type": "switch", "id": { "entity_id": "switch.kitchen_motion_mmwave_sensor", "device_id": null } } ] }, { "id": "'1618158789152'", "automation": "- id: '1618158789152'\n alias: 'Shed: Door Closed'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.shed_door\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - choose:\n - conditions:\n - not:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: disarmed\n - condition: state\n entity_id: binary_sensor.conservatory_door\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':door: Door closed. Keeping conservatory :camera: camera on because\n :bell: alarm is armed and conservatory door is open.'\n title: ':hut: Shed'\n log_level: Debug\n - conditions:\n - not:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: disarmed\n - condition: state\n entity_id: binary_sensor.conservatory_door\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':door: Door closed. Keeping conservatory camera on because :bell:\n alarm is armed.'\n title: ':hut: Shed'\n log_level: Debug\n - conditions:\n - condition: state\n entity_id: binary_sensor.conservatory_door\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':door: Door closed. Keeping conservatory :camera: camera on because\n conservatory :door: door is open.'\n title: ':hut: Shed'\n log_level: Debug\n - conditions:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: disarmed\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':door: Door closed. Turning conservatory :camera: camera off.'\n title: ':hut: Shed'\n log_level: Debug\n - conditions:\n - not:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: disarmed\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':door: Door closed. Keeping conservatory camera on because :bell:\n alarm is armed.'\n title: ':hut: Shed'\n log_level: Debug\n default: []\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "conservatory door", "room": "conservatory", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.conservatory_door", "device_id": null } }, { "name": "shed door", "room": "shed", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shed_door", "device_id": null } } ] }, { "id": "'1618158998129'", "automation": "- id: '1618158998129'\n alias: 'Shed: Motion Detected When Door Is Closed'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.shed_motion\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.shed_door\n state: 'off'\n actions:\n - action: script.send_direct_notification\n data:\n message: ':paw_prints: Motion detected in the shed and the door is shut.'\n title: ':hut: Shed'\n log_level: Debug\n mode: single", "config": [ { "name": "shed door", "room": "shed", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shed_door", "device_id": null } }, { "name": "shed motion", "room": "shed", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shed_motion", "device_id": null } } ] }, { "id": "'1660894232445'", "automation": "- id: '1660894232445'\n alias: 'Back Garden: Below Direct Sun Light'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.back_garden_motion_illuminance\n for:\n hours: 0\n minutes: 10\n seconds: 0\n below: input_number.close_blinds_brightness_threshold\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: Sun light has fallen below {{ states('input_number.close_blinds_brightness_threshold')\n }} ({{ states('sensor.back_garden_motion_illuminance') }}){{ state_attr('sensor.back_garden_motion_illuminance',\n 'unit_of_measurement') }}. Opening blinds/curtains.\n title: Back Garden\n log_level: Debug\n - if:\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n - condition: time\n before: input_datetime.childrens_bed_time\n then:\n - action: cover.open_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n mode: single", "config": [ { "name": "leos bedroom blinds", "room": "leos bedroom", "type": "cover", "id": { "entity_id": "cover.leos_bedroom_blinds", "device_id": null } }, { "name": "back garden motion illuminance", "room": "back garden", "type": "sensor", "id": { "entity_id": "sensor.back_garden_motion_illuminance", "device_id": null } }, { "name": "close blinds brightness threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.close_blinds_brightness_threshold", "device_id": null } }, { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } } ] }, { "id": "'1754227355547'", "automation": "- id: '1754227355547'\n alias: 'Bathroom: Motion Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.bathroom_motion_pir\n - binary_sensor.bathroom_motion_2_occupancy\n to: 'on'\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: light.bathroom_lights\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.bathroom_area_mean_light_level\n above: input_number.bathroom_light_level_threshold\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected but it''s too bright ( {{ states(''sensor.bathroom_area_mean_light_level'')\n }} > {{ states(''input_number.bathroom_light_level_threshold'') }}). Skipping\n turning on lights.'\n title: ':bathtub: Bathroom'\n debug: Debug\n - conditions:\n - condition: state\n entity_id: light.bathroom_lights\n state: 'off'\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected. Turning :bulb: light on.'\n title: ':bathtub: Bathroom'\n debug: Debug\n - action: light.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: light.bathroom_lights\n default:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected and :bulb: light is already on.'\n title: ':bathtub: Bathroom'\n debug: Debug\n - action: timer.cancel\n target:\n entity_id: timer.bathroom_light\n data: {}\n mode: single", "config": [ { "name": "bathroom motion pir", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bathroom_motion_pir", "device_id": null } }, { "name": "bathroom motion 2 occupancy", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bathroom_motion_2_occupancy", "device_id": null } }, { "name": "bathroom lights", "room": "bathroom", "type": "light", "id": { "entity_id": "light.bathroom_lights", "device_id": null } }, { "name": "bathroom area mean light level", "room": "bathroom", "type": "sensor", "id": { "entity_id": "sensor.bathroom_area_mean_light_level", "device_id": null } }, { "name": "bathroom light level threshold", "room": "bathroom", "type": "input_number", "id": { "entity_id": "input_number.bathroom_light_level_threshold", "device_id": null } }, { "name": "bathroom light timer", "room": "bathroom", "type": "timer", "id": { "entity_id": "timer.bathroom_light", "device_id": null } } ] }, { "id": "'1754227694151'", "automation": "- id: '1754227694151'\n alias: 'Bathroom: No Motion Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.bathroom_area_motion\n to: 'off'\n for:\n hours: 0\n minutes: 3\n seconds: 0\n conditions: []\n actions:\n - choose:\n - alias: Door closed\n conditions:\n - condition: state\n entity_id: binary_sensor.bathroom_door_contact\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion detected and door closed. Skipping\n turning :bulb: light off.'\n title: ':bathtub: Bathroom'\n debug: Debug\n default:\n - choose:\n - alias: After midnight\n conditions:\n - condition: time\n after: 00:00:00\n - condition: time\n before: 06:00:00\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion detected. Starting night :hourglass_flowing_sand:\n timer.'\n title: ':bathtub: Bathroom'\n debug: Debug\n - action: timer.start\n target:\n entity_id: timer.bathroom_light\n data:\n duration: 00:02:00\n default:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion detected. Starting :hourglass_flowing_sand:\n timer.'\n title: ':bathtub: Bathroom'\n debug: Debug\n - action: timer.start\n target:\n entity_id: timer.bathroom_light\n data:\n duration: 00:05:00\n mode: single", "config": [ { "name": "bathroom light timer", "room": "bathroom", "type": "timer", "id": { "entity_id": "timer.bathroom_light", "device_id": null } }, { "name": "bathroom area motion", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bathroom_area_motion", "device_id": null } }, { "name": "bathroom door contact", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bathroom_door_contact", "device_id": null } } ] }, { "id": "'1754254675071'", "automation": "- id: '1754254675071'\n alias: 'Bathroom: Light Turned Off'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - light.bathroom_lights\n to: 'off'\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':bulb: Lights turned off. Cancelling light timer.'\n title: ':bathtub: Bathroom'\n debug: Debug\n - action: timer.cancel\n target:\n entity_id: timer.bathroom_light\n data: {}\n mode: single", "config": [ { "name": "bathroom lights", "room": "bathroom", "type": "light", "id": { "entity_id": "light.bathroom_lights", "device_id": null } }, { "name": "bathroom light timer", "room": "bathroom", "type": "timer", "id": { "entity_id": "timer.bathroom_light", "device_id": null } } ] }, { "id": "'1754254675073'", "automation": "- id: '1754254675073'\n alias: 'Bathroom: Light Switch Toggled'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.bathroom_light_input_0\n conditions: []\n actions:\n - delay:\n seconds: 1\n - choose:\n - conditions:\n - condition: state\n entity_id: light.bathroom_lights\n state: 'on'\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Light switch used\n title: ':bathtub: Bathroom'\n debug: Debug\n - action: timer.cancel\n target:\n entity_id: timer.bathroom_light\n data: {}\n default: []\n mode: single", "config": [ { "name": "bathroom lights", "room": "bathroom", "type": "light", "id": { "entity_id": "light.bathroom_lights", "device_id": null } }, { "name": "bathroom light timer", "room": "bathroom", "type": "timer", "id": { "entity_id": "timer.bathroom_light", "device_id": null } }, { "name": "bathroom light input 0", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bathroom_light_input_0", "device_id": null } } ] }, { "id": "'1754254675072'", "automation": "- id: '1754254675072'\n alias: 'Bathroom: Light Timer Finished'\n description: ''\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.bathroom_light\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':bulb: Light timer finished. Turning off lights.'\n title: ':bathtub: Bathroom'\n debug: Debug\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: light.bathroom_lights\n mode: single", "config": [ { "name": "bathroom lights", "room": "bathroom", "type": "light", "id": { "entity_id": "light.bathroom_lights", "device_id": null } }, { "name": "bathroom light timer", "room": "bathroom", "type": "timer", "id": { "entity_id": "timer.bathroom_light", "device_id": null } } ] }, { "id": "'1680461746985'", "automation": "- id: '1680461746985'\n alias: 'Bathroom: High Humidity'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.bathroom_motion_humidity\n for:\n hours: 0\n minutes: 30\n seconds: 0\n above: 59.9\n conditions:\n - condition: state\n entity_id: binary_sensor.bathroom_window_contact\n state: 'off'\n actions:\n - action: script.send_direct_notification\n data:\n message: High Humidity ({{ states('sensor.bathroom_motion_humidity') }} > 59.9%)\n and window is closed.\n title: ':bathtub: Bathroom'\n log_level: Debug\n people:\n entity_id:\n - person.danny\n - person.terina\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "bathroom motion humidity", "room": "bathroom", "type": "sensor", "id": { "entity_id": "sensor.bathroom_motion_humidity", "device_id": null } }, { "name": "bathroom window contact", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bathroom_window_contact", "device_id": null } } ] }, { "id": "'1601641236163'", "automation": "- id: '1601641236163'\n alias: 'Bedroom: Close Blinds When Someone Is In Bed After Sunset'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.bed_occupied\n from: 'off'\n to: 'on'\n for: 00:00:30\n conditions:\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n above: input_number.blind_open_position_threshold\n - condition: state\n entity_id: input_boolean.enable_bedroom_blind_automations\n state: 'on'\n - condition: sun\n after: sunset\n - condition: state\n entity_id: binary_sensor.bedroom_window_contact\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_bed_sensor\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':sleeping_accommodation: Someone is in bed, :window: window is closed\n and it''s getting late. Closing blinds.'\n title: ':bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.bedroom_blinds\n mode: single", "config": [ { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "bed occupied", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bed_occupied", "device_id": null } }, { "name": "blind open position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_open_position_threshold", "device_id": null } }, { "name": "enable bedroom blind automations", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_blind_automations", "device_id": null } }, { "name": "bedroom window contact", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_window_contact", "device_id": null } }, { "name": "enable bed sensor", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bed_sensor", "device_id": null } } ] }, { "id": "'1600127180656'", "automation": "- id: '1600127180656'\n alias: 'Bedroom: Close Blinds Before Sunrise'\n description: ''\n triggers:\n - trigger: sun\n event: sunrise\n offset: -02:00:00\n conditions:\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n above: input_number.blind_open_position_threshold\n - condition: state\n entity_id: input_boolean.enable_bedroom_blind_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bedroom_window_contact\n state: 'off'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :sunrise: Bedroom\n blind is open and it''s nearly sunrise. Closing blinds.'\n title: ':bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.bedroom_blinds\n mode: single", "config": [ { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "blind open position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_open_position_threshold", "device_id": null } }, { "name": "enable bedroom blind automations", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_blind_automations", "device_id": null } }, { "name": "bedroom window contact", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_window_contact", "device_id": null } } ] }, { "id": "'1622667464880'", "automation": "- id: '1622667464880'\n alias: 'Bedroom: Window Closed At Night'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.bedroom_window_contact\n from: 'on'\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_bedroom_blind_automations\n state: 'on'\n - condition: sun\n after: sunset\n - condition: sun\n before: sunrise\n - not:\n - condition: state\n entity_id: cover.bedroom_blinds\n state: closed\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':window: Window closed and it''s after :city_sunset: sunset. Closing\n blinds.'\n title: ':bed: bedroom'\n log_level: Debug\n - action: cover.set_cover_position\n data:\n position: 50\n mode: single", "config": [ { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "enable bedroom blind automations", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_blind_automations", "device_id": null } }, { "name": "bedroom window contact", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_window_contact", "device_id": null } } ] }, { "id": "'1615689096351'", "automation": "- id: '1615689096351'\n alias: 'Bedroom: Window Closed And Someone Is In Bed At Night'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.bedroom_window_contact\n from: 'on'\n to: 'off'\n for: 00:00:30\n conditions:\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n above: input_number.blind_open_position_threshold\n - condition: state\n entity_id: input_boolean.enable_bedroom_blind_automations\n state: 'on'\n - condition: sun\n after: sunset\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_bed_sensor\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bed_occupied\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':sleeping_accommodation: :window: Window shut, someone is in\n bed ({{states(''sensor.bed_sensor'')}}) and it''s after :city_sunset:\n sunset. Closing blinds.'\n title: ':bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.bedroom_blinds\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_bed_sensor\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':sleeping_accommodation: :window: Bedroom window shut, someone\n is in bed ({{states(''sensor.bed_sensor'')}}) and it''s after :city_sunset:\n sunset. Closing blinds.'\n title: ':bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.bedroom_blinds\n default: []\n mode: single", "config": [ { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "bed occupied", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bed_occupied", "device_id": null } }, { "name": "blind open position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_open_position_threshold", "device_id": null } }, { "name": "enable bedroom blind automations", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_blind_automations", "device_id": null } }, { "name": "bedroom window contact", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_window_contact", "device_id": null } }, { "name": "enable bed sensor", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bed_sensor", "device_id": null } }, { "name": "bed sensor", "room": "bedroom", "type": "sensor", "id": { "entity_id": "sensor.bed_sensor", "device_id": null } } ] }, { "id": "'1601641292576'", "automation": "- id: '1601641292576'\n alias: 'Bedroom: Open Blind When No One Is In Bed'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.bed_occupied\n from: 'on'\n to: 'off'\n for: 00:00:30\n conditions:\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n - condition: sun\n after: sunrise\n after_offset: -01:00:00\n before: sunset\n - condition: state\n entity_id: input_boolean.enable_bedroom_blind_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_bed_sensor\n state: 'on'\n actions:\n - delay: 00:01:00\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'No one is in :bed: bed ({{states(''sensor.bed_sensor'')}}). Opening\n the blinds.\"'\n title: ':bed: bedroom'\n log_level: Debug\n - action: cover.open_cover\n target:\n entity_id: cover.bedroom_blinds\n mode: single", "config": [ { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } }, { "name": "bed occupied", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bed_occupied", "device_id": null } }, { "name": "enable bedroom blind automations", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_blind_automations", "device_id": null } }, { "name": "enable bed sensor", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bed_sensor", "device_id": null } }, { "name": "bed sensor", "room": "bedroom", "type": "sensor", "id": { "entity_id": "sensor.bed_sensor", "device_id": null } } ] }, { "id": "'1715955339483'", "automation": "- id: '1715955339483'\n alias: 'Bedroom: Door Closed'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.bedroom_door_contact\n to: 'off'\n for:\n seconds: 10\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.leos_bedroom_door_contact\n state: 'off'\n - condition: state\n entity_id: binary_sensor.ashlees_bedroom_door_contact\n state: 'off'\n - condition: state\n entity_id: binary_sensor.upstairs_area_motion\n state: 'off'\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':door: door closed.'\n title: ':bed: bedroom'\n log_level: Debug\n - if:\n - condition: state\n entity_id: light.stairs\n state: 'on'\n then:\n - action: light.turn_off\n metadata: {}\n data:\n transition: 1\n target:\n entity_id: light.stairs\n - if:\n - condition: state\n entity_id: light.stairs_ambient\n state: 'on'\n then:\n - action: light.turn_off\n metadata: {}\n data:\n transition: 1\n target:\n entity_id: light.stairs_ambient\n - if:\n - condition: state\n entity_id: light.stairs_2\n state: 'on'\n then:\n - action: light.turn_off\n metadata: {}\n data:\n transition: 1\n target:\n entity_id: light.stairs_2\n mode: single", "config": [ { "name": "bedroom door contact", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_door_contact", "device_id": null } }, { "name": "leos bedroom door contact", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bedroom_door_contact", "device_id": null } }, { "name": "ashlees bedroom door contact", "room": "ashlees bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ashlees_bedroom_door_contact", "device_id": null } }, { "name": "upstairs area motion", "room": "upstairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_area_motion", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "stairs ambient light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs_ambient", "device_id": null } }, { "name": "stairs 2 light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs_2", "device_id": null } } ] }, { "id": "'1615209552353'", "automation": "- id: '1615209552353'\n alias: 'Bedroom: Other Bedroom Door Opens Warning'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.leos_bedroom_door_contact\n from: 'off'\n to: 'on'\n id: leo\n - trigger: state\n entity_id: binary_sensor.ashlees_bedroom_door_contact\n id: ashlee\n from: 'off'\n to: 'on'\n conditions:\n - or:\n - condition: state\n entity_id: light.bedroom_lamps\n state: 'on'\n - condition: state\n entity_id: light.bedroom_main_light\n state: 'on'\n - condition: time\n after: input_datetime.childrens_bed_time\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: Guest\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_bed_sensor\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bed_occupied\n state: 'on'\n - condition: trigger\n id: leo\n sequence:\n - action: script.other_bedroom_door_opening_warning\n data:\n bedroom: leo\n - conditions:\n - condition: sun\n after: sunset\n - condition: trigger\n id: leo\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':boy: :door: Leo''s door opened and bedroom light is on. Sending\n warning.'\n log_level: Debug\n - action: script.other_bedroom_door_opening_warning\n data:\n bedroom: leo\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_bed_sensor\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bed_occupied\n state: 'on'\n - condition: trigger\n id: ashlee\n sequence:\n - action: script.other_bedroom_door_opening_warning\n data:\n bedroom: ashlee\n - conditions:\n - condition: sun\n after: sunset\n - condition: trigger\n id: ashlee\n sequence:\n - action: script.other_bedroom_door_opening_warning\n data:\n bedroom: ashlee\n default: []\n mode: queued\n max: 10", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "bed occupied", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bed_occupied", "device_id": null } }, { "name": "enable bed sensor", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bed_sensor", "device_id": null } }, { "name": "leos bedroom door contact", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bedroom_door_contact", "device_id": null } }, { "name": "ashlees bedroom door contact", "room": "ashlees bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ashlees_bedroom_door_contact", "device_id": null } }, { "name": "bedroom lamps", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_lamps", "device_id": null } }, { "name": "bedroom main light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_main_light", "device_id": null } } ] }, { "id": "'1615209552354'", "automation": "- id: '1615209552354'\n alias: 'Bedroom: Other Bedroom Door Closes Warning'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.leos_bedroom_door_contact\n from: 'on'\n to: 'off'\n id: leo\n - trigger: state\n entity_id: binary_sensor.ashlees_bedroom_door_contact\n id: ashlee\n from: 'on'\n to: 'off'\n conditions:\n - condition: state\n entity_id: light.bedroom_lamps\n state: 'on'\n - condition: time\n after: input_datetime.childrens_bed_time\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: Guest\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_bed_sensor\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bed_occupied\n state: 'on'\n - condition: trigger\n id: leo\n sequence:\n - action: script.other_bedroom_door_closes_warning\n data:\n bedroom: leo\n - conditions:\n - condition: sun\n after: sunset\n - condition: trigger\n id: leo\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':boy: :door: Leo''s door opened and bedroom light is on. Sending\n warning.'\n log_level: Debug\n - action: script.other_bedroom_door_closes_warning\n data:\n bedroom: leo\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_bed_sensor\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bed_occupied\n state: 'on'\n - condition: trigger\n id: ashlee\n sequence:\n - action: script.other_bedroom_door_closes_warning\n data:\n bedroom: ashlee\n - conditions:\n - condition: sun\n after: sunset\n - condition: trigger\n id: ashlee\n sequence:\n - action: script.other_bedroom_door_closes_warning\n data:\n bedroom: ashlee\n default: []\n mode: queued\n max: 10", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "bed occupied", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bed_occupied", "device_id": null } }, { "name": "enable bed sensor", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bed_sensor", "device_id": null } }, { "name": "leos bedroom door contact", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bedroom_door_contact", "device_id": null } }, { "name": "ashlees bedroom door contact", "room": "ashlees bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ashlees_bedroom_door_contact", "device_id": null } }, { "name": "bedroom lamps", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_lamps", "device_id": null } } ] }, { "id": "'1724001157269'", "automation": "- id: '1724001157269'\n alias: 'Bedroom: Pause TV When Door Opens At Night'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.bedroom_door_contact\n from: 'off'\n to: 'on'\n conditions:\n - or:\n - condition: time\n after: '22:00:00'\n - condition: time\n before: 02:00:00\n - condition: state\n entity_id: media_player.bedroom_tv\n state: playing\n - not:\n - condition: state\n entity_id: media_player.bedroom_tv\n attribute: app_name\n state: BBC iPlayer\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'Door opened and :tv: TV was playing. Pausing TV.'\n title: ':bed: bedroom'\n log_level: Debug\n - action: media_player.media_play_pause\n target:\n entity_id: media_player.bedroom_tv\n data: {}\n mode: single", "config": [ { "name": "bedroom door contact", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_door_contact", "device_id": null } }, { "name": "bedroom tv", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.bedroom_tv", "device_id": null } } ] }, { "id": "'1621713217274'", "automation": "- id: '1621713217274'\n alias: 'Bedroom: Motion Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.bedroom_motion_occupancy\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_bedroom_motion_trigger\n state: 'on'\n - or:\n - condition: template\n value_template: '{{ state_attr(''light.under_bed_left'',''brightness'') == none\n }}'\n - condition: template\n value_template: '{{ state_attr(''light.under_bed_right'',''brightness'') ==\n none }}'\n - condition: numeric_state\n entity_id: light.under_bed_left\n below: '100'\n attribute: brightness\n - condition: numeric_state\n entity_id: light.under_bed_right\n below: '100'\n attribute: brightness\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n below: '31'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected and the blinds are down. Dimming\n ambient :bulb: :low_brightness: lights.'\n title: ':bed: bedroom'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.bedroom_dim_ambient_light\n - conditions:\n - condition: time\n after: 08:00:00\n - condition: sun\n before: sunset\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected at :city_sunrise: sunrise. Turning\n ambient :bulb: :high_brightness: lights on.'\n title: ':bed: bedroom'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.bedroom_turn_on_ambient_light\n - conditions:\n - or:\n - condition: sun\n after: sunset\n - condition: time\n before: 08:00:00\n - condition: state\n entity_id: input_boolean.enable_bedroom_motion_trigger\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected after :city_sunset: sunset. :bulb:\n :low_brightness: Dimming ambient lights.'\n title: ':bed: bedroom'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.bedroom_dim_ambient_light\n default: []\n - if:\n - condition: state\n entity_id: light.bedroom_clock_matrix\n state: 'off'\n then:\n - action: light.turn_on\n data: {}\n target:\n entity_id: light.bedroom_clock_matrix\n mode: single", "config": [ { "name": "under bed left light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.under_bed_left", "device_id": null } }, { "name": "under bed right light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.under_bed_right", "device_id": null } }, { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "bedroom motion occupancy", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_motion_occupancy", "device_id": null } }, { "name": "enable bedroom motion trigger", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_motion_trigger", "device_id": null } }, { "name": "bedroom clock matrix", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_clock_matrix", "device_id": null } }, { "name": "Bedroom Dim Ambient Light", "room": "Bedroom", "type": "scene", "id": { "entity_id": "scene.bedroom_dim_ambient_light", "device_id": null } }, { "name": "Bedroom Turn On Ambient Light", "room": "Bedroom", "type": "scene", "id": { "entity_id": "scene.bedroom_turn_on_ambient_light", "device_id": null } } ] }, { "id": "'1621713867762'", "automation": "- id: '1621713867762'\n alias: 'Bedroom: No Motion'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.bedroom_motion_occupancy\n from: 'on'\n to: 'off'\n for: 00:02:00\n conditions:\n - or:\n - condition: state\n entity_id: light.under_bed_left\n state: 'on'\n - condition: state\n entity_id: light.under_bed_right\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_bedroom_motion_trigger\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion detected For 1 minute. Turning ambient\n lights off.'\n title: ' :bed: Bedroom'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.bedroom_turn_off_ambient_light\n mode: single", "config": [ { "name": "under bed left light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.under_bed_left", "device_id": null } }, { "name": "under bed right light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.under_bed_right", "device_id": null } }, { "name": "bedroom motion occupancy", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_motion_occupancy", "device_id": null } }, { "name": "enable bedroom motion trigger", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_motion_trigger", "device_id": null } }, { "name": "Bedroom Turn Off Ambient Light", "room": "Bedroom", "type": "scene", "id": { "entity_id": "scene.bedroom_turn_off_ambient_light", "device_id": null } } ] }, { "id": "'1621713867763'", "automation": "- id: '1621713867763'\n alias: 'Bedroom: No Motion For Long Time'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.bedroom_area_motion\n from: 'on'\n to: 'off'\n for: 00:30:00\n conditions:\n - condition: state\n entity_id: light.bedroom_lamps\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_bedroom_motion_trigger\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion detected For 1 hour. Turning clock off.'\n title: ' :bed: Bedroom'\n log_level: Debug\n - action: light.turn_off\n data: {}\n target:\n entity_id: light.bedroom_clock_matrix\n mode: single", "config": [ { "name": "enable bedroom motion trigger", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_motion_trigger", "device_id": null } }, { "name": "bedroom clock matrix", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_clock_matrix", "device_id": null } }, { "name": "bedroom lamps", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_lamps", "device_id": null } }, { "name": "Bedroom Area Motion", "room": "Bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_area_motion", "device_id": null } } ] }, { "id": "'1725207477313'", "automation": "- id: '1725207477313'\n alias: 'Bedroom: No Motion And Fan Is On'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.bedroom_motion_3_presence\n to: 'off'\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions:\n - condition: state\n entity_id: switch.bedroom_fan\n state: 'on'\n actions:\n - parallel:\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.bedroom_fan\n mode: single", "config": [ { "name": "bedroom motion 3 presence", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_motion_3_presence", "device_id": null } }, { "name": "bedroom fan", "room": "bedroom", "type": "switch", "id": { "entity_id": "switch.bedroom_fan", "device_id": null } } ] }, { "id": "'1690844451011'", "automation": "- id: '1690844451011'\n alias: 'Bedroom: Turn Off Fan'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.bedroom_fan\n to: 'on'\n for:\n hours: 2\n minutes: 0\n seconds: 0\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Bedroom light turned off. Turning stairs lights off.\n title: ':bed: Bedroom'\n log_level: Debug\n - action: switch.turn_off\n data: {}\n target:\n entity_id: switch.bedroom_fan\n mode: single", "config": [ { "name": "bedroom fan", "room": "bedroom", "type": "switch", "id": { "entity_id": "switch.bedroom_fan", "device_id": null } } ] }, { "id": "'1621875409014'", "automation": "- id: '1621875409014'\n alias: 'Bedroom: Morning Timed Open Blinds'\n description: 'TODO: Take into account high temperature.'\n triggers:\n - trigger: time\n at: 08:00:00\n id: workday\n - trigger: time\n at: 08:30:00\n id: 083000\n - trigger: time\n at: 09:00:00\n id: 090000\n - trigger: time\n at: 09:30:00\n id: 093000\n conditions:\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n below: input_number.bedroom_blind_closed_threshold\n - condition: state\n entity_id: input_boolean.enable_bedroom_blind_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bedroom_tv_powered_on\n state: 'off'\n actions:\n - choose:\n - conditions:\n - alias: Working day\n condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - alias: No annual leave in calendar\n condition: template\n value_template: '{{ ''Danny'' not in state_attr(''calendar.work'',''message'')|string\n and ''A/L'' not in state_attr(''calendar.work'',''message'')|string and\n states(''calendar.work'') == ''off'' }}'\n sequence:\n - action: cover.open_cover\n target:\n entity_id: cover.bedroom_blinds\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Opening blinds\n because it''s closed on a working weekday!\"'\n title: ':bed: bedroom'\n log_level: Debug\n - alias: Non workday and no children\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'off'\n alias: Non working day\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: trigger\n id: 090000\n sequence:\n - action: cover.open_cover\n target:\n entity_id: cover.bedroom_blinds\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Opening blinds\n because it''s closed and its 09:00 on a weekend!\"'\n title: ':bed: bedroom'\n log_level: Debug\n - alias: Non workday and no children\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'off'\n alias: Non working day\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: trigger\n id: 093000\n sequence:\n - action: cover.open_cover\n target:\n entity_id: cover.bedroom_blinds\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Opening blinds\n because it''s closed, there are no children and its 09:30 on a weekend!\"'\n title: ':bed: bedroom'\n log_level: Debug\n - conditions:\n - condition: trigger\n id: 093000\n sequence:\n - action: cover.open_cover\n target:\n entity_id: cover.bedroom_blinds\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Opening blinds\n because it''s closed and its 09:30!\"'\n title: ':bed: bedroom'\n log_level: Debug\n default: []\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "enable bedroom blind automations", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_blind_automations", "device_id": null } }, { "name": "workday sensor", "room": "house", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "bedroom tv powered on", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_tv_powered_on", "device_id": null } }, { "name": "bedroom blind closed threshold", "room": "bedroom", "type": "input_number", "id": { "entity_id": "input_number.bedroom_blind_closed_threshold", "device_id": null } }, { "name": "work calendar", "room": "house", "type": "calendar", "id": { "entity_id": "calendar.work", "device_id": null } } ] }, { "id": "'1621875567853'", "automation": "- id: '1621875567853'\n alias: 'Bedroom: Evening Timed Close Blinds'\n description: ''\n triggers:\n - trigger: time\n at: '22:00:00'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_bedroom_blind_automations\n state: 'on'\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n above: input_number.blind_closed_position_threshold\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: It''s after\n :city_sunset: sunset, closing bedroom''s blinds.'\n title: ':bed: bedroom'\n log_level: Debug\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.bedroom_window_contact\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':window: Window is still open. Waiting until it''s closed before\n closing blinds.'\n title: ':bed: bedroom'\n log_level: Debug\n default:\n - action: cover.close_cover\n target:\n entity_id: cover.bedroom_blinds\n mode: single", "config": [ { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } }, { "name": "enable bedroom blind automations", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_blind_automations", "device_id": null } }, { "name": "bedroom window contact", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_window_contact", "device_id": null } } ] }, { "id": "'1624194131454'", "automation": "- id: '1624194131454'\n alias: 'Bedroom: TV Turned On During Bright Day'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.bedroom_tv_powered_on\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_bedroom_blind_automations\n state: 'on'\n - condition: sun\n before: sunset\n after: sunrise\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n above: input_number.blind_open_position_threshold\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_direct_notifications\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bedroom_window_contact\n state: 'on'\n sequence:\n - action: script.send_actionable_notification_with_2_buttons\n data:\n message: Do you want to close the blinds?\n title: 📺🛌TV On & Window Is Open\n people:\n entity_id:\n - person.danny\n action1_title: 'Yes'\n action1_name: set_bedroom_blinds_30\n action2_title: 'No'\n action2_name: ignore\n - conditions:\n - condition: state\n entity_id: binary_sensor.bedroom_window_contact\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':bed: Bedroom :tv: TV turned on and it''s bright. Lowering bedroom\n blinds.'\n title: ':bed: bedroom'\n log_level: Debug\n - action: cover.set_cover_position\n target:\n entity_id: cover.bedroom_blinds\n data:\n position: 20\n default: []\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "blind open position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_open_position_threshold", "device_id": null } }, { "name": "enable bedroom blind automations", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_blind_automations", "device_id": null } }, { "name": "bedroom window contact", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_window_contact", "device_id": null } }, { "name": "bedroom tv powered on", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_tv_powered_on", "device_id": null } }, { "name": "Enable Direct Notifications", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_direct_notifications", "device_id": null } } ] }, { "id": "'1699308571385'", "automation": "- id: '1699308571385'\n alias: 'Bedroom: Remote Button 1'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 61ab87aac9c81fe8687771074e560f48\n type: action\n subtype: button_1_press_release\n conditions: []\n actions:\n - action: light.toggle\n data: {}\n target:\n entity_id: light.bedroom_main_light\n mode: single", "config": [ { "name": "bedroom main light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_main_light", "device_id": null } }, { "name": "Bedroom Remote Device", "room": "Bedroom", "type": "device", "id": { "entity_id": "61ab87aac9c81fe8687771074e560f48", "device_id": "61ab87aac9c81fe8687771074e560f48" } } ] }, { "id": "'1699308571386'", "automation": "- id: '1699308571386'\n alias: 'Bedroom: Remote Button 2'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 61ab87aac9c81fe8687771074e560f48\n type: action\n subtype: button_2_press_release\n conditions: []\n actions:\n - if:\n - condition: state\n entity_id: light.bedroom_lamps\n state: 'off'\n then:\n - action: scene.turn_on\n target:\n entity_id: scene.bedroom_desk_lamps_on\n data:\n transition: 1\n else:\n - action: light.turn_off\n target:\n entity_id:\n - light.bedroom_lamps\n - light.under_bed_left\n - light.under_bed_right\n data: {}\n mode: single", "config": [ { "name": "under bed left light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.under_bed_left", "device_id": null } }, { "name": "under bed right light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.under_bed_right", "device_id": null } }, { "name": "bedroom lamps", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_lamps", "device_id": null } }, { "name": "Bedroom Remote Device", "room": "Bedroom", "type": "device", "id": { "entity_id": "61ab87aac9c81fe8687771074e560f48", "device_id": "61ab87aac9c81fe8687771074e560f48" } }, { "name": "Bedroom Desk Lamps On", "room": "Bedroom", "type": "scene", "id": { "entity_id": "scene.bedroom_desk_lamps_on", "device_id": null } } ] }, { "id": "'1699308571387'", "automation": "- id: '1699308571387'\n alias: 'Bedroom: Remote Button 3'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 61ab87aac9c81fe8687771074e560f48\n type: action\n subtype: button_3_press_release\n conditions: []\n actions:\n - action: cover.open_cover\n target:\n entity_id: cover.bedroom_blinds\n data: {}\n mode: single", "config": [ { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "Bedroom Remote Device", "room": "Bedroom", "type": "device", "id": { "entity_id": "61ab87aac9c81fe8687771074e560f48", "device_id": "61ab87aac9c81fe8687771074e560f48" } } ] }, { "id": "'1699308571388'", "automation": "- id: '1699308571388'\n alias: 'Bedroom: Remote Button 4'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 61ab87aac9c81fe8687771074e560f48\n type: action\n subtype: button_4_press_release\n conditions: []\n actions:\n - action: cover.close_cover\n target:\n entity_id: cover.bedroom_blinds\n data: {}\n mode: single", "config": [ { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "Bedroom Remote Device", "room": "Bedroom", "type": "device", "id": { "entity_id": "61ab87aac9c81fe8687771074e560f48", "device_id": "61ab87aac9c81fe8687771074e560f48" } } ] }, { "id": "'1710079376648'", "automation": "- id: '1710079376648'\n alias: 'Bedroom: Remote Dial Action Right'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 61ab87aac9c81fe8687771074e560f48\n type: action\n subtype: dial_rotate_right_slow\n - trigger: device\n domain: mqtt\n device_id: 61ab87aac9c81fe8687771074e560f48\n type: action\n subtype: dial_rotate_right_step\n - trigger: device\n domain: mqtt\n device_id: 61ab87aac9c81fe8687771074e560f48\n type: action\n subtype: brightness_step_up\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.bedroom_dial_remote_action_time'')|float(15)\n > 0}}'\n actions:\n - action: light.turn_on\n metadata: {}\n data:\n brightness: '{{ iif((state_attr(''light.bedroom_lamps'', ''brightness'')|int(0)\n + (states(''sensor.bedroom_dial_remote_action_time'')|float(15)*2)) > 255,\n 255, state_attr(''light.bedroom_lamps'', ''brightness'')|int(0) + states(''sensor.bedroom_dial_remote_action_time'')|float(15)*2)\n }}'\n transition: 1\n target:\n entity_id:\n - light.bedroom_lamps\n mode: queued\n max: 10", "config": [ { "name": "bedroom lamps", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_lamps", "device_id": null } }, { "name": "bedroom dial remote action time", "room": "bedroom", "type": "sensor", "id": { "entity_id": "sensor.bedroom_dial_remote_action_time", "device_id": null } }, { "name": "Bedroom Remote Device", "room": "Bedroom", "type": "device", "id": { "entity_id": "61ab87aac9c81fe8687771074e560f48", "device_id": "61ab87aac9c81fe8687771074e560f48" } } ] }, { "id": "'1710079376649'", "automation": "- id: '1710079376649'\n alias: 'Bedroom: Remote Dial Action Left'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 61ab87aac9c81fe8687771074e560f48\n type: action\n subtype: dial_rotate_left_slow\n - trigger: device\n domain: mqtt\n device_id: 61ab87aac9c81fe8687771074e560f48\n type: action\n subtype: dial_rotate_left_step\n - trigger: device\n domain: mqtt\n device_id: 61ab87aac9c81fe8687771074e560f48\n type: action\n subtype: brightness_step_down\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.bedroom_dial_remote_action_time'')|float(15)\n > 0}}'\n actions:\n - action: light.turn_on\n metadata: {}\n data:\n brightness: '{%- if states(''sensor.bedroom_dial_remote_action_time'')|float(15)*2\n > state_attr(''light.bedroom_lamps'', ''brightness'')|int(0) -%} 0 {%- else\n -%} {{ state_attr(''light.bedroom_lamps'', ''brightness'')|int(0) - (states(''sensor.bedroom_dial_remote_action_time'')|float(15)*2)\n }} {%-endif-%}'\n transition: 1\n target:\n entity_id:\n - light.bedroom_lamps\n mode: queued\n max: 10", "config": [ { "name": "bedroom lamps", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_lamps", "device_id": null } }, { "name": "bedroom dial remote action time", "room": "bedroom", "type": "sensor", "id": { "entity_id": "sensor.bedroom_dial_remote_action_time", "device_id": null } }, { "name": "Bedroom Remote Device", "room": "Bedroom", "type": "device", "id": { "entity_id": "61ab87aac9c81fe8687771074e560f48", "device_id": "61ab87aac9c81fe8687771074e560f48" } } ] }, { "id": "'1624194439043'", "automation": "- id: '1624194439043'\n alias: 'Bedroom: TV Turned Off'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.bedroom_tv_powered_on\n from: 'on'\n to: 'off'\n for: 00:01:00\n conditions:\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n below: input_number.bedroom_blind_closed_threshold\n - condition: state\n entity_id: input_boolean.enable_bedroom_blind_automations\n state: 'on'\n - condition: sun\n before: sunset\n - condition: sun\n after: sunrise\n - condition: time\n after: 08:30\n actions:\n - action: weather.get_forecasts\n target:\n entity_id: weather.home\n data:\n type: hourly\n response_variable: weather\n - choose:\n - conditions:\n - or:\n - condition: numeric_state\n entity_id: weather.home\n attribute: temperature\n above: input_number.forecast_high_temperature\n - condition: template\n value_template: '{{ weather[''weather.home''].forecast[1].temperature >\n states(''input_number.forecast_high_temperature'')|float(25) }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':tv: TV turned off but above weather is above {{ states(''input_number.forecast_high_temperature'')\n }} ( {%- if state_attr(''weather.home'', ''temperature'')|float(0) > weather[''weather.home''].forecast[1].temperature|float(25)\n -%} {{ state_attr(''weather.home'', ''temperature'')|float(0) }} {%- else\n -%} {{ weather[''weather.home''].forecast[1].temperature }} {%-endif-%}\n {{ state_attr(''weather.home'', ''temperature_unit'') }} ). Keeping blinds\n closed.'\n title: ':bed: bedroom'\n log_level: Debug\n default:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':tv: TV turned off. Opening Blinds.'\n title: ':bed: bedroom'\n log_level: Debug\n - action: cover.open_cover\n target:\n entity_id: cover.bedroom_blinds\n mode: single", "config": [ { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "enable bedroom blind automations", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_blind_automations", "device_id": null } }, { "name": "bedroom tv powered on", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_tv_powered_on", "device_id": null } }, { "name": "bedroom blind closed threshold", "room": "bedroom", "type": "input_number", "id": { "entity_id": "input_number.bedroom_blind_closed_threshold", "device_id": null } }, { "name": "weather home", "room": "house", "type": "weather", "id": { "entity_id": "weather.home", "device_id": null } }, { "name": "forecast high temperature", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.forecast_high_temperature", "device_id": null } } ] }, { "id": "'1627285063813'", "automation": "- id: '1627285063813'\n alias: 'Leo''s Bedroom: Timed Open Blinds Weekday'\n description: ''\n triggers:\n - trigger: time\n at: 07:45:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_leos_blind_automations\n state: 'on'\n - condition: numeric_state\n entity_id: cover.leos_bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: Guest\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Opening blinds.\n title: ':bed: Leo''s Bedroom'\n log_level: Debug\n - action: cover.open_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n mode: single", "config": [ { "name": "leos bedroom blinds", "room": "leos bedroom", "type": "cover", "id": { "entity_id": "cover.leos_bedroom_blinds", "device_id": null } }, { "name": "enable leos blind automations", "room": "leos bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_blind_automations", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } }, { "name": "workday sensor", "room": "house", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } } ] }, { "id": "'1627285063816'", "automation": "- id: '1627285063816'\n alias: 'Leo''s Bedroom: Timed Open Blinds Weekend'\n description: ''\n triggers:\n - trigger: time\n at: 08:00:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_leos_blind_automations\n state: 'on'\n - condition: numeric_state\n entity_id: cover.leos_bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: Guest\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Opening blinds.\n title: ':bed: Leo''s Bedroom'\n log_level: Debug\n - action: cover.open_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n mode: single", "config": [ { "name": "leos bedroom blinds", "room": "leos bedroom", "type": "cover", "id": { "entity_id": "cover.leos_bedroom_blinds", "device_id": null } }, { "name": "enable leos blind automations", "room": "leos bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_blind_automations", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } }, { "name": "workday sensor", "room": "house", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } } ] }, { "id": "'1627285063814'", "automation": "- id: '1627285063814'\n alias: 'Leo''s Bedroom: Timed Open Blinds Weekend No Children Mode'\n description: ''\n triggers:\n - trigger: time\n at: 09:00:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_leos_blind_automations\n state: 'off'\n - condition: numeric_state\n entity_id: cover.leos_bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n - condition: state\n state: No Children\n entity_id: input_select.home_mode\n - condition: state\n state: 'on'\n entity_id: binary_sensor.workday_sensor\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Opening blinds with {{ states('input_select.home_mode') }} on a non\n working day.\n title: ':bed: Leo''s Bedroom'\n log_level: Debug\n - action: cover.open_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n mode: single", "config": [ { "name": "leos bedroom blinds", "room": "leos bedroom", "type": "cover", "id": { "entity_id": "cover.leos_bedroom_blinds", "device_id": null } }, { "name": "enable leos blind automations", "room": "leos bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_blind_automations", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } }, { "name": "workday sensor", "room": "house", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } } ] }, { "id": "'1629844319596'", "automation": "- id: '1629844319596'\n alias: 'Leo''s Bedroom: Timed Close Blinds'\n description: ''\n triggers:\n - trigger: time\n at: input_datetime.childrens_bed_time\n - trigger: time\n at: '22:00:00'\n id: no_children\n conditions:\n - not:\n - condition: numeric_state\n entity_id: cover.leos_bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n - condition: state\n entity_id: input_boolean.enable_leos_blind_automations\n state: 'on'\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.leos_bedroom_window_contact\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':warning: :clock{{ now().strftime(''%I'') | int }}{% if now().minute\n | int > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :city_sunset:\n :window: Leo''s window is open. Skipping closing blinds. :warning:'\n title: 'Leo''s :bed: bedroom'\n log_level: Debug\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: trigger\n id: no_children\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute |\n int > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :window:\n Closing Leo''s blinds'\n title: 'Leo''s :bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n - conditions:\n - condition: state\n entity_id: binary_sensor.leos_bedroom_window_contact\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute |\n int > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :window:\n Closing Leo''s blinds'\n title: 'Leo''s :bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n default: []\n mode: single", "config": [ { "name": "leos bedroom blinds", "room": "leos bedroom", "type": "cover", "id": { "entity_id": "cover.leos_bedroom_blinds", "device_id": null } }, { "name": "enable leos blind automations", "room": "leos bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_blind_automations", "device_id": null } }, { "name": "leos bedroom window contact", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bedroom_window_contact", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } } ] }, { "id": "'1617376203344'", "automation": "- id: '1617376203344'\n alias: 'Leo''s Room: Close Blinds Before Sun Rise'\n description: ''\n triggers:\n - trigger: sun\n event: sunrise\n offset: -02:00:00\n conditions:\n - condition: state\n entity_id: cover.leos_bedroom_blinds\n state: open\n - condition: numeric_state\n entity_id: cover.leos_bedroom_blinds\n attribute: current_position\n above: input_number.blind_open_position_threshold\n - condition: state\n entity_id: binary_sensor.leos_bedroom_window_contact\n state: 'off'\n actions:\n - parallel:\n - action: cover.close_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n - action: script.send_to_home_log\n data:\n message: ':city_sunset: :window: closing Leo''s blinds.'\n title: 'Leo''s :bed: bedroom'\n log_level: Debug\n mode: single", "config": [ { "name": "leos bedroom blinds", "room": "leos bedroom", "type": "cover", "id": { "entity_id": "cover.leos_bedroom_blinds", "device_id": null } }, { "name": "leos bedroom window contact", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bedroom_window_contact", "device_id": null } }, { "name": "blind open position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_open_position_threshold", "device_id": null } } ] }, { "id": "'1617376413056'", "automation": "- id: '1617376413056'\n alias: 'Leo''s Room: Open Blinds In The Morning'\n description: ''\n triggers:\n - trigger: time\n at: 09:30:00\n conditions:\n - condition: numeric_state\n entity_id: cover.leos_bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n - condition: state\n entity_id: input_boolean.enable_leos_blind_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':sunrise: :window: Opening Leo''s blinds'\n title: 'Leo''s :bed: bedroom'\n log_level: Debug\n - action: cover.open_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n mode: single", "config": [ { "name": "leos bedroom blinds", "room": "leos bedroom", "type": "cover", "id": { "entity_id": "cover.leos_bedroom_blinds", "device_id": null } }, { "name": "enable leos blind automations", "room": "leos bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_blind_automations", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } } ] }, { "id": "'1617458869658'", "automation": "- id: '1617458869658'\n alias: 'Leo''s Room: Open Blinds In The Morning When No One Is In Bed'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.leos_bed_occupied\n from: 'on'\n to: 'off'\n conditions:\n - condition: time\n after: 07:00:00\n before: '12:00:00'\n - condition: numeric_state\n entity_id: cover.leos_bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n - condition: state\n entity_id: input_boolean.enable_leos_blind_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_leos_bed_sensor\n state: 'on'\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: Guest\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':window: :bed: Someone is in Leo''s bed. Closing blinds.'\n title: 'Leo''s :bed: bedroom'\n log_level: Debug\n - action: cover.open_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n mode: single", "config": [ { "name": "leos bed occupied", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bed_occupied", "device_id": null } }, { "name": "leos bedroom blinds", "room": "leos bedroom", "type": "cover", "id": { "entity_id": "cover.leos_bedroom_blinds", "device_id": null } }, { "name": "enable leos blind automations", "room": "leos bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_blind_automations", "device_id": null } }, { "name": "enable leos bed sensor", "room": "leos bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_bed_sensor", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } } ] }, { "id": "'1619254173098'", "automation": "- id: '1619254173098'\n alias: 'Leo''s Room: Window Closed At Night'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.leos_bedroom_window_contact\n to: 'off'\n from: 'on'\n conditions:\n - condition: numeric_state\n entity_id: cover.leos_bedroom_blinds\n attribute: current_position\n above: input_number.blind_open_position_threshold\n - condition: time\n after: '18:30:00'\n - condition: state\n entity_id: input_boolean.enable_leos_blind_automations\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_leos_bed_sensor\n state: 'on'\n - condition: state\n entity_id: binary_sensor.leos_bed_occupied\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':window: :bed: Leo''s window closed and someone is in bed. Closing\n blinds.'\n title: 'Leo''s :bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_leos_bed_sensor\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':window: :bed: Leo''s window closed and someone is in bed. Closing\n blinds.'\n title: 'Leo''s :bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.leos_bedroom_blinds\n default: []\n mode: single", "config": [ { "name": "leos bed occupied", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bed_occupied", "device_id": null } }, { "name": "leos bedroom blinds", "room": "leos bedroom", "type": "cover", "id": { "entity_id": "cover.leos_bedroom_blinds", "device_id": null } }, { "name": "enable leos blind automations", "room": "leos bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_blind_automations", "device_id": null } }, { "name": "enable leos bed sensor", "room": "leos bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_bed_sensor", "device_id": null } }, { "name": "leos bedroom window contact", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bedroom_window_contact", "device_id": null } }, { "name": "blind open position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_open_position_threshold", "device_id": null } } ] }, { "id": "'1699308571381'", "automation": "- id: '1699308571381'\n alias: 'Leo''s Bedroom: Remote Turn On'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 7da5565cc39ea45df83d982a085622b6\n type: action\n subtype: on_press_release\n conditions: []\n actions:\n - action: light.turn_on\n target:\n entity_id: light.leos_bedroom_main_light\n data: {}\n mode: single", "config": [ { "name": "leos bedroom main light", "room": "leos bedroom", "type": "light", "id": { "entity_id": "light.leos_bedroom_main_light", "device_id": null } }, { "name": "Leo's Bedroom Remote Device", "room": "Leo's Bedroom", "type": "device", "id": { "entity_id": "7da5565cc39ea45df83d982a085622b6", "device_id": "7da5565cc39ea45df83d982a085622b6" } } ] }, { "id": "'1699308571382'", "automation": "- id: '1699308571382'\n alias: 'Leo''s Bedroom: Remote Turn Off'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 7da5565cc39ea45df83d982a085622b6\n type: action\n subtype: off_press_release\n conditions: []\n actions:\n - action: light.turn_off\n data: {}\n target:\n entity_id: light.leos_bedroom_main_light\n mode: single", "config": [ { "name": "leos bedroom main light", "room": "leos bedroom", "type": "light", "id": { "entity_id": "light.leos_bedroom_main_light", "device_id": null } }, { "name": "Leo's Bedroom Remote Device", "room": "Leo's Bedroom", "type": "device", "id": { "entity_id": "7da5565cc39ea45df83d982a085622b6", "device_id": "7da5565cc39ea45df83d982a085622b6" } } ] }, { "id": "'1699308571383'", "automation": "- id: '1699308571383'\n alias: 'Leo''s Bedroom: Remote Up'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 7da5565cc39ea45df83d982a085622b6\n type: action\n subtype: up_press_release\n conditions: []\n actions:\n - action: cover.open_cover\n target:\n entity_id: cover.bedroom_blinds\n data: {}\n mode: single", "config": [ { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "Leo's Bedroom Remote Device", "room": "Leo's Bedroom", "type": "device", "id": { "entity_id": "7da5565cc39ea45df83d982a085622b6", "device_id": "7da5565cc39ea45df83d982a085622b6" } } ] }, { "id": "'1699308571384'", "automation": "- id: '1699308571384'\n alias: 'Leo''s Bedroom: Remote Down'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 7da5565cc39ea45df83d982a085622b6\n type: action\n subtype: down_press_release\n conditions: []\n actions:\n - action: cover.close_cover\n target:\n entity_id: cover.bedroom_blinds\n data: {}\n mode: single", "config": [ { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "Leo's Bedroom Remote Device", "room": "Leo's Bedroom", "type": "device", "id": { "entity_id": "7da5565cc39ea45df83d982a085622b6", "device_id": "7da5565cc39ea45df83d982a085622b6" } } ] }, { "id": "'1605925028960'", "automation": "- id: '1605925028960'\n alias: 'Ashlee''s Bedroom: Timed Close Blinds'\n description: ''\n triggers:\n - trigger: time\n at: input_datetime.childrens_bed_time\n - trigger: time\n at: '22:00:00'\n id: no_children\n conditions:\n - condition: numeric_state\n entity_id: cover.ashlees_bedroom_blinds\n attribute: current_position\n above: input_number.blind_closed_position_threshold\n - condition: state\n entity_id: input_boolean.enable_ashlees_blind_automations\n state: 'on'\n actions:\n - choose:\n - alias: Window is still open\n conditions:\n - condition: state\n entity_id: binary_sensor.ashlees_bedroom_window_contact\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':warning: :clock{{ now().strftime(''%I'') | int }}{% if now().minute\n | int > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :window:\n Ashlee''s window is still open. Waiting until it''s closed before closing\n blinds. :warning:'\n title: 'Ashlee''s :bed: bedroom'\n log_level: Debug\n - alias: No children mode\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: trigger\n id: no_children\n - condition: state\n entity_id: binary_sensor.ashlees_bedroom_window_contact\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':city_sunset: :window: It''s getting dark, closing Ashlee''s blinds.'\n title: 'Ashlee''s :bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.ashlees_bedroom_blinds\n - alias: Bed sensor enabled\n conditions:\n - condition: state\n entity_id: input_boolean.enable_ashlees_bed_sensor\n state: 'on'\n - condition: state\n entity_id: binary_sensor.ashlees_bedroom_window_contact\n state: 'off'\n - condition: trigger\n id: sunset\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :city_sunset:\n :window: It''s getting dark and no one is in Ashlee''s :bed: bed, closing\n Ashlee''s blinds.'\n title: 'Ashlee''s :bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.ashlees_bedroom_blinds\n - alias: Bed sensor is off\n conditions:\n - condition: state\n entity_id: binary_sensor.ashlees_bedroom_window_contact\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_ashlees_bed_sensor\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :city_sunset:\n :window: It''s getting dark, closing Ashlee''s blinds.'\n title: 'Ashlee''s :bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.ashlees_bedroom_blinds\n default: []\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "ashlees bedroom blinds", "room": "ashlees bedroom", "type": "cover", "id": { "entity_id": "cover.ashlees_bedroom_blinds", "device_id": null } }, { "name": "enable ashlees blind automations", "room": "ashlees bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ashlees_blind_automations", "device_id": null } }, { "name": "ashlees bedroom window contact", "room": "ashlees bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ashlees_bedroom_window_contact", "device_id": null } }, { "name": "enable ashlees bed sensor", "room": "ashlees bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ashlees_bed_sensor", "device_id": null } } ] }, { "id": "'1622891806607'", "automation": "- id: '1622891806607'\n alias: 'Ashlee''s Bedroom: Window Closed After Dark'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.ashlees_bedroom_window_contact\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n conditions:\n - condition: numeric_state\n entity_id: cover.ashlees_bedroom_blinds\n attribute: current_position\n above: input_number.bedroom_blind_closed_threshold\n - condition: state\n entity_id: input_boolean.enable_ashlees_blind_automations\n state: 'on'\n - condition: time\n after: input_datetime.childrens_bed_time\n actions:\n - action: script.send_to_home_log\n data:\n message: ':window: Window closed and it''s dark. Closing blinds.'\n title: 'Ashlee''s :bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.ashlees_bedroom_blinds\n data: {}\n mode: single", "config": [ { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "bedroom blind closed threshold", "room": "bedroom", "type": "input_number", "id": { "entity_id": "input_number.bedroom_blind_closed_threshold", "device_id": null } }, { "name": "ashlees bedroom blinds", "room": "ashlees bedroom", "type": "cover", "id": { "entity_id": "cover.ashlees_bedroom_blinds", "device_id": null } }, { "name": "enable ashlees blind automations", "room": "ashlees bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ashlees_blind_automations", "device_id": null } }, { "name": "ashlees bedroom window contact", "room": "ashlees bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ashlees_bedroom_window_contact", "device_id": null } } ] }, { "id": "'1599994669457'", "automation": "- id: '1599994669457'\n alias: 'Ashlee''s Bedroom: Open Blinds In The Morning'\n description: ''\n triggers:\n - trigger: time\n at: 08:00:00\n id: early\n - trigger: time\n at: 09:00:00\n id: late\n conditions:\n - condition: numeric_state\n entity_id: cover.ashlees_bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n - condition: state\n entity_id: input_boolean.enable_ashlees_blind_automations\n state: 'on'\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: Guest\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'off'\n - condition: trigger\n id: late\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute |\n int > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :sunrise:\n :window: School day. Opening Ashlee''s blinds'\n title: 'Ashlee''s :bed: bedroom'\n log_level: Debug\n - action: cover.open_cover\n target:\n entity_id: cover.ashlees_bedroom_blinds\n - conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: trigger\n id: early\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute |\n int > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :sunrise:\n :window: Non school day. Opening Ashlee''s blinds'\n title: 'Ashlee''s :bed: bedroom'\n log_level: Debug\n - action: cover.open_cover\n target:\n entity_id: cover.ashlees_bedroom_blinds\n default: []\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } }, { "name": "workday sensor", "room": "house", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "ashlees bedroom blinds", "room": "ashlees bedroom", "type": "cover", "id": { "entity_id": "cover.ashlees_bedroom_blinds", "device_id": null } }, { "name": "enable ashlees blind automations", "room": "ashlees bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ashlees_blind_automations", "device_id": null } } ] }, { "id": "'1599994669458'", "automation": "- id: '1599994669458'\n alias: 'Ashlee''s Bedroom: Open Blinds In The Morning No Children Mode'\n description: ''\n triggers:\n - trigger: time\n at: 08:00:00\n id: workday\n - trigger: time\n at: 09:00:00\n id: non_workday\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n actions:\n - choose:\n - conditions:\n - condition: state\n state: 'off'\n entity_id: binary_sensor.workday_sensor\n - condition: trigger\n id: workday\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :window: Opening\n blinds with {{ states(''input_select.home_mode'') }} on a non working\n day.'\n title: 'Ashlee''s :bed: bedroom'\n log_level: Debug\n - action: cover.open_cover\n target:\n entity_id: cover.ashlees_bedroom_blinds\n - conditions:\n - condition: state\n state: 'on'\n entity_id: binary_sensor.workday_sensor\n - condition: trigger\n id: non_workday\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :window: Opening\n blinds with {{ states(''input_select.home_mode'') }} on a working day.'\n title: 'Ashlee''s :bed: bedroom'\n log_level: Debug\n - action: cover.open_cover\n target:\n entity_id: cover.ashlees_bedroom_blinds\n default: []\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "workday sensor", "room": "house", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "ashlees bedroom blinds", "room": "ashlees bedroom", "type": "cover", "id": { "entity_id": "cover.ashlees_bedroom_blinds", "device_id": null } } ] }, { "id": "'1655237597647'", "automation": "- id: '1655237597647'\n alias: 'Ashlee''s Bedroom: Someone Is In Bed'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.ashlees_bed_occupied\n from: 'off'\n to: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n conditions: []\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_ashlees_bed_sensor\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_ashlees_blind_automations\n state: 'on'\n - condition: numeric_state\n entity_id: cover.ashlees_bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n - or:\n - condition: time\n after: input_datetime.childrens_bed_time\n - condition: time\n before: 05:00:00\n - condition: state\n entity_id: binary_sensor.ashlees_bedroom_window_contact\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: 'Someone is in Ashlee''s :bed: bed after :clock730:. Closing\n blinds.'\n title: 'Ashlee''s :bed: bedroom'\n log_level: Debug\n - action: cover.close_cover\n data: {}\n target:\n entity_id: cover.ashlees_bedroom_blinds\n default: []\n mode: single", "config": [ { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "ashlees bedroom blinds", "room": "ashlees bedroom", "type": "cover", "id": { "entity_id": "cover.ashlees_bedroom_blinds", "device_id": null } }, { "name": "enable ashlees blind automations", "room": "ashlees bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ashlees_blind_automations", "device_id": null } }, { "name": "ashlees bedroom window contact", "room": "ashlees bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ashlees_bedroom_window_contact", "device_id": null } }, { "name": "enable ashlees bed sensor", "room": "ashlees bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ashlees_bed_sensor", "device_id": null } }, { "name": "ashlees bed occupied", "room": "ashlees bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ashlees_bed_occupied", "device_id": null } } ] }, { "id": "'1655235874989'", "automation": "- id: '1655235874989'\n alias: 'Ashlee''s Bedroom: Turn Off Fan After 1 Hour'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.ashlees_bedroom_fan\n to: 'on'\n for:\n hours: 1\n minutes: 0\n seconds: 0\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':fan: Fan has been on for an hour. Turning fan off.'\n title: ':bed: Ashlee''s bedroom'\n log_level: Debug\n - action: switch.turn_off\n data: {}\n target:\n entity_id: switch.ashlees_bedroom_fan\n mode: single", "config": [ { "name": "ashlees bedroom fan", "room": "ashlees bedroom", "type": "switch", "id": { "entity_id": "switch.ashlees_bedroom_fan", "device_id": null } } ] }, { "id": "'1656355431188'", "automation": "- id: '1656355431188'\n alias: 'Ashlee''s Bedroom: Hue Remote On Button'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 43598aa0e01c65b2bfc26491940f3353\n type: action\n subtype: on_press_release\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: 'Power button pressed. :bulb: Toggling light.'\n title: ':bed: Ashlee''s Bedroom'\n log_level: Debug\n - action: light.toggle\n data: {}\n target:\n entity_id: light.ashlees_bedroom_main_light\n mode: queued\n max: 10", "config": [ { "name": "ashlees bedroom main light", "room": "ashlees bedroom", "type": "light", "id": { "entity_id": "light.ashlees_bedroom_main_light", "device_id": null } }, { "name": "Ashlee's Bedroom Remote Device", "room": "Ashlee's Bedroom", "type": "device", "id": { "entity_id": "43598aa0e01c65b2bfc26491940f3353", "device_id": "43598aa0e01c65b2bfc26491940f3353" } } ] }, { "id": "'1656355431189'", "automation": "- id: '1656355431189'\n alias: 'Ashlee''s Bedroom: Hue Remote Up Button'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 43598aa0e01c65b2bfc26491940f3353\n type: action\n subtype: up_press_release\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'Bright button on remote pressed. Opening :window: Ashlee''s blinds.'\n title: ':bed: Ashlee''s Bedroom'\n log_level: Debug\n - action: cover.open_cover\n data: {}\n target:\n entity_id: cover.ashlees_bedroom_blinds\n mode: queued\n max: 10", "config": [ { "name": "ashlees bedroom blinds", "room": "ashlees bedroom", "type": "cover", "id": { "entity_id": "cover.ashlees_bedroom_blinds", "device_id": null } }, { "name": "Ashlee's Bedroom Remote Device", "room": "Ashlee's Bedroom", "type": "device", "id": { "entity_id": "43598aa0e01c65b2bfc26491940f3353", "device_id": "43598aa0e01c65b2bfc26491940f3353" } } ] }, { "id": "'1656355431190'", "automation": "- id: '1656355431190'\n alias: 'Ashlee''s Bedroom: Hue Remote Down Button'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 43598aa0e01c65b2bfc26491940f3353\n type: action\n subtype: down_press_release\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'Dim button on remote pressed. Closing :window: Ashlee''s blinds.'\n title: ':bed: Ashlee''s Bedroom'\n log_level: Debug\n - action: cover.close_cover\n data: {}\n target:\n entity_id: cover.ashlees_bedroom_blinds\n mode: queued\n max: 10", "config": [ { "name": "ashlees bedroom blinds", "room": "ashlees bedroom", "type": "cover", "id": { "entity_id": "cover.ashlees_bedroom_blinds", "device_id": null } }, { "name": "Ashlee's Bedroom Remote Device", "room": "Ashlee's Bedroom", "type": "device", "id": { "entity_id": "43598aa0e01c65b2bfc26491940f3353", "device_id": "43598aa0e01c65b2bfc26491940f3353" } } ] }, { "id": "'1656355431191'", "automation": "- id: '1656355431191'\n alias: 'Ashlee''s Bedroom: Hue Remote Off Button'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 43598aa0e01c65b2bfc26491940f3353\n type: action\n subtype: off_press_release\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'Hue button on remote pressed. Toggle Ashlee''s main :bulb: light.'\n title: ':bed: Ashlee''s Bedroom'\n log_level: Debug\n - action: light.toggle\n data: {}\n target:\n entity_id: light.ashlees_bedroom_main_light\n mode: queued\n max: 10", "config": [ { "name": "ashlees bedroom main light", "room": "ashlees bedroom", "type": "light", "id": { "entity_id": "light.ashlees_bedroom_main_light", "device_id": null } }, { "name": "Ashlee's Bedroom Remote Device", "room": "Ashlee's Bedroom", "type": "device", "id": { "entity_id": "43598aa0e01c65b2bfc26491940f3353", "device_id": "43598aa0e01c65b2bfc26491940f3353" } } ] }, { "id": "'1714779045289'", "automation": "- id: '1714779045289'\n alias: 'Bin: Taken Out'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.bin_estimated_distance\n for:\n hours: 1\n minutes: 0\n seconds: 0\n above: 7\n conditions: []\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: Taken out.\n title: Bin\n people:\n entity_id: person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "bin estimated distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.bin_estimated_distance", "device_id": null } } ] }, { "id": "'1654008759007'", "automation": "- id: '1654008759007'\n alias: 'Calendar: Family'\n description: https://community.home-assistant.io/t/how-to-calculate-subtract-two-date-time-from-eachother/8197/6\n trace:\n stored_traces: 20\n triggers:\n - trigger: calendar\n event: start\n entity_id: calendar.family\n offset: '-1:0:0'\n conditions: []\n actions:\n - action: script.calendar_event_started\n data:\n calendar_id:\n entity_id:\n - calendar.family\n mode: queued", "config": [ { "name": "family calendar", "room": "house", "type": "calendar", "id": { "entity_id": "calendar.family", "device_id": null } } ] }, { "id": "'1654008759008'", "automation": "- id: '1654008759008'\n alias: 'Calendar: Children Start Event'\n description: https://community.home-assistant.io/t/how-to-calculate-subtract-two-date-time-from-eachother/8197/6\n trace:\n stored_traces: 20\n triggers:\n - trigger: calendar\n event: start\n entity_id: calendar.tsang_children\n offset: '-1:0:0'\n conditions: []\n actions:\n - action: script.calendar_event_started\n data:\n calendar_id:\n entity_id:\n - calendar.tsang_children\n mode: queued", "config": [ { "name": "tsang children calendar", "room": "house", "type": "calendar", "id": { "entity_id": "calendar.tsang_children", "device_id": null } } ] }, { "id": "'1654008759009'", "automation": "- id: '1654008759009'\n alias: 'Calendar: Children End Event'\n description: https://community.home-assistant.io/t/how-to-calculate-subtract-two-date-time-from-eachother/8197/6\n trace:\n stored_traces: 20\n triggers:\n - trigger: calendar\n event: end\n entity_id: calendar.tsang_children\n offset: -0:30:0\n conditions: []\n actions:\n - action: script.calendar_event_ended\n data:\n calendar_id:\n entity_id:\n - calendar.tsang_children\n mode: queued", "config": [ { "name": "tsang children calendar", "room": "house", "type": "calendar", "id": { "entity_id": "calendar.tsang_children", "device_id": null } } ] }, { "id": "'1647307174048'", "automation": "- id: '1647307174048'\n alias: 'Stairs: Check Magic Mirror Is Casting Home Assistant'\n description: ''\n triggers:\n - trigger: time_pattern\n minutes: '0'\n conditions:\n - or:\n - condition: state\n entity_id: input_select.home_mode\n state: guest\n - condition: state\n entity_id: group.tracked_people\n state: home\n - not:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: armed_away\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Casting Home Assistant.\n title: ':mirror: Magic Mirror'\n log_level: Debug\n - action: cast.show_lovelace_view\n data:\n entity_id: media_player.stairs_chromecast\n dashboard_path: lovelace-magicmirror\n view_path: home\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } }, { "name": "stairs chromecast", "room": "stairs", "type": "media_player", "id": { "entity_id": "media_player.stairs_chromecast", "device_id": null } } ] }, { "id": "'1672397019959'", "automation": "- id: '1672397019959'\n alias: 'Chromecast: Google TV Turned Playing'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - media_player.lounge_tv\n - media_player.bedroom_tv\n to: playing\n - trigger: state\n entity_id:\n - media_player.lounge_tv\n - media_player.bedroom_tv\n attribute: media_title\n to: playing\n - trigger: state\n entity_id:\n - media_player.lounge_tv\n - media_player.bedroom_tv\n attribute: app_name\n to: playing\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ state_attr(trigger.entity_id, ''media_position'') != none\n }}'\n sequence:\n - action: script.google_tv_playing_notification\n data:\n entity_id: '{{ trigger.entity_id }}'\n mode: queued\n max: 10", "config": [ { "name": "bedroom tv", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.bedroom_tv", "device_id": null } }, { "name": "lounge tv", "room": "living room", "type": "media_player", "id": { "entity_id": "media_player.lounge_tv", "device_id": null } }, { "name": "Trigger Entity ID", "room": null, "type": "trigger", "id": { "entity_id": "trigger.entity_id", "device_id": null } } ] }, { "id": "'1650387098757'", "automation": "- id: '1650387098757'\n alias: 'Deebot: Error'\n description: ''\n triggers:\n - trigger: state\n entity_id: vacuum.t8\n to: error\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':warning: :robot_face: :broom: Vacuum has encountered an error :warning:'\n title: ':robot_face: :broom: Vacuum'\n log_level: Normal\n mode: single", "config": [ { "name": "t8 vacuum", "room": "house", "type": "vacuum", "id": { "entity_id": "vacuum.t8", "device_id": null } } ] }, { "id": "'1650387098756'", "automation": "- id: '1650387098756'\n alias: 'Deebot: Fully Charged'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: vacuum.t8\n above: '99'\n attribute: battery_level\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':battery: Fully charged'\n title: ':robot_face: :broom: Vacuum'\n log_level: Debug\n mode: single", "config": [ { "name": "t8 vacuum", "room": "house", "type": "vacuum", "id": { "entity_id": "vacuum.t8", "device_id": null } } ] }, { "id": "'1654865901253'", "automation": "- id: '1654865901253'\n alias: 'Deebot: Finished Cleaning'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - vacuum.t8\n to: docked\n for:\n hours: 0\n minutes: 1\n seconds: 0\n not_from: unavailable\n conditions: []\n actions:\n - action: script.send_home_log_with_url\n data:\n message: Cleaning complete\n title: ':robot_face: :broom: Vacuum'\n url: '{{ states(''input_text.external_url'') }}{{ state_attr(''image.t8_map'',''entity_picture'')\n }}'\n mode: single", "config": [ { "name": "t8 vacuum", "room": "house", "type": "vacuum", "id": { "entity_id": "vacuum.t8", "device_id": null } }, { "name": "External URL", "room": null, "type": "input_text", "id": { "entity_id": "input_text.external_url", "device_id": null } } ] }, { "id": "'1610234394136'", "automation": "- id: '1610234394136'\n alias: 'Conservatory: Motion Detected And It''s Dark'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.conservatory_area_motion\n - binary_sensor.conservatory_motion_occupancy\n from: 'off'\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: sensor.conservatory_motion_illuminance\n below: input_number.conservatory_light_level_threshold\n - condition: state\n entity_id: input_boolean.enable_conservatory_motion_trigger\n state: 'on'\n - or:\n - condition: numeric_state\n entity_id: light.conservatory\n attribute: brightness\n below: '9'\n - condition: template\n value_template: '{{ state_attr(''light.conservatory'', ''brightness'') == none\n }}'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected and it''s dark ({{ states(''sensor.conservatory_motion_illuminance'',\n with_unit=True) }} < ({{ states(''input_number.conservatory_light_level_threshold'',\n with_unit=True) }}). Turning :bulb: :high_brightness: light on.'\n title: Conservatory\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.conservatory_turn_on_light\n data:\n transition: 2\n mode: single", "config": [ { "name": "conservatory area motion", "room": "conservatory", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.conservatory_area_motion", "device_id": null } }, { "name": "conservatory motion occupancy", "room": "conservatory", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.conservatory_motion_occupancy", "device_id": null } }, { "name": "conservatory motion illuminance", "room": "conservatory", "type": "sensor", "id": { "entity_id": "sensor.conservatory_motion_illuminance", "device_id": null } }, { "name": "conservatory light level threshold", "room": "conservatory", "type": "input_number", "id": { "entity_id": "input_number.conservatory_light_level_threshold", "device_id": null } }, { "name": "conservatory light", "room": "conservatory", "type": "light", "id": { "entity_id": "light.conservatory", "device_id": null } }, { "name": "enable conservatory motion trigger", "room": "conservatory", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_conservatory_motion_trigger", "device_id": null } }, { "name": "Conservatory Turn On Light", "room": "Conservatory", "type": "scene", "id": { "entity_id": "scene.conservatory_turn_on_light", "device_id": null } } ] }, { "id": "'1610234794461'", "automation": "- id: '1610234794461'\n alias: 'Conservatory: No Motion Detected Dim Lights'\n description: ''\n triggers:\n - trigger: state\n to: 'off'\n for: 00:01:00\n entity_id: binary_sensor.conservatory_area_motion\n from: 'on'\n conditions:\n - condition: state\n entity_id: light.conservatory\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_conservatory_motion_trigger\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion. :bulb: :low_brightness: Dimming lights.'\n title: Conservatory\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.conservatory_dim_light\n data:\n transition: 2\n mode: single", "config": [ { "name": "conservatory area motion", "room": "conservatory", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.conservatory_area_motion", "device_id": null } }, { "name": "conservatory light", "room": "conservatory", "type": "light", "id": { "entity_id": "light.conservatory", "device_id": null } }, { "name": "enable conservatory motion trigger", "room": "conservatory", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_conservatory_motion_trigger", "device_id": null } }, { "name": "Conservatory Dim Light", "room": "Conservatory", "type": "scene", "id": { "entity_id": "scene.conservatory_dim_light", "device_id": null } } ] }, { "id": "'1610238960657'", "automation": "- id: '1610238960657'\n alias: 'Conservatory: No Motion Turning Turn Lights Off'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.conservatory_area_motion\n to: 'off'\n for: 00:01:30\n conditions:\n - condition: state\n entity_id: light.conservatory\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_conservatory_motion_trigger\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion. Turning lights off.'\n title: Conservatory\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.conservatory_turn_off_light\n data:\n transition: 2\n mode: single", "config": [ { "name": "conservatory area motion", "room": "conservatory", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.conservatory_area_motion", "device_id": null } }, { "name": "conservatory light", "room": "conservatory", "type": "light", "id": { "entity_id": "light.conservatory", "device_id": null } }, { "name": "enable conservatory motion trigger", "room": "conservatory", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_conservatory_motion_trigger", "device_id": null } }, { "name": "Conservatory Turn Off Light", "room": "Conservatory", "type": "scene", "id": { "entity_id": "scene.conservatory_turn_off_light", "device_id": null } } ] }, { "id": "'1629146628067'", "automation": "- id: '1629146628067'\n alias: 'Conservatory: Person Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.conservatory_person_detected\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: armed_away\n actions:\n - action: camera.snapshot\n data_template:\n filename: '{{ states(''input_text.latest_frigate_conservatory_person_file_path'')\n }}'\n target:\n entity_id: camera.conservatory_high_resolution_channel\n - action: script.send_home_log_with_local_attachments\n data_template:\n message: Frigate detected a person in the conservatory.\n title: Person detected in conservatory\n log_level: Normal\n filePath: '{{ states(''input_text.latest_frigate_conservatory_person_file_path'')\n }}'\n mode: queued\n max: 10", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "conservatory person detected", "room": "conservatory", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.conservatory_person_detected", "device_id": null } }, { "name": "conservatory high resolution channel camera", "room": "conservatory", "type": "camera", "id": { "entity_id": "camera.conservatory_high_resolution_channel", "device_id": null } }, { "name": "Latest Frigate Conservatory Person File Path", "room": "Conservatory", "type": "input_text", "id": { "entity_id": "input_text.latest_frigate_conservatory_person_file_path", "device_id": null } } ] }, { "id": "'1628985027639'", "automation": "- id: '1628985027639'\n alias: 'Conservatory: Door Open'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.conservatory_door\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':door: Door opened.'\n title: Conservatory\n log_level: Debug\n - if:\n - condition: not\n conditions:\n - condition: state\n entity_id: climate.thermostat\n state: 'off'\n then:\n - action: script.send_to_home_log\n data:\n message: Turning off the heating.\n title: Conservatory\n log_level: Debug\n - action: script.set_central_heating_to_off\n data: {}\n mode: single", "config": [ { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "conservatory door", "room": "conservatory", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.conservatory_door", "device_id": null } } ] }, { "id": "'1628985156167'", "automation": "- id: '1628985156167'\n alias: 'Conservatory: Door Closed'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.conservatory_door\n to: 'off'\n from: 'on'\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':door: Conservatory door closed.'\n log_level: Debug\n - action: script.set_central_heating_to_home_mode\n data: {}\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.shed_door\n state: 'on'\n - condition: state\n entity_id: binary_sensor.back_garden_gate_contact\n state: 'on'\n sequence:\n - action: script.send_direct_notification\n data:\n message: ':door: Door closed. :hut: shed :door: door and gate is still\n open.'\n title: Conservatory\n people:\n entity_id:\n - person.danny\n - person.terina\n - conditions:\n - condition: state\n entity_id: binary_sensor.shed_door\n state: 'on'\n sequence:\n - action: script.send_direct_notification\n data:\n message: ':door: Door closed and :hut: shed :door: door is still open.'\n title: Conservatory\n people:\n entity_id:\n - person.danny\n - person.terina\n - conditions:\n - condition: state\n entity_id: binary_sensor.back_garden_gate_contact\n state: 'on'\n sequence:\n - action: script.send_direct_notification\n data:\n message: ':door: Door closed and gate is still open.'\n title: Conservatory\n people:\n entity_id:\n - person.danny\n - person.terina\n default: []\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "conservatory door", "room": "conservatory", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.conservatory_door", "device_id": null } }, { "name": "shed door", "room": "shed", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shed_door", "device_id": null } }, { "name": "back garden gate contact", "room": "back garden", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.back_garden_gate_contact", "device_id": null } } ] }, { "id": "'1733767153966'", "automation": "- id: '1733767153966'\n alias: 'Conservatory: Turn On Airer'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.conservatory_airer_schedule_1\n conditions:\n - condition: state\n entity_id: input_boolean.enable_conservatory_airer_schedule\n state: 'on'\n actions:\n - action: script.check_conservatory_airer\n data: {}\n mode: single", "config": [ { "name": "conservatory airer schedule 1", "room": "conservatory", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.conservatory_airer_schedule_1", "device_id": null } }, { "name": "enable conservatory airer schedule", "room": "conservatory", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_conservatory_airer_schedule", "device_id": null } } ] }, { "id": "'1733767153967'", "automation": "- id: '1733767153967'\n alias: 'Conservatory: Turn Off Airer'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.conservatory_airer_schedule_1\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_conservatory_airer_schedule\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n metadata: {}\n data:\n log_level: Normal\n message: Airer schedule 1 is off. Turning airer off.\n title: Conservatory\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.airer\n mode: single", "config": [ { "name": "conservatory airer schedule 1", "room": "conservatory", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.conservatory_airer_schedule_1", "device_id": null } }, { "name": "enable conservatory airer schedule", "room": "conservatory", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_conservatory_airer_schedule", "device_id": null } }, { "name": "airer switch", "room": "conservatory", "type": "switch", "id": { "entity_id": "switch.airer", "device_id": null } } ] }, { "id": "'1689437015870'", "automation": "- id: '1689437015870'\n alias: 'EcoFlow: Solar Below House Consumption'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.ecoflow_solar_excess\n below: 0\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions:\n - or:\n - condition: numeric_state\n entity_id: sensor.octopus_energy_electricity_current_rate\n above: sensor.octopus_energy_electricity_export_current_rate\n - condition: state\n entity_id: sensor.octopus_energy_electricity_current_rate\n state: unavailable\n - or:\n - and:\n - condition: numeric_state\n entity_id: number.ecoflow_kitchen_backup_reserve_level\n above: input_number.ecoflow_kitchen_minimum_backup_reserve\n - condition: state\n entity_id: switch.ecoflow_kitchen_backup_reserve_enabled\n state: 'on'\n - and:\n - condition: numeric_state\n entity_id: number.ecoflow_office_backup_reserve_level\n above: input_number.ecoflow_office_minimum_backup_reserve\n - condition: state\n entity_id: switch.ecoflow_office_backup_reserve_enabled\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_ecoflow_automations\n state: 'on'\n actions:\n - action: script.ecoflow_check_charging_mode\n data:\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n current_electricity_export_rate: '{{ states(''sensor.octopus_energy_electricity_export_current_rate'')\n }}'\n - if:\n - condition: state\n entity_id: timer.check_solar_excess\n state: active\n then:\n - action: timer.cancel\n data: {}\n target:\n entity_id: timer.check_solar_excess\n mode: restart", "config": [ { "name": "Enable Ecoflow Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ecoflow_automations", "device_id": null } }, { "name": "Ecoflow Kitchen Minimum Backup Reserve", "room": "Kitchen", "type": "input_number", "id": { "entity_id": "input_number.ecoflow_kitchen_minimum_backup_reserve", "device_id": null } }, { "name": "EcoFlow Kitchen Backup Reserve Level", "room": "Kitchen", "type": "number", "id": { "entity_id": "number.ecoflow_kitchen_backup_reserve_level", "device_id": null } }, { "name": "EcoFlow Office Backup Reserve Level", "room": "Office", "type": "number", "id": { "entity_id": "number.ecoflow_office_backup_reserve_level", "device_id": null } }, { "name": "EcoFlow Solar Excess", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ecoflow_solar_excess", "device_id": null } }, { "name": "Octopus Energy Electricity Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_current_rate", "device_id": null } }, { "name": "Octopus Energy Electricity Export Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_export_current_rate", "device_id": null } }, { "name": "EcoFlow Kitchen Backup Reserve Enabled", "room": "Kitchen", "type": "switch", "id": { "entity_id": "switch.ecoflow_kitchen_backup_reserve_enabled", "device_id": null } }, { "name": "EcoFlow Office Backup Reserve Enabled", "room": "Office", "type": "switch", "id": { "entity_id": "switch.ecoflow_office_backup_reserve_enabled", "device_id": null } }, { "name": "Check Solar Excess", "room": null, "type": "timer", "id": { "entity_id": "timer.check_solar_excess", "device_id": null } } ] }, { "id": "'1689437015871'", "automation": "- id: '1689437015871'\n alias: 'EcoFlow: Solar Above House Consumption'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.ecoflow_solar_excess\n above: input_number.ecoflow_charge_solar_threshold\n for:\n hours: 0\n minutes: 5\n seconds: 0\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.check_solar_excess\n conditions:\n - condition: state\n entity_id: switch.ecoflow_kitchen_backup_reserve_enabled\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_ecoflow_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.ecoflow_check_charging_mode\n data:\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n current_electricity_export_rate: '{{ states(''sensor.octopus_energy_electricity_export_current_rate'')\n }}'\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: sensor.grid_power\n below: 0\n - not:\n - condition: state\n entity_id: timer.check_solar_excess\n state: active\n sequence:\n - action: timer.start\n data:\n duration: 00:05:00\n target:\n entity_id: timer.check_solar_excess\n mode: queued\n max: 10", "config": [ { "name": "Enable Ecoflow Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ecoflow_automations", "device_id": null } }, { "name": "EcoFlow Solar Excess", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ecoflow_solar_excess", "device_id": null } }, { "name": "Grid Power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.grid_power", "device_id": null } }, { "name": "Octopus Energy Electricity Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_current_rate", "device_id": null } }, { "name": "Octopus Energy Electricity Export Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_export_current_rate", "device_id": null } }, { "name": "EcoFlow Kitchen Backup Reserve Enabled", "room": "Kitchen", "type": "switch", "id": { "entity_id": "switch.ecoflow_kitchen_backup_reserve_enabled", "device_id": null } }, { "name": "Check Solar Excess", "room": null, "type": "timer", "id": { "entity_id": "timer.check_solar_excess", "device_id": null } } ] }, { "id": "'1695566530591'", "automation": "- id: '1695566530591'\n alias: 'EcoFlow: Battery Low And Plug Is Off'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.ecoflow_kitchen_battery_level\n below: sensor.ecoflow_kitchen_minimum_backup_reserve_low_threshold\n - trigger: numeric_state\n entity_id: sensor.ecoflow_office_battery_level\n below: sensor.ecoflow_office_minimum_backup_reserve_low_threshold\n conditions:\n - or:\n - condition: state\n entity_id: switch.ecoflow_kitchen_plug\n state: 'off'\n - condition: state\n entity_id: switch.ecoflow_office_plug\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_ecoflow_automations\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.entity_id == ''sensor.ecoflow_kitchen_battery_level''}}'\n - condition: state\n entity_id: switch.ecoflow_kitchen_plug\n state: 'off'\n sequence:\n - parallel:\n - action: script.send_direct_notification\n data:\n message: Fridge Freezer switch is off and battery level ({{ states('sensor.ecoflow_kitchen_battery_level')\n }}) below minimum ({{ states('sensor.ecoflow_kitchen_minimum_backup_reserve_low_threshold')\n }}). Turning on.\n title: EcoFlow\n people:\n entity_id:\n - person.danny\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.ecoflow_kitchen_plug\n - action: script.ecoflow_set_charge_rate\n data:\n entity_id: number.ecoflow_kitchen_ac_charging_power\n target_charge_rate: 200\n - action: script.ecoflow_set_backup_reserve\n data:\n entity_id: number.ecoflow_kitchen_backup_reserve_level\n target_reserve_amount: '{{ states(''input_number.ecoflow_kitchen_minimum_backup_reserve'')\n }}'\n - conditions:\n - condition: template\n value_template: '{{ trigger.entity_id == ''sensor.ecoflow_office_battery_level''}}'\n - condition: state\n entity_id: switch.ecoflow_office_plug\n state: 'off'\n sequence:\n - parallel:\n - action: script.send_direct_notification\n data:\n message: Office switch is off and battery level ({{ states('sensor.ecoflow_office_battery_level')\n }}) below minimum ({{ states('sensor.ecoflow_office_minimum_backup_reserve_low_threshold')\n }}). Turning on.\n title: EcoFlow\n people:\n entity_id:\n - person.danny\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.ecoflow_office_plug\n default: []\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Enable Ecoflow Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ecoflow_automations", "device_id": null } }, { "name": "Ecoflow Kitchen Minimum Backup Reserve", "room": "Kitchen", "type": "input_number", "id": { "entity_id": "input_number.ecoflow_kitchen_minimum_backup_reserve", "device_id": null } }, { "name": "EcoFlow Kitchen AC Charging Power", "room": "Kitchen", "type": "number", "id": { "entity_id": "number.ecoflow_kitchen_ac_charging_power", "device_id": null } }, { "name": "EcoFlow Kitchen Backup Reserve Level", "room": "Kitchen", "type": "number", "id": { "entity_id": "number.ecoflow_kitchen_backup_reserve_level", "device_id": null } }, { "name": "EcoFlow Kitchen Battery Level", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_kitchen_battery_level", "device_id": null } }, { "name": "EcoFlow Kitchen Minimum Backup Reserve Low Threshold", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_kitchen_minimum_backup_reserve_low_threshold", "device_id": null } }, { "name": "EcoFlow Office Battery Level", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_office_battery_level", "device_id": null } }, { "name": "EcoFlow Office Minimum Backup Reserve Low Threshold", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_office_minimum_backup_reserve_low_threshold", "device_id": null } }, { "name": "EcoFlow Kitchen Plug", "room": "Kitchen", "type": "switch", "id": { "entity_id": "switch.ecoflow_kitchen_plug", "device_id": null } }, { "name": "EcoFlow Office Plug", "room": "Office", "type": "switch", "id": { "entity_id": "switch.ecoflow_office_plug", "device_id": null } }, { "name": "Trigger Entity ID", "room": null, "type": "trigger", "id": { "entity_id": "trigger.entity_id", "device_id": null } } ] }, { "id": "'1719062430507'", "automation": "- id: '1719062430507'\n alias: 'EcoFlow: Kitchen Plug Offline'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.ecoflow_kitchen_battery_level\n below: sensor.ecoflow_kitchen_minimum_backup_reserve_low_threshold\n conditions:\n - condition: state\n entity_id: input_boolean.enable_ecoflow_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: switch.ecoflow_kitchen_plug\n state: unavailable\n - condition: state\n entity_id: switch.ecoflow_kitchen_plug\n state: unknown\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n people:\n entity_id:\n - person.danny\n title: EcoFlow\n message: Kitchen plug is offline!\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Enable Ecoflow Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ecoflow_automations", "device_id": null } }, { "name": "EcoFlow Kitchen Battery Level", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_kitchen_battery_level", "device_id": null } }, { "name": "EcoFlow Kitchen Minimum Backup Reserve Low Threshold", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_kitchen_minimum_backup_reserve_low_threshold", "device_id": null } }, { "name": "EcoFlow Kitchen Plug", "room": "Kitchen", "type": "switch", "id": { "entity_id": "switch.ecoflow_kitchen_plug", "device_id": null } } ] }, { "id": "'1719062430508'", "automation": "- id: '1719062430508'\n alias: 'EcoFlow: Office Plug Offline'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.ecoflow_office_battery_level\n below: sensor.ecoflow_office_minimum_backup_reserve_low_threshold\n conditions:\n - condition: state\n entity_id: input_boolean.enable_ecoflow_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: switch.ecoflow_office_plug\n state: unavailable\n - condition: state\n entity_id: switch.ecoflow_office_plug\n state: unknown\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n people:\n entity_id:\n - person.danny\n title: EcoFlow\n message: Office plug is offline!\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Enable Ecoflow Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ecoflow_automations", "device_id": null } }, { "name": "EcoFlow Office Battery Level", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_office_battery_level", "device_id": null } }, { "name": "EcoFlow Office Minimum Backup Reserve Low Threshold", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_office_minimum_backup_reserve_low_threshold", "device_id": null } }, { "name": "EcoFlow Office Plug", "room": "Office", "type": "switch", "id": { "entity_id": "switch.ecoflow_office_plug", "device_id": null } } ] }, { "id": "'1719061926981'", "automation": "- id: '1719061926981'\n alias: 'Ecoflow: Kitchen Battery Low And Switch Comes Online'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.ecoflow_kitchen_plug\n from: unavailable\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_ecoflow_automations\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.ecoflow_kitchen_battery_level\n below: sensor.ecoflow_kitchen_minimum_backup_reserve_low_threshold\n actions:\n - parallel:\n - action: script.send_direct_notification\n metadata: {}\n data:\n title: EcoFlow\n message: Kitchen Battery Below minimum threshold {{ states('sensor.ecoflow_kitchen_battery_level')\n }}({{ states('sensor.ecoflow_kitchen_minimum_backup_reserve_low_threshold')\n }}) and switch has become available. Turning switch on.\n people:\n entity_id:\n - person.danny\n - action: switch.turn_on\n data: {}\n target:\n entity_id: switch.ecoflow_kitchen_plug\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Enable Ecoflow Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ecoflow_automations", "device_id": null } }, { "name": "EcoFlow Kitchen Battery Level", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_kitchen_battery_level", "device_id": null } }, { "name": "EcoFlow Kitchen Minimum Backup Reserve Low Threshold", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_kitchen_minimum_backup_reserve_low_threshold", "device_id": null } }, { "name": "EcoFlow Kitchen Plug", "room": "Kitchen", "type": "switch", "id": { "entity_id": "switch.ecoflow_kitchen_plug", "device_id": null } } ] }, { "id": "'1719061926982'", "automation": "- id: '1719061926982'\n alias: 'Ecoflow: Office Battery Low And Switch Comes Online'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.ecoflow_office_plug\n from: unavailable\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_ecoflow_automations\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.ecoflow_office_battery_level\n below: sensor.ecoflow_office_minimum_backup_reserve_low_threshold\n actions:\n - parallel:\n - action: script.send_direct_notification\n metadata: {}\n data:\n title: EcoFlow\n message: Office Battery Below minimum threshold {{ states('sensor.ecoflow_office_battery_level')\n }}({{ states('sensor.ecoflow_office_minimum_backup_reserve_low_threshold')\n }}) and switch has become available. Turning switch on.\n people:\n entity_id:\n - person.danny\n - action: switch.turn_on\n data: {}\n target:\n entity_id: switch.ecoflow_office_plug\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Enable Ecoflow Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ecoflow_automations", "device_id": null } }, { "name": "EcoFlow Office Battery Level", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_office_battery_level", "device_id": null } }, { "name": "EcoFlow Office Minimum Backup Reserve Low Threshold", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_office_minimum_backup_reserve_low_threshold", "device_id": null } }, { "name": "EcoFlow Office Plug", "room": "Office", "type": "switch", "id": { "entity_id": "switch.ecoflow_office_plug", "device_id": null } } ] }, { "id": "'1714563193661'", "automation": "- id: '1714563193661'\n alias: 'EcoFlow: Battery Ultra Low And Plug Is Off'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.ecoflow_kitchen_battery_level\n below: 6\n conditions:\n - condition: state\n entity_id: switch.ecoflow_kitchen_plug\n state: 'off'\n actions:\n - parallel:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: Ecoflow battery is ultra low and unable to turn the plug on.\n title: ':cook: Kitchen'\n people:\n entity_id:\n - person.danny\n - person.terina\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "EcoFlow Kitchen Battery Level", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_kitchen_battery_level", "device_id": null } }, { "name": "EcoFlow Kitchen Plug", "room": "Kitchen", "type": "switch", "id": { "entity_id": "switch.ecoflow_kitchen_plug", "device_id": null } } ] }, { "id": "'1714641195916'", "automation": "- id: '1714641195916'\n alias: 'Ecoflow: Goes Offline'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.ecoflow_kitchen_main_battery_level\n to: unknown\n for:\n minutes: 30\n - trigger: state\n entity_id:\n - sensor.ecoflow_kitchen_main_battery_level\n to: unavailable\n for:\n minutes: 30\n conditions:\n - condition: state\n entity_id: input_boolean.enable_ecoflow_automations\n state: 'on'\n actions:\n - if:\n - condition: state\n entity_id: switch.ecoflow_kitchen_plug\n state: 'off'\n then:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Kitchen has been offline for more than 30 minutes and the plug\n is switched off. Turning Fridge Freeze plug on.\n title: EcoFlow\n log_level: Debug\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.ecoflow_kitchen_plug\n mode: single", "config": [ { "name": "Enable Ecoflow Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ecoflow_automations", "device_id": null } }, { "name": "EcoFlow Kitchen Main Battery Level", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_kitchen_main_battery_level", "device_id": null } }, { "name": "EcoFlow Kitchen Plug", "room": "Kitchen", "type": "switch", "id": { "entity_id": "switch.ecoflow_kitchen_plug", "device_id": null } } ] }, { "id": "'1734262347581'", "automation": "- id: '1734262347581'\n alias: 'Ecoflow: No Power Drawn By Device'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.ecoflow_kitchen_power_over_12_hours\n below: 9.9\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: Check Ecoflow In the kitchen for power.\n title: Kitchen\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "EcoFlow Kitchen Power Over 12 Hours", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.ecoflow_kitchen_power_over_12_hours", "device_id": null } } ] }, { "id": "'1745329568830'", "automation": "- id: '1745329568830'\n alias: 'Ecoflow: Sunset'\n description: ''\n triggers:\n - trigger: sun\n event: sunset\n conditions:\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n actions:\n - parallel:\n - action: script.ecoflow_office_turn_off_plug\n data: {}\n - action: script.ecoflow_kitchen_turn_off_plug\n data: {}\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } } ] }, { "id": "'1713094180264'", "automation": "- id: '1713094180264'\n alias: 'Ecowitt: Offline'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.gw2000a_dewpoint\n for:\n minutes: 3\n - trigger: state\n entity_id:\n - sensor.gw2000a_solar_lux\n to: unavailable\n for:\n minutes: 1\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n metadata: {}\n data:\n message: Ecowitt GW2000A({{ trigger.entity_id }}) has frozen or is unavailable.\n Rebooting.\n title: Ecowitt\n log_level: Debug\n - sequence:\n - action: switch.turn_off\n target:\n entity_id: switch.gw2000a_plug\n data: {}\n - delay:\n seconds: 2\n - action: switch.turn_on\n target:\n entity_id: switch.gw2000a_plug\n data: {}\n mode: single", "config": [ { "name": "GW2000A Dewpoint", "room": null, "type": "sensor", "id": { "entity_id": "sensor.gw2000a_dewpoint", "device_id": null } }, { "name": "GW2000A Solar Lux", "room": null, "type": "sensor", "id": { "entity_id": "sensor.gw2000a_solar_lux", "device_id": null } }, { "name": "GW2000A Plug", "room": null, "type": "switch", "id": { "entity_id": "switch.gw2000a_plug", "device_id": null } }, { "name": "Trigger Entity ID", "room": null, "type": "trigger", "id": { "entity_id": "trigger.entity_id", "device_id": null } } ] }, { "id": "'1677762423485'", "automation": "- id: '1677762423485'\n alias: 'Energy: Eddi Diverting Energy'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.myenergi_eddi_status\n to: Diverting\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.myenergi_eddi_energy_consumed_session_daily\n state: unknown\n - condition: state\n entity_id: input_boolean.enable_hot_water_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_eddi_automations\n state: 'on'\n actions:\n - action: script.send_to_home_log\n data:\n message: ':fuelpump: Eddi diverting energy.\n\n It has diverted {{ states(''sensor.myenergi_eddi_energy_consumed_session_daily'',\n with_unit=True) }} so far.'\n title: myEnergi\n log_level: Debug\n mode: queued\n max: 10", "config": [ { "name": "Enable Eddi Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_eddi_automations", "device_id": null } }, { "name": "Enable Hot Water Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hot_water_automations", "device_id": null } }, { "name": "MyEnergi Eddi Energy Consumed Session Daily", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_eddi_energy_consumed_session_daily", "device_id": null } }, { "name": "MyEnergi Eddi Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_eddi_status", "device_id": null } } ] }, { "id": "'1685005214749'", "automation": "- id: '1685005214749'\n alias: 'HVAC: Eddi Turn On'\n description: ''\n triggers:\n - trigger: time\n at: 00:00:00\n - trigger: time\n at: '13:00:00'\n conditions:\n - condition: state\n entity_id: select.myenergi_eddi_operating_mode\n state: Stopped\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n - condition: state\n entity_id: input_boolean.enable_hot_water_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_eddi_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Turning :fuelpump:\n Eddi back on.'\n title: myEnergi\n log_level: Debug\n - action: timer.cancel\n target:\n entity_id: timer.eddi_max_temperature_reached\n data: {}\n - action: select.select_option\n data:\n option: Normal\n target:\n entity_id: select.myenergi_eddi_operating_mode\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Enable Eddi Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_eddi_automations", "device_id": null } }, { "name": "Enable Hot Water Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hot_water_automations", "device_id": null } }, { "name": "MyEnergi Eddi Operating Mode", "room": null, "type": "select", "id": { "entity_id": "select.myenergi_eddi_operating_mode", "device_id": null } }, { "name": "Eddi Max Temperature Reached", "room": null, "type": "timer", "id": { "entity_id": "timer.eddi_max_temperature_reached", "device_id": null } } ] }, { "id": "'1678578286486'", "automation": "- id: '1678578286486'\n alias: 'HVAC: Eddi Generated Hot Water And Hot Water Is On'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.myenergi_eddi_energy_consumed_per_heating_cycle\n above: input_number.hot_water_solar_diverter_boiler_cut_off\n conditions:\n - condition: state\n entity_id: input_boolean.enable_hot_water_automations\n state: 'on'\n - condition: state\n entity_id: water_heater.thermostat\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_eddi_automations\n state: 'on'\n actions:\n - action: script.send_to_home_log\n data:\n message: 'Eddi has heated enough hot water {{ states(''sensor.myenergi_eddi_energy_consumed_per_heating_cycle'')\n }} in the last 6 hours (> {{ states(''input_number.hot_water_solar_diverter_boiler_cut_off'')|float(0)\n }}) {{ state_attr(''sensor.myenergi_eddi_energy_consumed_session'', ''unit_of_measurement'')\n }} and the hot water is on.\n\n Turning off hot water.'\n title: ':hotsprings: Central Heating'\n log_level: Normal\n - action: script.set_hot_water_to_home_mode\n data: {}\n mode: single", "config": [ { "name": "Enable Eddi Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_eddi_automations", "device_id": null } }, { "name": "Enable Hot Water Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hot_water_automations", "device_id": null } }, { "name": "Hot Water Solar Diverter Boiler Cut Off", "room": null, "type": "input_number", "id": { "entity_id": "input_number.hot_water_solar_diverter_boiler_cut_off", "device_id": null } }, { "name": "MyEnergi Eddi Energy Consumed Per Heating Cycle", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_eddi_energy_consumed_per_heating_cycle", "device_id": null } }, { "name": "Thermostat", "room": null, "type": "water_heater", "id": { "entity_id": "water_heater.thermostat", "device_id": null } } ] }, { "id": "'1712238362391'", "automation": "- id: '1712238362391'\n alias: 'Eddi: Max Temperature Reached'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.myenergi_eddi_status\n to: Max temp reached\n conditions:\n - condition: state\n entity_id: input_boolean.enable_hot_water_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_eddi_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n metadata: {}\n data:\n message: Hot water tank reached max temperature.\n title: Eddi\n log_level: Debug\n - action: timer.start\n target:\n entity_id: timer.eddi_max_temperature_reached\n data:\n duration: 04:00:00\n - action: script.hvac_check_eddi_boost_hot_water\n data:\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n mode: single", "config": [ { "name": "Enable Eddi Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_eddi_automations", "device_id": null } }, { "name": "Enable Hot Water Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hot_water_automations", "device_id": null } }, { "name": "MyEnergi Eddi Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_eddi_status", "device_id": null } }, { "name": "Octopus Energy Electricity Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_current_rate", "device_id": null } }, { "name": "Eddi Max Temperature Reached", "room": null, "type": "timer", "id": { "entity_id": "timer.eddi_max_temperature_reached", "device_id": null } } ] }, { "id": "'1694521590171'", "automation": "- id: '1694521590171'\n alias: 'Front Garden: Doorbell Pressed'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - event.front_door_ding\n conditions: []\n actions:\n - parallel:\n - action: script.send_direct_notification\n data:\n message: Someone pressed the door bell.\n title: Porch\n people:\n entity_id:\n - person.danny\n - person.terina\n - action: script.alexa_announce\n data:\n message: Ding dong.\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.wait_for_doorbell_camera_update\n - alias: Delayed notification\n sequence:\n - action: todo.get_items\n target:\n entity_id:\n - todo.shared_notifications\n data:\n status: needs_action\n response_variable: todo_list\n - if:\n - condition: state\n entity_id: group.tracked_people\n state: not_home\n - alias: Does not already exist\n condition: template\n value_template: '{%- for t in todo_list[''todo.shared_notifications''][''items'']\n -%} {%- if t.summary == '':door: :bell: Someone rung the door bell.''\n -%} {{ false }} {%- break -%} {%- endif-%} {%- endfor -%}'\n then:\n - action: todo.add_item\n data:\n item: ':door: :bell: Someone rung the door bell.'\n target:\n entity_id: todo.shared_notifications\n - alias: Take picture\n sequence:\n - wait_for_trigger:\n - trigger: state\n entity_id:\n - camera.front_door\n timeout:\n minutes: 1\n continue_on_timeout: false\n - action: script.send_direct_notification_with_url\n data:\n message: Door bell pressed\n title: Front Door\n people:\n entity_id:\n - person.danny\n url: '{{ state_attr(''camera.front_door'', ''entity_picture'') }}'\n url_type: image\n - action: script.send_direct_notification_with_url\n data:\n message: Door bell pressed\n title: Front Door\n people:\n entity_id:\n - person.danny\n url: '{{ state_attr(''camera.front_door'', ''video_url'') }}'\n url_type: video\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } }, { "name": "Front Door", "room": "Porch", "type": "camera", "id": { "entity_id": "camera.front_door", "device_id": null } }, { "name": "Front Door Ding", "room": "Porch", "type": "event", "id": { "entity_id": "event.front_door_ding", "device_id": null } }, { "name": "Wait For Doorbell Camera Update", "room": "Porch", "type": "input_boolean", "id": { "entity_id": "input_boolean.wait_for_doorbell_camera_update", "device_id": null } }, { "name": "Shared Notifications", "room": null, "type": "todo", "id": { "entity_id": "todo.shared_notifications", "device_id": null } } ] }, { "id": "'1621070004545'", "automation": "- id: '1621070004545'\n alias: 'Front Garden: Doorbell Camera Updated'\n description: ''\n triggers:\n - trigger: state\n entity_id: camera.front_door\n not_to: unavailable\n conditions:\n - condition: template\n value_template: '{{ state_attr(''camera.front_door'', ''last_video_id'') | string\n != states(''input_text.doorbell_last_video_id'') | string}}'\n actions:\n - action: downloader.download_file\n data:\n url: '{{ state_attr(''camera.front_door'', ''video_url'') }}'\n subdir: front_door\n filename: latest.mp4\n overwrite: true\n mode: queued\n max: 10", "config": [ { "name": "Front Door", "room": "Porch", "type": "camera", "id": { "entity_id": "camera.front_door", "device_id": null } }, { "name": "Doorbell Last Video ID", "room": "Front Door", "type": "input_text", "id": { "entity_id": "input_text.doorbell_last_video_id", "device_id": null } } ] }, { "id": "'1720276673719'", "automation": "- id: '1720276673719'\n alias: 'Front Garden: Vehicle Detected On Driveway'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.driveway_vehicle_detected\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: camera.snapshot\n metadata: {}\n data:\n filename: '{{ states(''input_text.driveway_vehicle_latest_image_path'') }}/vehicle_latest.jpg'\n target:\n entity_id: camera.driveway_high_resolution_channel\n - action: gpt4vision.image_analyzer\n data:\n provider: Ollama\n max_tokens: 100\n target_width: 3840\n model: llava\n detail: high\n temperature: 0.1\n include_filename: false\n message: Is there a Tesco van Ignoring all other vehicles found. Answer with\n yes or no.\n image_file: '{{ states(''input_text.driveway_vehicle_latest_image_path'') }}/vehicle_latest.jpg'\n response_variable: ai\n - action: script.send_home_log_with_local_attachments\n data:\n message: '{{ ai.response_text }}'\n title: Vehicle Detected\n filePath: '{{ states(''input_text.driveway_vehicle_latest_image_path'') }}/vehicle_latest.jpg'\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Driveway Vehicle Detected", "room": "Front Garden", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.driveway_vehicle_detected", "device_id": null } }, { "name": "Driveway High Resolution Channel", "room": "Driveway", "type": "camera", "id": { "entity_id": "camera.driveway_high_resolution_channel", "device_id": null } }, { "name": "Driveway Vehicle Latest Image Path", "room": "Driveway", "type": "input_text", "id": { "entity_id": "input_text.driveway_vehicle_latest_image_path", "device_id": null } } ] }, { "id": "'1660894232444'", "automation": "- id: '1660894232444'\n alias: 'Front Garden: Below Direct Sun Light'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n for:\n hours: 0\n minutes: 10\n seconds: 0\n below: input_number.close_blinds_brightness_threshold\n conditions:\n - condition: state\n entity_id: sensor.season\n state: summer\n actions:\n - action: script.send_to_home_log\n data:\n message: Sun light has fallen below {{ states('input_number.close_blinds_brightness_threshold')\n }} ({{ states('sensor.front_garden_motion_illuminance', with_unit=True) }}).\n Opening office blinds/curtains.\n title: Front Garden\n log_level: Normal\n - action: cover.set_cover_position\n data:\n position: 25\n target:\n entity_id: cover.office_blinds\n - if:\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n - condition: sun\n before: sunset\n - condition: state\n entity_id: binary_sensor.bedroom_tv_powered_on\n state: 'off'\n then:\n - action: cover.open_cover\n target:\n entity_id: cover.bedroom_blinds\n - if:\n - condition: numeric_state\n entity_id: cover.ashlees_bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n - condition: time\n before: input_datetime.childrens_bed_time\n then:\n - action: cover.open_cover\n target:\n entity_id: cover.ashlees_bedroom_blinds\n mode: single", "config": [ { "name": "close blinds brightness threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.close_blinds_brightness_threshold", "device_id": null } }, { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "bedroom tv powered on", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_tv_powered_on", "device_id": null } }, { "name": "ashlees bedroom blinds", "room": "ashlees bedroom", "type": "cover", "id": { "entity_id": "cover.ashlees_bedroom_blinds", "device_id": null } }, { "name": "Office Blinds", "room": "Office", "type": "cover", "id": { "entity_id": "cover.office_blinds", "device_id": null } }, { "name": "Front Garden Motion Illuminance", "room": "Front Garden", "type": "sensor", "id": { "entity_id": "sensor.front_garden_motion_illuminance", "device_id": null } }, { "name": "Season", "room": null, "type": "sensor", "id": { "entity_id": "sensor.season", "device_id": null } } ] }, { "id": "'1714914120928'", "automation": "- id: '1714914120928'\n alias: 'Front Garden: Lock Box State Changed'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.outdoor_lock_box_contact\n not_from:\n - unknown\n - unavailable\n not_to:\n - unknown\n - unavailable\n - trigger: state\n entity_id:\n - binary_sensor.outdoor_lock_box_contact\n not_from:\n - unknown\n - unavailable\n to:\n - unknown\n - unavailable\n for:\n hours: 0\n minutes: 1\n seconds: 0\n conditions: []\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n title: Lock Box\n message: Was {{ states('binary_sensor.outdoor_lock_box_contact') }}\n people:\n entity_id:\n - person.danny\n - person.terina\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "Outdoor Lock Box Contact", "room": "Front Garden", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.outdoor_lock_box_contact", "device_id": null } } ] }, { "id": "'1718364408150'", "automation": "- id: '1718364408150'\n alias: 'Front Garden: Lockbox Sensor Disconnected'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.outdoor_lock_box_contact\n to: unavailable\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions: []\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: Lockbox sensor has disconnected.\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Outdoor Lock Box Contact", "room": "Front Garden", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.outdoor_lock_box_contact", "device_id": null } } ] }, { "id": "'1613937312554'", "automation": "- id: '1613937312554'\n alias: Home Assistant CI\n description: https://community.home-assistant.io/t/guide-to-setting-up-a-fully-automated-ci-for-hassio/51576\n triggers:\n - trigger: webhook\n webhook_id: git_pull\n allowed_methods:\n - POST\n local_only: false\n conditions:\n - condition: state\n entity_id: input_boolean.enable_github_integration\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.json.key_token|string == states(''input_text.github_pull_key'')\n }}'\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'build :white_check_mark: passed. Pulling changes.'\n title: ':construction_worker: :hammer_and_wrench: GitHub'\n log_level: Normal\n - action: hassio.addon_start\n data:\n addon: core_git_pull\n default:\n - action: script.send_direct_notification\n data:\n message: 'Build :white_check_mark: passed but incorrect :key: key was sent.'\n title: ':warning: :construction_worker: :hammer_and_wrench: GitHub :warning:'\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Enable Github Integration", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_github_integration", "device_id": null } }, { "name": "GitHub Pull Key", "room": null, "type": "input_text", "id": { "entity_id": "input_text.github_pull_key", "device_id": null } } ] }, { "id": "'1666470473971'", "automation": "- id: '1666470473971'\n alias: 'HVAC: Heating Mode Changed'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.thermostat_mode\n to: SCHEDULE\n - trigger: state\n entity_id:\n - water_heater.thermostat\n to: eco\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: Central heating mode changed to {{ states('sensor.thermostat_mode')\n }}\n title: ':hotsprings: :droplet: Boiler'\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n sequence:\n - action: script.send_direct_notification\n data:\n message: In holiday mode so heating should not be on. Turning heating off.\n title: ':hotsprings: :droplet: Boiler'\n people:\n entity_id:\n - person.danny\n - action: script.set_central_heating_to_away_mode\n data: {}\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Thermostat Mode", "room": null, "type": "sensor", "id": { "entity_id": "sensor.thermostat_mode", "device_id": null } }, { "name": "Thermostat", "room": null, "type": "water_heater", "id": { "entity_id": "water_heater.thermostat", "device_id": null } } ] }, { "id": "'1666470473973'", "automation": "- id: '1666470473973'\n alias: 'HVAC: Heating Mode Changed To Automatic'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - climate.thermostat\n to: auto\n conditions:\n - condition: state\n entity_id: input_boolean.enable_central_heating_automations\n state: 'on'\n actions:\n - action: script.send_direct_notification\n data:\n message: Thermostat switched to auto mode (again).\n title: ':hotsprings: :droplet: Boiler'\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "Enable Central Heating Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_central_heating_automations", "device_id": null } } ] }, { "id": "'1666470473974'", "automation": "- id: '1666470473974'\n alias: 'HVAC: Heating Turned On'\n description: Also check every 5 minutes for back to back schedules\n trace:\n stored_traces: 40\n triggers:\n - trigger: state\n entity_id:\n - schedule.central_heating\n to: 'on'\n - trigger: time_pattern\n minutes: /5\n conditions:\n - or:\n - condition: not\n conditions:\n - alias: Thermostat temperature is the same as schedule temperature\n condition: template\n value_template: '{{ state_attr(''climate.thermostat'', ''temperature'') ==\n state_attr(''schedule.central_heating'', ''temperature'') }}'\n - condition: not\n conditions:\n - condition: state\n entity_id: climate.thermostat\n state: heat\n - condition: state\n entity_id: schedule.central_heating\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_central_heating_automations\n state: 'on'\n actions:\n - action: script.check_and_run_central_heating\n data: {}\n mode: queued\n max: 2", "config": [ { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "Enable Central Heating Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_central_heating_automations", "device_id": null } }, { "name": "Central Heating", "room": null, "type": "schedule", "id": { "entity_id": "schedule.central_heating", "device_id": null } } ] }, { "id": "'1666470473975'", "automation": "- id: '1666470473975'\n alias: 'HVAC: Heating Turned Off'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - schedule.central_heating\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_central_heating_automations\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n sequence:\n - action: script.send_to_home_log\n data:\n message: In Holiday mode. Skipping turning off central heating.\n title: ':hotsprings: :droplet: Boiler'\n log_level: Normal\n default:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Thermostat switched off. Setting temperature to 7c.\n title: ':hotsprings: :droplet: Boiler'\n log_level: Normal\n - action: climate.set_temperature\n target:\n entity_id:\n - climate.thermostat\n data:\n hvac_mode: heat\n temperature: 7\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "Enable Central Heating Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_central_heating_automations", "device_id": null } }, { "name": "Central Heating", "room": null, "type": "schedule", "id": { "entity_id": "schedule.central_heating", "device_id": null } } ] }, { "id": "'1740955286496'", "automation": "- id: '1740955286496'\n alias: 'HVAC: Unavailable'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - climate.thermostat\n to: unavailable\n for:\n hours: 1\n minutes: 0\n seconds: 0\n conditions:\n - condition: state\n entity_id: input_boolean.enable_central_heating_automations\n state: 'on'\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n people:\n entity_id:\n - person.danny\n - person.terina\n message: Hive central heating is offline.\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "Enable Central Heating Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_central_heating_automations", "device_id": null } } ] }, { "id": "'1666470473972'", "automation": "- id: '1666470473972'\n alias: 'HVAC: Hot Water Mode Changed'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - water_heater.thermostat\n to: eco\n - trigger: state\n entity_id:\n - water_heater.thermostat\n to: 'on'\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: Hot water mode changed to {{ states('water_heater.thermostat') }}\n title: ':hotsprings: :droplet: Boiler'\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n sequence:\n - action: script.send_direct_notification\n data:\n message: In holiday mode so hot water should not be on. Turning hot water\n off.\n title: ':hotsprings: :droplet: Boiler'\n people:\n entity_id:\n - person.danny\n - action: script.set_how_water_to_away_mode\n data: {}\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Thermostat", "room": null, "type": "water_heater", "id": { "entity_id": "water_heater.thermostat", "device_id": null } } ] }, { "id": "'1662589192400'", "automation": "- id: '1662589192400'\n alias: 'Central Heating: Turn On Hot Water'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - schedule.hot_water\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_hot_water_automations\n state: 'on'\n - not:\n - condition: state\n entity_id: water_heater.thermostat\n state: 'on'\n actions:\n - choose:\n - alias: In Holiday Mode\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n sequence:\n - action: script.send_to_home_log\n data:\n message: In Holiday mode. Skipping turning on hot water.\n title: ':hotsprings: Central Heating'\n log_level: Debug\n - alias: Already Heated Hot water\n conditions:\n - condition: template\n value_template: '{{ (states(''sensor.myenergi_eddi_energy_consumed_per_heating_cycle'')|float(0))\n > (states(''input_number.hot_water_solar_diverter_boiler_cut_off'')|float(0))\n }}\n\n '\n sequence:\n - action: script.send_to_home_log\n data:\n message: 'Eddi has heated the hot water {{ states(''sensor.myenergi_eddi_energy_consumed_per_heating_cycle'')\n }} (> {{ states(''input_number.hot_water_solar_diverter_boiler_cut_off'')|float(0)\n }}). {{ state_attr(''sensor.myenergi_eddi_energy_consumed_session'', ''unit_of_measurement'')\n }} was heated today.\n\n\n Skipping scheduled turning on hot water.'\n title: ':hotsprings: Central Heating'\n log_level: Normal\n default:\n - action: script.send_to_home_log\n data:\n message: Turning on hot water from schedule.\n title: ':hotsprings: Central Heating'\n log_level: Debug\n - action: script.set_how_water_to_on\n data: {}\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Enable Hot Water Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hot_water_automations", "device_id": null } }, { "name": "Hot Water Solar Diverter Boiler Cut Off", "room": null, "type": "input_number", "id": { "entity_id": "input_number.hot_water_solar_diverter_boiler_cut_off", "device_id": null } }, { "name": "Hot Water", "room": null, "type": "schedule", "id": { "entity_id": "schedule.hot_water", "device_id": null } }, { "name": "MyEnergi Eddi Energy Consumed Per Heating Cycle", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_eddi_energy_consumed_per_heating_cycle", "device_id": null } }, { "name": "Thermostat", "room": null, "type": "water_heater", "id": { "entity_id": "water_heater.thermostat", "device_id": null } } ] }, { "id": "'1662589333109'", "automation": "- id: '1662589333109'\n alias: 'Central Heating: Turn Off Hot Water'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - schedule.hot_water\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n conditions:\n - condition: state\n entity_id: input_boolean.enable_hot_water_automations\n state: 'on'\n - not:\n - condition: state\n entity_id: water_heater.thermostat\n state: 'off'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n sequence:\n - action: script.send_to_home_log\n data:\n message: In Holiday mode. Skipping turning off hot water.\n title: ':hotsprings: Central Heating'\n log_level: Normal\n default:\n - action: script.send_to_home_log\n data:\n message: Turning off hot water from schedule.\n title: ':hotsprings: Central Heating'\n log_level: Normal\n - action: script.set_hot_water_to_home_mode\n data: {}\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Enable Hot Water Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hot_water_automations", "device_id": null } }, { "name": "Hot Water", "room": null, "type": "schedule", "id": { "entity_id": "schedule.hot_water", "device_id": null } }, { "name": "Thermostat", "room": null, "type": "water_heater", "id": { "entity_id": "water_heater.thermostat", "device_id": null } } ] }, { "id": "'1631138390675'", "automation": "- id: '1631138390675'\n alias: 'Home Mode: Changed'\n description: ''\n triggers:\n - trigger: state\n entity_id: input_select.home_mode\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':repeat: Entering {{ states(''input_select.home_mode'') }} mode.'\n title: Home Mode\n log_level: Debug\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n sequence:\n - action: script.home_mode_turn_on_holiday_mode\n data: {}\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Normal\n sequence:\n - action: script.home_mode_turn_on_normal_mode\n data: {}\n default: []\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } } ] }, { "id": "'1646257483770'", "automation": "- id: '1646257483770'\n alias: 'Home: Privacy Mode Turned On'\n description: ''\n triggers:\n - trigger: state\n entity_id: input_boolean.privacy_mode\n to: 'on'\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':detective: Privacy mode enabled.'\n log_level: Debug\n - action: script.send_to_home_log\n data:\n message: ':camera: Turning conservatory camera recording and detection off.'\n mode: single", "config": [ { "name": "Privacy Mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.privacy_mode", "device_id": null } } ] }, { "id": "'1647094528209'", "automation": "- id: '1647094528209'\n alias: Enter Naughty Step Mode\n description: ''\n triggers:\n - trigger: state\n entity_id: input_boolean.naughty_step_mode\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: Entering naughty step mode.\n log_level: Debug\n - action: scene.turn_on\n data: {}\n target:\n entity_id:\n - scene.living_room_lights_off\n - scene.stairs_light_2_off\n - scene.stairs_light_off\n - action: input_boolean.turn_off\n data: {}\n target:\n entity_id:\n - input_boolean.enable_living_room_motion_triggers\n - input_boolean.enable_stairs_motion_triggers\n mode: single", "config": [ { "name": "naughty step mode", "room": "house", "type": "input_boolean", "id": { "entity_id": "input_boolean.naughty_step_mode", "device_id": null } }, { "name": "enable living room motion triggers", "room": "living room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_motion_triggers", "device_id": null } }, { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } }, { "name": "Living Room Lights", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lights", "device_id": null } }, { "name": "Living Room Lights Off", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lights_off", "device_id": null } }, { "name": "Stairs Light 2 Off", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_2_off", "device_id": null } }, { "name": "Stairs Light Off", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_off", "device_id": null } } ] }, { "id": "'1608489438291'", "automation": "- id: '1608489438291'\n alias: 'Home Assistant: Shutdown'\n description: ''\n triggers:\n - trigger: homeassistant\n event: shutdown\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':black_square_for_stop: Shutting down.'\n title: Home Assistant\n log_level: Normal\n mode: single", "config": [] }, { "id": "'1608489396143'", "automation": "- id: '1608489396143'\n alias: 'Home Assistant: Start Up'\n description: ''\n triggers:\n - trigger: homeassistant\n event: start\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':arrow_forward: Started.'\n title: Home Assistant\n log_level: Normal\n - alias: Check Solar Assistant\n action: script.solar_assistant_check_charging_mode\n data:\n event: event\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n current_electricity_export_rate: '{{ states(''sensor.octopus_energy_electricity_export_current_rate'')\n }}'\n - alias: Check Zappi\n choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_zappi_automations\n state: 'on'\n - not:\n - condition: state\n entity_id: sensor.myenergi_zappi_plug_status\n state: EV Disconnected\n sequence:\n - action: script.zappi_check_ev_charge\n data:\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n current_electricity_export_rate: '{{ states(''sensor.octopus_energy_electricity_export_current_rate'')\n }}'\n - alias: Is Terina working from home\n action: script.check_terinas_work_laptop_status\n data: {}\n - alias: Check 3D printer enclosure light\n action: script.3d_printer_check_turn_off_light\n data: {}\n - alias: Check Magic Mirror casting\n choose:\n - conditions:\n - or:\n - condition: state\n entity_id: input_select.home_mode\n state: guest\n - condition: state\n entity_id: group.tracked_people\n state: home\n - not:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: armed_away\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Casting Home Assistant.\n title: ':mirror: Magic Mirror'\n log_level: Debug\n - action: cast.show_lovelace_view\n data:\n entity_id: media_player.stairs_chromecast\n dashboard_path: lovelace-magicmirror\n view_path: home\n default: []\n - if:\n - condition: state\n entity_id: binary_sensor.front_door\n state: 'off'\n then:\n - action: light.turn_off\n target:\n label_id: dedicate_notification_light\n entity_id: light.porch\n data: {}\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } }, { "name": "stairs chromecast", "room": "stairs", "type": "media_player", "id": { "entity_id": "media_player.stairs_chromecast", "device_id": null } }, { "name": "Enable Zappi Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_zappi_automations", "device_id": null } }, { "name": "Porch", "room": "Porch", "type": "light", "id": { "entity_id": "light.porch", "device_id": null } }, { "name": "MyEnergi Zappi Plug Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_zappi_plug_status", "device_id": null } }, { "name": "Octopus Energy Electricity Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_current_rate", "device_id": null } }, { "name": "Octopus Energy Electricity Export Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_export_current_rate", "device_id": null } } ] }, { "id": "'1664657264986'", "automation": "- id: '1664657264986'\n alias: 'Home Assistant: Update Available'\n description: ''\n triggers:\n - trigger: state\n entity_id: update.home_assistant_core_update\n from: 'off'\n to: 'on'\n conditions:\n - not:\n - condition: state\n entity_id: input_select.home_assistant_automatic_upgrade\n state: Disabled\n actions:\n - action: script.upgrade_home_assistant\n data: {}\n mode: single", "config": [ { "name": "Home Assistant Automatic Upgrade", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_assistant_automatic_upgrade", "device_id": null } }, { "name": "Home Assistant Core Update", "room": null, "type": "update", "id": { "entity_id": "update.home_assistant_core_update", "device_id": null } } ] }, { "id": "'1738875026613'", "automation": "- id: '1738875026613'\n alias: 'Home Assistant: Weekday Backup'\n description: ''\n triggers:\n - trigger: time\n at: '17:00:00'\n conditions:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n actions:\n - action: hassio.backup_full\n metadata: {}\n data:\n compressed: true\n mode: single", "config": [] }, { "id": "'1738875026614'", "automation": "- id: '1738875026614'\n alias: 'Home Assistant: Weekend Backup'\n description: ''\n triggers:\n - trigger: time\n at: '11:00:00'\n conditions:\n - condition: time\n weekday:\n - sat\n - sun\n actions:\n - action: hassio.backup_full\n metadata: {}\n data:\n compressed: true\n mode: single", "config": [] }, { "id": "'1678125037184'", "automation": "- id: '1678125037184'\n alias: 'HVAC: House Target Temperature Changed'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.thermostat_target_temperature\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: 'Home thermostat target temperature changed.\n\n Updating TRV from {{ state_attr(''climate.living_room_radiator'', ''temperature'')|float(22)\n }} to {{ state_attr(''climate.thermostat'', ''temperature'')|float(22) }}c.'\n title: ':hotsprings: :droplet: Boiler'\n log_level: Debug\n - action: climate.set_temperature\n data:\n temperature: '{{ states(''sensor.thermostat_target_temperature'')|float(22)\n }}'\n target:\n entity_id:\n - climate.ashlees_bedroom_radiator\n - climate.bedroom_radiator\n - climate.kitchen_radiator\n - climate.leos_bedroom_radiator\n - climate.living_room_radiator\n - climate.office_radiator\n mode: single", "config": [ { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "Ashlees Bedroom Radiator", "room": "Ashlee's Bedroom", "type": "climate", "id": { "entity_id": "climate.ashlees_bedroom_radiator", "device_id": null } }, { "name": "Bedroom Radiator", "room": "Bedroom", "type": "climate", "id": { "entity_id": "climate.bedroom_radiator", "device_id": null } }, { "name": "Kitchen Radiator", "room": "Kitchen", "type": "climate", "id": { "entity_id": "climate.kitchen_radiator", "device_id": null } }, { "name": "Leos Bedroom Radiator", "room": "Leo's Bedroom", "type": "climate", "id": { "entity_id": "climate.leos_bedroom_radiator", "device_id": null } }, { "name": "Living Room Radiator", "room": "Living Room", "type": "climate", "id": { "entity_id": "climate.living_room_radiator", "device_id": null } }, { "name": "Office Radiator", "room": "Office", "type": "climate", "id": { "entity_id": "climate.office_radiator", "device_id": null } }, { "name": "Thermostat Target Temperature", "room": null, "type": "sensor", "id": { "entity_id": "sensor.thermostat_target_temperature", "device_id": null } } ] }, { "id": "'1678271646645'", "automation": "- id: '1678271646645'\n alias: 'HVAC: Radiators Below Target Temperature'\n description: Monitor rooms below temperature with TRVs\n triggers:\n - trigger: numeric_state\n entity_id: sensor.bedroom_radiator_temperature\n for:\n hours: 0\n minutes: 30\n seconds: 0\n below: sensor.bedroom_radiator_minimum_target_temperature\n - trigger: numeric_state\n entity_id: sensor.leos_radiator_temperature\n for:\n hours: 0\n minutes: 30\n seconds: 0\n below: sensor.leos_radiator_minimum_target_temperature\n - trigger: numeric_state\n entity_id: sensor.living_room_radiator_temperature\n for:\n hours: 0\n minutes: 30\n seconds: 0\n below: sensor.living_room_radiator_minimum_target_temperature\n - trigger: numeric_state\n entity_id: sensor.office_radiator_temperature\n for:\n hours: 0\n minutes: 30\n seconds: 0\n below: sensor.office_radiator_minimum_target_temperature\n id: office\n conditions:\n - not:\n - condition: state\n entity_id: climate.thermostat\n attribute: hvac_action\n state: heating\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id:\n - office\n - condition: state\n entity_id: binary_sensor.office_windows\n state: 'off'\n - condition: state\n entity_id: binary_sensor.conservatory_door\n state: 'off'\n sequence:\n - action: script.send_direct_notification\n data:\n message: Radiator to call for heat.\n title: ':office: Office'\n people:\n entity_id:\n - person.danny\n default:\n - action: script.send_direct_notification\n data:\n message: Radiator call for heat in.\n title: '{%- if trigger.entity_id == ''sensor.bedroom_radiator_temperature''\n -%} :bed: bedroom {%- elif trigger.entity_id == ''sensor.leos_radiator_temperature''\n -%} Leo''s :bed: bedroom {%- elif trigger.entity_id == ''sensor.living_room_radiator_temperature''\n -%} :couch_and_lamp: Living Room {%- elif trigger.entity_id == ''sensor.office_radiator_temperature''\n -%} :office: Office {%- else -%} Unknown location {%- endif -%}'\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "conservatory door", "room": "conservatory", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.conservatory_door", "device_id": null } }, { "name": "Office Windows", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_windows", "device_id": null } }, { "name": "Bedroom Radiator Temperature", "room": "Bedroom", "type": "sensor", "id": { "entity_id": "sensor.bedroom_radiator_temperature", "device_id": null } }, { "name": "Leo's Radiator Temperature", "room": "Leo's Bedroom", "type": "sensor", "id": { "entity_id": "sensor.leos_radiator_temperature", "device_id": null } }, { "name": "Living Room Radiator Temperature", "room": "Living Room", "type": "sensor", "id": { "entity_id": "sensor.living_room_radiator_temperature", "device_id": null } }, { "name": "Office Radiator Temperature", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.office_radiator_temperature", "device_id": null } }, { "name": "Trigger Entity ID", "room": null, "type": "trigger", "id": { "entity_id": "trigger.entity_id", "device_id": null } } ] }, { "id": "'1583797341647'", "automation": "- id: '1583797341647'\n alias: 'Kitchen: Turn Off Lights At Night'\n description: ''\n triggers:\n - trigger: time\n at: '23:30:00'\n conditions:\n - condition: state\n entity_id: light.kitchen_lights\n state: 'on'\n actions:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int >\n 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Turning main lights\n off\"'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_main_lights_off\n data:\n transition: 2\n mode: single", "config": [ { "name": "Kitchen Lights", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_lights", "device_id": null } }, { "name": "Kitchen Main Lights Off", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_main_lights_off", "device_id": null } } ] }, { "id": "'1606652871369'", "automation": "- id: '1606652871369'\n alias: 'Kitchen: No Motion'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_area_motion\n from: 'on'\n to: 'off'\n for: 00:05:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_kitchen_motion_triggers\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion after :city_sunrise: and before :city_sunset:.\n Turning main lights off.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_main_lights_dim\n data:\n transition: 2\n - choose:\n - conditions:\n - condition: time\n after: 00:00:00\n - condition: sun\n before: sunset\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion after :city_sunrise: and before :city_sunset:.\n Turning ambient lights off.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_ambient_lights_off\n data:\n transition: 2\n - conditions:\n - and:\n - condition: sun\n after: sunset\n - condition: time\n before: '23:59:59'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion after :city_sunset: and before :city_sunrise:.\n :low_brightness: Dimming ambient :bulb: :low_brightness: lights.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_ambient_lights_dim\n default: []\n mode: single", "config": [ { "name": "kitchen area motion", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_area_motion", "device_id": null } }, { "name": "Enable Kitchen Motion Triggers", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_kitchen_motion_triggers", "device_id": null } }, { "name": "Kitchen Ambient Lights Dim", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_ambient_lights_dim", "device_id": null } }, { "name": "Kitchen Ambient Lights Off", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_ambient_lights_off", "device_id": null } }, { "name": "Kitchen Main Lights Dim", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_main_lights_dim", "device_id": null } } ] }, { "id": "'1606652871370'", "automation": "- id: '1606652871370'\n alias: 'Kitchen: No Motion Turn Off Lights'\n description: ''\n triggers:\n - trigger: state\n from: 'on'\n to: 'off'\n for: 00:07:00\n entity_id: binary_sensor.kitchen_area_motion\n conditions:\n - condition: state\n entity_id: input_boolean.enable_kitchen_motion_triggers\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion after :city_sunrise: and before :city_sunset:.\n Turning main lights off.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_main_lights_off\n data:\n transition: 2\n - choose:\n - conditions:\n - and:\n - condition: sun\n after: sunset\n - condition: time\n before: '23:59:59'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion after :city_sunset: and before :city_sunrise:.\n Turning ambient lights off.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_ambient_lights_off\n data:\n transition: 2\n default: []\n mode: single", "config": [ { "name": "kitchen area motion", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_area_motion", "device_id": null } }, { "name": "Enable Kitchen Motion Triggers", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_kitchen_motion_triggers", "device_id": null } }, { "name": "Kitchen Ambient Lights Off", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_ambient_lights_off", "device_id": null } }, { "name": "Kitchen Main Lights Off", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_main_lights_off", "device_id": null } } ] }, { "id": "'1606294735952'", "automation": "- id: '1606294735952'\n alias: 'Kitchen: Turn Off Lights In The Morning'\n description: ''\n triggers:\n - trigger: time\n at: 09:00:00\n id: weekend\n - trigger: time\n at: 08:50:00\n id: weekday\n conditions:\n - condition: time\n weekday:\n - sat\n - sun\n - condition: state\n entity_id: light.kitchen_lights\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_kitchen_motion_triggers\n state: 'on'\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - condition: trigger\n id: weekday\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute |\n int > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Turning\n ambient lights off.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_ambient_lights_off\n data:\n transition: 2\n - conditions:\n - condition: time\n weekday:\n - sat\n - sun\n - condition: trigger\n id: weekend\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%H'')}}: Turning ambient lights off.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_ambient_lights_off\n data:\n transition: 2\n default: []\n mode: single", "config": [ { "name": "Enable Kitchen Motion Triggers", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_kitchen_motion_triggers", "device_id": null } }, { "name": "Kitchen Lights", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_lights", "device_id": null } }, { "name": "Kitchen Ambient Lights Off", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_ambient_lights_off", "device_id": null } } ] }, { "id": "'1588197104336'", "automation": "- id: '1588197104336'\n alias: 'Kitchen: Timed Turn On Lights (Dim)'\n description: ''\n triggers:\n - trigger: sun\n event: sunset\n - trigger: time\n at: 06:45:00\n conditions:\n - and:\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: Guest\n - condition: state\n entity_id: group.tracked_people\n state: home\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':bulb: At least one person is :house_with_garden: home. Dimming\n accent :bulb: :low_brightness: lights.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_dim_accent_lights\n data:\n transition: 2\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } }, { "name": "Kitchen Dim Accent Lights", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_dim_accent_lights", "device_id": null } } ] }, { "id": "'1606158191303'", "automation": "- id: '1606158191303'\n alias: 'Kitchen: Motion Detected Table Lights Off'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.kitchen_area_motion\n - binary_sensor.kitchen_motion_2_occupancy\n - binary_sensor.kitchen_motion_occupancy\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_kitchen_motion_triggers\n state: 'on'\n - or:\n - condition: state\n entity_id: light.kitchen_table_white\n state: 'off'\n - and:\n - condition: state\n entity_id: light.kitchen_table_white\n state: 'on'\n - condition: numeric_state\n entity_id: light.kitchen_table_white\n attribute: brightness\n below: 100\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected. Turning table :bulb: :high_brightness:\n lights on.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_table_lights_on\n mode: queued\n max: 10", "config": [ { "name": "kitchen area motion", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_area_motion", "device_id": null } }, { "name": "Kitchen Motion 2 Occupancy", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_motion_2_occupancy", "device_id": null } }, { "name": "Kitchen Motion Occupancy", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_motion_occupancy", "device_id": null } }, { "name": "Enable Kitchen Motion Triggers", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_kitchen_motion_triggers", "device_id": null } }, { "name": "Kitchen Table White", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_table_white", "device_id": null } }, { "name": "Kitchen Table Lights On", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_table_lights_on", "device_id": null } } ] }, { "id": "'1606158191306'", "automation": "- id: '1606158191306'\n alias: 'Kitchen: Motion Detected Cooker Lights Off'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.kitchen_area_motion\n - binary_sensor.kitchen_motion_2_occupancy\n - binary_sensor.kitchen_motion_occupancy\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_kitchen_motion_triggers\n state: 'on'\n - condition: state\n entity_id: light.kitchen_cooker_white\n state: 'off'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected and it''s dark ({{ states(''sensor.kitchen_motion_illuminance'')\n }} & {{ states(''sensor.kitchen_motion_2_illuminance_lux'') }} < {{ states(''input_number.kitchen_light_level_threshold'')\n }} & {{ states(''input_number.kitchen_light_level_2_threshold'', with_unit=True)\n }}). Turning kitchen cooker :bulb: :high_brightness: lights on.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_cooker_lights_on\n mode: queued\n max: 10", "config": [ { "name": "kitchen area motion", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_area_motion", "device_id": null } }, { "name": "Kitchen Motion 2 Occupancy", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_motion_2_occupancy", "device_id": null } }, { "name": "Kitchen Motion Occupancy", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_motion_occupancy", "device_id": null } }, { "name": "Enable Kitchen Motion Triggers", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_kitchen_motion_triggers", "device_id": null } }, { "name": "Kitchen Light Level 2 Threshold", "room": "Kitchen", "type": "input_number", "id": { "entity_id": "input_number.kitchen_light_level_2_threshold", "device_id": null } }, { "name": "Kitchen Light Level Threshold", "room": "Kitchen", "type": "input_number", "id": { "entity_id": "input_number.kitchen_light_level_threshold", "device_id": null } }, { "name": "Kitchen Cooker White", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_cooker_white", "device_id": null } }, { "name": "Kitchen Cooker Lights On", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_cooker_lights_on", "device_id": null } }, { "name": "Kitchen Motion 2 Illuminance Lux", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.kitchen_motion_2_illuminance_lux", "device_id": null } }, { "name": "Kitchen Motion Illuminance", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.kitchen_motion_illuminance", "device_id": null } } ] }, { "id": "'1606158191309'", "automation": "- id: '1606158191309'\n alias: 'Kitchen: Motion Detected Cooker Lights On'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.kitchen_area_motion\n - binary_sensor.kitchen_motion_2_occupancy\n - binary_sensor.kitchen_motion_occupancy\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_kitchen_motion_triggers\n state: 'on'\n - condition: state\n entity_id: light.kitchen_cooker_white\n state: 'on'\n - condition: numeric_state\n entity_id: light.kitchen_cooker_white\n attribute: brightness\n below: 100\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected and it''s dark ({{ states(''sensor.kitchen_motion_illuminance'')\n }} & {{ states(''sensor.kitchen_motion_2_illuminance_lux'') }} < {{ states(''input_number.kitchen_light_level_threshold'')\n }} & {{ states(''input_number.kitchen_light_level_2_threshold'', with_unit=True)\n }}). Turning up cooker :bulb: :high_brightness: lights.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_cooker_lights_on\n mode: queued\n max: 10", "config": [ { "name": "kitchen area motion", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_area_motion", "device_id": null } }, { "name": "Kitchen Motion 2 Occupancy", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_motion_2_occupancy", "device_id": null } }, { "name": "Kitchen Motion Occupancy", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_motion_occupancy", "device_id": null } }, { "name": "Enable Kitchen Motion Triggers", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_kitchen_motion_triggers", "device_id": null } }, { "name": "Kitchen Light Level 2 Threshold", "room": "Kitchen", "type": "input_number", "id": { "entity_id": "input_number.kitchen_light_level_2_threshold", "device_id": null } }, { "name": "Kitchen Light Level Threshold", "room": "Kitchen", "type": "input_number", "id": { "entity_id": "input_number.kitchen_light_level_threshold", "device_id": null } }, { "name": "Kitchen Cooker White", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_cooker_white", "device_id": null } }, { "name": "Kitchen Cooker Lights On", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_cooker_lights_on", "device_id": null } }, { "name": "Kitchen Motion 2 Illuminance Lux", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.kitchen_motion_2_illuminance_lux", "device_id": null } }, { "name": "Kitchen Motion Illuminance", "room": "Kitchen", "type": "sensor", "id": { "entity_id": "sensor.kitchen_motion_illuminance", "device_id": null } } ] }, { "id": "'1606158191304'", "automation": "- id: '1606158191304'\n alias: 'Kitchen: Motion Detected Ambient Lights On'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_area_motion\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_kitchen_motion_triggers\n state: 'on'\n - or:\n - condition: state\n entity_id: light.kitchen_cabinets\n state: 'on'\n - condition: state\n entity_id: light.kitchen_down_lights\n state: 'on'\n - condition: state\n entity_id: light.kitchen_draws\n state: 'on'\n actions:\n - parallel:\n - choose:\n - conditions:\n - or:\n - condition: numeric_state\n entity_id: light.kitchen_cabinets\n attribute: brightness\n below: '100'\n - condition: numeric_state\n entity_id: light.kitchen_down_lights\n attribute: brightness\n below: '100'\n - condition: numeric_state\n entity_id: light.kitchen_draws\n attribute: brightness\n below: '100'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected. Turning up accent :bulb: :high_brightness:\n lights.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n data:\n transition: 1\n target:\n entity_id: scene.kitchen_accent_lights_on\n default: []\n mode: queued\n max: 10", "config": [ { "name": "kitchen area motion", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_area_motion", "device_id": null } }, { "name": "Enable Kitchen Motion Triggers", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_kitchen_motion_triggers", "device_id": null } }, { "name": "Kitchen Cabinets", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_cabinets", "device_id": null } }, { "name": "Kitchen Down Lights", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_down_lights", "device_id": null } }, { "name": "Kitchen Draws", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_draws", "device_id": null } }, { "name": "Kitchen Accent Lights On", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_accent_lights_on", "device_id": null } } ] }, { "id": "'1606158191305'", "automation": "- id: '1606158191305'\n alias: 'Kitchen: Motion Detected Ambient Lights Off'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_area_motion\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_kitchen_motion_triggers\n state: 'on'\n - or:\n - condition: state\n entity_id: light.kitchen_cabinets\n state: 'off'\n - condition: state\n entity_id: light.kitchen_down_lights\n state: 'off'\n - condition: state\n entity_id: light.kitchen_draws\n state: 'off'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected. Turning accent :bulb: :high_brightness:\n lights on.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: scene.turn_on\n data:\n transition: 1\n target:\n entity_id: scene.kitchen_dim_accent_lights\n mode: single", "config": [ { "name": "kitchen area motion", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_area_motion", "device_id": null } }, { "name": "Enable Kitchen Motion Triggers", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_kitchen_motion_triggers", "device_id": null } }, { "name": "Kitchen Cabinets", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_cabinets", "device_id": null } }, { "name": "Kitchen Down Lights", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_down_lights", "device_id": null } }, { "name": "Kitchen Draws", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_draws", "device_id": null } }, { "name": "Kitchen Dim Accent Lights", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_dim_accent_lights", "device_id": null } } ] }, { "id": "'1721248529363'", "automation": "- id: '1721248529363'\n alias: 'Kitchen: Cooker Light Switch Toggle'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.kitchen_cooker_light_input\n not_from:\n - unavailable\n - unknown\n not_to:\n - unavailable\n - unknown\n conditions: []\n actions:\n - action: light.toggle\n metadata: {}\n data:\n transition: 1\n target:\n entity_id: light.kitchen_cooker_white\n mode: queued\n max: 10", "config": [ { "name": "Kitchen Cooker Light Input", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_cooker_light_input", "device_id": null } }, { "name": "Kitchen Cooker White", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_cooker_white", "device_id": null } } ] }, { "id": "'1721248529364'", "automation": "- id: '1721248529364'\n alias: 'Kitchen: Table Light Switch Toggle'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.kitchen_table_light_input\n not_from:\n - unavailable\n - unknown\n not_to:\n - unavailable\n - unknown\n conditions: []\n actions:\n - action: light.toggle\n metadata: {}\n data:\n transition: 1\n target:\n entity_id: light.kitchen_table_white\n mode: queued\n max: 10", "config": [ { "name": "Kitchen Table Light Input", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_table_light_input", "device_id": null } }, { "name": "Kitchen Table White", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_table_white", "device_id": null } } ] }, { "id": "'1595678795895'", "automation": "- id: '1595678795895'\n alias: 'Kitchen: Fridge Door Open'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_fridge_door_contact\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':door: :snowflake: Fridge door opened.'\n title: ':cook: Kitchen'\n log_level: Debug\n mode: single", "config": [ { "name": "Kitchen Fridge Door Contact", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_fridge_door_contact", "device_id": null } } ] }, { "id": "'1595678900778'", "automation": "- id: '1595678900778'\n alias: 'Kitchen: Fridge Door Closed'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_fridge_door_contact\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':snowflake: Fridge :door: door closed.'\n title: ':cook: Kitchen'\n log_level: Debug\n mode: single", "config": [ { "name": "Kitchen Fridge Door Contact", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_fridge_door_contact", "device_id": null } } ] }, { "id": "'1595679010793'", "automation": "- id: '1595679010793'\n alias: 'Kitchen: Fridge Open For A Long Period Of Time'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_fridge_door_contact\n from: 'off'\n to: 'on'\n for: 00:04:00\n - trigger: state\n entity_id: binary_sensor.kitchen_fridge_door_contact\n to: 'on'\n for: 00:30:00\n - trigger: state\n entity_id: binary_sensor.kitchen_fridge_door_contact\n to: 'on'\n for: 00:45:00\n - trigger: state\n entity_id: binary_sensor.kitchen_fridge_door_contact\n to: 'on'\n for: 01:00:00\n conditions: []\n actions:\n - parallel:\n - action: script.send_direct_notification\n data:\n message: ':snowflake: Fridge :door: door is open has been open for more than\n {{ relative_time(states.binary_sensor.kitchen_fridge_door_contact.last_changed)\n }}!'\n title: ':warning: :cook: Kitchen :warning:'\n - action: script.alexa_announce\n data:\n message: Kitchen Freezer door has been open for more than {{ relative_time(states.binary_sensor.kitchen_fridge_door_contact.last_changed)\n }}!\n mode: single", "config": [ { "name": "Kitchen Fridge Door Contact", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_fridge_door_contact", "device_id": null } } ] }, { "id": "'1595678795896'", "automation": "- id: '1595678795896'\n alias: 'Kitchen: Freezer Door Open'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_freezer_door_contact\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':snowflake: Freezer :door: door opened.'\n title: ':cook: Kitchen'\n log_level: Debug\n mode: single", "config": [ { "name": "Kitchen Freezer Door Contact", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_freezer_door_contact", "device_id": null } } ] }, { "id": "'1595678900779'", "automation": "- id: '1595678900779'\n alias: 'Kitchen: Freezer Door Closed'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_freezer_door_contact\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':snowflake: Freezer :door: door closed.'\n title: ':cook: Kitchen'\n log_level: Debug\n mode: single", "config": [ { "name": "Kitchen Freezer Door Contact", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_freezer_door_contact", "device_id": null } } ] }, { "id": "'1595679010796'", "automation": "- id: '1595679010796'\n alias: 'Kitchen: Freezer Open For A Long Period Of Time'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_freezer_door_contact\n for: 00:04:00\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: script.send_direct_notification\n data:\n message: ':snowflake: Freezer :door: door has been open for more than 4 minutes!'\n title: ':warning: :cook: Kitchen :warning:'\n mode: single", "config": [ { "name": "Kitchen Freezer Door Contact", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_freezer_door_contact", "device_id": null } } ] }, { "id": "'1657801925107'", "automation": "- id: '1657801925107'\n alias: 'Kitchen: Fridge Freezer Plug Turned Off'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.ecoflow_kitchen_plug\n to: unavailable\n for:\n hours: 0\n minutes: 2\n seconds: 0\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Fridge Freezer plug is turned off.\n title: ':cook: Kitchen'\n log_level: Debug\n - action: script.send_direct_notification\n data:\n message: Fridge Freezer plug is turned unavailable.\n title: ':cook: Kitchen'\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "EcoFlow Kitchen Plug", "room": "Kitchen", "type": "switch", "id": { "entity_id": "switch.ecoflow_kitchen_plug", "device_id": null } } ] }, { "id": "'1688681085048'", "automation": "- id: '1688681085048'\n alias: 'Kitchen: Low Water Softener Salt'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.water_softener_salt_level_average\n above: input_number.low_water_softener_salt_level\n for:\n hours: 2\n minutes: 0\n seconds: 0\n conditions: []\n actions:\n - action: script.send_direct_notification\n data:\n message: Low salt in water softener.\n title: ':cook: Kitchen'\n people:\n entity_id:\n - person.danny\n - person.terina\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "Water Softener Salt Level Average", "room": null, "type": "sensor", "id": { "entity_id": "sensor.water_softener_salt_level_average", "device_id": null } } ] }, { "id": "'1688681085049'", "automation": "- id: '1688681085049'\n alias: 'Kitchen: No Water Softener Salt'\n description: ''\n triggers:\n - trigger: state\n entity_id: sensor.water_softener_salt_level_average\n to: input_number.no_water_softener_salt_level\n conditions: []\n actions:\n - action: script.send_direct_notification\n data:\n message: ':warning: No salt in water softener. :warning:'\n title: ':cook: Kitchen'\n people:\n entity_id:\n - person.danny\n - person.terina\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "Water Softener Salt Level Average", "room": null, "type": "sensor", "id": { "entity_id": "sensor.water_softener_salt_level_average", "device_id": null } } ] }, { "id": "'1694521590170'", "automation": "- id: '1694521590170'\n alias: 'Kitchen: Oven Preheated'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.oven_channel_1_power\n below: 100\n conditions:\n - condition: state\n entity_id: binary_sensor.oven_powered_on\n state: 'on'\n - condition: state\n entity_id: input_boolean.oven_preheated\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_oven_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.kitchen_oven_preheated_notification\n data:\n message: 'Oven has :hotsprings: preheated.'\n title: ':cook: Kitchen'\n - action: input_boolean.turn_on\n data: {}\n target:\n entity_id: input_boolean.oven_preheated\n - action: script.alexa_announce\n data:\n message: Oven has preheated.\n mode: single", "config": [ { "name": "Oven Powered On", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.oven_powered_on", "device_id": null } }, { "name": "Enable Oven Automations", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_oven_automations", "device_id": null } }, { "name": "Oven Preheated", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.oven_preheated", "device_id": null } }, { "name": "Oven Channel 1 Power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.oven_channel_1_power", "device_id": null } } ] }, { "id": "'1694521864037'", "automation": "- id: '1694521864037'\n alias: 'Kitchen: Reset Oven Preheated'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.oven_powered_on\n to: 'off'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n conditions:\n - condition: state\n entity_id: input_boolean.oven_preheated\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_oven_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Turning off oven preheat indicator.\n title: ':cook: Kitchen'\n log_level: Normal\n - action: input_boolean.turn_off\n data: {}\n target:\n entity_id: input_boolean.oven_preheated\n mode: single", "config": [ { "name": "Oven Powered On", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.oven_powered_on", "device_id": null } }, { "name": "Enable Oven Automations", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_oven_automations", "device_id": null } }, { "name": "Oven Preheated", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.oven_preheated", "device_id": null } } ] }, { "id": "'1694521590172'", "automation": "- id: '1694521590172'\n alias: 'Kitchen: Dishwasher Cycle Starts'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.dishwasher_powered_on\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.dishwasher_cycle_in_progress\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_dishwasher_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Dishwasher has started.\n title: ':cook: Kitchen'\n - action: input_boolean.turn_on\n data: {}\n target:\n entity_id: input_boolean.dishwasher_cycle_in_progress\n mode: single", "config": [ { "name": "Dishwasher Powered On", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dishwasher_powered_on", "device_id": null } }, { "name": "Dishwasher Cycle In Progress", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.dishwasher_cycle_in_progress", "device_id": null } }, { "name": "Enable Dishwasher Automations", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_dishwasher_automations", "device_id": null } } ] }, { "id": "'1694521864038'", "automation": "- id: '1694521864038'\n alias: 'Kitchen: Reset Oven Preheated'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.dishwasher_powered_on\n to: 'off'\n for:\n hours: 0\n minutes: 31\n seconds: 0\n conditions:\n - condition: state\n entity_id: input_boolean.dishwasher_cycle_in_progress\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_dishwasher_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Dishwasher cycle completed.\n title: ':cook: Kitchen'\n log_level: Normal\n - action: input_boolean.turn_off\n data: {}\n target:\n entity_id: input_boolean.dishwasher_cycle_in_progress\n mode: single", "config": [ { "name": "Dishwasher Powered On", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dishwasher_powered_on", "device_id": null } }, { "name": "Dishwasher Cycle In Progress", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.dishwasher_cycle_in_progress", "device_id": null } }, { "name": "Enable Dishwasher Automations", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_dishwasher_automations", "device_id": null } } ] }, { "id": "'1595679010797'", "automation": "- id: '1595679010797'\n alias: 'Kitchen: Dishwasher Started'\n description: ''\n triggers:\n - trigger: state\n entity_id: input_boolean.dishwasher_cycle_in_progress\n to: 'on'\n conditions: []\n actions:\n - if:\n - condition: state\n entity_id: input_boolean.dishwasher_clean_cycle\n state: 'off'\n then:\n - action: script.send_to_home_log\n data:\n message: ':knife_fork_plate: :soap: Dishwasher :arrow_forward: Started.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: rest_command.consume_dishwasher_tablet\n data: {}\n - action: homeassistant.update_entity\n data:\n entity_id:\n - sensor.dishwasher_tablet_stock\n - if:\n - condition: numeric_state\n entity_id: sensor.dishwasher_tablet_stock\n below: 9\n then:\n - action: script.send_direct_notification\n data:\n message: Dishwasher tablets are running low ( {{ states('sensor.dishwasher_tablet_stock')\n }} remaining). Consider ordering more.\n title: ':cook: Kitchen'\n people:\n entity_id:\n - person.danny\n - person.terina\n else:\n - action: script.send_to_home_log\n data:\n message: ':knife_fork_plate: :soap: Dishwasher :arrow_forward: Started in\n clean mode.'\n title: ':cook: Kitchen'\n log_level: Debug\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.dishwasher_clean_cycle\n data: {}\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "Dishwasher Clean Cycle", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.dishwasher_clean_cycle", "device_id": null } }, { "name": "Dishwasher Cycle In Progress", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.dishwasher_cycle_in_progress", "device_id": null } }, { "name": "Dishwasher Tablet Stock", "room": null, "type": "sensor", "id": { "entity_id": "sensor.dishwasher_tablet_stock", "device_id": null } } ] }, { "id": "'1595679010798'", "automation": "- id: '1595679010798'\n alias: 'Kitchen: Dishwasher Finished'\n description: ''\n triggers:\n - trigger: state\n entity_id: input_boolean.dishwasher_cycle_in_progress\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - action: script.dishwashing_complete_notification\n data:\n message: ':knife_fork_plate: :soap: Dishwasher :checkered_flag: Finished.'\n title: ':cook: Kitchen'\n mode: single", "config": [ { "name": "Dishwasher Cycle In Progress", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.dishwasher_cycle_in_progress", "device_id": null } } ] }, { "id": "'1716112515827'", "automation": "- id: '1716112515827'\n alias: 'Kitchen: Paper Draw Opened'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.kitchen_paper_draw_contact\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: Paper draw opened\n title: Kitchen\n mode: single", "config": [ { "name": "Kitchen Paper Draw Contact", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_paper_draw_contact", "device_id": null } } ] }, { "id": "'1735567472488'", "automation": "- id: '1735567472488'\n alias: 'Kitchen: Using Power From The Grid'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.grid_power\n above: 100\n conditions:\n - condition: state\n entity_id: binary_sensor.kitchen_area_motion\n state: 'on'\n - condition: state\n entity_id: light.kitchen_cooker_rgb\n state: 'off'\n - condition: state\n entity_id: light.kitchen_table_rgb\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.growatt_sph_battery_state_of_charge\n above: input_number.growatt_battery_discharge_stop_soc\n - not:\n - condition: state\n entity_id: sensor.growatt_sph_inverter_mode\n state: Battery first\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Pulling power from the grid\n title: ':cook: Kitchen'\n log_level: Debug\n - choose:\n - alias: Battery has charge left\n conditions:\n - or:\n - condition: numeric_state\n entity_id: sensor.growatt_sph_battery_state_of_charge\n above: input_number.growatt_battery_discharge_stop_soc\n - condition: numeric_state\n entity_id: sensor.growatt_battery_discharge_power\n below: 100\n sequence:\n - action: scene.turn_on\n target:\n entity_id:\n - scene.kitchen_table_ambient_light_to_pink\n - scene.kitchen_cooker_ambient_light_to_pink\n - alias: Battery has charge left\n conditions:\n - or:\n - condition: template\n value_template: '{{ states(''sensor.growatt_sph_battery_state_of_charge'')|float(0)\n <= states(''input_number.growatt_battery_discharge_stop_soc'')|float(0)\n }}'\n - condition: numeric_state\n entity_id: sensor.growatt_battery_discharge_power\n below: 100\n sequence:\n - action: script.kitchen_pulse_ambient_light_pink\n data: {}\n mode: single", "config": [ { "name": "kitchen area motion", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_area_motion", "device_id": null } }, { "name": "Growatt Battery Discharge Stop SOC", "room": null, "type": "input_number", "id": { "entity_id": "input_number.growatt_battery_discharge_stop_soc", "device_id": null } }, { "name": "Kitchen Cooker RGB", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_cooker_rgb", "device_id": null } }, { "name": "Kitchen Table RGB", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_table_rgb", "device_id": null } }, { "name": "Kitchen Cooker Ambient Light to Pink", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_cooker_ambient_light_to_pink", "device_id": null } }, { "name": "Kitchen Table Ambient Light to Pink", "room": "Kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_table_ambient_light_to_pink", "device_id": null } }, { "name": "Grid Power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.grid_power", "device_id": null } }, { "name": "Growatt Battery Discharge Power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.growatt_battery_discharge_power", "device_id": null } }, { "name": "Growatt SPH Battery State of Charge", "room": null, "type": "sensor", "id": { "entity_id": "sensor.growatt_sph_battery_state_of_charge", "device_id": null } }, { "name": "Growatt SPH Inverter Mode", "room": null, "type": "sensor", "id": { "entity_id": "sensor.growatt_sph_inverter_mode", "device_id": null } } ] }, { "id": "'1735567472489'", "automation": "- id: '1735567472489'\n alias: 'Kitchen: Stops using Power From The Grid'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.grid_power\n below: 100\n conditions:\n - condition: state\n entity_id: light.kitchen_cooker_rgb\n state: 'on'\n - condition: state\n entity_id: light.kitchen_table_rgb\n state: 'on'\n - condition: state\n entity_id: binary_sensor.front_door\n state: 'off'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Pulling power from the grid\n title: ':cook: Kitchen'\n log_level: Debug\n - action: light.turn_off\n target:\n entity_id:\n - light.kitchen_cooker_rgb\n - light.kitchen_table_rgb\n mode: single", "config": [ { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "Kitchen Cooker RGB", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_cooker_rgb", "device_id": null } }, { "name": "Kitchen Table RGB", "room": "Kitchen", "type": "light", "id": { "entity_id": "light.kitchen_table_rgb", "device_id": null } }, { "name": "Grid Power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.grid_power", "device_id": null } } ] }, { "id": "'1757836826541'", "automation": "- id: '1757836826541'\n alias: 'Kitchen: Smoke Alarm'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.kitchen_smoke_alarm_smoke\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: ':warning: Smoke alarm triggered :warning:'\n title: ':warning: :cook: Kitchen :warning:'\n - action: script.alexa_announce\n data:\n message: Warning! Kitchen smoke alarm triggered.\n mode: single", "config": [ { "name": "Kitchen Smoke Alarm Smoke", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_smoke_alarm_smoke", "device_id": null } } ] }, { "id": "'1617814309728'", "automation": "- id: '1617814309728'\n alias: 'Office: TV On'\n description: ''\n triggers:\n - trigger: state\n entity_id: media_player.office_tv\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - if:\n - condition: template\n value_template: '{{ state_attr(''media_player.office_tv'', ''source'') != none\n }}'\n then:\n - action: script.send_to_home_log\n data:\n message: ':tv: Office TV turned on and playing {{ state_attr(''media_player.office_tv'',\n ''source'') }}.'\n log_level: Normal\n else:\n - action: script.send_to_home_log\n data:\n message: ':tv: Office TV turned on.'\n log_level: Debug\n mode: queued\n max: 10", "config": [ { "name": "Office TV", "room": "Office", "type": "media_player", "id": { "entity_id": "media_player.office_tv", "device_id": null } } ] }, { "id": "'1617814349289'", "automation": "- id: '1617814349289'\n alias: 'Office: TV Off'\n description: ''\n triggers:\n - trigger: state\n entity_id: media_player.office_tv\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':tv: Office TV turned off.'\n log_level: Debug\n mode: queued\n max: 10", "config": [ { "name": "Office TV", "room": "Office", "type": "media_player", "id": { "entity_id": "media_player.office_tv", "device_id": null } } ] }, { "id": "'1617814753264'", "automation": "- id: '1617814753264'\n alias: 'Office: TV Source Changes'\n description: ''\n triggers:\n - trigger: state\n entity_id: media_player.office_tv\n attribute: source\n conditions: []\n actions:\n - if:\n - condition: template\n value_template: '{{ state_attr(''media_player.office_tv'', ''source'') != none\n }}'\n then:\n - action: script.send_to_home_log\n data:\n message: ':tv: Office TV turned on and playing {{ state_attr(''media_player.office_tv'',\n ''source'') }}.'\n log_level: Normal\n else:\n - action: script.send_to_home_log\n data:\n message: ':tv: Office TV media changed.'\n log_level: Debug\n mode: queued\n max: 10", "config": [ { "name": "Office TV", "room": "Office", "type": "media_player", "id": { "entity_id": "media_player.office_tv", "device_id": null } } ] }, { "id": "'1583956425622'", "automation": "- id: '1583956425622'\n alias: 'Living Room: Motion Detected'\n description: Added a second delay https://community.home-assistant.io/t/hue-motion-sensor-with-illuminance-condition/128290\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.living_room_area_motion\n - binary_sensor.lounge_motion\n - binary_sensor.living_room_motion_occupancy\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_living_room_motion_triggers\n state: 'on'\n actions:\n - choose:\n - conditions:\n - or:\n - condition: numeric_state\n entity_id: sensor.living_room_motion_3_illuminance\n below: input_number.living_room_light_level_2_threshold\n - condition: numeric_state\n entity_id: sensor.living_room_motion_illuminance\n below: input_number.living_room_light_level_4_threshold\n - condition: state\n entity_id: sensor.living_room_motion_illuminance\n state: unavailable\n - or:\n - condition: numeric_state\n entity_id: light.living_room_lamp_left\n attribute: brightness\n below: '190'\n - condition: numeric_state\n entity_id: light.living_room_lamp_right\n attribute: brightness\n below: '190'\n - condition: template\n value_template: '{{ state_attr(''light.living_room_lamp_left'', ''brightness'')\n == none }}'\n - condition: template\n value_template: '{{ state_attr(''light.living_room_lamp_right'', ''brightness'')\n == none }}'\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected and it''s dark ({{ states(''sensor.living_room_motion_3_illuminance'')\n }} & {{ states(''sensor.living_room_motion_illuminance'') }} < {{ states(''input_number.living_room_light_level_2_threshold'')\n }} & {{ states(''input_number.living_room_light_level_4_threshold'',\n with_unit=True) }}) and Terina''s work :computer: computer is on. Turning\n :bulb: :high_brightness: lights on.'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - choose:\n - conditions:\n - condition: state\n entity_id: light.lounge_ceiling\n state: 'on'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_lights\n data:\n transition: 1\n default:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_lamps_on\n data:\n transition: 1\n - alias: Room too bright\n conditions:\n - or:\n - condition: numeric_state\n entity_id: sensor.living_room_motion_3_illuminance\n below: input_number.living_room_light_level_2_threshold\n - condition: numeric_state\n entity_id: sensor.living_room_motion_illuminance\n below: input_number.living_room_light_level_4_threshold\n - or:\n - condition: state\n entity_id: light.living_room_lamp_left\n state: 'off'\n - condition: state\n entity_id: light.living_room_lamp_right\n state: 'off'\n - condition: template\n value_template: '{{ state_attr(''light.living_room_lamp_left'', ''brightness'')\n == none }}'\n - condition: template\n value_template: '{{ state_attr(''light.living_room_lamp_right'', ''brightness'')\n == none }}'\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected and it''s dark ({{ states(''sensor.living_room_motion_3_illuminance'')\n }} & {{ states(''sensor.living_room_motion_illuminance'') }} < {{ states(''input_number.living_room_light_level_2_threshold'')\n }} & {{ states(''input_number.living_room_light_level_4_threshold'',\n with_unit=True) }}) and Terina''s work :computer: computer is on. Turning\n :bulb: :high_brightness: lights on.'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_lamps_yellow\n data:\n transition: 0\n - delay:\n seconds: 1\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_lamps_off\n data:\n transition: 0\n default: []\n mode: queued\n max: 10", "config": [ { "name": "enable living room motion triggers", "room": "living room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_motion_triggers", "device_id": null } }, { "name": "Living Room Area Motion", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_area_motion", "device_id": null } }, { "name": "Living Room Motion Occupancy", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_motion_occupancy", "device_id": null } }, { "name": "Lounge Motion", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lounge_motion", "device_id": null } }, { "name": "Living Room Light Level 2 Threshold", "room": "Living Room", "type": "input_number", "id": { "entity_id": "input_number.living_room_light_level_2_threshold", "device_id": null } }, { "name": "Living Room Light Level 4 Threshold", "room": "Living Room", "type": "input_number", "id": { "entity_id": "input_number.living_room_light_level_4_threshold", "device_id": null } }, { "name": "Living Room Lamp Left", "room": "Living Room", "type": "light", "id": { "entity_id": "light.living_room_lamp_left", "device_id": null } }, { "name": "Living Room Lamp Right", "room": "Living Room", "type": "light", "id": { "entity_id": "light.living_room_lamp_right", "device_id": null } }, { "name": "Lounge Ceiling", "room": "Lounge", "type": "light", "id": { "entity_id": "light.lounge_ceiling", "device_id": null } }, { "name": "Living Room Lamps Off", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lamps_off", "device_id": null } }, { "name": "Living Room Lamps On", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lamps_on", "device_id": null } }, { "name": "Living Room Lamps Yellow", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lamps_yellow", "device_id": null } }, { "name": "Living Room Lights", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lights", "device_id": null } }, { "name": "Living Room Motion 3 Illuminance", "room": "Living Room", "type": "sensor", "id": { "entity_id": "sensor.living_room_motion_3_illuminance", "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": "'1606170045630'", "automation": "- id: '1606170045630'\n alias: 'Living Room: No Motion After Short Time Dim Lights'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.living_room_area_motion\n to: 'off'\n for: 00:05:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_living_room_motion_triggers\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion for 5 minutes. :bulb: :low_brightness:\n Dimming lights'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - choose:\n - conditions:\n - condition: state\n entity_id: light.living_room_lamps\n state: 'on'\n - condition: state\n entity_id: light.lounge_ceiling\n state: 'on'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_dim_lights\n data:\n transition: 1\n - conditions:\n - condition: state\n entity_id: light.living_room_lamps\n state: 'on'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_dim_lamps\n data:\n transition: 1\n - conditions:\n - condition: state\n entity_id: light.lounge_ceiling\n state: 'on'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_dim_ceiling_lights\n data:\n transition: 1\n default: []\n mode: single", "config": [ { "name": "enable living room motion triggers", "room": "living room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_motion_triggers", "device_id": null } }, { "name": "Living Room Area Motion", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_area_motion", "device_id": null } }, { "name": "Living Room Lamps", "room": "Living Room", "type": "light", "id": { "entity_id": "light.living_room_lamps", "device_id": null } }, { "name": "Lounge Ceiling", "room": "Lounge", "type": "light", "id": { "entity_id": "light.lounge_ceiling", "device_id": null } }, { "name": "Living Room Dim Ceiling Lights", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_dim_ceiling_lights", "device_id": null } }, { "name": "Living Room Dim Lamps", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_dim_lamps", "device_id": null } }, { "name": "Living Room Dim Lights", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_dim_lights", "device_id": null } } ] }, { "id": "'1605567425876'", "automation": "- id: '1605567425876'\n alias: 'Living Room: No Motion For Long Time'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.living_room_area_motion\n from: 'on'\n to: 'off'\n for: 00:10:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_living_room_motion_triggers\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion for 10 minutes and :tv: TV is turned\n off. Turning living room lights off.'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - choose:\n - conditions:\n - condition: state\n entity_id: light.living_room_lamps\n state: 'on'\n - condition: state\n entity_id: light.lounge_ceiling\n state: 'on'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_lights_off\n data:\n transition: 1\n - conditions:\n - condition: state\n entity_id: light.living_room_lamps\n state: 'on'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_lamps_off\n data:\n transition: 1\n - conditions:\n - condition: state\n entity_id: light.lounge_ceiling\n state: 'on'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_ceiling_lights_off\n data:\n transition: 1\n default: []\n mode: single", "config": [ { "name": "enable living room motion triggers", "room": "living room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_motion_triggers", "device_id": null } }, { "name": "Living Room Area Motion", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_area_motion", "device_id": null } }, { "name": "Living Room Lamps", "room": "Living Room", "type": "light", "id": { "entity_id": "light.living_room_lamps", "device_id": null } }, { "name": "Lounge Ceiling", "room": "Lounge", "type": "light", "id": { "entity_id": "light.lounge_ceiling", "device_id": null } }, { "name": "Living Room Ceiling Lights Off", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_ceiling_lights_off", "device_id": null } }, { "name": "Living Room Lamps Off", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lamps_off", "device_id": null } }, { "name": "Living Room Lights", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lights", "device_id": null } }, { "name": "Living Room Lights Off", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lights_off", "device_id": null } } ] }, { "id": "'1714512650107'", "automation": "- id: '1714512650107'\n alias: 'Living Room: Lamps On And No Motion'\n description: Caters for when lights are on and Home Assistant was restarted\n triggers:\n - trigger: state\n entity_id:\n - light.living_room_lamps\n for:\n minutes: 10\n conditions:\n - condition: template\n value_template: '{{ as_timestamp(now()) - as_timestamp(states.living_room_lamps.last_changed)\n >= 360 }}'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: :Lights on for 10 minutes with no motion. Turning lights off.\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: scene.turn_on\n metadata: {}\n target:\n entity_id: scene.living_room_lamps_off\n mode: single", "config": [ { "name": "Living Room Lamps", "room": "Living Room", "type": "light", "id": { "entity_id": "light.living_room_lamps", "device_id": null } }, { "name": "Living Room Lamps Off", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lamps_off", "device_id": null } } ] }, { "id": "'1610409803685'", "automation": "- id: '1610409803685'\n alias: 'Living Room: TV Turned Off Turn Off Lights'\n description: TV is turned off and turn lights off if there has been no motion.\n triggers:\n - trigger: numeric_state\n entity_id: sensor.tv_plug_power\n for: 00:10:00\n below: input_number.tv_plug_powered_on_threshold\n conditions:\n - condition: state\n entity_id: light.living_room_lamps\n state: 'on'\n - condition: state\n entity_id: binary_sensor.living_room_area_motion\n state: 'off'\n - condition: state\n entity_id: binary_sensor.living_room_area_motion\n state: 'off'\n for:\n hours: 0\n minutes: 10\n seconds: 0\n - condition: state\n entity_id: device_tracker.doug\n state: not_home\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':tv: TV turned off for 10 minutes. Turning lights off.'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - choose:\n - conditions:\n - condition: state\n entity_id: light.living_room_lamps\n state: 'on'\n - condition: state\n entity_id: light.lounge_ceiling\n state: 'on'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_lights_off\n data:\n transition: 1\n - conditions:\n - condition: state\n entity_id: light.living_room_lamps\n state: 'on'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_lamps_off\n data:\n transition: 1\n - conditions:\n - condition: state\n entity_id: light.lounge_ceiling\n state: 'on'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_ceiling_lights_off\n data:\n transition: 1\n default: []\n mode: single", "config": [ { "name": "Living Room Area Motion", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_area_motion", "device_id": null } }, { "name": "Doug", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.doug", "device_id": null } }, { "name": "Living Room Lamps", "room": "Living Room", "type": "light", "id": { "entity_id": "light.living_room_lamps", "device_id": null } }, { "name": "Lounge Ceiling", "room": "Lounge", "type": "light", "id": { "entity_id": "light.lounge_ceiling", "device_id": null } }, { "name": "Living Room Ceiling Lights Off", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_ceiling_lights_off", "device_id": null } }, { "name": "Living Room Lamps Off", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lamps_off", "device_id": null } }, { "name": "Living Room Lights", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lights", "device_id": null } }, { "name": "Living Room Lights Off", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_lights_off", "device_id": null } }, { "name": "TV Plug Power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.tv_plug_power", "device_id": null } } ] }, { "id": "'1588859622571'", "automation": "- id: '1588859622571'\n alias: 'Living Room: Motion Detected In The Morning'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.lounge_motion\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.stairs_motion_occupancy\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_morning_routine\n state: 'on'\n - condition: state\n entity_id: group.tracked_people\n state: home\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: armed_home\n - condition: time\n before: '23:00:00'\n after: 05:00:00\n actions:\n - data: {}\n action: script.morning_script\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } }, { "name": "Lounge Motion", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lounge_motion", "device_id": null } }, { "name": "Stairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.stairs_motion_occupancy", "device_id": null } }, { "name": "Enable Morning Routine", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_morning_routine", "device_id": null } } ] }, { "id": "'1611063957341'", "automation": "- id: '1611063957341'\n alias: 'Living Room: Server Fan Running Longer Than 1 Hour'\n description: ''\n triggers:\n - trigger: state\n entity_id: switch.server_fan\n to: 'on'\n for: 01:00:00\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Server fan has been running for more than 1 hour. Consider turning\n Fan off.\n title: ':couch_and_lamp: Living Room'\n log_level: Normal\n - if:\n - condition: state\n entity_id: input_boolean.enable_direct_notifications\n state: 'on'\n then:\n - action: script.send_actionable_notification_with_2_buttons\n data:\n message: Turn off server fan?\n title: Server fan on for over 1 hour\n people:\n entity_id:\n - person.danny\n action1_title: 'Yes'\n action1_name: server_fan_off\n action2_title: 'No'\n action2_name: ignore\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Enable Direct Notifications", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_direct_notifications", "device_id": null } }, { "name": "Server Fan", "room": null, "type": "switch", "id": { "entity_id": "switch.server_fan", "device_id": null } } ] }, { "id": "'1677711735249'", "automation": "- id: '1677711735249'\n alias: 'Living Room: Open Blinds In The Morning'\n description: ''\n triggers:\n - trigger: time\n at: 07:30:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_living_room_blind_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.living_room_windows\n state: 'off'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Opening blinds\n partially.'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: cover.set_cover_tilt_position\n data:\n tilt_position: 25\n target:\n entity_id:\n - cover.living_room_blinds_left\n - cover.living_room_blinds_middle\n - cover.living_room_blinds_right\n mode: single", "config": [ { "name": "Living Room Windows", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_windows", "device_id": null } }, { "name": "Living Room Blinds Left", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_left", "device_id": null } }, { "name": "Living Room Blinds Middle", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_middle", "device_id": null } }, { "name": "Living Room Blinds Right", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_right", "device_id": null } }, { "name": "Enable Living Room Blind Automations", "room": "Living Room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_blind_automations", "device_id": null } } ] }, { "id": "'1677711735250'", "automation": "- id: '1677711735250'\n alias: 'Living Room: Open Blinds In The Morning 2'\n description: ''\n triggers:\n - trigger: time\n at: 08:00:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_living_room_blind_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.living_room_windows\n state: 'off'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Opening blinds\n fully.'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: cover.set_cover_tilt_position\n data:\n tilt_position: 50\n target:\n entity_id:\n - cover.living_room_blinds_left\n - cover.living_room_blinds_middle\n - cover.living_room_blinds_right\n mode: single", "config": [ { "name": "Living Room Windows", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_windows", "device_id": null } }, { "name": "Living Room Blinds Left", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_left", "device_id": null } }, { "name": "Living Room Blinds Middle", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_middle", "device_id": null } }, { "name": "Living Room Blinds Right", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_right", "device_id": null } }, { "name": "Enable Living Room Blind Automations", "room": "Living Room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_blind_automations", "device_id": null } } ] }, { "id": "'1677969986112'", "automation": "- id: '1677969986112'\n alias: 'Living Room: Close Blinds In The Evening'\n description: ''\n triggers:\n - trigger: sun\n event: sunset\n - trigger: time\n at: '20:00:00'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_living_room_blind_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.living_room_windows\n state: 'off'\n - or:\n - condition: numeric_state\n entity_id: cover.living_room_blinds_left\n attribute: tilt_position\n above: 25\n - condition: numeric_state\n entity_id: cover.living_room_blinds_middle\n attribute: tilt_position\n above: 25\n - condition: numeric_state\n entity_id: cover.living_room_blinds_right\n attribute: tilt_position\n above: 25\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Partially closing\n blinds.'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: cover.set_cover_tilt_position\n data:\n tilt_position: 25\n target:\n entity_id:\n - cover.living_room_blinds_left\n - cover.living_room_blinds_middle\n - cover.living_room_blinds_right\n mode: single", "config": [ { "name": "Living Room Windows", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_windows", "device_id": null } }, { "name": "Living Room Blinds Left", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_left", "device_id": null } }, { "name": "Living Room Blinds Middle", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_middle", "device_id": null } }, { "name": "Living Room Blinds Right", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_right", "device_id": null } }, { "name": "Enable Living Room Blind Automations", "room": "Living Room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_blind_automations", "device_id": null } } ] }, { "id": "'1677969986113'", "automation": "- id: '1677969986113'\n alias: 'Living Room: Close Blinds In The Evening 2'\n description: ''\n triggers:\n - trigger: sun\n event: sunset\n offset: 01:00:00\n - trigger: time\n at: '21:00:00'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_living_room_blind_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.living_room_windows\n state: 'off'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Closing blinds\n fully.'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: cover.set_cover_tilt_position\n data:\n tilt_position: 0\n target:\n entity_id:\n - cover.living_room_blinds_left\n - cover.living_room_blinds_middle\n - cover.living_room_blinds_right\n mode: single", "config": [ { "name": "Living Room Windows", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_windows", "device_id": null } }, { "name": "Living Room Blinds Left", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_left", "device_id": null } }, { "name": "Living Room Blinds Middle", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_middle", "device_id": null } }, { "name": "Living Room Blinds Right", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_right", "device_id": null } }, { "name": "Enable Living Room Blind Automations", "room": "Living Room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_blind_automations", "device_id": null } } ] }, { "id": "'1680528200298'", "automation": "- id: '1680528200298'\n alias: 'Living Room: No Direct Sun Light In The Morning'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n below: input_number.living_room_blinds_morning_sun_azimuth_threshold\n conditions:\n - condition: state\n entity_id: input_boolean.enable_living_room_blind_automations\n state: 'on'\n - condition: time\n after: 08:10:00\n - condition: sun\n before: sunset\n - condition: state\n entity_id: binary_sensor.living_room_windows\n state: 'off'\n - or:\n - condition: numeric_state\n entity_id: cover.living_room_blinds_left\n attribute: current_tilt_position\n below: 50\n - condition: numeric_state\n entity_id: cover.living_room_blinds_middle\n attribute: current_tilt_position\n below: 50\n - condition: numeric_state\n entity_id: cover.living_room_blinds_right\n attribute: current_tilt_position\n below: 50\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'Morning :sun: sun is out of the way. Opening :couch_and_lamp: lounge\n blinds.\n\n Azimuth: {{ state_attr(''sun.sun'', ''azimuth'') }} ({{ states(''input_number.living_room_blinds_morning_sun_azimuth_threshold'')}}).\n\n Elevation: {{ state_attr(''sun.sun'', ''elevation'') }}.'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: cover.set_cover_tilt_position\n data:\n tilt_position: 50\n target:\n entity_id:\n - cover.living_room_blinds_left\n - cover.living_room_blinds_middle\n - cover.living_room_blinds_right\n mode: single", "config": [ { "name": "Living Room Windows", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_windows", "device_id": null } }, { "name": "Living Room Blinds Left", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_left", "device_id": null } }, { "name": "Living Room Blinds Middle", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_middle", "device_id": null } }, { "name": "Living Room Blinds Right", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_right", "device_id": null } }, { "name": "Enable Living Room Blind Automations", "room": "Living Room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_blind_automations", "device_id": null } }, { "name": "Living Room Blinds Morning Sun Azimuth Threshold", "room": "Living Room", "type": "input_number", "id": { "entity_id": "input_number.living_room_blinds_morning_sun_azimuth_threshold", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "'1680528200296'", "automation": "- id: '1680528200296'\n alias: 'Living Room: No Direct Sun Light In The Afternoon'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n above: input_number.living_room_blinds_afternoon_sun_azimuth_threshold\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: input_number.living_room_blinds_afternoon_sun_elevation_threshold\n conditions:\n - condition: state\n entity_id: input_boolean.enable_living_room_blind_automations\n state: 'on'\n - condition: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n above: input_number.living_room_blinds_afternoon_sun_azimuth_threshold\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: input_number.living_room_blinds_afternoon_sun_elevation_threshold\n - condition: state\n entity_id: binary_sensor.living_room_windows\n state: 'off'\n - or:\n - condition: numeric_state\n entity_id: cover.living_room_blinds_left\n attribute: current_tilt_position\n below: 50\n - condition: numeric_state\n entity_id: cover.living_room_blinds_middle\n attribute: current_tilt_position\n below: 50\n - condition: numeric_state\n entity_id: cover.living_room_blinds_right\n attribute: current_tilt_position\n below: 50\n actions:\n - action: script.send_to_home_log\n data:\n message: 'Afternoon :sun: sun is out of the way. Opening :couch_and_lamp: lounge\n blinds.\n\n Azimuth: {{ state_attr(''sun.sun'', ''azimuth'') }} ({{ states(''input_number.living_room_blinds_afternoon_sun_azimuth_threshold'')}}).\n\n Elevation: {{ state_attr(''sun.sun'', ''elevation'') }} ({{ states(''input_number.living_room_blinds_afternoon_sun_elevation_threshold'')}}).'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: cover.set_cover_tilt_position\n data:\n tilt_position: 50\n target:\n entity_id:\n - cover.living_room_blinds_left\n - cover.living_room_blinds_middle\n - cover.living_room_blinds_right\n mode: single", "config": [ { "name": "Living Room Windows", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_windows", "device_id": null } }, { "name": "Living Room Blinds Left", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_left", "device_id": null } }, { "name": "Living Room Blinds Middle", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_middle", "device_id": null } }, { "name": "Living Room Blinds Right", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_right", "device_id": null } }, { "name": "Enable Living Room Blind Automations", "room": "Living Room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_blind_automations", "device_id": null } }, { "name": "Living Room Blinds Afternoon Sun Azimuth Threshold", "room": "Living Room", "type": "input_number", "id": { "entity_id": "input_number.living_room_blinds_afternoon_sun_azimuth_threshold", "device_id": null } }, { "name": "Living Room Blinds Afternoon Sun Elevation Threshold", "room": "Living Room", "type": "input_number", "id": { "entity_id": "input_number.living_room_blinds_afternoon_sun_elevation_threshold", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "'1678300398735'", "automation": "- id: '1678300398735'\n alias: 'Living Room: Bright Outside'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n above: input_number.blind_low_brightness_threshold\n for: 00:01:00\n conditions:\n - condition: sun\n after: sunrise\n - condition: time\n after: 08:00:30\n - condition: sun\n before: sunset\n - condition: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n below: input_number.blind_high_brightness_threshold\n - condition: state\n entity_id: input_boolean.enable_living_room_blind_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.living_room_windows\n state: 'off'\n - alias: Check sun's position\n and:\n - condition: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n above: input_number.living_room_blinds_morning_sun_azimuth_threshold\n - condition: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n below: input_number.living_room_blinds_afternoon_sun_azimuth_threshold\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: input_number.living_room_blinds_afternoon_sun_elevation_threshold\n - or:\n - not:\n - condition: state\n entity_id: cover.living_room_blinds_middle\n attribute: current_tilt_position\n state: '25'\n - not:\n - condition: state\n entity_id: cover.living_room_blinds_right\n attribute: current_tilt_position\n state: '25'\n - or:\n - condition: state\n entity_id: group.family_computer\n state: home\n - alias: Only account for laptop during weekdays\n and:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - condition: state\n entity_id: group.terinas_work_computer\n state: home\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: It's bright outside ({{ states('sensor.front_garden_motion_illuminance',\n with_unit=True) }}). Partially closing middle and right blinds.\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: cover.set_cover_tilt_position\n data:\n tilt_position: 25\n target:\n entity_id:\n - cover.living_room_blinds_middle\n - cover.living_room_blinds_right\n mode: single", "config": [ { "name": "Living Room Windows", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_windows", "device_id": null } }, { "name": "Living Room Blinds Middle", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_middle", "device_id": null } }, { "name": "Living Room Blinds Right", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_right", "device_id": null } }, { "name": "Family Computer", "room": null, "type": "group", "id": { "entity_id": "group.family_computer", "device_id": null } }, { "name": "Terinas Work Computer", "room": null, "type": "group", "id": { "entity_id": "group.terinas_work_computer", "device_id": null } }, { "name": "Enable Living Room Blind Automations", "room": "Living Room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_blind_automations", "device_id": null } }, { "name": "Living Room Blinds Afternoon Sun Azimuth Threshold", "room": "Living Room", "type": "input_number", "id": { "entity_id": "input_number.living_room_blinds_afternoon_sun_azimuth_threshold", "device_id": null } }, { "name": "Living Room Blinds Afternoon Sun Elevation Threshold", "room": "Living Room", "type": "input_number", "id": { "entity_id": "input_number.living_room_blinds_afternoon_sun_elevation_threshold", "device_id": null } }, { "name": "Living Room Blinds Morning Sun Azimuth Threshold", "room": "Living Room", "type": "input_number", "id": { "entity_id": "input_number.living_room_blinds_morning_sun_azimuth_threshold", "device_id": null } }, { "name": "Front Garden Motion Illuminance", "room": "Front Garden", "type": "sensor", "id": { "entity_id": "sensor.front_garden_motion_illuminance", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "'1678300398734'", "automation": "- id: '1678300398734'\n alias: 'Living Room: Really Bright Outside'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n above: input_number.blind_high_brightness_threshold\n for: 00:01:00\n conditions:\n - condition: sun\n after: sunrise\n - condition: time\n after: 08:00:30\n - condition: sun\n before: sunset\n - condition: state\n entity_id: input_boolean.enable_living_room_blind_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.living_room_windows\n state: 'off'\n - alias: Check sun's position\n and:\n - condition: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n above: input_number.living_room_blinds_morning_sun_azimuth_threshold\n - condition: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n below: input_number.living_room_blinds_afternoon_sun_azimuth_threshold\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: input_number.living_room_blinds_afternoon_sun_elevation_threshold\n - or:\n - condition: numeric_state\n entity_id: cover.living_room_blinds_middle\n attribute: current_tilt_position\n above: 0\n - condition: numeric_state\n entity_id: cover.living_room_blinds_right\n attribute: current_tilt_position\n above: 0\n - or:\n - condition: state\n entity_id: group.family_computer\n state: home\n - alias: Only account for laptop during weekdays\n and:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - condition: state\n entity_id: group.terinas_work_computer\n state: home\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: It's really bright outside ({{ states('sensor.front_garden_motion_illuminance',\n with_unit=True) }}). Closing blinds.\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: cover.set_cover_tilt_position\n data:\n tilt_position: 0\n target:\n entity_id:\n - cover.living_room_blinds_middle\n - cover.living_room_blinds_right\n mode: single", "config": [ { "name": "Living Room Windows", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_windows", "device_id": null } }, { "name": "Living Room Blinds Middle", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_middle", "device_id": null } }, { "name": "Living Room Blinds Right", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_right", "device_id": null } }, { "name": "Family Computer", "room": null, "type": "group", "id": { "entity_id": "group.family_computer", "device_id": null } }, { "name": "Terinas Work Computer", "room": null, "type": "group", "id": { "entity_id": "group.terinas_work_computer", "device_id": null } }, { "name": "Enable Living Room Blind Automations", "room": "Living Room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_blind_automations", "device_id": null } }, { "name": "Living Room Blinds Afternoon Sun Azimuth Threshold", "room": "Living Room", "type": "input_number", "id": { "entity_id": "input_number.living_room_blinds_afternoon_sun_azimuth_threshold", "device_id": null } }, { "name": "Living Room Blinds Afternoon Sun Elevation Threshold", "room": "Living Room", "type": "input_number", "id": { "entity_id": "input_number.living_room_blinds_afternoon_sun_elevation_threshold", "device_id": null } }, { "name": "Living Room Blinds Morning Sun Azimuth Threshold", "room": "Living Room", "type": "input_number", "id": { "entity_id": "input_number.living_room_blinds_morning_sun_azimuth_threshold", "device_id": null } }, { "name": "Front Garden Motion Illuminance", "room": "Front Garden", "type": "sensor", "id": { "entity_id": "sensor.front_garden_motion_illuminance", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "'1678637987423'", "automation": "- id: '1678637987423'\n alias: 'Living Room: Outside Went Darker'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n for:\n hours: 0\n minutes: 5\n seconds: 0\n below: input_number.blind_low_brightness_threshold\n conditions:\n - condition: sun\n after: sunrise\n - condition: time\n after: 08:00:30\n - condition: sun\n before: sunset\n - condition: state\n entity_id: input_boolean.enable_living_room_blind_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.living_room_windows\n state: 'off'\n - condition: state\n entity_id: group.family_computer\n state: not_home\n - condition: state\n entity_id: group.terinas_work_computer\n state: not_home\n - or:\n - condition: numeric_state\n entity_id: cover.living_room_blinds_left\n attribute: current_tilt_position\n below: 50\n - condition: numeric_state\n entity_id: cover.living_room_blinds_right\n attribute: current_tilt_position\n below: 50\n - condition: numeric_state\n entity_id: cover.living_room_blinds_middle\n attribute: current_tilt_position\n below: 50\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: It is not as bright outside ({{ states('sensor.front_garden_motion_illuminance',\n with_unit=True) }}). Opening Blinds\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: cover.set_cover_tilt_position\n data:\n tilt_position: 50\n target:\n entity_id:\n - cover.living_room_blinds_left\n - cover.living_room_blinds_middle\n - cover.living_room_blinds_right\n mode: single", "config": [ { "name": "Living Room Windows", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_windows", "device_id": null } }, { "name": "Living Room Blinds Left", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_left", "device_id": null } }, { "name": "Living Room Blinds Middle", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_middle", "device_id": null } }, { "name": "Living Room Blinds Right", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_right", "device_id": null } }, { "name": "Family Computer", "room": null, "type": "group", "id": { "entity_id": "group.family_computer", "device_id": null } }, { "name": "Terinas Work Computer", "room": null, "type": "group", "id": { "entity_id": "group.terinas_work_computer", "device_id": null } }, { "name": "Enable Living Room Blind Automations", "room": "Living Room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_blind_automations", "device_id": null } }, { "name": "Front Garden Motion Illuminance", "room": "Front Garden", "type": "sensor", "id": { "entity_id": "sensor.front_garden_motion_illuminance", "device_id": null } } ] }, { "id": "'1630015457540'", "automation": "- id: '1630015457540'\n alias: 'Living Room: Person Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.living_room_person\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: camera.snapshot\n data_template:\n filename: '{{ states(''input_text.latest_frigate_lounge_person_file_path'')\n }}'\n target:\n entity_id: camera.living_room\n - action: script.send_home_log_with_local_attachments\n data_template:\n message: Frigate detected a person in the lounge.\n title: ':bust_in_silhouette: Person detected in :couch_and_lamp: lounge'\n filePath: '{{ states(''input_text.latest_frigate_lounge_person_file_path'')\n }}'\n mode: queued\n max: 10", "config": [ { "name": "Living Room Person", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_person", "device_id": null } }, { "name": "Living Room", "room": "Living Room", "type": "camera", "id": { "entity_id": "camera.living_room", "device_id": null } }, { "name": "Latest Frigate Lounge Person File Path", "room": "Lounge", "type": "input_text", "id": { "entity_id": "input_text.latest_frigate_lounge_person_file_path", "device_id": null } } ] }, { "id": "'1610918759041'", "automation": "- id: '1610918759041'\n alias: 'Living Room: Restart Harmony Hub'\n description: ''\n triggers:\n - trigger: time\n at: 03:00:00\n conditions:\n - condition: time\n weekday:\n - mon\n - condition: state\n entity_id: binary_sensor.tv_powered_on\n state: 'off'\n actions:\n - action: script.send_to_home_log\n data:\n message: ':TV: Restarting Harmony hub.'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: switch.turn_off\n target:\n entity_id: switch.harmony_hub_plug\n - delay:\n hours: 0\n minutes: 1\n seconds: 0\n milliseconds: 0\n - action: switch.turn_on\n target:\n entity_id: switch.harmony_hub_plug\n mode: single", "config": [ { "name": "TV Powered On", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.tv_powered_on", "device_id": null } }, { "name": "Harmony Hub Plug", "room": null, "type": "switch", "id": { "entity_id": "switch.harmony_hub_plug", "device_id": null } } ] }, { "id": "'1610388192224'", "automation": "- id: '1610388192224'\n alias: 'Living Room: TV Turned On'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.tv_powered_on\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':tv: TV Turned on.'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.playstation_powered_on\n state: 'on'\n sequence:\n - action: script.living_room_select_game_input\n default: []\n mode: single", "config": [ { "name": "Playstation Powered On", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.playstation_powered_on", "device_id": null } }, { "name": "TV Powered On", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.tv_powered_on", "device_id": null } } ] }, { "id": "'1610388192225'", "automation": "- id: '1610388192225'\n alias: 'Living Room: TV Turned Off'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.tv_powered_on\n from: 'on'\n to: 'off'\n for: 00:00:30\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':tv: TV Turned off.'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - sequence:\n - if:\n - condition: state\n entity_id: light.tv_backlight\n state: 'on'\n then:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'Turning off :tv: TV backlight (WLED).'\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: light.turn_off\n data: {}\n target:\n entity_id: light.tv_backlight\n mode: single", "config": [ { "name": "TV Powered On", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.tv_powered_on", "device_id": null } }, { "name": "TV Backlight", "room": null, "type": "light", "id": { "entity_id": "light.tv_backlight", "device_id": null } } ] }, { "id": "'1754839043037'", "automation": "- id: '1754839043037'\n alias: 'Living Room: Ceiling Light Switch Flipped'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.living_room_ceiling_lights_input_0\n not_from:\n - unavailable\n - unknown\n not_to:\n - unavailable\n - unknown\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n metadata: {}\n data:\n message: Light switch flipped\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - if:\n - condition: state\n entity_id: light.living_room_ceiling\n state: 'off'\n then:\n - action: scene.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: scene.living_room_ceiling_lights_on\n else:\n - action: scene.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: scene.living_room_ceiling_lights_off\n mode: single", "config": [ { "name": "Living Room Ceiling Lights Input 0", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_ceiling_lights_input_0", "device_id": null } }, { "name": "Living Room Ceiling", "room": "Living Room", "type": "light", "id": { "entity_id": "light.living_room_ceiling", "device_id": null } }, { "name": "Living Room Ceiling Lights Off", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_ceiling_lights_off", "device_id": null } }, { "name": "Living Room Ceiling Lights On", "room": "Living Room", "type": "scene", "id": { "entity_id": "scene.living_room_ceiling_lights_on", "device_id": null } } ] }, { "id": "'1654005357582'", "automation": "- id: '1654005357582'\n alias: 'Living Room: Terina''s Work Laptop Turned Off'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - group.terinas_work_computer\n not_from: unavailable\n to: not_home\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Terina's work laptop turned off.\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: script.check_terinas_work_laptop_status\n data: {}\n mode: single", "config": [ { "name": "Terinas Work Computer", "room": null, "type": "group", "id": { "entity_id": "group.terinas_work_computer", "device_id": null } } ] }, { "id": "'1654005357583'", "automation": "- id: '1654005357583'\n alias: 'Living Room: Terina''s Work Laptop Turned On'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - group.terinas_work_computer\n not_from: unavailable\n to: not_home\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Terina's work laptop turned on.\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - action: script.check_terinas_work_laptop_status\n data: {}\n mode: single", "config": [ { "name": "Terinas Work Computer", "room": null, "type": "group", "id": { "entity_id": "group.terinas_work_computer", "device_id": null } } ] }, { "id": "'1678741966793'", "automation": "- id: '1678741966793'\n alias: 'Living Room: Computer Turned Off'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - group.family_computer\n - group.terinas_work_computer\n from: home\n to: not_home\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions:\n - condition: state\n entity_id: input_boolean.enable_living_room_blind_automations\n state: 'on'\n - condition: sun\n after: sunrise\n - condition: time\n after: 08:00:30\n - condition: sun\n before: sunset\n - condition: state\n entity_id: group.family_computer\n state: not_home\n - condition: state\n entity_id: group.terinas_work_computer\n state: not_home\n - or:\n - condition: state\n entity_id: cover.living_room_blinds_left\n attribute: current_tilt_position\n state: 50\n - condition: state\n entity_id: cover.living_room_blinds_middle\n attribute: current_tilt_position\n state: 50\n - condition: state\n entity_id: cover.living_room_blinds_right\n attribute: current_tilt_position\n state: 50\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: All computers turned off. Opening blinds.\n title: ':couch_and_lamp: Living Room'\n log_level: Debug\n - parallel:\n - if:\n - condition: state\n entity_id: cover.living_room_blinds_left\n attribute: current_tilt_position\n state: 50\n then:\n - action: cover.set_cover_tilt_position\n data:\n tilt_position: 50\n target:\n entity_id:\n - cover.living_room_blinds_left\n - if:\n - condition: state\n entity_id: cover.living_room_blinds_middle\n attribute: current_tilt_position\n state: 50\n then:\n - action: cover.set_cover_tilt_position\n data:\n tilt_position: 50\n target:\n entity_id:\n - cover.living_room_blinds_middle\n - if:\n - condition: state\n entity_id: cover.living_room_blinds_right\n attribute: current_tilt_position\n state: 50\n then:\n - action: cover.set_cover_tilt_position\n data:\n tilt_position: 50\n target:\n entity_id:\n - cover.living_room_blinds_right\n mode: single", "config": [ { "name": "Living Room Blinds Left", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_left", "device_id": null } }, { "name": "Living Room Blinds Middle", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_middle", "device_id": null } }, { "name": "Living Room Blinds Right", "room": "Living Room", "type": "cover", "id": { "entity_id": "cover.living_room_blinds_right", "device_id": null } }, { "name": "Family Computer", "room": null, "type": "group", "id": { "entity_id": "group.family_computer", "device_id": null } }, { "name": "Terinas Work Computer", "room": null, "type": "group", "id": { "entity_id": "group.terinas_work_computer", "device_id": null } }, { "name": "Enable Living Room Blind Automations", "room": "Living Room", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_living_room_blind_automations", "device_id": null } } ] }, { "id": "'1652029607668'", "automation": "- id: '1652029607668'\n alias: 'Kitchen: Temperature Reaches target'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.meater_probe_target\n above: sensor.meater_probe_internal\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':cook: :thermometer: The {{states(''sensor.meater_probe_cooking'')}}\n has reached temperature.'\n log_level: Normal\n mode: single", "config": [ { "name": "Meater Probe Cooking", "room": null, "type": "sensor", "id": { "entity_id": "sensor.meater_probe_cooking", "device_id": null } }, { "name": "Meater Probe Target", "room": null, "type": "sensor", "id": { "entity_id": "sensor.meater_probe_target", "device_id": null } } ] }, { "id": "'1652029734731'", "automation": "- id: '1652029734731'\n alias: 'Kitchen: Cooking Has Started'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.meater_probe_cook_state\n to: started\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':cook: The {{states(''sensor.meater_probe_cooking'')}} has started\n cooking.'\n log_level: Normal\n mode: single", "config": [ { "name": "Meater Probe Cook State", "room": null, "type": "sensor", "id": { "entity_id": "sensor.meater_probe_cook_state", "device_id": null } }, { "name": "Meater Probe Cooking", "room": null, "type": "sensor", "id": { "entity_id": "sensor.meater_probe_cooking", "device_id": null } } ] }, { "id": "'1625924056779'", "automation": "- id: '1625924056779'\n alias: Mobile Notification Action Router\n description: ''\n triggers:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data: {}\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action == ''set_bedroom_blinds_30''\n }}'\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n above: '30'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':window: Closing bedroom blinds event received.'\n - action: cover.set_cover_position\n target:\n entity_id: cover.bedroom_blinds\n data:\n position: 30\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action == ''server_fan_off'' }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Turning off server fan event received.\n - action: switch.turn_off\n target:\n entity_id: switch.server_fan\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action == ''switch_on_office_fan''\n }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Turning on office fan event received.\n - action: switch.turn_on\n target:\n entity_id: switch.office_fan\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action == ''switch_on_fridge_freezer''\n }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Turning on fridge freezer event received.\n - action: switch.turn_on\n target:\n entity_id: switch.ecoflow_kitchen_plug\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action == ''switch_on_freezer'' }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Turning on freezer event received.\n - action: switch.turn_on\n target:\n entity_id: switch.freezer\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action == ''guest_mode_arm_alarm_and_turn_off_devices''\n }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':bell: Guest mode override. Turning alarm on and devices off.'\n - action: script.set_alarm_to_away_mode\n - action: script.lock_front_door\n - action: script.everybody_leave_home\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action == ''guest_mode_arm_alarm_away''\n }}'\n - condition: state\n entity_id: input_select.home_mode\n state: Guest\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':bell: Guest mode override. Turning alarm in away mode (motion\n and sensors) on only.'\n - action: script.set_alarm_to_away_mode\n - action: script.lock_front_door\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action == ''guest_mode_turn_off_devices''\n }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Guest mode override. Turning devices off only.\n - action: script.everybody_leave_home\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action == ''switch_off_alarm'' }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Alarm override. Turning Alarm off.\n - action: script.set_alarm_to_disarmed_mode\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action == ''switch_off_attic_lights''\n }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Turning attic lights off event.\n - action: light.turn_off\n data: {}\n target:\n entity_id: light.attic\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action == ''update_home_assistant''\n }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Upgrade Home Assistant event.\n - action: update.install\n data:\n backup: true\n target:\n entity_id: update.home_assistant_core_update\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action == ''zappi_stop'' }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Stop Zappi event.\n - action: select.select_option\n data:\n option: Stopped\n target:\n entity_id: select.myenergi_zappi_charge_mode\n default: []\n mode: queued\n max: 10", "config": [ { "name": "attic light", "room": "attic", "type": "light", "id": { "entity_id": "light.attic", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "MyEnergi Zappi Charge Mode", "room": null, "type": "select", "id": { "entity_id": "select.myenergi_zappi_charge_mode", "device_id": null } }, { "name": "EcoFlow Kitchen Plug", "room": "Kitchen", "type": "switch", "id": { "entity_id": "switch.ecoflow_kitchen_plug", "device_id": null } }, { "name": "Freezer", "room": null, "type": "switch", "id": { "entity_id": "switch.freezer", "device_id": null } }, { "name": "Office Fan", "room": "Office", "type": "switch", "id": { "entity_id": "switch.office_fan", "device_id": null } }, { "name": "Server Fan", "room": null, "type": "switch", "id": { "entity_id": "switch.server_fan", "device_id": null } }, { "name": "Home Assistant Core Update", "room": null, "type": "update", "id": { "entity_id": "update.home_assistant_core_update", "device_id": null } } ] }, { "id": "'1701033189010'", "automation": "- id: '1701033189010'\n alias: 'Porch: Front Door Lock Status Change'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - lock.front_door\n not_from:\n - unlocked\n conditions:\n - condition: state\n entity_id: binary_sensor.front_door\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_front_door_lock_automations\n state: 'on'\n actions:\n - choose:\n - conditions:\n - or:\n - condition: state\n entity_id: lock.front_door\n state: locking\n - condition: state\n entity_id: lock.front_door\n state: unlocking\n sequence:\n - parallel:\n - action: script.front_door_lock_status\n data: {}\n - action: script.send_to_home_log\n data:\n message: Front door \"{{ states('lock.front_door') }}\".\n title: Porch\n log_level: Normal\n - conditions:\n - or:\n - condition: state\n entity_id: lock.front_door\n state: locked\n - condition: state\n entity_id: lock.front_door\n state: unlocked\n sequence:\n - action: script.send_to_home_log\n data:\n message: Front door \"{{ states('lock.front_door') }}\".\n title: Porch\n log_level: Normal\n - action: script.turn_off\n data: {}\n target:\n entity_id: script.front_door_lock_status\n mode: single", "config": [ { "name": "front door lock", "room": "porch", "type": "lock", "id": { "entity_id": "lock.front_door", "device_id": null } }, { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "Enable Front Door Lock Automations", "room": "Porch", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_front_door_lock_automations", "device_id": null } }, { "name": "Front Door Lock Status", "room": "Front Door", "type": "script", "id": { "entity_id": "script.front_door_lock_status", "device_id": null } } ] }, { "id": "'1752928735125'", "automation": "- id: '1752928735125'\n alias: 'Nuki: Unavailable'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - lock.front_door\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions: []\n actions:\n - parallel:\n - action: button.press\n metadata: {}\n data: {}\n target:\n entity_id: button.front_door_reboot_nuki\n - action: script.send_to_home_log\n data:\n message: Nuki hub is unavailable. Restarting Hub.\n title: Nuki\n log_level: Debug\n mode: single", "config": [ { "name": "front door lock", "room": "porch", "type": "lock", "id": { "entity_id": "lock.front_door", "device_id": null } }, { "name": "Front Door Reboot Nuki", "room": "Porch", "type": "button", "id": { "entity_id": "button.front_door_reboot_nuki", "device_id": null } } ] }, { "id": "'1608655560832'", "automation": "- id: '1608655560832'\n alias: '3D Printer: Print Started'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.octoprint_printing\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_3d_printer_automations\n state: 'on'\n actions:\n - wait_for_trigger:\n - trigger: numeric_state\n entity_id: sensor.octoprint_estimated_finish_time\n above: '0'\n timeout: '60'\n - parallel:\n - action: switch.turn_on\n target:\n entity_id: switch.prusa_fan\n - action: script.send_to_home_log\n data:\n message: 'Printer priming. Turning on extruder :dash: fan.'\n title: ':printer: :black_square_button: 3D printer'\n log_level: Normal\n - wait_for_trigger:\n - trigger: numeric_state\n entity_id: sensor.octoprint_estimated_finish_time\n above: '0'\n timeout: '60'\n - action: script.send_to_home_log\n data:\n message: 'Printer started. Estimated time to completion: {{ states(''sensor.octoprint_estimated_finish_time'')\n }}.'\n title: ':printer: :black_square_button: 3D printer'\n log_level: Normal\n - choose:\n - conditions:\n - condition: sun\n after: sunset\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':city_sunset: Printing started after sunset. Turning Printer\n :high_brightness: :bulb: light on.'\n title: ':printer: :black_square_button: 3D printer'\n log_level: Normal\n - action: scene.turn_on\n target:\n entity_id: scene.3d_printer_light_on\n - conditions:\n - condition: sun\n before: sunrise\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':city_sunset: Printing started before sunrise. Turning Printer\n :high_brightness: :bulb: light on.'\n title: ':printer: :black_square_button: 3D printer'\n log_level: Normal\n - action: scene.turn_on\n target:\n entity_id: scene.3d_printer_light_on\n - conditions:\n - condition: sun\n after: sunrise\n before: sunset\n - condition: state\n entity_id: light.prusa\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':sunny: Printing started during the day. Turning Printer light\n off.'\n title: ':printer: :black_square_button: 3D printer'\n log_level: Normal\n - action: scene.turn_on\n target:\n entity_id: scene.3d_printer_light_off\n default:\n - action: script.send_to_home_log\n data:\n message: ':sunrise: Printing started after sunrise. Not turning on printer\n light.'\n title: ':printer: :black_square_button: 3D printer'\n log_level: Normal\n - action: scene.turn_on\n target:\n entity_id: scene.3d_printer_light_off\n mode: single", "config": [ { "name": "Octoprint Printing", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octoprint_printing", "device_id": null } }, { "name": "Enable 3D Printer Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_3d_printer_automations", "device_id": null } }, { "name": "Prusa", "room": null, "type": "light", "id": { "entity_id": "light.prusa", "device_id": null } }, { "name": "3D Printer Light Off", "room": null, "type": "scene", "id": { "entity_id": "scene.3d_printer_light_off", "device_id": null } }, { "name": "3D Printer Light On", "room": null, "type": "scene", "id": { "entity_id": "scene.3d_printer_light_on", "device_id": null } }, { "name": "OctoPrint Estimated Finish Time", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octoprint_estimated_finish_time", "device_id": null } }, { "name": "Prusa Fan", "room": null, "type": "switch", "id": { "entity_id": "switch.prusa_fan", "device_id": null } } ] }, { "id": "'1619873649348'", "automation": "- id: '1619873649348'\n alias: '3D Printer: 50% Complete'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.octoprint_job_percentage\n above: '50'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_3d_printer_automations\n state: 'on'\n actions:\n - action: script.send_to_home_log\n data:\n message: 50% complete and due to finish at {{ states('sensor.octoprint_estimated_finish_time')\n }}.\n title: ':printer: :black_square_button: 3D printer'\n log_level: Normal\n mode: single", "config": [ { "name": "Enable 3D Printer Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_3d_printer_automations", "device_id": null } }, { "name": "OctoPrint Estimated Finish Time", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octoprint_estimated_finish_time", "device_id": null } }, { "name": "OctoPrint Job Percentage", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octoprint_job_percentage", "device_id": null } } ] }, { "id": "'1623087278802'", "automation": "- id: '1623087278802'\n alias: '3D Printer: Check If Printing Light'\n description: ''\n triggers:\n - trigger: time_pattern\n hours: '*'\n seconds: '*'\n minutes: /30\n - trigger: sun\n event: sunset\n id: sunset\n - trigger: sun\n event: sunrise\n conditions: []\n actions:\n - if:\n - condition: state\n entity_id: light.prusa\n state: 'on'\n then:\n - action: script.3d_printer_check_turn_off_light\n else:\n - action: script.3d_printer_check_turn_on_light\n mode: single", "config": [ { "name": "Prusa", "room": null, "type": "light", "id": { "entity_id": "light.prusa", "device_id": null } } ] }, { "id": "'1613321560216'", "automation": "- id: '1613321560216'\n alias: '3D Printer: Finished Printing'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.octoprint_printing\n from: 'on'\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_3d_printer_automations\n state: 'on'\n actions:\n - action: script.send_to_home_log\n data:\n message: ':white_check_mark: Completed 3D printing which started {{states(''sensor.octoprint_start_time'')}}'\n title: ':printer: :black_square_button: 3D printer'\n log_level: Normal\n mode: single", "config": [ { "name": "Octoprint Printing", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octoprint_printing", "device_id": null } }, { "name": "Enable 3D Printer Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_3d_printer_automations", "device_id": null } }, { "name": "OctoPrint Start Time", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octoprint_start_time", "device_id": null } } ] }, { "id": "'1656239435552'", "automation": "- id: '1656239435552'\n alias: '3D Printer: Light Turned on'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - light.prusa\n to: 'on'\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions:\n - condition: state\n entity_id: input_boolean.enable_3d_printer_automations\n state: 'on'\n actions:\n - action: script.3d_printer_check_turn_off_light\n data: {}\n mode: single", "config": [ { "name": "Enable 3D Printer Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_3d_printer_automations", "device_id": null } }, { "name": "Prusa", "room": null, "type": "light", "id": { "entity_id": "light.prusa", "device_id": null } } ] }, { "id": "'168962611780'", "automation": "- id: '168962611780'\n alias: 'Octopus Energy: Electricity Rates Changed'\n description: ''\n trace:\n stored_traces: 40\n triggers:\n - trigger: state\n entity_id: sensor.octopus_energy_electricity_current_rate\n conditions: []\n actions:\n - parallel:\n - alias: Check Solar Assistant\n if:\n - condition: state\n entity_id: input_boolean.enable_solar_assistant_automations\n state: 'on'\n - not:\n - condition: state\n entity_id: select.growatt_sph_work_mode_priority\n state: unavailable\n then:\n - action: script.solar_assistant_check_charging_mode\n data:\n event: event\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n current_electricity_export_rate: '{{ states(''sensor.octopus_energy_electricity_export_current_rate'')\n }}'\n current_electricity_export_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_export_current_rate'',\n ''unit_of_measurement'') }}'\n - alias: Check Zappi\n choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_zappi_automations\n state: 'on'\n - not:\n - condition: state\n entity_id: sensor.myenergi_zappi_plug_status\n state: EV Disconnected\n sequence:\n - alias: Check Zappi\n action: script.zappi_check_ev_charge\n data:\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n current_electricity_export_rate: '{{ states(''sensor.octopus_energy_electricity_export_current_rate'')\n }}'\n default: []\n - alias: Check Eddi\n choose:\n - conditions:\n - not:\n - condition: state\n entity_id: select.myenergi_eddi_operating_mode\n state: Stopped\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n - condition: state\n entity_id: input_boolean.enable_hot_water_automations\n state: 'on'\n sequence:\n - action: script.hvac_check_eddi_boost_hot_water\n data:\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n default: []\n - alias: Check Ecoflow\n choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_ecoflow_automations\n state: 'on'\n sequence:\n - action: script.ecoflow_check_charging_mode\n data:\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n current_electricity_export_rate: '{{ states(''sensor.octopus_energy_electricity_export_current_rate'')\n }}'\n default: []\n - alias: Conservatory underfloor heating\n choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_conservatory_under_floor_heating_automations\n state: 'on'\n sequence:\n - action: script.conservatory_electricity_rate_change\n data:\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n default: []\n - alias: Tesla not connected and home\n choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.model_y_charger\n state: Unplugged\n - condition: state\n entity_id: sensor.myenergi_zappi_plug_status\n state: EV Disconnected\n - condition: state\n entity_id: input_boolean.enable_tesla_automations\n state: 'on'\n sequence:\n - action: script.tesla_notify_low_electricity_rates\n data: {}\n default: []\n - alias: Check Airer\n choose:\n - conditions:\n - or:\n - condition: state\n entity_id: input_boolean.enable_conservatory_airer_when_cost_below_nothing\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_conservatory_airer_when_cost_nothing\n state: 'on'\n sequence:\n - action: script.check_conservatory_airer\n data:\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n default: []", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Model Y Charger", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.model_y_charger", "device_id": null } }, { "name": "Enable Conservatory Airer When Cost Below Nothing", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_conservatory_airer_when_cost_below_nothing", "device_id": null } }, { "name": "Enable Conservatory Airer When Cost Nothing", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_conservatory_airer_when_cost_nothing", "device_id": null } }, { "name": "Enable Conservatory Under Floor Heating Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_conservatory_under_floor_heating_automations", "device_id": null } }, { "name": "Enable Ecoflow Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ecoflow_automations", "device_id": null } }, { "name": "Enable Hot Water Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hot_water_automations", "device_id": null } }, { "name": "Enable Solar Assistant Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_solar_assistant_automations", "device_id": null } }, { "name": "Enable Tesla Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_tesla_automations", "device_id": null } }, { "name": "Enable Zappi Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_zappi_automations", "device_id": null } }, { "name": "Growatt SPH Work Mode Priority", "room": null, "type": "select", "id": { "entity_id": "select.growatt_sph_work_mode_priority", "device_id": null } }, { "name": "MyEnergi Eddi Operating Mode", "room": null, "type": "select", "id": { "entity_id": "select.myenergi_eddi_operating_mode", "device_id": null } }, { "name": "MyEnergi Zappi Plug Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_zappi_plug_status", "device_id": null } }, { "name": "Octopus Energy Electricity Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_current_rate", "device_id": null } }, { "name": "Octopus Energy Electricity Export Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_export_current_rate", "device_id": null } } ] }, { "id": "'168962611781'", "automation": "- id: '168962611781'\n alias: Refresh intelligent dispatches\n description: 'Example from: https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/services/#octopus_energyrefresh_intelligent_dispatches'\n triggers:\n - trigger: state\n entity_id: sensor.myenergi_zappi_plug_status\n not_to: EV Disconnected\n - trigger: time_pattern\n minutes: /3\n conditions:\n - not:\n - condition: state\n entity_id: sensor.myenergi_zappi_plug_status\n state: EV Disconnected\n actions:\n - action: script.refresh_octopus_intelligent_dispatching\n data: {}\n mode: single", "config": [ { "name": "MyEnergi Zappi Plug Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_zappi_plug_status", "device_id": null } } ] }, { "id": "'1744064001680'", "automation": "- id: '1744064001680'\n alias: 'People: Update Danny''s Owntracks'\n description: https://devblog.yvn.no/posts/replacing-maps-timeline-with-owntracks/\n triggers:\n - trigger: state\n entity_id:\n - device_tracker.danny_s_phone\n conditions: []\n actions:\n - action: mqtt.publish\n metadata: {}\n data:\n topic: owntracks/danny/iphone\n payload: \"{\\n \\\"_type\\\": \\\"location\\\",\\n \\\"t\\\": \\\"p\\\",\\n \\\"tid\\\": \\\"ha\\\"\\\n ,\\n \\\"lat\\\": {{ state_attr('device_tracker.danny_s_phone', 'latitude') }},\\n\\\n \\ \\\"lon\\\": {{ state_attr('device_tracker.danny_s_phone', 'longitude') }},\\n\\\n \\ \\\"alt\\\": {{ state_attr('device_tracker.danny_s_phone', 'altitude') | default(0)\\\n \\ }},\\n \\\"vac\\\": {{ state_attr('device_tracker.danny_s_phone', 'vertical_accuracy')\\\n \\ | default(0) }},\\n \\\"acc\\\": {{ state_attr('device_tracker.danny_s_phone',\\\n \\ 'gps_accuracy') | default(0) }},\\n \\\"vel\\\": {{ state_attr('device_tracker.danny_s_phone',\\\n \\ 'speed') | default(0) }},\\n \\\"cog\\\": {{ state_attr('device_tracker.danny_s_phone',\\\n \\ 'course') | default(0) }},\\n \\\"tst\\\": {{ now().timestamp() | int }}\\n}\\n\"\n retain: true\n mode: single", "config": [ { "name": "Danny S Phone", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.danny_s_phone", "device_id": null } } ] }, { "id": "'1744064001681'", "automation": "- id: '1744064001681'\n alias: 'People: Update Terina''s Owntracks'\n description: https://devblog.yvn.no/posts/replacing-maps-timeline-with-owntracks/\n triggers:\n - trigger: state\n entity_id:\n - device_tracker.oneplus_10\n conditions: []\n actions:\n - action: mqtt.publish\n metadata: {}\n data:\n topic: owntracks/terina/oneplus\n payload: \"{\\n \\\"_type\\\": \\\"location\\\",\\n \\\"t\\\": \\\"p\\\",\\n \\\"tid\\\": \\\"ha\\\"\\\n ,\\n \\\"lat\\\": {{ state_attr('device_tracker.oneplus_10', 'latitude') }},\\n\\\n \\ \\\"lon\\\": {{ state_attr('device_tracker.oneplus_10', 'longitude') }},\\n\\\n \\ \\\"alt\\\": {{ state_attr('device_tracker.oneplus_10', 'altitude') | default(0)\\\n \\ }},\\n \\\"vac\\\": {{ state_attr('device_tracker.oneplus_10', 'vertical_accuracy')\\\n \\ | default(0) }},\\n \\\"acc\\\": {{ state_attr('device_tracker.oneplus_10',\\\n \\ 'gps_accuracy') | default(0) }},\\n \\\"vel\\\": {{ state_attr('device_tracker.oneplus_10',\\\n \\ 'speed') | default(0) }},\\n \\\"cog\\\": {{ state_attr('device_tracker.oneplus_10',\\\n \\ 'course') | default(0) }},\\n \\\"tst\\\": {{ now().timestamp() | int }}\\n}\\n\"\n retain: true\n mode: single", "config": [ { "name": "Oneplus 10", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.oneplus_10", "device_id": null } } ] }, { "id": "'1744064001682'", "automation": "- id: '1744064001682'\n alias: 'People: Update Leo''s Owntracks'\n description: https://devblog.yvn.no/posts/replacing-maps-timeline-with-owntracks/\n triggers:\n - trigger: state\n entity_id:\n - device_tracker.leos_iphone\n conditions: []\n actions:\n - action: mqtt.publish\n metadata: {}\n data:\n topic: owntracks/leo/iphone\n payload: \"{\\n \\\"_type\\\": \\\"location\\\",\\n \\\"t\\\": \\\"p\\\",\\n \\\"tid\\\": \\\"ha\\\"\\\n ,\\n \\\"lat\\\": {{ state_attr('device_tracker.leos_iphone', 'latitude') }},\\n\\\n \\ \\\"lon\\\": {{ state_attr('device_tracker.leos_iphone', 'longitude') }},\\n\\\n \\ \\\"alt\\\": {{ state_attr('device_tracker.leos_iphone', 'altitude') | default(0)\\\n \\ }},\\n \\\"vac\\\": {{ state_attr('device_tracker.leos_iphone', 'vertical_accuracy')\\\n \\ | default(0) }},\\n \\\"acc\\\": {{ state_attr('device_tracker.leos_iphone',\\\n \\ 'gps_accuracy') | default(0) }},\\n \\\"vel\\\": {{ state_attr('device_tracker.leos_iphone',\\\n \\ 'speed') | default(0) }},\\n \\\"cog\\\": {{ state_attr('device_tracker.leos_iphone',\\\n \\ 'course') | default(0) }},\\n \\\"tst\\\": {{ now().timestamp() | int }}\\n}\\n\"\n retain: true\n mode: single", "config": [ { "name": "Leos Iphone", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.leos_iphone", "device_id": null } } ] }, { "id": "'1661076689668'", "automation": "- id: '1661076689668'\n alias: 'Energy: Battery Charged And Forecasted Excess Solar'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.growatt_sph_battery_state_of_charge\n above: input_number.battery_charged_notification\n conditions:\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: sensor.total_solar_forecast_estimated_energy_production_this_hour\n above: '0'\n - condition: numeric_state\n entity_id: sensor.total_solar_forecast_estimated_energy_production_next_hour\n above: '0'\n - not:\n - condition: state\n entity_id: sensor.growatt_sph_inverter_mode\n state: Battery first\n - alias: Not from an unknown state before\n condition: template\n value_template: '{{ trigger.from_state.state != ''unknown''}}'\n actions:\n - action: script.energy_notify_excess_solar\n data: {}\n mode: single", "config": [ { "name": "Growatt SPH Battery State of Charge", "room": null, "type": "sensor", "id": { "entity_id": "sensor.growatt_sph_battery_state_of_charge", "device_id": null } }, { "name": "Growatt SPH Inverter Mode", "room": null, "type": "sensor", "id": { "entity_id": "sensor.growatt_sph_inverter_mode", "device_id": null } }, { "name": "Total Solar Forecast Estimated Energy Production Next Hour", "room": null, "type": "sensor", "id": { "entity_id": "sensor.total_solar_forecast_estimated_energy_production_next_hour", "device_id": null } }, { "name": "Total Solar Forecast Estimated Energy Production This Hour", "room": null, "type": "sensor", "id": { "entity_id": "sensor.total_solar_forecast_estimated_energy_production_this_hour", "device_id": null } } ] }, { "id": "'1660858653319'", "automation": "- id: '1660858653319'\n alias: 'Energy: Solar Forecast Tomorrow'\n description: ''\n triggers:\n - trigger: time\n at: '21:00:00'\n conditions:\n - alias: Check tariff is on Agile\n condition: template\n value_template: '{{ ''AGILE'' in state_attr(''event.octopus_energy_electricity_current_day_rates'',\n ''tariff_code'')|upper }}'\n actions:\n - alias: update forecast\n action: script.update_solcast\n data: {}\n - parallel:\n - if:\n - condition: numeric_state\n entity_id: sensor.total_solar_forecast_estimated_energy_production_tomorrow\n below: input_number.solar_generation_minimum_threshold\n then:\n - action: script.send_to_home_log\n data:\n message: 'Forecast generation is expected to be low ({{ states(''sensor.total_solar_forecast_estimated_energy_production_tomorrow'')\n }}< {{ states(''input_number.solar_generation_minimum_threshold'', with_unit=True)\n }}).\n\n Incrementing counter from {{ states(''input_number.consecutive_forecast_days_below_solar_generation'')\n }} to {{ (states(''input_number.consecutive_forecast_days_below_solar_generation'')|int(0))\n + 1 }} {{ state_attr(''input_number.consecutive_forecast_days_below_solar_generation'',\n ''unit_of_measurement'') }}.'\n title: ':sunny: :zap: Solar'\n log_level: Normal\n - action: input_number.increment\n data: {}\n target:\n entity_id: input_number.consecutive_forecast_days_below_solar_generation\n else:\n - action: input_number.set_value\n data:\n value: 0\n target:\n entity_id: input_number.consecutive_forecast_days_below_solar_generation\n - action: script.energy_notify_tomorrows_solar_forecast\n data: {}\n mode: single", "config": [ { "name": "Consecutive Forecast Days Below Solar Generation", "room": null, "type": "input_number", "id": { "entity_id": "input_number.consecutive_forecast_days_below_solar_generation", "device_id": null } }, { "name": "Solar Generation Minimum Threshold", "room": null, "type": "input_number", "id": { "entity_id": "input_number.solar_generation_minimum_threshold", "device_id": null } }, { "name": "Total Solar Forecast Estimated Energy Production Tomorrow", "room": null, "type": "sensor", "id": { "entity_id": "sensor.total_solar_forecast_estimated_energy_production_tomorrow", "device_id": null } } ] }, { "id": "'1664743590782'", "automation": "- id: '1664743590782'\n alias: 'Energy: Battery Charged Today'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.growatt_sph_battery_state_of_charge\n above: input_number.growatt_battery_charged_threshold\n conditions:\n - condition: state\n entity_id: input_boolean.battery_charged_today\n state: 'off'\n actions:\n - action: script.send_to_home_log\n data:\n message: Battery charged today\n title: ':sunny: :zap: Solar'\n log_level: Debug\n - action: input_boolean.turn_on\n data: {}\n target:\n entity_id: input_boolean.battery_charged_today\n - if:\n - condition: numeric_state\n entity_id: input_number.consecutive_days_battery_not_charged\n above: 0\n then:\n - action: script.send_to_home_log\n data:\n message: Resetting days not fully charged.\n title: ':sunny: :zap: Solar'\n log_level: Debug\n - action: input_number.set_value\n data:\n value: 0\n target:\n entity_id: input_number.consecutive_days_battery_not_charged\n mode: single", "config": [ { "name": "Battery Charged Today", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.battery_charged_today", "device_id": null } }, { "name": "Consecutive Days Battery Not Charged", "room": null, "type": "input_number", "id": { "entity_id": "input_number.consecutive_days_battery_not_charged", "device_id": null } }, { "name": "Growatt Battery Charged Threshold", "room": null, "type": "input_number", "id": { "entity_id": "input_number.growatt_battery_charged_threshold", "device_id": null } }, { "name": "Growatt SPH Battery State of Charge", "room": null, "type": "sensor", "id": { "entity_id": "sensor.growatt_sph_battery_state_of_charge", "device_id": null } } ] }, { "id": "'1664743700827'", "automation": "- id: '1664743700827'\n alias: 'Energy: Reset Battery Charged Today'\n description: ''\n triggers:\n - trigger: time\n at: 00:00:00\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.battery_charged_today\n state: 'on'\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Resetting battery charged today.\n title: ':sunny: :zap: Solar'\n log_level: Debug\n - action: input_boolean.turn_off\n data: {}\n target:\n entity_id: input_boolean.battery_charged_today\n - conditions:\n - condition: state\n entity_id: input_boolean.battery_charged_today\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Battery did not fully charge today (> {{ states('input_number.growatt_battery_charged_threshold',\n with_unit=True) }}). Adding a day to count ({{ states('input_number.consecutive_days_battery_not_charged')\n }}).\n title: ':sunny: :zap: Solar'\n log_level: Debug\n - action: input_number.increment\n data: {}\n target:\n entity_id: input_number.consecutive_days_battery_not_charged\n mode: single", "config": [ { "name": "Battery Charged Today", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.battery_charged_today", "device_id": null } }, { "name": "Consecutive Days Battery Not Charged", "room": null, "type": "input_number", "id": { "entity_id": "input_number.consecutive_days_battery_not_charged", "device_id": null } }, { "name": "Growatt Battery Charged Threshold", "room": null, "type": "input_number", "id": { "entity_id": "input_number.growatt_battery_charged_threshold", "device_id": null } } ] }, { "id": "'1663589154517'", "automation": "- id: '1663589154517'\n alias: 'Energy: Solar Production exceed threshold'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.total_solar_forecast_estimated_energy_production_today\n above: input_number.solar_generation_minimum_threshold\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: Production above threshold. Resetting Forecast\n title: ':sunny: :zap: Solar'\n log_level: Debug\n mode: single", "config": [ { "name": "Solar Generation Minimum Threshold", "room": null, "type": "input_number", "id": { "entity_id": "input_number.solar_generation_minimum_threshold", "device_id": null } }, { "name": "Total Solar Forecast Estimated Energy Production Today", "room": null, "type": "sensor", "id": { "entity_id": "sensor.total_solar_forecast_estimated_energy_production_today", "device_id": null } } ] }, { "id": "'1664744505278'", "automation": "- id: '1664744505278'\n alias: 'Energy: Consecutive Days Battery Not Charged'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: input_number.consecutive_days_battery_not_charged\n above: 6\n conditions: []\n actions:\n - action: script.send_direct_notification\n data:\n message: It has been {{ states('input_number.consecutive_days_battery_not_charged')\n }} days where the battery has not been charged fully.\n title: ':sunny: :zap: Solar'\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Consecutive Days Battery Not Charged", "room": null, "type": "input_number", "id": { "entity_id": "input_number.consecutive_days_battery_not_charged", "device_id": null } } ] }, { "id": "'1663588514009'", "automation": "- id: '1663588514009'\n alias: 'Energy: Consecutive Low Solar Generation'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: input_number.consecutive_forecast_days_below_solar_generation\n above: 6\n conditions: []\n actions:\n - action: script.send_direct_notification\n data:\n message: It has been {{ states('input_number.consecutive_forecast_days_below_solar_generation')\n }} days with low solar generation.\n title: ':sunny: :zap: Solar'\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Consecutive Forecast Days Below Solar Generation", "room": null, "type": "input_number", "id": { "entity_id": "input_number.consecutive_forecast_days_below_solar_generation", "device_id": null } } ] }, { "id": "'1674508693884'", "automation": "- id: '1674508693884'\n alias: 'Energy: Battery Charge Notification'\n description: Used for Demand Flexibility Service\n triggers:\n - trigger: time\n at: '15:55:00'\n conditions:\n - condition: template\n value_template: '{{ (states(''sensor.growatt_sph_battery_state_of_charge'')|int(0))\n > ((states(''number.growatt_sph_load_first_stop_discharge'')|int(0)) + 1) }}'\n actions:\n - action: script.send_direct_notification\n data:\n message: '{{ states(''sensor.growatt_sph_battery_state_of_charge'') }}% (That\n is {{ state_attr(''sensor.battery_charge_remaining_hours'', ''duration'')\n }}) remaining.'\n title: ':house_with_garden: :battery: House Battery'\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Growatt SPH Load First Stop Discharge", "room": null, "type": "number", "id": { "entity_id": "number.growatt_sph_load_first_stop_discharge", "device_id": null } }, { "name": "Battery Charge Remaining Hours", "room": null, "type": "sensor", "id": { "entity_id": "sensor.battery_charge_remaining_hours", "device_id": null } }, { "name": "Growatt SPH Battery State of Charge", "room": null, "type": "sensor", "id": { "entity_id": "sensor.growatt_sph_battery_state_of_charge", "device_id": null } } ] }, { "id": "'1704121569476'", "automation": "- id: '1704121569476'\n alias: 'Energy: Low Battery Before Peak Time'\n description: 'TODO: Make this dynamic'\n triggers:\n - trigger: time\n at: '14:00:00'\n - trigger: time\n at: '15:00:00'\n conditions:\n - alias: Battery runtime less than 19:00 (usually end of peak time)\n condition: template\n value_template: '{{ today_at(\"19:00\") > as_datetime(states(''sensor.battery_charge_remaining_hours''))\n }}'\n - alias: Not already charging battery\n not:\n - condition: state\n entity_id: sensor.growatt_sph_inverter_mode\n state: Battery first\n - alias: Check tariff is on Agile\n condition: template\n value_template: '{{ ''AGILE'' in state_attr(''event.octopus_energy_electricity_current_day_rates'',\n ''tariff_code'')|upper }}'\n actions:\n - action: script.send_direct_notification\n data:\n message: Battery will not last beyond 19:00 today ({{ as_datetime(states('sensor.battery_charge_remaining_hours'))\n }}). Consider charging the battery.\n title: Solar\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Battery Charge Remaining Hours", "room": null, "type": "sensor", "id": { "entity_id": "sensor.battery_charge_remaining_hours", "device_id": null } }, { "name": "Growatt SPH Inverter Mode", "room": null, "type": "sensor", "id": { "entity_id": "sensor.growatt_sph_inverter_mode", "device_id": null } } ] }, { "id": "'1680444237958'", "automation": "- id: '1680444237958'\n alias: 'Energy: Power Cut Notification'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.growatt_sph_load_power\n to: '0'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n conditions: []\n actions:\n - action: script.send_direct_notification\n data:\n message: No electricity consumption detected for over a minute. Check for power\n cut.\n title: ':warning: :zap: :house_with_garden: House :warning:'\n mode: single", "config": [ { "name": "Growatt SPH Load Power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.growatt_sph_load_power", "device_id": null } } ] }, { "id": "'1712404842177'", "automation": "- id: '1712404842177'\n alias: 'Energy: High Grid Power Draw'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.house_current\n above: sensor.grid_max_import_power_warning\n conditions: []\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: Current draw is close to cut out fuse ({{ (states('sensor.grid_max_import_power_warning')|float(0))|round(2)\n }}/{{ states('input_number.cut_out_fuse_size') }}). Consider turning devices\n off.\n title: 'Energy: House'\n people:\n entity_id:\n - person.danny\n - person.terina\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "Cut Out Fuse Size", "room": null, "type": "input_number", "id": { "entity_id": "input_number.cut_out_fuse_size", "device_id": null } }, { "name": "Grid Max Import Power Warning", "room": null, "type": "sensor", "id": { "entity_id": "sensor.grid_max_import_power_warning", "device_id": null } }, { "name": "House Current", "room": null, "type": "sensor", "id": { "entity_id": "sensor.house_current", "device_id": null } } ] }, { "id": "'1719080490915'", "automation": "- id: '1719080490915'\n alias: 'Energy: Saving Session Started'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_octoplus_saving_sessions\n not_from: unavailable\n to: 'on'\n conditions: []\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: Energy Saver Session Started\n title: Energy\n people:\n entity_id:\n - person.danny\n - person.terina\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "Octopus Energy Octoplus Saving Sessions", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_octoplus_saving_sessions", "device_id": null } } ] }, { "id": "'1719080490916'", "automation": "- id: '1719080490916'\n alias: 'Energy: Saving Session Finished'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_octoplus_saving_sessions\n not_from: unavailable\n to: 'off'\n conditions: []\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: Energy Saver Session Finished\n title: Energy\n people:\n entity_id:\n - person.danny\n - person.terina\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "Octopus Energy Octoplus Saving Sessions", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_octoplus_saving_sessions", "device_id": null } } ] }, { "id": "'1606428361967'", "automation": "- id: '1606428361967'\n alias: 'Office: Motion Detected And Light Is On'\n description: Split automation depending on light state due to dynamic attributes\n based on state. See https://community.home-assistant.io/t/dynamic-attributes/93226/2?u=tuxinator94\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.office_motion_2_presence\n to: 'on'\n - trigger: numeric_state\n entity_id:\n - sensor.office_motion_2_target_distance\n above: 0.1\n conditions:\n - condition: state\n entity_id: input_boolean.enable_office_motion_triggers\n state: 'on'\n - or:\n - condition: state\n entity_id: light.office_2\n state: 'on'\n - condition: state\n entity_id: light.office_3\n state: 'on'\n actions:\n - choose:\n - conditions:\n - and:\n - condition: sun\n before: sunset\n before_offset: -01:00:00\n - condition: numeric_state\n entity_id: sensor.office_motion_2_illuminance\n above: input_number.office_light_level_threshold\n - not:\n - condition: state\n entity_id: sensor.office_motion_2_illuminance\n state: unavailable\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: :bulb: :high_brightness: Motion detected in the\n office but it''s bright enough ({{ states(''sensor.office_motion_2_illuminance'')\n }} > {{ states(''input_number.office_light_level_threshold'', with_unit=True)\n }}). Skipping turning light on.'\n title: ':office: Office'\n log_level: Debug\n - action: timer.cancel\n data: {}\n target:\n entity_id: timer.office_lights_off\n - conditions:\n - and:\n - condition: numeric_state\n entity_id: sensor.office_motion_2_illuminance\n below: input_number.office_light_level_threshold\n - or:\n - condition: numeric_state\n entity_id: light.office_2\n attribute: brightness\n below: '200'\n - condition: numeric_state\n entity_id: light.office_3\n attribute: brightness\n below: '200'\n sequence:\n - parallel:\n - action: scene.turn_on\n target:\n entity_id: scene.office_main_light_on\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: :bulb: :high_brightness: Motion detected in the\n office and it''s dark ({{ states(''sensor.office_motion_2_illuminance'')\n }} < {{ states(''input_number.office_light_level_threshold'', with_unit=True)\n }}). Turning up :bulb: :high_brightness: lights.'\n title: ':office: Office'\n log_level: Debug\n - action: timer.cancel\n data: {}\n target:\n entity_id: timer.office_lights_off\n - conditions:\n - and:\n - or:\n - condition: numeric_state\n entity_id: sensor.office_motion_2_illuminance\n above: input_number.office_light_level_threshold\n - condition: state\n entity_id: sensor.office_motion_2_illuminance\n state: unavailable\n - or:\n - condition: numeric_state\n entity_id: light.office_2\n attribute: brightness\n below: '200'\n - condition: numeric_state\n entity_id: light.office_3\n attribute: brightness\n below: '200'\n sequence:\n - parallel:\n - action: scene.turn_on\n target:\n entity_id: scene.office_main_light_off\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: :bulb: :high_brightness: Motion detected in the\n office and bright ({{ states(''sensor.office_motion_2_illuminance'')\n }} < {{ states(''input_number.office_light_level_threshold'', with_unit=True)\n }}). Turning office lights off.'\n title: ':office: Office'\n log_level: Debug\n - action: timer.cancel\n data: {}\n target:\n entity_id: timer.office_lights_off\n - conditions:\n - condition: state\n entity_id: timer.office_lights_off\n state: active\n sequence:\n - parallel:\n - action: scene.turn_on\n target:\n entity_id: scene.office_main_light_off\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: :bulb: :high_brightness: Motion detected in the\n office Cancelling Timer.'\n title: ':office: Office'\n log_level: Debug\n - action: timer.cancel\n data: {}\n target:\n entity_id: timer.office_lights_off\n default: []\n mode: queued\n max: 10", "config": [ { "name": "Office Motion 2 Presence", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_motion_2_presence", "device_id": null } }, { "name": "Enable Office Motion Triggers", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_motion_triggers", "device_id": null } }, { "name": "Office Light Level Threshold", "room": "Office", "type": "input_number", "id": { "entity_id": "input_number.office_light_level_threshold", "device_id": null } }, { "name": "Office 2", "room": "Office", "type": "light", "id": { "entity_id": "light.office_2", "device_id": null } }, { "name": "Office 3", "room": "Office", "type": "light", "id": { "entity_id": "light.office_3", "device_id": null } }, { "name": "Office Main Light Off", "room": "Office", "type": "scene", "id": { "entity_id": "scene.office_main_light_off", "device_id": null } }, { "name": "Office Main Light On", "room": "Office", "type": "scene", "id": { "entity_id": "scene.office_main_light_on", "device_id": null } }, { "name": "Office Motion 2 Illuminance", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.office_motion_2_illuminance", "device_id": null } }, { "name": "Office Motion 2 Target Distance", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.office_motion_2_target_distance", "device_id": null } }, { "name": "Office Lights Off", "room": "Office", "type": "timer", "id": { "entity_id": "timer.office_lights_off", "device_id": null } } ] }, { "id": "'1632064858461'", "automation": "- id: '1632064858461'\n alias: 'Office: Motion Detected And Light Is Off'\n description: Split automation depending on light state due to dynamic attributes\n based on state. See https://community.home-assistant.io/t/dynamic-attributes/93226/2?u=tuxinator94\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.office_motion_2_presence\n to: 'on'\n - trigger: numeric_state\n entity_id:\n - sensor.office_motion_2_target_distance\n above: 0.1\n conditions:\n - condition: state\n entity_id: input_boolean.enable_office_motion_triggers\n state: 'on'\n - or:\n - condition: state\n entity_id: light.office_2\n state: 'off'\n - condition: state\n entity_id: light.office_3\n state: 'off'\n actions:\n - choose:\n - conditions:\n - or:\n - and:\n - condition: sun\n before: sunset\n before_offset: -01:00:00\n - condition: numeric_state\n entity_id: sensor.office_motion_2_illuminance\n above: input_number.office_light_level_threshold\n - condition: state\n entity_id: sensor.office_motion_2_illuminance\n state: unavailable\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: :bulb: :high_brightness: Motion detected in the\n office but it''s bright enough ({{ states(''sensor.office_motion_2_illuminance'')\n }} > {{ states(''input_number.office_light_level_threshold'', with_unit=True)\n }}). Skipping turning light on.'\n title: ':office: Office'\n log_level: Debug\n - action: timer.cancel\n data: {}\n target:\n entity_id: timer.office_lights_off\n - sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.office_room_brightness_above_threshold\n data: {}\n - delay:\n seconds: 1\n - action: light.turn_off\n target:\n entity_id:\n - light.office_4\n data: {}\n default:\n - parallel:\n - action: scene.turn_on\n target:\n entity_id: scene.office_main_light_on\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: :bulb: :high_brightness: Motion detected in the office\n and it''s dark ({{ states(''sensor.office_motion_2_illuminance'') }} <\n {{ states(''input_number.office_light_level_threshold'') }}). Turning\n :bulb: :high_brightness: lights on.'\n title: ':office: Office'\n log_level: Debug\n - action: timer.cancel\n data: {}\n target:\n entity_id: timer.office_lights_off\n mode: single", "config": [ { "name": "Office Motion 2 Presence", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_motion_2_presence", "device_id": null } }, { "name": "Enable Office Motion Triggers", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_motion_triggers", "device_id": null } }, { "name": "Office Light Level Threshold", "room": "Office", "type": "input_number", "id": { "entity_id": "input_number.office_light_level_threshold", "device_id": null } }, { "name": "Office 2", "room": "Office", "type": "light", "id": { "entity_id": "light.office_2", "device_id": null } }, { "name": "Office 3", "room": "Office", "type": "light", "id": { "entity_id": "light.office_3", "device_id": null } }, { "name": "Office 4", "room": "Office", "type": "light", "id": { "entity_id": "light.office_4", "device_id": null } }, { "name": "Office Main Light On", "room": "Office", "type": "scene", "id": { "entity_id": "scene.office_main_light_on", "device_id": null } }, { "name": "Office Room Brightness Above Threshold", "room": "Office", "type": "scene", "id": { "entity_id": "scene.office_room_brightness_above_threshold", "device_id": null } }, { "name": "Office Motion 2 Illuminance", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.office_motion_2_illuminance", "device_id": null } }, { "name": "Office Motion 2 Target Distance", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.office_motion_2_target_distance", "device_id": null } }, { "name": "Office Lights Off", "room": "Office", "type": "timer", "id": { "entity_id": "timer.office_lights_off", "device_id": null } } ] }, { "id": "'1587044886896'", "automation": "- id: '1587044886896'\n alias: 'Office: No Motion Detected'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.office_motion_2_target_distance\n below: 0.01\n for: 00:02:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_office_motion_triggers\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.office_motion_2_target_distance\n below: 0.01\n - condition: state\n entity_id: binary_sensor.office_motion_2_presence\n state: 'off'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion in the office. Starting :hourglass_flowing_sand:\n timer for 2 minutes before turning lights off.'\n title: ':office: Office'\n log_level: Debug\n - action: timer.start\n data:\n duration: 00:01:00\n target:\n entity_id: timer.office_lights_off\n mode: single", "config": [ { "name": "Office Motion 2 Presence", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_motion_2_presence", "device_id": null } }, { "name": "Enable Office Motion Triggers", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_motion_triggers", "device_id": null } }, { "name": "Office Motion 2 Target Distance", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.office_motion_2_target_distance", "device_id": null } }, { "name": "Office Lights Off", "room": "Office", "type": "timer", "id": { "entity_id": "timer.office_lights_off", "device_id": null } } ] }, { "id": "'1587044886897'", "automation": "- id: '1587044886897'\n alias: 'Office: Office Light Off Timer Finished'\n description: ''\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.office_lights_off\n conditions:\n - condition: state\n entity_id: input_boolean.enable_office_motion_triggers\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion in the office for 2 minutes. Turning\n lights off.'\n title: ':office: Office'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.office_main_light_off\n mode: single", "config": [ { "name": "Enable Office Motion Triggers", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_motion_triggers", "device_id": null } }, { "name": "Office Main Light Off", "room": "Office", "type": "scene", "id": { "entity_id": "scene.office_main_light_off", "device_id": null } }, { "name": "Office Lights Off", "room": "Office", "type": "timer", "id": { "entity_id": "timer.office_lights_off", "device_id": null } } ] }, { "id": "'1622584959878'", "automation": "- id: '1622584959878'\n alias: 'Office: High Temperature'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.office_area_mean_temperature\n above: '26'\n - trigger: numeric_state\n entity_id: sensor.office_area_mean_temperature\n above: '29'\n for: 00:01:00\n - trigger: numeric_state\n entity_id: sensor.office_area_mean_temperature\n for: 00:01:00\n above: '31'\n conditions:\n - condition: state\n entity_id: switch.office_fan\n state: 'off'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: group.tracked_people\n state: home\n - condition: time\n before: '22:00:00'\n - condition: time\n after: 08:30:00\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':hotsprings: :people_holding_hands: Office temperature is high\n ({{ states(''sensor.office_area_mean_temperature'') }}c) and someone\n is home. Turning on fan.'\n title: ':office: Office'\n log_level: Debug\n - action: switch.turn_on\n target:\n entity_id: switch.office_fan\n - conditions:\n - condition: numeric_state\n entity_id: sensor.office_area_mean_temperature\n above: '29'\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':warning: :hotsprings: Office temperature is above 29c ({{ states(''sensor.office_area_mean_temperature'')\n }}c).'\n title: ':office: Office'\n log_level: Debug\n - action: script.send_actionable_notification_with_2_buttons\n data:\n message: Turn on office fan?\n title: ♨️🏢Office temperature is 29c+\n people:\n entity_id:\n - person.danny\n action1_title: 'Yes'\n action1_name: switch_on_office_fan\n action2_title: 'No'\n action2_name: ignore\n - conditions:\n - condition: numeric_state\n entity_id: sensor.office_area_mean_temperature\n above: '31'\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':warning: :hotsprings: Temperature is above 31c. Turning fan\n on.'\n title: ':office: Office'\n log_level: Debug\n - action: switch.turn_on\n target:\n entity_id: switch.office_fan\n default: []\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } }, { "name": "Office Area Mean Temperature", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.office_area_mean_temperature", "device_id": null } }, { "name": "Office Fan", "room": "Office", "type": "switch", "id": { "entity_id": "switch.office_fan", "device_id": null } } ] }, { "id": "'1728046359271'", "automation": "- id: '1728046359271'\n alias: 'Office: Fan Turns Off at 3am'\n description: Turns off the office fan at 3am when it's on\n triggers:\n - trigger: time\n at: 03:00:00\n conditions:\n - condition: state\n entity_id: switch.office_fan\n state: 'on'\n actions:\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.office_fan\n mode: single", "config": [ { "name": "Office Fan", "room": "Office", "type": "switch", "id": { "entity_id": "switch.office_fan", "device_id": null } } ] }, { "id": "'1619865008647'", "automation": "- id: '1619865008647'\n alias: 'Office: Computer Turned On'\n description: ''\n triggers:\n - trigger: state\n entity_id: group.jd_computer\n from: not_home\n to: home\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':level_slider: Turned on GoXLR.'\n title: ':desktop_computer: Computer'\n log_level: Debug\n - if:\n - condition: state\n entity_id: switch.office_monitor_bar\n state: 'off'\n then:\n - action: switch.turn_on\n target:\n entity_id: switch.office_monitor_bar\n - action: script.send_to_home_log\n data:\n message: Turned on monitor light.\n title: ':desktop_computer: Computer'\n log_level: Debug\n mode: single", "config": [ { "name": "jd computer group", "room": "office", "type": "group", "id": { "entity_id": "group.jd_computer", "device_id": null } }, { "name": "Office Monitor Bar", "room": "Office", "type": "switch", "id": { "entity_id": "switch.office_monitor_bar", "device_id": null } } ] }, { "id": "'1606256309890'", "automation": "- id: '1606256309890'\n alias: 'Office: Computer Turned Off For A Period Of Time'\n description: ''\n triggers:\n - trigger: state\n entity_id: group.jd_computer\n for: 00:10:00\n to: not_home\n from: home\n conditions:\n - not:\n - condition: state\n entity_id: device_tracker.udm_pro\n state: unavailable\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Turned off for more than 10 minutes.\n title: ':desktop_computer: Computer'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.office_desk_lights_off\n - action: script.send_to_home_log\n data:\n messsage: Turned off desk lights.\n log_level: Debug\n - action: script.send_to_home_log\n data:\n message: 'Turned off for more than 10 minutes. Turned off :level_slider: goXLR'\n title: ':desktop_computer: Computer'\n log_level: Debug\n - action: script.office_turn_off_backup_drive\n - action: script.ecoflow_office_turn_off_plug\n mode: single", "config": [ { "name": "jd computer group", "room": "office", "type": "group", "id": { "entity_id": "group.jd_computer", "device_id": null } }, { "name": "Udm Pro", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.udm_pro", "device_id": null } }, { "name": "Office Desk Lights Off", "room": "Office", "type": "scene", "id": { "entity_id": "scene.office_desk_lights_off", "device_id": null } } ] }, { "id": "'1678741966796'", "automation": "- id: '1678741966796'\n alias: 'Office: Computer Turned Off'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - group.jd_computer\n from: home\n to: not_home\n for:\n hours: 0\n minutes: 1\n seconds: 0\n conditions: []\n actions:\n - if:\n - alias: Is work computer on?\n condition: state\n entity_id: group.dannys_work_computer\n state: not_home\n then:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Computer turned off. Turning monitor light off.\n title: ':office: Office'\n log_level: Debug\n - action: switch.turn_off\n target:\n entity_id:\n - switch.office_monitor_bar\n mode: single", "config": [ { "name": "jd computer group", "room": "office", "type": "group", "id": { "entity_id": "group.jd_computer", "device_id": null } }, { "name": "Dannys Work Computer", "room": null, "type": "group", "id": { "entity_id": "group.dannys_work_computer", "device_id": null } }, { "name": "Office Monitor Bar", "room": "Office", "type": "switch", "id": { "entity_id": "switch.office_monitor_bar", "device_id": null } } ] }, { "id": "'1678741966794'", "automation": "- id: '1678741966794'\n alias: 'Office: Computer Turned Off After Sunrise'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - group.jd_computer\n from: home\n to: not_home\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions:\n - condition: state\n entity_id: input_boolean.enable_office_blind_automations\n state: 'on'\n - condition: sun\n after: sunrise\n - condition: time\n after: 08:00:30\n - condition: sun\n before: sunset\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Computer turned off. Opening blinds.\n title: ':office: Office'\n log_level: Debug\n - action: script.office_open_blinds\n data: {}\n mode: single", "config": [ { "name": "jd computer group", "room": "office", "type": "group", "id": { "entity_id": "group.jd_computer", "device_id": null } }, { "name": "Enable Office Blind Automations", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_blind_automations", "device_id": null } } ] }, { "id": "'1619865008649'", "automation": "- id: '1619865008649'\n alias: 'Office: Work Computer Turned On'\n description: ''\n triggers:\n - trigger: state\n entity_id: group.dannys_work_computer\n from: not_home\n to: home\n conditions:\n - condition: state\n entity_id: switch.office_monitor_bar\n state: 'off'\n actions:\n - parallel:\n - action: switch.turn_on\n target:\n entity_id: switch.office_monitor_bar\n - action: script.send_to_home_log\n data:\n message: Turned on monitor light.\n title: ':desktop_computer: Computer'\n log_level: Debug\n mode: single", "config": [ { "name": "Dannys Work Computer", "room": null, "type": "group", "id": { "entity_id": "group.dannys_work_computer", "device_id": null } }, { "name": "Office Monitor Bar", "room": "Office", "type": "switch", "id": { "entity_id": "switch.office_monitor_bar", "device_id": null } } ] }, { "id": "'1678741966795'", "automation": "- id: '1678741966795'\n alias: 'Office: Work Computer Turned Off'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - group.dannys_work_computer\n from: home\n to: not_home\n for:\n hours: 0\n minutes: 1\n seconds: 0\n conditions: []\n actions:\n - parallel:\n - if:\n - alias: Is personal computer on?\n condition: state\n entity_id: group.jd_computer\n state: not_home\n then:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Danny's work computer turned off. Turning monitor light off.\n title: ':office: Office'\n log_level: Debug\n - action: switch.turn_off\n target:\n entity_id:\n - switch.office_monitor_bar\n mode: single", "config": [ { "name": "jd computer group", "room": "office", "type": "group", "id": { "entity_id": "group.jd_computer", "device_id": null } }, { "name": "Dannys Work Computer", "room": null, "type": "group", "id": { "entity_id": "group.dannys_work_computer", "device_id": null } }, { "name": "Office Monitor Bar", "room": "Office", "type": "switch", "id": { "entity_id": "switch.office_monitor_bar", "device_id": null } } ] }, { "id": "'1622374444832'", "automation": "- id: '1622374444832'\n alias: 'Office: Open Blinds In The Morning'\n description: ''\n triggers:\n - trigger: time\n at: 08:00:00\n conditions: []\n actions:\n - action: weather.get_forecasts\n target:\n entity_id: weather.home\n data:\n type: hourly\n response_variable: weather\n - choose:\n - alias: Really bright and blinds are closed already\n conditions:\n - condition: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n above: input_number.blind_high_brightness_threshold\n - or:\n - condition: state\n entity_id: group.dannys_work_computer\n state: home\n - condition: state\n entity_id: group.jd_computer\n state: home\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Keeping blinds\n closed.'\n title: ':office: Office'\n log_level: Debug\n - conditions:\n - condition: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n above: input_number.blind_low_brightness_threshold\n - condition: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n below: input_number.blind_high_brightness_threshold\n - or:\n - condition: state\n entity_id: group.dannys_work_computer\n state: home\n - condition: state\n entity_id: group.jd_computer\n state: home\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute |\n int > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: It''s\n bright outside ({{ states(''sensor.front_garden_motion_illuminance'',\n with_unit=True) }}) so partially opening office blinds.'\n title: ':office: Office'\n log_level: Debug\n - action: cover.set_cover_tilt_position\n target:\n entity_id: cover.office_blinds\n data:\n tilt_position: 25\n default:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Opening blinds.'\n title: ':office: Office'\n log_level: Debug\n - action: script.office_open_blinds\n data: {}\n mode: single", "config": [ { "name": "jd computer group", "room": "office", "type": "group", "id": { "entity_id": "group.jd_computer", "device_id": null } }, { "name": "weather home", "room": "house", "type": "weather", "id": { "entity_id": "weather.home", "device_id": null } }, { "name": "Office Blinds", "room": "Office", "type": "cover", "id": { "entity_id": "cover.office_blinds", "device_id": null } }, { "name": "Dannys Work Computer", "room": null, "type": "group", "id": { "entity_id": "group.dannys_work_computer", "device_id": null } }, { "name": "Front Garden Motion Illuminance", "room": "Front Garden", "type": "sensor", "id": { "entity_id": "sensor.front_garden_motion_illuminance", "device_id": null } } ] }, { "id": "'1622374233312'", "automation": "- id: '1622374233312'\n alias: 'Office: Close Office Blinds At Night 2'\n description: ''\n triggers:\n - trigger: sun\n event: sunset\n conditions:\n - condition: state\n entity_id: input_boolean.enable_office_blind_automations\n state: 'on'\n - condition: numeric_state\n entity_id: cover.office_blinds\n attribute: current_tilt_position\n above: 25\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.office_windows\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':warning: :window: Office window is still open so not closing\n blinds. before closing blinds. :warning:'\n title: ':office: Office'\n log_level: Debug\n default:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':city_sunset: :sun_with_face: :window: It''s getting dark, closing\n office blinds.'\n title: ':office: Office'\n log_level: Debug\n - action: cover.set_cover_tilt_position\n target:\n entity_id: cover.office_blinds\n data:\n tilt_position: 25\n mode: single", "config": [ { "name": "Office Windows", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_windows", "device_id": null } }, { "name": "Office Blinds", "room": "Office", "type": "cover", "id": { "entity_id": "cover.office_blinds", "device_id": null } }, { "name": "Enable Office Blind Automations", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_blind_automations", "device_id": null } } ] }, { "id": "'1622374233310'", "automation": "- id: '1622374233310'\n alias: 'Office: Close Office Blinds At Night 2'\n description: ''\n triggers:\n - trigger: sun\n event: sunset\n offset: 01:00:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_office_blind_automations\n state: 'on'\n - condition: numeric_state\n entity_id: cover.office_blinds\n attribute: current_tilt_position\n above: 0\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.office_windows\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':warning: :window: Office window is still open so not closing\n blinds. before closing blinds. :warning:'\n title: ':office: Office'\n log_level: Debug\n default:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':city_sunset: :sun_with_face: :window: It''s getting dark, closing\n office blinds.'\n title: ':office: Office'\n log_level: Debug\n - action: script.office_close_blinds\n data: {}\n mode: single", "config": [ { "name": "Office Windows", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_windows", "device_id": null } }, { "name": "Office Blinds", "room": "Office", "type": "cover", "id": { "entity_id": "cover.office_blinds", "device_id": null } }, { "name": "Enable Office Blind Automations", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_blind_automations", "device_id": null } } ] }, { "id": "'1622666920056'", "automation": "- id: '1622666920056'\n alias: 'Office: Window Closed At Night'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.office_windows\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n conditions:\n - condition: state\n entity_id: input_boolean.enable_office_blind_automations\n state: 'on'\n - or:\n - condition: sun\n after: sunset\n after_offset: -01:00:00\n - condition: sun\n before: sunrise\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':window: :city_sunset: Office window closed and it''s dark. Closing\n blinds.'\n title: ':office: Office'\n log_level: Debug\n - action: script.office_close_blinds\n data: {}\n mode: single", "config": [ { "name": "Office Windows", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_windows", "device_id": null } }, { "name": "Enable Office Blind Automations", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_blind_automations", "device_id": null } } ] }, { "id": "'1680528200295'", "automation": "- id: '1680528200295'\n alias: 'Office: No Direct Sun Light In The Morning'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n below: input_number.office_blinds_morning_sun_azimuth_threshold\n conditions:\n - condition: state\n entity_id: input_boolean.enable_office_blind_automations\n state: 'on'\n - condition: numeric_state\n entity_id: cover.office_blinds\n attribute: current_tilt_position\n below: 50\n - condition: time\n after: 08:10:00\n - condition: sun\n before: sunset\n - condition: state\n entity_id: binary_sensor.office_windows\n state: 'off'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'Morning :sun: sun is out of the way. Opening :office: office blinds.\n\n Azimuth: {{ state_attr(''sun.sun'', ''azimuth'') }} ({{ states(''input_number.living_room_blinds_morning_sun_azimuth_threshold'')}}).\n\n Elevation: {{ state_attr(''sun.sun'', ''elevation'') }}.'\n title: ':office: Office'\n log_level: Debug\n - action: script.office_open_blinds\n data: {}\n mode: single", "config": [ { "name": "Office Windows", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_windows", "device_id": null } }, { "name": "Office Blinds", "room": "Office", "type": "cover", "id": { "entity_id": "cover.office_blinds", "device_id": null } }, { "name": "Enable Office Blind Automations", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_blind_automations", "device_id": null } }, { "name": "Living Room Blinds Morning Sun Azimuth Threshold", "room": "Living Room", "type": "input_number", "id": { "entity_id": "input_number.living_room_blinds_morning_sun_azimuth_threshold", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "'1680528200297'", "automation": "- id: '1680528200297'\n alias: 'Office: No Direct Sun Light In The Afternoon'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n above: input_number.office_blinds_afternoon_sun_azimuth_threshold\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: input_number.office_blinds_afternoon_sun_elevation_threshold\n conditions:\n - condition: state\n entity_id: input_boolean.enable_office_blind_automations\n state: 'on'\n - condition: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n above: input_number.office_blinds_afternoon_sun_azimuth_threshold\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: input_number.office_blinds_afternoon_sun_elevation_threshold\n - condition: numeric_state\n entity_id: cover.office_blinds\n attribute: current_tilt_position\n below: 50\n - condition: state\n entity_id: binary_sensor.office_windows\n state: 'off'\n - condition: state\n entity_id: light.office_key_lights\n state: 'off'\n actions:\n - action: script.send_to_home_log\n data:\n message: 'Afternoon :sun: sun is out of the way. Opening :office: office blinds.\n\n Azimuth: {{ state_attr(''sun.sun'', ''azimuth'') }} ({{ states(''input_number.office_blinds_afternoon_sun_azimuth_threshold'')}}).\n\n Elevation: {{ state_attr(''sun.sun'', ''elevation'') }} ({{ states(''input_number.office_blinds_afternoon_sun_elevation_threshold'')}}).'\n title: ':office: Office'\n log_level: Debug\n - action: script.office_open_blinds\n data: {}\n mode: single", "config": [ { "name": "Office Windows", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_windows", "device_id": null } }, { "name": "Office Blinds", "room": "Office", "type": "cover", "id": { "entity_id": "cover.office_blinds", "device_id": null } }, { "name": "Enable Office Blind Automations", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_blind_automations", "device_id": null } }, { "name": "Office Blinds Afternoon Sun Azimuth Threshold", "room": "Office", "type": "input_number", "id": { "entity_id": "input_number.office_blinds_afternoon_sun_azimuth_threshold", "device_id": null } }, { "name": "Office Blinds Afternoon Sun Elevation Threshold", "room": "Office", "type": "input_number", "id": { "entity_id": "input_number.office_blinds_afternoon_sun_elevation_threshold", "device_id": null } }, { "name": "Office Key Lights", "room": "Office", "type": "light", "id": { "entity_id": "light.office_key_lights", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "'1678300398737'", "automation": "- id: '1678300398737'\n alias: 'Office: Bright Outside'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n above: input_number.blind_low_brightness_threshold\n for: 00:01:00\n conditions:\n - condition: sun\n after: sunrise\n - condition: time\n after: 08:10:00\n - condition: sun\n before: sunset\n - condition: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n above: input_number.blind_high_brightness_threshold\n - condition: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n above: input_number.office_blinds_morning_sun_azimuth_threshold\n - condition: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n below: input_number.office_blinds_afternoon_sun_azimuth_threshold\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: input_number.office_blinds_afternoon_sun_elevation_threshold\n - condition: state\n entity_id: input_boolean.enable_office_blind_automations\n state: 'on'\n - condition: numeric_state\n entity_id: cover.office_blinds\n attribute: current_tilt_position\n above: 25\n - condition: state\n entity_id: binary_sensor.office_windows\n state: 'off'\n - or:\n - condition: state\n entity_id: group.dannys_work_computer\n state: home\n - condition: state\n entity_id: group.jd_computer\n state: home\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'It''s bright outside ({{ states(''sensor.front_garden_motion_illuminance'',\n with_unit=True) }}) and computer is on. Partially closing blinds.\n\n Azimuth: {{ state_attr(''sun.sun'', ''azimuth'') }}.\n\n Elevation: {{ state_attr(''sun.sun'', ''elevation'') }}.'\n title: ':office: Office'\n log_level: Debug\n - action: cover.set_cover_tilt_position\n target:\n entity_id: cover.office_blinds\n data:\n tilt_position: 25\n mode: single", "config": [ { "name": "jd computer group", "room": "office", "type": "group", "id": { "entity_id": "group.jd_computer", "device_id": null } }, { "name": "Office Windows", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_windows", "device_id": null } }, { "name": "Office Blinds", "room": "Office", "type": "cover", "id": { "entity_id": "cover.office_blinds", "device_id": null } }, { "name": "Dannys Work Computer", "room": null, "type": "group", "id": { "entity_id": "group.dannys_work_computer", "device_id": null } }, { "name": "Enable Office Blind Automations", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_blind_automations", "device_id": null } }, { "name": "Office Blinds Afternoon Sun Azimuth Threshold", "room": "Office", "type": "input_number", "id": { "entity_id": "input_number.office_blinds_afternoon_sun_azimuth_threshold", "device_id": null } }, { "name": "Office Blinds Afternoon Sun Elevation Threshold", "room": "Office", "type": "input_number", "id": { "entity_id": "input_number.office_blinds_afternoon_sun_elevation_threshold", "device_id": null } }, { "name": "Front Garden Motion Illuminance", "room": "Front Garden", "type": "sensor", "id": { "entity_id": "sensor.front_garden_motion_illuminance", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "'1678300398736'", "automation": "- id: '1678300398736'\n alias: 'Office: Really Bright Outside'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n above: input_number.blind_high_brightness_threshold\n for: 00:01:00\n conditions:\n - condition: sun\n after: sunrise\n - condition: time\n after: 08:00:30\n - condition: sun\n before: sunset\n - condition: state\n entity_id: input_boolean.enable_office_blind_automations\n state: 'on'\n - condition: numeric_state\n entity_id: cover.office_blinds\n attribute: current_tilt_position\n above: 0\n - condition: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n above: input_number.office_blinds_morning_sun_azimuth_threshold\n - condition: numeric_state\n entity_id: sun.sun\n attribute: azimuth\n below: input_number.office_blinds_afternoon_sun_azimuth_threshold\n - condition: state\n entity_id: binary_sensor.office_windows\n state: 'off'\n - or:\n - condition: state\n entity_id: group.dannys_work_computer\n state: home\n - condition: state\n entity_id: group.jd_computer\n state: home\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: It's really bright outside ({{ states('sensor.front_garden_motion_illuminance',\n with_unit=True) }}). Closing blinds.\n title: ':office: Office'\n log_level: Debug\n - action: script.office_close_blinds\n data: {}\n mode: single", "config": [ { "name": "jd computer group", "room": "office", "type": "group", "id": { "entity_id": "group.jd_computer", "device_id": null } }, { "name": "Office Windows", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_windows", "device_id": null } }, { "name": "Office Blinds", "room": "Office", "type": "cover", "id": { "entity_id": "cover.office_blinds", "device_id": null } }, { "name": "Dannys Work Computer", "room": null, "type": "group", "id": { "entity_id": "group.dannys_work_computer", "device_id": null } }, { "name": "Enable Office Blind Automations", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_blind_automations", "device_id": null } }, { "name": "Office Blinds Afternoon Sun Azimuth Threshold", "room": "Office", "type": "input_number", "id": { "entity_id": "input_number.office_blinds_afternoon_sun_azimuth_threshold", "device_id": null } }, { "name": "Front Garden Motion Illuminance", "room": "Front Garden", "type": "sensor", "id": { "entity_id": "sensor.front_garden_motion_illuminance", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "'1678637987424'", "automation": "- id: '1678637987424'\n alias: 'Office: Outside Went Darker'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n for:\n hours: 0\n minutes: 5\n seconds: 0\n below: input_number.blind_low_brightness_threshold\n conditions:\n - condition: sun\n after: sunrise\n - condition: time\n after: 08:00:30\n - condition: sun\n before: sunset\n - condition: numeric_state\n entity_id: cover.office_blinds\n attribute: current_tilt_position\n below: 50\n - condition: state\n entity_id: input_boolean.enable_office_blind_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.office_windows\n state: 'off'\n - condition: state\n entity_id: light.office_key_lights\n state: 'off'\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: input_number.office_blinds_afternoon_sun_elevation_threshold\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: It is not as bright outside ({{ states('sensor.front_garden_motion_illuminance',\n with_unit=True) }}). Opening Blinds\n title: ':office: Office'\n log_level: Debug\n - action: script.office_open_blinds\n data: {}\n mode: single", "config": [ { "name": "Office Windows", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_windows", "device_id": null } }, { "name": "Office Blinds", "room": "Office", "type": "cover", "id": { "entity_id": "cover.office_blinds", "device_id": null } }, { "name": "Enable Office Blind Automations", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_office_blind_automations", "device_id": null } }, { "name": "Office Blinds Afternoon Sun Elevation Threshold", "room": "Office", "type": "input_number", "id": { "entity_id": "input_number.office_blinds_afternoon_sun_elevation_threshold", "device_id": null } }, { "name": "Office Key Lights", "room": "Office", "type": "light", "id": { "entity_id": "light.office_key_lights", "device_id": null } }, { "name": "Front Garden Motion Illuminance", "room": "Front Garden", "type": "sensor", "id": { "entity_id": "sensor.front_garden_motion_illuminance", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "'1719349686247'", "automation": "- id: '1719349686247'\n alias: 'Office: Light On And Bright Room'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - light.office_area_lights\n to: 'on'\n for:\n hours: 1\n minutes: 0\n seconds: 0\n conditions:\n - condition: sun\n before: sunset\n after: sunrise\n - condition: numeric_state\n entity_id: sensor.office_area_mean_light_level\n above: input_number.office_light_level_threshold\n actions:\n - parallel:\n - action: light.turn_off\n metadata: {}\n data:\n transition: 1\n target:\n entity_id:\n - light.office_3\n - light.office_2\n - sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.office_room_brightness_above_threshold\n data: {}\n - delay:\n seconds: 1\n - action: light.turn_off\n target:\n entity_id:\n - light.office_4\n data: {}\n mode: single", "config": [ { "name": "Office Light Level Threshold", "room": "Office", "type": "input_number", "id": { "entity_id": "input_number.office_light_level_threshold", "device_id": null } }, { "name": "Office 2", "room": "Office", "type": "light", "id": { "entity_id": "light.office_2", "device_id": null } }, { "name": "Office 3", "room": "Office", "type": "light", "id": { "entity_id": "light.office_3", "device_id": null } }, { "name": "Office 4", "room": "Office", "type": "light", "id": { "entity_id": "light.office_4", "device_id": null } }, { "name": "Office Area Lights", "room": "Office", "type": "light", "id": { "entity_id": "light.office_area_lights", "device_id": null } }, { "name": "Office Room Brightness Above Threshold", "room": "Office", "type": "scene", "id": { "entity_id": "scene.office_room_brightness_above_threshold", "device_id": null } }, { "name": "Office Area Mean Light Level", "room": "Office", "type": "sensor", "id": { "entity_id": "sensor.office_area_mean_light_level", "device_id": null } } ] }, { "id": "'1721434316175'", "automation": "- id: '1721434316175'\n alias: 'Office: Fly Zapper'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.fly_zapper\n for:\n hours: 2\n minutes: 0\n seconds: 0\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Turning off fly zapper after 2 hours.\n title: ':office: Office'\n log_level: Debug\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.fly_zapper\n mode: single", "config": [ { "name": "Fly Zapper", "room": null, "type": "switch", "id": { "entity_id": "switch.fly_zapper", "device_id": null } } ] }, { "id": "'1722108194998'", "automation": "- id: '1722108194998'\n alias: 'Office: Remote Keylight'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 589ffdf441f33bc8f72a6f9faf153da2\n type: action\n subtype: open\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'Remote command received: toggle key lights.'\n title: ':office: Office'\n log_level: Debug\n - action: light.toggle\n metadata: {}\n data: {}\n target:\n entity_id: light.office_key_lights\n mode: single", "config": [ { "name": "Ashlee's Bedroom Remote Device", "room": "Ashlee's Bedroom", "type": "device", "id": { "entity_id": "589ffdf441f33bc8f72a6f9faf153da2", "device_id": "589ffdf441f33bc8f72a6f9faf153da2" } }, { "name": "Office Key Lights", "room": "Office", "type": "light", "id": { "entity_id": "light.office_key_lights", "device_id": null } } ] }, { "id": "'1722108194999'", "automation": "- id: '1722108194999'\n alias: 'Office: Remote Fan'\n description: ''\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 589ffdf441f33bc8f72a6f9faf153da2\n type: action\n subtype: close\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'Remote command received: toggle fan.'\n title: ':office: Office'\n log_level: Debug\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.office_fan\n mode: single", "config": [ { "name": "Ashlee's Bedroom Remote Device", "room": "Ashlee's Bedroom", "type": "device", "id": { "entity_id": "589ffdf441f33bc8f72a6f9faf153da2", "device_id": "589ffdf441f33bc8f72a6f9faf153da2" } }, { "name": "Office Fan", "room": "Office", "type": "switch", "id": { "entity_id": "switch.office_fan", "device_id": null } } ] }, { "id": "'1743186662871'", "automation": "- id: '1743186662871'\n alias: 'Office: Front Door Status On For Long Time'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - light.office_light\n to: 'on'\n for:\n hours: 0\n minutes: 3\n seconds: 0\n - trigger: state\n entity_id:\n - light.office_light\n to: 'on'\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions:\n - condition: state\n entity_id: binary_sensor.front_door\n state: 'off'\n actions:\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: light.office_light\n mode: single", "config": [ { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "Office Light", "room": "Office", "type": "light", "id": { "entity_id": "light.office_light", "device_id": null } } ] }, { "id": "'1687019771710'", "automation": "- id: '1687019771710'\n alias: 'Paperless: New Document'\n description: ''\n triggers:\n - trigger: webhook\n allowed_methods:\n - POST\n local_only: false\n webhook_id: 5dc5fc04-365e-4834-97e9-c6967bda3909\n conditions: []\n actions:\n - action: script.send_direct_notification\n data:\n message: 'New document ({{trigger.json[''id'']}}) {{trigger.json[''name'']}}\n from {{trigger.json[''correspondent'']}}.\n\n Download: {{trigger.json[''download_url'']}} Tags: {{trigger.json[''tags'']}}'\n title: ':leaves: Paperless'\n people:\n entity_id:\n - person.danny\n mode: queued\n max: 10", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } } ] }, { "id": "'1630082312356'", "automation": "- id: '1630082312356'\n alias: 'PiHole: Change Status'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.pi_hole\n - switch.pi_hole_2\n - switch.pi_holes\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: Network filtering on {{ trigger.to_state.name }} has been turned {{\n trigger.to_state.state }}.\n title: ':pie: :hole: Pi-Hole'\n log_level: Normal\n mode: single", "config": [ { "name": "Pi Hole", "room": null, "type": "switch", "id": { "entity_id": "switch.pi_hole", "device_id": null } }, { "name": "Pi Hole 2", "room": null, "type": "switch", "id": { "entity_id": "switch.pi_hole_2", "device_id": null } }, { "name": "Pi Holes", "room": null, "type": "switch", "id": { "entity_id": "switch.pi_holes", "device_id": null } } ] }, { "id": "'1737283018707'", "automation": "- id: '1737283018707'\n alias: 'Porch: Motion Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.porch_motion_occupancy\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.porch_motion_occupancy\n state: 'off'\n actions:\n - parallel:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_pct: 100\n target:\n entity_id: light.porch\n - action: timer.cancel\n target:\n entity_id: timer.porch_light\n data: {}\n mode: single", "config": [ { "name": "porch motion occupancy", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.porch_motion_occupancy", "device_id": null } }, { "name": "Porch", "room": "Porch", "type": "light", "id": { "entity_id": "light.porch", "device_id": null } }, { "name": "Porch Light", "room": "Porch", "type": "timer", "id": { "entity_id": "timer.porch_light", "device_id": null } } ] }, { "id": "'1737283018708'", "automation": "- id: '1737283018708'\n alias: 'Porch: No Motion Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.porch_motion_occupancy\n to: 'off'\n for: 00:01:00\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'No motion. Starting :bulb: light timer.'\n title: Porch\n log_level: Debug\n - action: timer.start\n data:\n duration: 00:01:00\n target:\n entity_id: timer.porch_light\n mode: single", "config": [ { "name": "porch motion occupancy", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.porch_motion_occupancy", "device_id": null } }, { "name": "Porch Light", "room": "Porch", "type": "timer", "id": { "entity_id": "timer.porch_light", "device_id": null } } ] }, { "id": "'1737283018709'", "automation": "- id: '1737283018709'\n alias: 'Porch: Light Timer Finished'\n description: ''\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.porch_light\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Timer finished. Turning light off.\n title: Porch\n log_level: Debug\n - action: light.turn_off\n target:\n entity_id: light.porch\n mode: single", "config": [ { "name": "Porch", "room": "Porch", "type": "light", "id": { "entity_id": "light.porch", "device_id": null } }, { "name": "Porch Light", "room": "Porch", "type": "timer", "id": { "entity_id": "timer.porch_light", "device_id": null } } ] }, { "id": "'1606157753577'", "automation": "- id: '1606157753577'\n alias: 'Porch: Front Door Opened'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.front_door\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: sensor.porch_motion_illuminance\n below: '100'\n sequence:\n - action: script.send_to_home_log\n data:\n message: 'Front :door: door opened it''s dark ({{ states(''sensor.porch_motion_illuminance'')\n }} < 100). Turning on :bulb: :high_brightness: light.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.porch_light_on\n - action: timer.cancel\n target:\n entity_id: timer.porch_light\n data: {}\n default: []\n - action: script.send_to_home_log\n data:\n message: 'Front :door: door opened. Incrementing counter :abacus: from {{ states(''counter.front_door_opened_closed'')\n }} to {{ states(''counter.front_door_opened_closed'') | int + state_attr(''counter.front_door_opened_closed'',\n ''step'') | int }}.'\n title: Porch\n log_level: Debug\n - action: counter.increment\n data: {}\n entity_id: counter.front_door_opened_closed\n - alias: Add delay otherwise the picture is too quick to capture someone walking\n through the door\n delay:\n seconds: 2\n mode: single", "config": [ { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "Front Door Opened Closed", "room": "Porch", "type": "counter", "id": { "entity_id": "counter.front_door_opened_closed", "device_id": null } }, { "name": "Porch Light On", "room": "Porch", "type": "scene", "id": { "entity_id": "scene.porch_light_on", "device_id": null } }, { "name": "Porch Motion Illuminance", "room": "Porch", "type": "sensor", "id": { "entity_id": "sensor.porch_motion_illuminance", "device_id": null } }, { "name": "Porch Light", "room": "Porch", "type": "timer", "id": { "entity_id": "timer.porch_light", "device_id": null } } ] }, { "id": "'1614033445487'", "automation": "- id: '1614033445487'\n alias: 'Porch: Front Door Opened Once For More than 20 seconds'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.front_door\n to: 'on'\n from: 'off'\n for: 00:00:20\n conditions:\n - condition: numeric_state\n entity_id: counter.front_door_opened_closed\n below: '2'\n actions:\n - action: script.send_to_home_log\n data:\n message: 'Front door has been opened for more than 20 secs. Resetting :abacus:\n counter from {{ states(''counter.front_door_opened_closed'') }} to 0.'\n title: Porch\n log_level: Debug\n - action: counter.reset\n data: {}\n entity_id: counter.front_door_opened_closed", "config": [ { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "Front Door Opened Closed", "room": "Porch", "type": "counter", "id": { "entity_id": "counter.front_door_opened_closed", "device_id": null } } ] }, { "id": "'1611931052908'", "automation": "- id: '1611931052908'\n alias: 'Porch: Front Door Open Indicator'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.front_door\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: group.tracked_people\n state: home\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'front :door: door is open and:people_holding_hands: someone is home.\n Turning on notification :bulb: :high_brightness: light.'\n title: Porch\n log_level: Debug\n - action: script.front_door_open_notification\n data: {}\n mode: single", "config": [ { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } } ] }, { "id": "'1615224190495'", "automation": "- id: '1615224190495'\n alias: 'Porch: Front Door Closed For More than 20 seconds'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.front_door\n to: 'off'\n from: 'on'\n for: 00:00:20\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'Front door closed for more than 20 secs. Resetting :abacus: counter\n from {{ states(''counter.front_door_opened_closed'') }} to 0.'\n title: Porch\n log_level: Debug\n - action: counter.reset\n target:\n entity_id: counter.front_door_opened_closed\n mode: single", "config": [ { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "Front Door Opened Closed", "room": "Porch", "type": "counter", "id": { "entity_id": "counter.front_door_opened_closed", "device_id": null } } ] }, { "id": "'1611931640441'", "automation": "- id: '1611931640441'\n alias: 'Porch: Front Door Closed'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.front_door\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'Front :door: door closed.'\n title: Porch\n log_level: Debug\n - action: script.front_door_closed_notification\n data: {}\n mode: single", "config": [ { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } } ] }, { "id": "'1606157835544'", "automation": "- id: '1606157835544'\n alias: 'Porch: Front Door Closed'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.front_door\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - parallel:\n - action: timer.start\n data:\n duration: 00:01:00\n target:\n entity_id: timer.porch_light\n - action: script.send_to_home_log\n data:\n message: 'Front :door: door closed. Starting timer.'\n title: Porch\n log_level: Debug\n - choose:\n - conditions:\n - condition: state\n entity_id: light.stairs\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Front door closed. Turning stairs light off as fall back.\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id:\n - scene.stairs_light_off\n default: []\n mode: single", "config": [ { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "Stairs Light Off", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_off", "device_id": null } }, { "name": "Porch Light", "room": "Porch", "type": "timer", "id": { "entity_id": "timer.porch_light", "device_id": null } } ] }, { "id": "'1708895092115'", "automation": "- id: '1708895092115'\n alias: 'Porch: Light On And Door Is Shut'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - light.porch\n to: 'on'\n for:\n minutes: 5\n conditions:\n - condition: state\n entity_id: binary_sensor.front_door\n state: 'off'\n - not:\n - condition: state\n entity_id: timer.porch_light\n state: active\n actions:\n - parallel:\n - action: script.send_to_home_log\n metadata: {}\n data:\n log_level: Debug\n title: Porch\n message: 'Light has been on for 5 minutes and :door: is closed. Turning light\n off.'\n - action: light.turn_off\n metadata: {}\n data:\n transition: 2\n target:\n entity_id: light.porch\n mode: single", "config": [ { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "Porch", "room": "Porch", "type": "light", "id": { "entity_id": "light.porch", "device_id": null } }, { "name": "Porch Light", "room": "Porch", "type": "timer", "id": { "entity_id": "timer.porch_light", "device_id": null } } ] }, { "id": "'1700940016581'", "automation": "- id: '1700940016581'\n alias: 'Porch: Light Switch'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.porch_main_light_input\n not_from:\n - unknown\n - unavailable\n not_to:\n - unknown\n - unavailable\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n log_level: Debug\n title: Porch\n message: Light switch changed\n - if:\n - condition: state\n entity_id: light.porch\n state: 'off'\n then:\n - action: scene.turn_on\n target:\n entity_id: scene.porch_light_on\n else:\n - action: light.turn_off\n target:\n entity_id: light.porch\n data:\n transition: 2\n - action: timer.cancel\n target:\n entity_id: timer.porch_light\n data: {}\n mode: queued\n max: 10", "config": [ { "name": "Porch Main Light Input", "room": "Porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.porch_main_light_input", "device_id": null } }, { "name": "Porch", "room": "Porch", "type": "light", "id": { "entity_id": "light.porch", "device_id": null } }, { "name": "Porch Light On", "room": "Porch", "type": "scene", "id": { "entity_id": "scene.porch_light_on", "device_id": null } }, { "name": "Porch Light", "room": "Porch", "type": "timer", "id": { "entity_id": "timer.porch_light", "device_id": null } } ] }, { "id": "'1750929784418'", "automation": "- id: '1750929784418'\n alias: 'Predbat: Daily Summary'\n description: ''\n triggers:\n - trigger: time\n at: 08:00:00\n conditions: []\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: '\n\n\n {{ state_attr(''predbat.plan_html'', ''text'')|replace(''
  • '', ''- '') |replace(''
  • '',\n '''')|replace('''', '''')|replace(''%'',\n ''%'') }}'\n title: Predbat\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } } ] }, { "id": "'1752209130762'", "automation": "- id: '1752209130762'\n alias: 'Predbat: Mode Check'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - predbat.status\n conditions:\n - condition: state\n entity_id: input_boolean.enable_predbat_automations\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: predbat.status\n state: Demand\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.growatt_sph_inverter_mode\n state: Load first\n sequence:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: inverter is not in the right mode\n title: Predbat\n people:\n entity_id: person.danny", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Enable Predbat Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_predbat_automations", "device_id": null } }, { "name": "Predbat Status", "room": null, "type": "sensor", "id": { "entity_id": "predbat.status", "device_id": null } }, { "name": "Growatt SPH Inverter Mode", "room": null, "type": "sensor", "id": { "entity_id": "sensor.growatt_sph_inverter_mode", "device_id": null } } ] }, { "id": "'1689193654844'", "automation": "- id: '1689193654844'\n alias: 'Slack: Command Received'\n description: Slack bot command.\n triggers:\n - trigger: webhook\n allowed_methods:\n - POST\n - PUT\n local_only: false\n webhook_id: -aPu0u0W8nvlYImwa85lwDMoo\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: 'user_id: {{ trigger.data.user_id }}\n\n user_name: {{ trigger.data.user_name }}\n\n channel_id: {{ trigger.data.channel_id }}\n\n channel_name: {{ trigger.data.channel_name }}\n\n command: {{ trigger.data.command }}\n\n text: {{ trigger.data.text }}\n\n response_url: {{ trigger.data.response_url }}'\n title: Slack\n log_level: Debug\n - if:\n - condition: template\n value_template: '{{ trigger.data.channel_name != ''privategroup'' }}'\n then:\n - choose:\n - alias: Message from Danny\n conditions:\n - condition: template\n value_template: '{{ trigger.data.user_id|string|default('''', true) ==\n states(''input_text.dannys_slack_id'') }}'\n sequence:\n - action: conversation.process\n data:\n agent_id: '{{ states(''input_text.dannys_selected_conversation_agent'')\n }}'\n text: '{{ trigger.data.text }}'\n response_variable: assist\n - if:\n - condition: template\n value_template: '{{ assist.response.response_type|default(none, true) !=\n none and assist.response.response_type == ''error''}}'\n then:\n - parallel:\n - action: script.post_slack_notification\n data:\n message: '{%- set wait_response = [''hmm...'', ''thinking...'',\n ''...'', ''er...'', ''um...'', ''well''] -%} {{ wait_response[range(0,\n wait_response|length)|random] }}'\n title: '{{ trigger.data.text }}'\n people: '{{ ''<@''~trigger.data.user_name~''>'' }}'\n target: '{{ trigger.data.channel_name }}'\n - action: conversation.process\n data:\n agent_id: '{{ states(''input_text.dannys_secondary_selected_conversation_agent'')\n }}'\n text: '{{ trigger.data.text }}'\n response_variable: assist\n - action: script.post_slack_notification\n data:\n message: '{{ assist.response.speech.plain.speech }}'\n title: '{{ trigger.data.text }}'\n people: '{{ ''<@''~trigger.data.user_name~''>'' }}'\n target: '{{ trigger.data.channel_name }}'\n else:\n - action: script.send_to_home_log\n data:\n message: 'user_id: {{ trigger.data.user_id }}\n\n user_name: {{ trigger.data.user_name }}\n\n channel_id: {{ trigger.data.channel_id }}\n\n channel_name: {{ trigger.data.channel_name }}\n\n command: {{ trigger.data.command }}\n\n text: {{ trigger.data.text }}\n\n response_url: {{ trigger.data.response_url }}'\n title: Slack\n log_level: Normal\n mode: queued\n max: 10", "config": [ { "name": "Danny's Secondary Selected Conversation Agent", "room": null, "type": "input_text", "id": { "entity_id": "input_text.dannys_secondary_selected_conversation_agent", "device_id": null } }, { "name": "Danny's Selected Conversation Agent", "room": null, "type": "input_text", "id": { "entity_id": "input_text.dannys_selected_conversation_agent", "device_id": null } }, { "name": "Danny's Slack ID", "room": null, "type": "input_text", "id": { "entity_id": "input_text.dannys_slack_id", "device_id": null } } ] }, { "id": "'1614285576722'", "automation": "- id: '1614285576722'\n alias: 'Sleep As Android: Event'\n description: ''\n triggers:\n - trigger: webhook\n webhook_id: sleep_as_android\n allowed_methods:\n - POST\n local_only: false\n conditions: []\n actions:\n - parallel:\n - action: input_text.set_value\n entity_id: input_text.sleep_as_android\n data:\n value: '{{ trigger.json.event }}'\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.sleep_as_android_notification_level\n state: Start/Stop\n - condition: template\n value_template: '{{ trigger.json.event in [''sleep_tracking_started'', ''sleep_tracking_stopped'']\n }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Changed to {{ trigger.json.event }}\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Debug\n - conditions:\n - condition: state\n entity_id: input_select.sleep_as_android_notification_level\n state: Start/Stop/Alarms\n - or:\n - condition: template\n value_template: '{{ ''alarm'' in trigger.json.event }}'\n - condition: template\n value_template: '{{ trigger.json.event in [''sleep_tracking_started'',\n ''sleep_tracking_stopped''] }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Changed to {{ trigger.json.event }}\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Debug\n - conditions:\n - condition: state\n entity_id: input_select.sleep_as_android_notification_level\n state: All\n sequence:\n - action: script.send_to_home_log\n data:\n message: Changed to {{ trigger.json.event }}\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Debug\n default: []\n mode: queued\n max: 10", "config": [ { "name": "Sleep as Android Notification Level", "room": null, "type": "input_select", "id": { "entity_id": "input_select.sleep_as_android_notification_level", "device_id": null } }, { "name": "Sleep as Android", "room": null, "type": "input_text", "id": { "entity_id": "input_text.sleep_as_android", "device_id": null } } ] }, { "id": "'1658438667856'", "automation": "- id: '1658438667856'\n alias: 'Sleep As Android: Started Tracking'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - input_text.sleep_as_android\n to: sleep_tracking_started\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: person.danny\n state: home\n sequence:\n - parallel:\n - action: timer.start\n data:\n duration: '{% set new_ts = states(''input_number.sleep_timer_duration'')|int(60)\n * 60 %} {{ ''{:02d}:{:02d}:{:02d}''.format(new_ts // 3600, (new_ts %\n 3600) // 60, (new_ts % 3600) % 60) }}'\n target:\n entity_id: timer.sleep\n - action: script.send_to_home_log\n data:\n message: 'Sleep :hourglass_flowing_sand: timer :arrow_forward: started.\n Time remaining: {% set new_ts = states(''input_number.sleep_timer_duration'')|int(60)\n * 60 %} {{ ''{:02d}:{:02d}:{:02d}''.format(new_ts // 3600, (new_ts %\n 3600) // 60, (new_ts % 3600) % 60) }}'\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Normal\n default: []\n - alias: Turn on bedroom fan\n if:\n - condition: numeric_state\n entity_id: sensor.bedroom_area_mean_temperature\n above: 22.5\n - condition: state\n entity_id: person.danny\n state: home\n - condition: state\n entity_id: switch.bedroom_fan\n state: 'off'\n then:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Bedroom is warm ({{ states('sensor.bedroom_area_mean_temperature')\n }} > 22.5). Turning on bedroom fan.\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Debug\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.bedroom_fan\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "bedroom fan", "room": "bedroom", "type": "switch", "id": { "entity_id": "switch.bedroom_fan", "device_id": null } }, { "name": "Sleep Timer Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.sleep_timer_duration", "device_id": null } }, { "name": "Sleep as Android", "room": null, "type": "input_text", "id": { "entity_id": "input_text.sleep_as_android", "device_id": null } }, { "name": "Bedroom Area Mean Temperature", "room": "Bedroom", "type": "sensor", "id": { "entity_id": "sensor.bedroom_area_mean_temperature", "device_id": null } }, { "name": "Sleep", "room": null, "type": "timer", "id": { "entity_id": "timer.sleep", "device_id": null } } ] }, { "id": "'1658843567854'", "automation": "- id: '1658843567854'\n alias: 'Sleep As Android: Awake'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - input_text.sleep_as_android\n to: awake\n conditions:\n - condition: state\n entity_id: timer.sleep\n state: active\n actions:\n - parallel:\n - action: timer.pause\n data: {}\n target:\n entity_id: timer.sleep\n - action: script.send_to_home_log\n data:\n message: ':pause_button: Pausing sleep :hourglass_flowing_sand: timer. Time\n remaining: {{ state_attr(''timer.sleep'', ''remaining'') }}'\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Normal\n mode: queued\n max: 10", "config": [ { "name": "Sleep as Android", "room": null, "type": "input_text", "id": { "entity_id": "input_text.sleep_as_android", "device_id": null } }, { "name": "Sleep", "room": null, "type": "timer", "id": { "entity_id": "timer.sleep", "device_id": null } } ] }, { "id": "'1658843828191'", "automation": "- id: '1658843828191'\n alias: 'Sleep As Android: Fall Asleep'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - input_text.sleep_as_android\n from: awake\n conditions:\n - condition: state\n entity_id: timer.sleep\n state: paused\n actions:\n - parallel:\n - action: timer.start\n data:\n duration: '{% set t = state_attr(''timer.sleep'', ''remaining'').split('':'')\n %} {% set ts = (t[0]|int * 3600) + (t[1]|int * 60) + t[2]|int + (states(''input_number.sleep_as_android_time_to_add'')|int(0)\n * 60) %} {% set new_ts = states(''input_number.sleep_timer_duration'')|int(0)\n * 60 if ts > states(''input_number.sleep_timer_duration'')|int(0) * 60 else\n ts %} {{ ''{:02d}:{:02d}:{:02d}''.format(new_ts // 3600, (new_ts % 3600)\n // 60, (new_ts % 3600) % 60) }}'\n target:\n entity_id: timer.sleep\n - action: script.send_to_home_log\n data:\n message: 'Fell back asleep. :arrow_forward: Unpausing :hourglass_flowing_sand:\n timer and adding {{ states(''input_number.sleep_as_android_time_to_add'')|int(0)\n }} minutes to {{ state_attr(''timer.sleep'', ''remaining'') }}. New time\n remaining: {{ state_attr(''timer.sleep'', ''remaining'') }}'\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Normal\n mode: single", "config": [ { "name": "Sleep as Android Time to Add", "room": null, "type": "input_number", "id": { "entity_id": "input_number.sleep_as_android_time_to_add", "device_id": null } }, { "name": "Sleep Timer Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.sleep_timer_duration", "device_id": null } }, { "name": "Sleep as Android", "room": null, "type": "input_text", "id": { "entity_id": "input_text.sleep_as_android", "device_id": null } }, { "name": "Sleep", "room": null, "type": "timer", "id": { "entity_id": "timer.sleep", "device_id": null } } ] }, { "id": "'1659861914053'", "automation": "- id: '1659861914053'\n alias: 'Sleep As Android: Danny Asleep For A Period Of Time'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.danny_asleep\n to: 'on'\n for:\n hours: 0\n minutes: 15\n seconds: 0\n conditions:\n - condition: state\n entity_id: timer.sleep\n state: active\n actions:\n - action: script.send_to_home_log\n data:\n message: Asleep for 15 minutes. Taking 5 minutes off the timer.\n log_level: Normal\n - alias: Pause to get the remainging time value.\n action: timer.pause\n data: {}\n target:\n entity_id: timer.sleep\n - if:\n - condition: template\n value_template: '{% set t = state_attr(''timer.sleep'', ''remaining'').split('':'')\n %} {% set ts = (t[0]|int * 3600) + (t[1]|int * 60) + t[2]|int + states(''input_number.sleep_as_android_time_to_add'')|int(0)\n %} {{ (ts - (states(''input_number.sleep_as_android_time_to_subtract'')|int(0)\n * 60)) > 0 }}'\n then:\n - parallel:\n - action: timer.start\n data:\n duration: '{% set t = state_attr(''timer.sleep'', ''remaining'').split('':'')\n %} {% set ts = (t[0]|int * 3600) + (t[1]|int * 60) + t[2]|int + states(''input_number.sleep_as_android_time_to_add'')|int(0)\n %} {% set new_ts = ts if (ts - (states(''input_number.sleep_as_android_time_to_subtract'')|int(0)\n * 60)) < 0 else (ts - (states(''input_number.sleep_as_android_time_to_subtract'')|int(0)\n * 60)) %} {{ ''{:02d}:{:02d}:{:02d}''.format(new_ts // 3600, (new_ts %\n 3600) // 60, (new_ts % 3600) % 60) }}'\n target:\n entity_id: timer.sleep\n - action: script.send_to_home_log\n data:\n message: 'Danny has been asleep for more than 15 minutes. Taking {{ states(''input_number.sleep_as_android_time_to_subtract'')\n }} minutes off sleeper timer. New time remaining: {{ state_attr(''timer.sleep'',\n ''remaining'') }}'\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Normal\n else:\n - action: script.send_to_home_log\n data:\n message: Danny has been asleep for more than 15 minutes with less than {{\n states('input_number.sleep_as_android_time_to_subtract') }} minutes to go\n ({{ state_attr('timer.sleep', 'remaining') }}).\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Normal\n mode: single", "config": [ { "name": "Danny Asleep", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.danny_asleep", "device_id": null } }, { "name": "Sleep as Android Time to Add", "room": null, "type": "input_number", "id": { "entity_id": "input_number.sleep_as_android_time_to_add", "device_id": null } }, { "name": "Sleep as Android Time to Subtract", "room": null, "type": "input_number", "id": { "entity_id": "input_number.sleep_as_android_time_to_subtract", "device_id": null } }, { "name": "Sleep", "room": null, "type": "timer", "id": { "entity_id": "timer.sleep", "device_id": null } } ] }, { "id": "'1658842750488'", "automation": "- id: '1658842750488'\n alias: 'Timer: Sleep Timer Complete'\n description: ''\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.sleep\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: Sleep timer finished. Turning everything off.\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Normal\n - action: script.bedroom_sleep\n data: {}\n - alias: Turn off bedroom fan\n if:\n - condition: state\n entity_id: switch.bedroom_fan\n state: 'on'\n then:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Bedroom is warm ({{ states('sensor.bedroom_area_mean_temperature')\n }} > 21c). Turning on bedroom fan.\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Debug\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.bedroom_fan\n mode: single", "config": [ { "name": "bedroom fan", "room": "bedroom", "type": "switch", "id": { "entity_id": "switch.bedroom_fan", "device_id": null } }, { "name": "Bedroom Area Mean Temperature", "room": "Bedroom", "type": "sensor", "id": { "entity_id": "sensor.bedroom_area_mean_temperature", "device_id": null } }, { "name": "Sleep", "room": null, "type": "timer", "id": { "entity_id": "timer.sleep", "device_id": null } } ] }, { "id": "'1644769166837'", "automation": "- id: '1644769166837'\n alias: 'Bedroom: Danny''s Alarm'\n description: ''\n triggers:\n - trigger: state\n entity_id: input_text.sleep_as_android\n to: alarm_alert_start\n conditions: []\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: person.danny\n state: home\n - condition: state\n entity_id: input_boolean.enable_bedroom_blind_automations\n state: 'on'\n - condition: numeric_state\n entity_id: cover.bedroom_blinds\n attribute: current_position\n below: input_number.blind_closed_position_threshold\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':alarm_clock: Alarm triggered. Opening bedroom blinds in 1 minute.'\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Normal\n - delay:\n hours: 0\n minutes: 5\n seconds: 0\n milliseconds: 0\n - action: cover.open_cover\n data: {}\n target:\n entity_id: cover.bedroom_blinds\n - conditions:\n - condition: state\n entity_id: person.danny\n state: home\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':bed: :alarm_clock: alarm triggered.'\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Normal\n default: []\n - if:\n - condition: state\n entity_id: light.bedroom_clock_matrix\n state: 'off'\n then:\n - action: light.turn_on\n data: {}\n target:\n entity_id: light.bedroom_clock_matrix\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "bedroom blinds", "room": "bedroom", "type": "cover", "id": { "entity_id": "cover.bedroom_blinds", "device_id": null } }, { "name": "blind closed position threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.blind_closed_position_threshold", "device_id": null } }, { "name": "enable bedroom blind automations", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bedroom_blind_automations", "device_id": null } }, { "name": "bedroom clock matrix", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_clock_matrix", "device_id": null } }, { "name": "Sleep as Android", "room": null, "type": "input_text", "id": { "entity_id": "input_text.sleep_as_android", "device_id": null } } ] }, { "id": "'1667424349110'", "automation": "- id: '1667424349110'\n alias: 'Sleep As Android: Stop Sleep Timer'\n description: ''\n triggers:\n - trigger: time\n at: 05:00:00\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: timer.sleep\n state: active\n - condition: state\n entity_id: timer.sleep\n state: paused\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Cancelling sleep timer.\n title: ':zzz: Sleep as :robot_face: Android'\n log_level: Normal\n - action: timer.cancel\n data: {}\n target:\n entity_id: timer.sleep\n mode: single", "config": [ { "name": "Sleep", "room": null, "type": "timer", "id": { "entity_id": "timer.sleep", "device_id": null } } ] }, { "id": "'1646778676345'", "automation": "- id: '1646778676345'\n alias: 'Living Room: Carbon Monoxide Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.nest_protect_living_room_co_status\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - action: script.send_direct_notification\n data:\n message: ':skull_and_crossbones: Carbon Monoxide detected on the living room.'\n title: ':skull_and_crossbones: CO Detected on the living room'\n - action: script.set_central_heating_to_off\n data: {}\n - action: script.set_hot_water_to_home_mode\n data: {}\n mode: single", "config": [ { "name": "Nest Protect Living Room CO Status", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nest_protect_living_room_co_status", "device_id": null } } ] }, { "id": "'1646778927330'", "automation": "- id: '1646778927330'\n alias: 'Living Room: Smoked Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.nest_protect_living_room_smoke_status\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - action: script.send_direct_notification\n data:\n message: ':smoking: Smoke detected on the living room.'\n title: ':smoking: Smoke detected on the living room'\n - action: script.set_central_heating_to_off\n data: {}\n - action: script.set_hot_water_to_home_mode\n data: {}\n mode: single", "config": [ { "name": "Nest Protect Living Room Smoke Status", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nest_protect_living_room_smoke_status", "device_id": null } } ] }, { "id": "'1646778627153'", "automation": "- id: '1646778627153'\n alias: 'Office: Carbon Monoxide Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.nest_protect_office_co_status\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - action: script.send_direct_notification\n data:\n title: ':skull_and_crossbones: CO Detected in the office'\n message: ':skull_and_crossbones: Carbon Monoxide detected in the :office:\n office.'\n - action: script.set_central_heating_to_off\n data: {}\n - action: script.set_hot_water_to_home_mode\n data: {}\n mode: single", "config": [ { "name": "Nest Protect Office CO Status", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nest_protect_office_co_status", "device_id": null } } ] }, { "id": "'1646778909669'", "automation": "- id: '1646778909669'\n alias: 'Office: Smoked Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.nest_protect_office_smoke_status\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - action: script.send_direct_notification\n data:\n title: ':smoking: Smoke detected in the office'\n message: ':smoking: Smoke detected in the :office: office.'\n - action: script.set_central_heating_to_off\n data: {}\n - action: script.set_hot_water_to_home_mode\n data: {}\n mode: single", "config": [ { "name": "Nest Protect Office Smoke Status", "room": "Office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nest_protect_office_smoke_status", "device_id": null } } ] }, { "id": "'1646778676344'", "automation": "- id: '1646778676344'\n alias: 'Stairs: Carbon Monoxide Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.nest_protect_upstairs_co_status\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - action: script.send_direct_notification\n data:\n title: ':skull_and_crossbones: CO Detected on the stairs'\n message: ':skull_and_crossbones: Carbon Monoxide detected on the stairs.'\n - action: script.set_central_heating_to_off\n data: {}\n - action: script.set_hot_water_to_home_mode\n data: {}\n mode: single", "config": [ { "name": "Nest Protect Upstairs CO Status", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nest_protect_upstairs_co_status", "device_id": null } } ] }, { "id": "'1646778927329'", "automation": "- id: '1646778927329'\n alias: 'Stairs: Smoked Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.nest_protect_upstairs_smoke_status\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - action: script.send_direct_notification\n data:\n title: ':smoking: Smoke detected on the stairs'\n message: ':smoking: Smoke detected on the stairs.'\n - action: script.set_central_heating_to_off\n data: {}\n - action: script.set_hot_water_to_home_mode\n data: {}\n mode: single", "config": [ { "name": "Nest Protect Upstairs Smoke Status", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nest_protect_upstairs_smoke_status", "device_id": null } } ] }, { "id": "'1691009694611'", "automation": "- id: '1691009694611'\n alias: 'Solar Assistant: Check Solar Mode'\n description: ''\n triggers:\n - trigger: time_pattern\n minutes: '1'\n id: time\n - trigger: time_pattern\n minutes: '5'\n id: time_backup\n - trigger: time_pattern\n minutes: '31'\n id: time\n - trigger: time_pattern\n minutes: '35'\n id: time_backup\n - trigger: state\n entity_id: sensor.growatt_sph_inverter_mode\n from: unknown\n id: event\n - trigger: state\n entity_id: sensor.growatt_sph_inverter_mode\n from: unavailable\n id: event\n - trigger: state\n entity_id: predbat.status\n to: null\n id: event\n conditions:\n - or:\n - condition: state\n entity_id: input_boolean.enable_solar_assistant_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_predbat_automations\n state: 'on'\n - not:\n - condition: state\n entity_id: select.growatt_sph_work_mode_priority\n state: unavailable\n - condition: state\n entity_id: sensor.growatt_sph_inverter_mode\n state: unknown\n - condition: state\n entity_id: sensor.growatt_sph_inverter_mode\n state: unavailable\n actions:\n - choose:\n - alias: Rates remain above export\n conditions:\n - condition: trigger\n id:\n - event\n - condition: numeric_state\n entity_id: sensor.electricity_previous_rate\n above: sensor.octopus_energy_electricity_export_current_rate\n - condition: numeric_state\n entity_id: sensor.octopus_energy_electricity_current_rate\n above: sensor.octopus_energy_electricity_export_current_rate\n sequence:\n - action: script.solar_assistant_check_charging_mode\n data:\n event: event\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n current_electricity_export_rate: '{{ states(''sensor.octopus_energy_electricity_export_current_rate'')\n }}'\n default:\n - choose:\n - conditions:\n - condition: trigger\n id: time_backup\n sequence:\n - action: script.solar_assistant_check_charging_mode\n data:\n event: time\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n current_electricity_export_rate: '{{ states(''sensor.octopus_energy_electricity_export_current_rate'')\n }}'\n default: []\n mode: restart", "config": [ { "name": "Enable Predbat Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_predbat_automations", "device_id": null } }, { "name": "Enable Solar Assistant Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_solar_assistant_automations", "device_id": null } }, { "name": "Predbat Status", "room": null, "type": "sensor", "id": { "entity_id": "predbat.status", "device_id": null } }, { "name": "Growatt SPH Work Mode Priority", "room": null, "type": "select", "id": { "entity_id": "select.growatt_sph_work_mode_priority", "device_id": null } }, { "name": "Electricity Previous Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.electricity_previous_rate", "device_id": null } }, { "name": "Growatt SPH Inverter Mode", "room": null, "type": "sensor", "id": { "entity_id": "sensor.growatt_sph_inverter_mode", "device_id": null } }, { "name": "Octopus Energy Electricity Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_current_rate", "device_id": null } }, { "name": "Octopus Energy Electricity Export Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_export_current_rate", "device_id": null } } ] }, { "id": "'1691767286139'", "automation": "- id: '1691767286139'\n alias: 'Solcast: Update Forecast'\n description: ''\n triggers:\n - trigger: time\n at: 08:00:00\n conditions: []\n actions:\n - action: script.update_solcast\n data: {}\n mode: single", "config": [] }, { "id": "'1612998168529'", "automation": "- id: '1612998168529'\n alias: 'Spotify: Playing'\n description: ''\n triggers:\n - trigger: state\n entity_id: media_player.spotify_danny\n to: playing\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ state_attr(''media_player.spotify_danny'', ''media_position'')\n != none and state_attr(''media_player.spotify_danny'', ''media_duration'')\n != none and state_attr(''media_player.spotify_danny'', ''media_title'')\n != none and state_attr(''media_player.spotify_danny'', ''media_artist'')\n != none }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Playing *{{ state_attr('media_player.spotify_danny', 'media_title')\n }}* by _{{ state_attr('media_player.spotify_danny', 'media_artist') }}_\n and is at {{ state_attr('media_player.spotify_danny', 'media_position')\n | int | timestamp_custom('%H:%M:%S') }}/{{ state_attr('media_player.spotify_danny',\n 'media_duration') | int | timestamp_custom('%H:%M:%S') }} ({{ ((state_attr('media_player.spotify_danny',\n 'media_position') | int / state_attr('media_player.spotify_danny', 'media_duration')\n | int) * 100) | round(2, 'common') }}%) way through.\n title: ':musical_note: Spotify'\n log_level: Debug\n default:\n - action: script.send_to_home_log\n data:\n message: Playing *{{ state_attr('media_player.spotify_danny', 'media_content_type')\n }}*.\n title: ':musical_note: Spotify'\n log_level: Debug\n mode: queued\n max: 10", "config": [ { "name": "Spotify Danny", "room": null, "type": "media_player", "id": { "entity_id": "media_player.spotify_danny", "device_id": null } } ] }, { "id": "'1624918278463'", "automation": "- id: '1624918278463'\n alias: 'Stairs: Motion Detected For Ambient Lights'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.stairs_motion_occupancy\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: sun\n after: sunrise\n - condition: state\n entity_id: light.stairs_2\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_stairs_motion_triggers\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion on lower :ladder: stairs and it''s night\n time. Turning ambient :bulb: light on :low_brightness: dim.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_2_on\n data:\n transition: 0.5\n - conditions:\n - condition: time\n after: 00:00:00\n - condition: sun\n before: sunrise\n - condition: state\n entity_id: light.stairs_2\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_stairs_motion_triggers\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion on lower :ladder: stairs and it''s night\n time. Dimming ambient :bulb: :low_brightness: light.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_2_dim\n data:\n transition: 0.5\n default: []\n mode: single", "config": [ { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "stairs 2 light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs_2", "device_id": null } }, { "name": "Stairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.stairs_motion_occupancy", "device_id": null } }, { "name": "Stairs Light 2 Dim", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_2_dim", "device_id": null } }, { "name": "Stairs Light 2 On", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_2_on", "device_id": null } } ] }, { "id": "'1598726353326'", "automation": "- id: '1598726353326'\n alias: 'Stairs: Upstairs Dark, Before Kids Bed Time, Light Off And Motion Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.upstairs_area_motion\n from: 'off'\n to: 'on'\n - alias: If Ring integration d/c then fall back to Zigbee specifically.\n trigger: state\n entity_id: binary_sensor.upstairs_motion_occupancy\n from: 'off'\n to: 'on'\n conditions:\n - below: input_number.stairs_light_level_threshold\n condition: numeric_state\n entity_id: sensor.stairs_motion_illuminance\n - condition: state\n entity_id: input_boolean.enable_stairs_motion_triggers\n state: 'on'\n - condition: time\n after: 07:00:00\n before: input_datetime.childrens_bed_time\n - condition: state\n entity_id: light.stairs\n state: 'off'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion on the :ladder: upstairs, before bed time and\n it''s dark ({{ states(''sensor.stairs_motion_illuminance'', with_unit=True)\n }} < {{ states(''input_number.stairs_light_level_threshold'', with_unit=True)\n }}). Turning :bulb: :high_brightness: light on.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id:\n - scene.stairs_light_on\n mode: queued\n max: 10", "config": [ { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "upstairs area motion", "room": "upstairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_area_motion", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "Upstairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_motion_occupancy", "device_id": null } }, { "name": "Stairs Light Level Threshold", "room": "Stairs", "type": "input_number", "id": { "entity_id": "input_number.stairs_light_level_threshold", "device_id": null } }, { "name": "Stairs Light On", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_on", "device_id": null } }, { "name": "Stairs Motion Illuminance", "room": "Stairs", "type": "sensor", "id": { "entity_id": "sensor.stairs_motion_illuminance", "device_id": null } } ] }, { "id": "'1598726353327'", "automation": "- id: '1598726353327'\n alias: 'Stairs: Upstairs Dark, Before Kids Bed Time, Light On And Motion Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.upstairs_area_motion\n from: 'off'\n to: 'on'\n - alias: If Ring integration d/c then fall back to Zigbee specifically.\n trigger: state\n entity_id: binary_sensor.upstairs_motion_occupancy\n from: 'off'\n to: 'on'\n conditions:\n - below: input_number.stairs_light_level_threshold\n condition: numeric_state\n entity_id: sensor.stairs_motion_illuminance\n - condition: state\n entity_id: input_boolean.enable_stairs_motion_triggers\n state: 'on'\n - condition: time\n after: 07:00:00\n before: input_datetime.childrens_bed_time\n - condition: state\n entity_id: light.stairs\n state: 'on'\n - condition: numeric_state\n entity_id: light.stairs\n attribute: brightness\n below: '5'\n actions:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion on upstairs, before bed time, :bulb: light is\n on and it''s dark ({{ states(''sensor.stairs_motion_illuminance'', with_unit=True)\n }} < {{ states(''input_number.stairs_light_level_threshold'', with_unit=True)\n }}). Turning :bulb: :high_brightness: light on.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id:\n - scene.stairs_light_on\n mode: single", "config": [ { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "upstairs area motion", "room": "upstairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_area_motion", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "Upstairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_motion_occupancy", "device_id": null } }, { "name": "Stairs Light Level Threshold", "room": "Stairs", "type": "input_number", "id": { "entity_id": "input_number.stairs_light_level_threshold", "device_id": null } }, { "name": "Stairs Light On", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_on", "device_id": null } }, { "name": "Stairs Motion Illuminance", "room": "Stairs", "type": "sensor", "id": { "entity_id": "sensor.stairs_motion_illuminance", "device_id": null } } ] }, { "id": "'1587595659605'", "automation": "- id: '1587595659605'\n alias: 'Stairs: Upstairs Dark, After Bed Time, Light Off and Motion Detected Before\n Midnight'\n description: Deliberately default to dim light because it's safer than having the\n light go to full brightness at night. Bed time ends when the sun is up or after\n 7am which ever is first.\n triggers:\n - trigger: state\n entity_id: binary_sensor.upstairs_area_motion\n from: 'off'\n to: 'on'\n - alias: If Ring integration d/c then fall back to Zigbee specifically.\n trigger: state\n entity_id: binary_sensor.upstairs_motion_occupancy\n from: 'off'\n to: 'on'\n conditions:\n - below: input_number.stairs_light_level_threshold\n condition: numeric_state\n entity_id: sensor.stairs_motion_illuminance\n - condition: state\n entity_id: input_boolean.enable_stairs_motion_triggers\n state: 'on'\n - condition: time\n after: input_datetime.childrens_bed_time\n - condition: state\n entity_id: light.stairs\n state: 'off'\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion :ladder: upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'')\n }} < 5 lux) and in No Children Mode. Turning stairs :bulb: :high_brightness:\n light on.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_on\n - conditions:\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: state\n entity_id: input_boolean.enable_leos_door_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_ashlees_door_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.childrens_bedroom_doors\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion on the and it''s dark ({{ states(''sensor.stairs_motion_illuminance'')\n }} < 5 lux) and :people_holding_hands: children''s doors are shut. Turning\n :bulb: :high_brightness: light on.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_on\n - conditions:\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: state\n entity_id: input_boolean.enable_leos_door_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_ashlees_door_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.childrens_bedroom_doors\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion on the :ladder: upstairs and it''s dark\n ({{ states(''sensor.stairs_motion_illuminance'') }} < 5 lux) and :people_holding_hands:\n children''s :door: doors are open. :bulb: :low_brightness: Dimming light.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_dim\n - conditions:\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: state\n entity_id: input_boolean.enable_leos_door_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_ashlees_door_automations\n state: 'off'\n - condition: state\n entity_id: binary_sensor.leos_bedroom_door_contact\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'')\n }} < 5 lux) and :boy: Leo''s :door: door is shut. Turning :bulb: :high_brightness:\n light on.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_dim\n - conditions:\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: state\n entity_id: input_boolean.enable_leos_door_automations\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_ashlees_door_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.ashlees_bedroom_door_contact\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'')\n }} < 5 lux) and :girl: Ashlee''s :door: door is shut. Turning :bulb:\n :high_brightness: light on.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_on\n default: []\n mode: queued\n max: 10", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "leos bedroom door contact", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bedroom_door_contact", "device_id": null } }, { "name": "ashlees bedroom door contact", "room": "ashlees bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ashlees_bedroom_door_contact", "device_id": null } }, { "name": "upstairs area motion", "room": "upstairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_area_motion", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "Childrens Bedroom Doors", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childrens_bedroom_doors", "device_id": null } }, { "name": "Upstairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_motion_occupancy", "device_id": null } }, { "name": "Enable Ashlees Door Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ashlees_door_automations", "device_id": null } }, { "name": "Enable Leos Door Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_door_automations", "device_id": null } }, { "name": "Stairs Light Level Threshold", "room": "Stairs", "type": "input_number", "id": { "entity_id": "input_number.stairs_light_level_threshold", "device_id": null } }, { "name": "Stairs Light Dim", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_dim", "device_id": null } }, { "name": "Stairs Light On", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_on", "device_id": null } }, { "name": "Stairs Motion Illuminance", "room": "Stairs", "type": "sensor", "id": { "entity_id": "sensor.stairs_motion_illuminance", "device_id": null } } ] }, { "id": "'1587595659608'", "automation": "- id: '1587595659608'\n alias: 'Stairs: Upstairs Dark, After Bed Time, Light On and Motion Detected Before\n Midnight'\n description: Deliberately default to dim light because it's safer than having the\n light go to full brightness at night. Bed time ends when the sun is up or after\n 7am which ever is first.\n triggers:\n - trigger: state\n entity_id: binary_sensor.upstairs_area_motion\n from: 'off'\n to: 'on'\n - alias: If Ring integration d/c then fall back to Zigbee specifically.\n trigger: state\n entity_id: binary_sensor.upstairs_motion_occupancy\n from: 'off'\n to: 'on'\n conditions:\n - below: input_number.stairs_light_level_threshold\n condition: numeric_state\n entity_id: sensor.stairs_motion_illuminance\n - condition: state\n entity_id: input_boolean.enable_stairs_motion_triggers\n state: 'on'\n - condition: time\n after: input_datetime.childrens_bed_time\n - condition: state\n entity_id: light.stairs\n state: 'on'\n - condition: numeric_state\n entity_id: light.stairs\n attribute: brightness\n below: '5'\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'',\n with_unit=True) }} < {{ states(''input_number.stairs_light_level_threshold'',\n with_unit=True) }}) and in No Children Mode. Turning up :bulb: :high_brightness:\n light.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_on\n - conditions:\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: state\n entity_id: input_boolean.enable_leos_door_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_ashlees_door_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.childrens_bedroom_doors\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'')\n }} < 5 lux) and :people_holding_hands: children''s doors are shut. Turning\n up :bulb: :high_brightness: light.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_on\n - conditions:\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: state\n entity_id: input_boolean.enable_leos_door_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_ashlees_door_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.childrens_bedroom_doors\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'')\n }} < 5 lux) and :people_holding_hands: children''s doors are open. :bulb:\n :low_brightness: Dimming light.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_dim\n - conditions:\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: state\n entity_id: input_boolean.enable_leos_door_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_ashlees_door_automations\n state: 'off'\n - condition: state\n entity_id: binary_sensor.leos_bedroom_door_contact\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'')\n }} < 5 lux) and :boy: Leo''s door is shut. Turning up :bulb: :high_brightness:\n light.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_on\n - conditions:\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: state\n entity_id: input_boolean.enable_leos_door_automations\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_ashlees_door_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.ashlees_bedroom_door_contact\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'')\n }} < 5 lux) and :girl: Ashlee''s door is shut. Turning up :bulb: :high_brightness:\n light.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_on\n default: []\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "leos bedroom door contact", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bedroom_door_contact", "device_id": null } }, { "name": "ashlees bedroom door contact", "room": "ashlees bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ashlees_bedroom_door_contact", "device_id": null } }, { "name": "upstairs area motion", "room": "upstairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_area_motion", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "Childrens Bedroom Doors", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childrens_bedroom_doors", "device_id": null } }, { "name": "Upstairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_motion_occupancy", "device_id": null } }, { "name": "Enable Ashlees Door Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ashlees_door_automations", "device_id": null } }, { "name": "Enable Leos Door Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_door_automations", "device_id": null } }, { "name": "Stairs Light Level Threshold", "room": "Stairs", "type": "input_number", "id": { "entity_id": "input_number.stairs_light_level_threshold", "device_id": null } }, { "name": "Stairs Light Dim", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_dim", "device_id": null } }, { "name": "Stairs Light On", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_on", "device_id": null } }, { "name": "Stairs Motion Illuminance", "room": "Stairs", "type": "sensor", "id": { "entity_id": "sensor.stairs_motion_illuminance", "device_id": null } } ] }, { "id": "'1587595659606'", "automation": "- id: '1587595659606'\n alias: 'Stairs: Dark, After Bed Time, Light Off and Motion Detected After Midnight'\n description: Deliberately default to dim light because it's safer than having the\n light go to full brightness at night. Bed time ends when the sun is up or after\n 7am which ever is first.\n triggers:\n - trigger: state\n entity_id: binary_sensor.upstairs_area_motion\n from: 'off'\n to: 'on'\n - alias: If Ring integration d/c then fall back to Zigbee specifically.\n trigger: state\n entity_id: binary_sensor.upstairs_motion_occupancy\n from: 'off'\n to: 'on'\n conditions:\n - below: input_number.stairs_light_level_threshold\n condition: numeric_state\n entity_id: sensor.stairs_motion_illuminance\n - condition: state\n entity_id: input_boolean.enable_stairs_motion_triggers\n state: 'on'\n - or:\n - condition: sun\n before: sunrise\n - condition: time\n before: 07:00:00\n - condition: state\n entity_id: light.stairs\n state: 'off'\n actions:\n - parallel:\n - choose:\n - alias: Bedroom light is on\n conditions:\n - condition: state\n entity_id: light.bedroom_lamps\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'',\n with_unit=True) }} < {{ states(''input_number.stairs_light_level_threshold'',\n with_unit=True) }}) :bed: bedroom light is on and it''s :clock12: late\n but bedroom light(s) are on. Turning :bulb: :high_brightness: light\n on.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_on\n - alias: Check if night light settings is turned on.\n conditions:\n - condition: state\n entity_id: input_boolean.enable_stairs_night_light\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion and it''s dark ({{ states(''sensor.stairs_motion_illuminance'')\n }} < 5 lux) and it''s :clock12: late. Turning night :bulb: :low_brightness:\n light on.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_night_light\n default:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'')\n }} < 5 lux) and it''s :clock12: late. Night mode is turned off so turning\n :bulb: :high_brightness: light on.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_on\n mode: single", "config": [ { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } }, { "name": "upstairs area motion", "room": "upstairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_area_motion", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "bedroom lamps", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_lamps", "device_id": null } }, { "name": "Upstairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_motion_occupancy", "device_id": null } }, { "name": "Enable Stairs Night Light", "room": "Stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_night_light", "device_id": null } }, { "name": "Stairs Light Level Threshold", "room": "Stairs", "type": "input_number", "id": { "entity_id": "input_number.stairs_light_level_threshold", "device_id": null } }, { "name": "Stairs Light On", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_on", "device_id": null } }, { "name": "Stairs Night Light", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_night_light", "device_id": null } }, { "name": "Stairs Motion Illuminance", "room": "Stairs", "type": "sensor", "id": { "entity_id": "sensor.stairs_motion_illuminance", "device_id": null } } ] }, { "id": "'1587595659607'", "automation": "- id: '1587595659607'\n alias: 'Stairs: Dark, After Bed Time, Light On and Motion Detected After Midnight'\n description: Deliberately default to dim light because it's safer than having the\n light go to full brightness at night. Bed time ends when the sun is up or after\n 7am which ever is first.\n triggers:\n - trigger: state\n entity_id: binary_sensor.upstairs_area_motion\n from: 'off'\n to: 'on'\n - alias: If Ring integration d/c then fall back to Zigbee specifically.\n trigger: state\n entity_id: binary_sensor.upstairs_motion_occupancy\n from: 'off'\n to: 'on'\n conditions:\n - below: input_number.stairs_light_level_threshold\n condition: numeric_state\n entity_id: sensor.stairs_motion_illuminance\n - condition: state\n entity_id: input_boolean.enable_stairs_motion_triggers\n state: 'on'\n - or:\n - condition: sun\n before: sunrise\n - condition: time\n before: 07:00:00\n - condition: state\n entity_id: light.stairs\n state: 'on'\n - condition: numeric_state\n entity_id: light.stairs\n attribute: brightness\n below: '5'\n actions:\n - parallel:\n - choose:\n - alias: Bedroom light is on\n conditions:\n - condition: state\n entity_id: light.bedroom_lamps\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'',\n with_unit=True) }} < {{ states(''input_number.stairs_light_level_threshold'',\n with_unit=True) }}) and it''s :clock12: late but bedroom light(s) are\n on. Turning :bulb: :high_brightness: light on.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_on\n - alias: Check if night light settings is turned on.\n conditions:\n - condition: state\n entity_id: input_boolean.enable_stairs_night_light\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'')\n }} < 5 lux) and it''s :clock1: late. Turning stairs night :bulb: :low_brightness:\n light up.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_night_light\n default:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion upstairs and it''s dark ({{ states(''sensor.stairs_motion_illuminance'')\n }} < 5 lux) and it''s :clock12: late. Night mode is turned off so turning\n :bulb: :high_brightness: light on.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_on\n mode: single", "config": [ { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } }, { "name": "upstairs area motion", "room": "upstairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_area_motion", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "bedroom lamps", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_lamps", "device_id": null } }, { "name": "Upstairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_motion_occupancy", "device_id": null } }, { "name": "Enable Stairs Night Light", "room": "Stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_night_light", "device_id": null } }, { "name": "Stairs Light Level Threshold", "room": "Stairs", "type": "input_number", "id": { "entity_id": "input_number.stairs_light_level_threshold", "device_id": null } }, { "name": "Stairs Light On", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_on", "device_id": null } }, { "name": "Stairs Night Light", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_night_light", "device_id": null } }, { "name": "Stairs Motion Illuminance", "room": "Stairs", "type": "sensor", "id": { "entity_id": "sensor.stairs_motion_illuminance", "device_id": null } } ] }, { "id": "'1592062695452'", "automation": "- id: '1592062695452'\n alias: 'Stairs: Motion Detected And MagicMirror Is Off'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.living_room_area_motion\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.stairs_motion_occupancy\n to: 'on'\n conditions:\n - condition: state\n entity_id: switch.magic_mirror_plug\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_magic_mirror_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_stairs_motion_triggers\n state: 'on'\n actions:\n - parallel:\n - action: switch.turn_on\n target:\n entity_id: switch.magic_mirror_plug\n - action: script.send_to_home_log\n data:\n message: 'Turning on :mirror: Magic Mirror.'\n title: ':paw_prints: Motion on the :ladder: stairs/lounge'\n log_level: Debug\n mode: queued\n max: 10", "config": [ { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } }, { "name": "Living Room Area Motion", "room": "Living Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_area_motion", "device_id": null } }, { "name": "Stairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.stairs_motion_occupancy", "device_id": null } }, { "name": "Enable Magic Mirror Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_magic_mirror_automations", "device_id": null } }, { "name": "Magic Mirror Plug", "room": null, "type": "switch", "id": { "entity_id": "switch.magic_mirror_plug", "device_id": null } } ] }, { "id": "'1587595847618'", "automation": "- id: '1587595847618'\n alias: 'Stairs: No Motion Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.upstairs_area_motion\n for: 00:01:00\n to: 'off'\n - trigger: state\n entity_id: binary_sensor.stairs_motion_occupancy\n to: 'off'\n for: 00:01:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_stairs_motion_triggers\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion at the top of the stairs for 1 minute.\n Turning light off.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_off\n data:\n transition: 1\n - choose:\n - conditions:\n - condition: state\n entity_id: light.stairs_2\n state: 'on'\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion at the bottom of the stairs for\n 1 minute. Turning ambient light off.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_2_off\n data:\n transition: 2\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - action: light.turn_off\n target:\n entity_id: light.stairs_2\n default: []\n mode: queued\n max: 10", "config": [ { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } }, { "name": "upstairs area motion", "room": "upstairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_area_motion", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "stairs 2 light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs_2", "device_id": null } }, { "name": "Stairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.stairs_motion_occupancy", "device_id": null } }, { "name": "Stairs Light 2 Off", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_2_off", "device_id": null } }, { "name": "Stairs Light Off", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_off", "device_id": null } } ] }, { "id": "'1624918387840'", "automation": "- id: '1624918387840'\n alias: 'Stairs: No Motion Detected Bottom Of Stairs'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.stairs_motion_occupancy\n to: 'off'\n for: 00:01:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_stairs_motion_triggers\n state: 'on'\n - condition: state\n entity_id: light.stairs_2\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion at the bottom of the stairs for 1 minute.\n Turning light off.'\n title: Porch\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.stairs_light_2_off\n data:\n transition: 2\n mode: single", "config": [ { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "stairs 2 light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs_2", "device_id": null } }, { "name": "Stairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.stairs_motion_occupancy", "device_id": null } }, { "name": "Stairs Light 2 Off", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_2_off", "device_id": null } } ] }, { "id": "'1591553945554'", "automation": "- id: '1591553945554'\n alias: 'Stairs: No Motion At Night Turn Off Magic Mirror'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.stairs_motion_occupancy\n for: 00:03:00\n to: 'off'\n - trigger: time\n at: '23:30:00'\n conditions:\n - after: '23:00:00'\n before: 05:00:00\n condition: time\n - condition: state\n entity_id: switch.magic_mirror_plug\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_magic_mirror_automations\n state: 'on'\n actions:\n - parallel:\n - action: switch.turn_off\n target:\n entity_id: switch.magic_mirror_plug\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :no_pedestrians:\n Turning off :mirror: Magic Mirror because no motion was detected.'\n title: Porch\n log_level: Debug\n mode: single", "config": [ { "name": "Stairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.stairs_motion_occupancy", "device_id": null } }, { "name": "Enable Magic Mirror Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_magic_mirror_automations", "device_id": null } }, { "name": "Magic Mirror Plug", "room": null, "type": "switch", "id": { "entity_id": "switch.magic_mirror_plug", "device_id": null } } ] }, { "id": "'1714869692076'", "automation": "- id: '1714869692076'\n alias: 'Stairs: Light Switch'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.stairs_light_input_0_input\n not_from:\n - unknown\n - unavailable\n not_to:\n - unknown\n - unavailable\n conditions: []\n actions:\n - action: light.toggle\n metadata: {}\n data:\n transition: 1\n brightness: 255\n target:\n entity_id: light.stairs\n mode: single", "config": [ { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "Stairs Light Input 0 Input", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.stairs_light_input_0_input", "device_id": null } } ] }, { "id": "'1615849889104'", "automation": "- id: '1615849889104'\n alias: 'Stairs: Light On And Children''s Door Open After Bedtime And Before Midnight'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.leos_bedroom_door_contact\n from: 'off'\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.ashlees_bedroom_door_contact\n from: 'off'\n to: 'on'\n conditions:\n - condition: time\n after: input_datetime.childrens_bed_time\n before: '23:59:59'\n - condition: state\n entity_id: light.stairs\n state: 'on'\n - not:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_leos_door_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.leos_bedroom_door_contact\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: :door: :low_brightness: {{ trigger.to_state.name\n }} opened after bed time and the stairs light are on. :bulb: :low_brightness:\n Dimming all lights.'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id:\n - scene.stairs_light_dim\n - scene.stairs_light_2_on\n data:\n transition: 0.5\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_ashlees_door_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.ashlees_bedroom_door_contact\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':door: :high_brightness: {{ trigger.to_state.name }} opened\n after bed time and the stairs light are on. :bulb: :low_brightness:\n Dimming all lights.'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id:\n - scene.stairs_light_on\n - scene.stairs_light_2_on\n data:\n transition: 0.5\n default: []\n mode: queued\n max: 10", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "leos bedroom door contact", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bedroom_door_contact", "device_id": null } }, { "name": "ashlees bedroom door contact", "room": "ashlees bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ashlees_bedroom_door_contact", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "Enable Ashlees Door Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ashlees_door_automations", "device_id": null } }, { "name": "Enable Leos Door Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_door_automations", "device_id": null } }, { "name": "Stairs Light 2 On", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_2_on", "device_id": null } }, { "name": "Stairs Light Dim", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_dim", "device_id": null } }, { "name": "Stairs Light On", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_on", "device_id": null } } ] }, { "id": "'1615850302527'", "automation": "- id: '1615850302527'\n alias: 'Stairs: Light On And Children''s Door Closed Before Midnight'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.leos_bedroom_door_contact\n from: 'on'\n to: 'off'\n - trigger: state\n entity_id: binary_sensor.ashlees_bedroom_door_contact\n from: 'on'\n to: 'off'\n conditions:\n - condition: time\n after: input_datetime.childrens_bed_time\n before: '23:59:59'\n - condition: state\n entity_id: light.stairs\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Normal\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_leos_door_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_ashlees_door_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.childrens_bedroom_doors\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':door: :high_brightness: {{ trigger.to_state.name }} closed\n after bed time, :people_holding_hands: children''s :door: doors are\n closed and the light are on. Turn up :bulb: :high_brightness: all lights.'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id:\n - scene.stairs_light_on\n - scene.stairs_light_2_on\n data:\n transition: 0.5\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_leos_door_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_ashlees_door_automations\n state: 'off'\n - condition: state\n entity_id: binary_sensor.leos_bedroom_door_contact\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':boy: Leo''s :door: door closed after bed time and the lights\n are on. Turn up :bulb: :high_brightness: all lights.'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id:\n - scene.stairs_light_on\n - scene.stairs_light_2_on\n data:\n transition: 0.5\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_leos_door_automations\n state: 'off'\n - condition: state\n entity_id: input_boolean.enable_ashlees_door_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.ashlees_bedroom_door_contact\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':girl: Ashlee''s :door: door closed after bed time and the stairs\n light are on. Turn up :bulb: :high_brightness: all lights.'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id:\n - scene.stairs_light_on\n - scene.stairs_light_2_on\n data:\n transition: 0.5\n default: []\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "leos bedroom door contact", "room": "leos bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.leos_bedroom_door_contact", "device_id": null } }, { "name": "ashlees bedroom door contact", "room": "ashlees bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ashlees_bedroom_door_contact", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "Childrens Bedroom Doors", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childrens_bedroom_doors", "device_id": null } }, { "name": "Enable Ashlees Door Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ashlees_door_automations", "device_id": null } }, { "name": "Enable Leos Door Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_leos_door_automations", "device_id": null } }, { "name": "Stairs Light 2 On", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_2_on", "device_id": null } }, { "name": "Stairs Light On", "room": "Stairs", "type": "scene", "id": { "entity_id": "scene.stairs_light_on", "device_id": null } } ] }, { "id": "'1588856667889'", "automation": "- id: '1588856667889'\n alias: 'MagicMirror: Turn Off Based On Time During Weekday'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.stairs_motion_occupancy\n to: 'off'\n for: 00:05:00\n from: 'on'\n conditions:\n - condition: time\n after: 09:00:00\n before: '17:30:00'\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - condition: state\n entity_id: input_boolean.enable_magic_mirror_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_stairs_motion_triggers\n state: 'on'\n actions:\n - parallel:\n - action: switch.turn_off\n target:\n entity_id: switch.magic_mirror_plug\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motioned detected. Turning off :mirror: Magic\n Mirror based on time of the day.'\n title: Porch\n log_level: Debug\n mode: single", "config": [ { "name": "enable stairs motion triggers", "room": "stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_motion_triggers", "device_id": null } }, { "name": "Stairs Motion Occupancy", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.stairs_motion_occupancy", "device_id": null } }, { "name": "Enable Magic Mirror Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_magic_mirror_automations", "device_id": null } }, { "name": "Magic Mirror Plug", "room": null, "type": "switch", "id": { "entity_id": "switch.magic_mirror_plug", "device_id": null } } ] }, { "id": "'1630760046947'", "automation": "- id: '1630760046947'\n alias: 'Stairs: Close Blinds At Night'\n description: ''\n triggers:\n - trigger: sun\n event: sunset\n offset: 01:00:00\n conditions:\n - condition: state\n entity_id: cover.stairs_blinds\n state: open\n - condition: state\n entity_id: input_boolean.enable_stairs_blind_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':city_sunrise: :window: Closing blinds.'\n title: Porch\n log_level: Debug\n - action: cover.close_cover\n target:\n entity_id: cover.stairs_blinds\n mode: single", "config": [ { "name": "Stairs Blinds", "room": "Stairs", "type": "cover", "id": { "entity_id": "cover.stairs_blinds", "device_id": null } }, { "name": "Enable Stairs Blind Automations", "room": "Stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_blind_automations", "device_id": null } } ] }, { "id": "'1630760149356'", "automation": "- id: '1630760149356'\n alias: 'Stairs: Open Blinds In The Morning'\n description: ''\n triggers:\n - trigger: time\n at: 08:00:00\n conditions:\n - condition: state\n entity_id: cover.stairs_blinds\n state: closed\n - condition: state\n entity_id: input_boolean.enable_stairs_blind_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':sunrise: Opening blinds.'\n title: Porch\n log_level: Debug\n - action: cover.open_cover\n target:\n entity_id: cover.stairs_blinds\n mode: single", "config": [ { "name": "Stairs Blinds", "room": "Stairs", "type": "cover", "id": { "entity_id": "cover.stairs_blinds", "device_id": null } }, { "name": "Enable Stairs Blind Automations", "room": "Stairs", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stairs_blind_automations", "device_id": null } } ] }, { "id": "'1630015410190'", "automation": "- id: '1630015410190'\n alias: 'Stairs: Person Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.stairs_person_detected\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: armed_away\n actions:\n - parallel:\n - action: camera.snapshot\n data_template:\n filename: '{{ states(''input_text.latest_frigate_upstairs_person_file_path'')\n }}'\n target:\n entity_id: camera.stairs_high_resolution_channel\n - action: script.send_home_log_with_local_attachments\n data_template:\n title: Person detected on stairs\n message: Frigate detected a person on the stairs.\n filePath: '{{ states(''input_text.latest_frigate_upstairs_person_file_path'')\n }}'\n mode: queued\n max: 10", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "Stairs Person Detected", "room": "Stairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.stairs_person_detected", "device_id": null } }, { "name": "Stairs High Resolution Channel", "room": "Stairs", "type": "camera", "id": { "entity_id": "camera.stairs_high_resolution_channel", "device_id": null } }, { "name": "Latest Frigate Upstairs Person File Path", "room": "Upstairs", "type": "input_text", "id": { "entity_id": "input_text.latest_frigate_upstairs_person_file_path", "device_id": null } } ] }, { "id": "'1743186662872'", "automation": "- id: '1743186662872'\n alias: 'Stairs: Front Door Status On For Long Time'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - light.stairs_ambient\n to: 'on'\n for:\n hours: 0\n minutes: 3\n seconds: 0\n - trigger: state\n entity_id:\n - light.stairs_ambient\n to: 'on'\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions:\n - condition: state\n entity_id: binary_sensor.front_door\n state: 'off'\n actions:\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: light.office_light\n mode: single", "config": [ { "name": "front door", "room": "porch", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door", "device_id": null } }, { "name": "stairs light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs", "device_id": null } }, { "name": "stairs ambient light", "room": "stairs", "type": "light", "id": { "entity_id": "light.stairs_ambient", "device_id": null } }, { "name": "Office Light", "room": "Office", "type": "light", "id": { "entity_id": "light.office_light", "device_id": null } } ] }, { "id": "'1619254173099'", "automation": "- id: '1619254173099'\n alias: 'Steam: Status Change'\n description: ''\n triggers:\n - trigger: state\n entity_id: sensor.steam_danny\n conditions:\n - condition: state\n entity_id: input_boolean.enable_steam_notifications\n state: 'on'\n actions:\n - action: script.send_home_log_with_url\n data:\n message: Steam status changed to {{ trigger.to_state.state|default('Unknown',\n true) }}.\n title: ':video_game: Steam'\n url: '{{ state_attr(trigger.entity_id|default(''sensor.steam_danny'', true),\n ''entity_picture'') }}'\n mode: queued\n max: 10", "config": [ { "name": "Enable Steam Notifications", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_steam_notifications", "device_id": null } }, { "name": "Steam Danny", "room": null, "type": "sensor", "id": { "entity_id": "sensor.steam_danny", "device_id": null } }, { "name": "Trigger Entity ID", "room": null, "type": "trigger", "id": { "entity_id": "trigger.entity_id", "device_id": null } } ] }, { "id": "'1619254173097'", "automation": "- id: '1619254173097'\n alias: 'Steam: Playing Game'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.steam_danny\n attribute: game\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.attributes.game|default(none, true) != none\n }}'\n - condition: state\n entity_id: input_boolean.enable_steam_notifications\n state: 'on'\n actions:\n - action: script.send_home_log_with_url\n data:\n message: Playing {{ state_attr(trigger.entity_id|default('sensor.steam_danny',\n true), 'game') }}.\n title: ':video_game: Steam'\n url: '{{ trigger.to_state.attributes.game_image_main|default(state_attr(trigger.entity_id|default(''sensor.steam_danny'',\n true), ''game_image_main'')) }}'\n mode: queued\n max: 10", "config": [ { "name": "Enable Steam Notifications", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_steam_notifications", "device_id": null } }, { "name": "Steam Danny", "room": null, "type": "sensor", "id": { "entity_id": "sensor.steam_danny", "device_id": null } }, { "name": "Trigger Entity ID", "room": null, "type": "trigger", "id": { "entity_id": "trigger.entity_id", "device_id": null } } ] }, { "id": "'1674411819883'", "automation": "- id: '1674411819883'\n alias: 'Add-Ons: File Editor Started'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.file_editor_running\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_stop_add_ons\n state: 'on'\n actions:\n - parallel:\n - action: timer.start\n data:\n duration: 01:00:00\n target:\n entity_id: timer.stop_add_on_file_editor\n - action: script.send_to_home_log\n data:\n message: File Editor started.\n title: ':heavy_plus_sign: Add-on'\n log_level: Normal\n mode: single", "config": [ { "name": "File Editor Running", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.file_editor_running", "device_id": null } }, { "name": "Enable Stop Add Ons", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stop_add_ons", "device_id": null } }, { "name": "Stop Add On File Editor", "room": null, "type": "timer", "id": { "entity_id": "timer.stop_add_on_file_editor", "device_id": null } } ] }, { "id": "'1638101465298'", "automation": "- id: '1638101465298'\n alias: 'Add-ons: Automatically Disable File Editor'\n description: ''\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.stop_add_on_file_editor\n conditions:\n - condition: state\n entity_id: input_boolean.enable_stop_add_ons\n state: 'on'\n actions:\n - action: script.stop_add_on\n data:\n addonEntityId: core_configurator\n message: ':writing_hand: File editor has been on for more than an hour. Turning\n File editor off.'\n mode: single", "config": [ { "name": "Enable Stop Add Ons", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stop_add_ons", "device_id": null } }, { "name": "Stop Add On File Editor", "room": null, "type": "timer", "id": { "entity_id": "timer.stop_add_on_file_editor", "device_id": null } } ] }, { "id": "'1674411819884'", "automation": "- id: '1674411819884'\n alias: 'Add-Ons: Advanced SSH & Web Terminal'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.advanced_ssh_web_terminal_running\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_stop_add_ons\n state: 'on'\n actions:\n - parallel:\n - action: timer.start\n data:\n duration: 01:00:00\n target:\n entity_id: timer.stop_add_on_terminal_ssh\n - action: script.send_to_home_log\n data:\n message: Terminal SSH started.\n title: ':heavy_plus_sign: Add-on'\n log_level: Normal\n mode: single", "config": [ { "name": "Advanced SSH Web Terminal Running", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.advanced_ssh_web_terminal_running", "device_id": null } }, { "name": "Enable Stop Add Ons", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stop_add_ons", "device_id": null } }, { "name": "Stop Add On Terminal SSH", "room": null, "type": "timer", "id": { "entity_id": "timer.stop_add_on_terminal_ssh", "device_id": null } } ] }, { "id": "'1638101748990'", "automation": "- id: '1638101748990'\n alias: 'Add-ons: Automatically Disable Advanced SSH & Web Terminal'\n description: ''\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.stop_add_on_terminal_ssh\n conditions:\n - condition: state\n entity_id: input_boolean.enable_stop_add_ons\n state: 'on'\n actions:\n - action: script.stop_add_on\n data:\n addonEntityId: a0d7b954_ssh\n message: SSH has been on for more than an hour. Turning SSH off.\n mode: single", "config": [ { "name": "Enable Stop Add Ons", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stop_add_ons", "device_id": null } }, { "name": "Stop Add On Terminal SSH", "room": null, "type": "timer", "id": { "entity_id": "timer.stop_add_on_terminal_ssh", "device_id": null } } ] }, { "id": "'1638101748992'", "automation": "- id: '1638101748992'\n alias: 'Add-ons: Zigbee 2 MQTT Proxy Started'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.zigbee2mqtt_proxy_running\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_stop_add_ons\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Zigbee 2 MQTT Proxy started.\n title: ':heavy_plus_sign: Add-on'\n log_level: Debug\n - action: timer.start\n metadata: {}\n data:\n duration: 00:30:00\n target:\n entity_id: timer.stop_add_on_zigbee_2_mqtt_proxy", "config": [ { "name": "Zigbee2MQTT Proxy Running", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zigbee2mqtt_proxy_running", "device_id": null } }, { "name": "Enable Stop Add Ons", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stop_add_ons", "device_id": null } }, { "name": "Stop Add On Zigbee 2 MQTT Proxy", "room": null, "type": "timer", "id": { "entity_id": "timer.stop_add_on_zigbee_2_mqtt_proxy", "device_id": null } } ] }, { "id": "'1638101748993'", "automation": "- id: '1638101748993'\n alias: 'Add-ons: Automatically Disable Zigbee 2 MQTT Proxy'\n description: ''\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.stop_add_on_zigbee_2_mqtt_proxy\n conditions:\n - condition: state\n entity_id: input_boolean.enable_stop_add_ons\n state: 'on'\n actions:\n - action: script.stop_add_on\n data:\n addonEntityId: 45df7312_zigbee2mqtt_proxy\n message: Zigbee2MQTT Proxy has been on for more than an hour. Turning Zigbee2MQTT\n Proxy off.\n mode: single", "config": [ { "name": "Enable Stop Add Ons", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_stop_add_ons", "device_id": null } }, { "name": "Stop Add On Zigbee 2 MQTT Proxy", "room": null, "type": "timer", "id": { "entity_id": "timer.stop_add_on_zigbee_2_mqtt_proxy", "device_id": null } } ] }, { "id": "'1700062541454'", "automation": "- id: '1700062541454'\n alias: 'Add-On: Update For File Editor'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.file_editor_newest_version\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.file_editor_newest_version\n state: sensor.file_editor_version\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: File Editor updated from {{ states('sensor.file_editor_version')\n }} to {{ states('sensor.file_editor_newest_version')}}.\n title: ':heavy_plus_sign: Add-on'\n log_level: Normal\n - action: update.install\n data: {}\n target:\n entity_id: update.file_editor_update\n mode: single", "config": [ { "name": "File Editor Newest Version", "room": null, "type": "sensor", "id": { "entity_id": "sensor.file_editor_newest_version", "device_id": null } }, { "name": "File Editor Version", "room": null, "type": "sensor", "id": { "entity_id": "sensor.file_editor_version", "device_id": null } }, { "name": "File Editor Update", "room": null, "type": "update", "id": { "entity_id": "update.file_editor_update", "device_id": null } } ] }, { "id": "'1700062541455'", "automation": "- id: '1700062541455'\n alias: 'Add-On: Update For Terminal & Web'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.advanced_ssh_web_terminal_newest_version\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.advanced_ssh_web_terminal_newest_version\n state: sensor.advanced_ssh_web_terminal_version\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Terminal & SSH updated from {{ states('sensor.advanced_ssh_web_terminal_version')\n }} to {{ states('sensor.advanced_ssh_web_terminal_newest_version')}}.\n title: ':heavy_plus_sign: Add-on'\n log_level: Normal\n - action: update.install\n data: {}\n target:\n entity_id: update.advanced_ssh_web_terminal_update\n mode: single", "config": [ { "name": "Advanced SSH Web Terminal Newest Version", "room": null, "type": "sensor", "id": { "entity_id": "sensor.advanced_ssh_web_terminal_newest_version", "device_id": null } }, { "name": "Advanced SSH Web Terminal Version", "room": null, "type": "sensor", "id": { "entity_id": "sensor.advanced_ssh_web_terminal_version", "device_id": null } }, { "name": "Advanced SSH Web Terminal Update", "room": null, "type": "update", "id": { "entity_id": "update.advanced_ssh_web_terminal_update", "device_id": null } } ] }, { "id": "'1700062541456'", "automation": "- id: '1700062541456'\n alias: 'Add-On: Update For ESPHome'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.esphome_newest_version\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.esphome_newest_version\n state: sensor.esphome_version\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ESPHome updated from {{ states('sensor.esphome_version') }} to {{\n states('sensor.esphome_newest_version')}}.\n title: ':heavy_plus_sign: Add-on'\n log_level: Normal\n - action: update.install\n data: {}\n target:\n entity_id: update.esphome_update\n mode: single", "config": [ { "name": "ESPHome Newest Version", "room": null, "type": "sensor", "id": { "entity_id": "sensor.esphome_newest_version", "device_id": null } }, { "name": "ESPHome Version", "room": null, "type": "sensor", "id": { "entity_id": "sensor.esphome_version", "device_id": null } }, { "name": "ESPHome Update", "room": null, "type": "update", "id": { "entity_id": "update.esphome_update", "device_id": null } } ] }, { "id": "'1700062541457'", "automation": "- id: '1700062541457'\n alias: 'Add-On: Update For Zigbee2MQTT Proxy'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.zigbee2mqtt_proxy_newest_version\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.zigbee2mqtt_proxy_newest_version\n state: sensor.zigbee2mqtt_proxy_version\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Zigbee2MQTT Proxy updated from {{ states('sensor.zigbee2mqtt_proxy_version')\n }} to {{ states('sensor.zigbee2mqtt_proxy_newest_version')}}.\n title: ':heavy_plus_sign: Add-on'\n log_level: Normal\n - action: update.install\n data: {}\n target:\n entity_id: update.zigbee2mqtt_proxy_update\n mode: single", "config": [ { "name": "Zigbee2MQTT Proxy Newest Version", "room": null, "type": "sensor", "id": { "entity_id": "sensor.zigbee2mqtt_proxy_newest_version", "device_id": null } }, { "name": "Zigbee2MQTT Proxy Version", "room": null, "type": "sensor", "id": { "entity_id": "sensor.zigbee2mqtt_proxy_version", "device_id": null } }, { "name": "Zigbee2MQTT Proxy Update", "room": null, "type": "update", "id": { "entity_id": "update.zigbee2mqtt_proxy_update", "device_id": null } } ] }, { "id": "'1700062541458'", "automation": "- id: '1700062541458'\n alias: 'Add-On: Update For Log Viewer'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.log_viewer_newest_version\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.log_viewer_newest_version\n state: sensor.log_viewer_version\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Log Viewer updated from {{ states('sensor.log_viewer_version') }}\n to {{ states('sensor.log_viewer_newest_version')}}.\n title: ':heavy_plus_sign: Add-on'\n log_level: Normal\n - action: update.install\n data: {}\n target:\n entity_id: update.log_viewer_update\n mode: single", "config": [ { "name": "Log Viewer Newest Version", "room": null, "type": "sensor", "id": { "entity_id": "sensor.log_viewer_newest_version", "device_id": null } }, { "name": "Log Viewer Version", "room": null, "type": "sensor", "id": { "entity_id": "sensor.log_viewer_version", "device_id": null } }, { "name": "Log Viewer Update", "room": null, "type": "update", "id": { "entity_id": "update.log_viewer_update", "device_id": null } } ] }, { "id": "'1700062541459'", "automation": "- id: '1700062541459'\n alias: 'Add-On: Update For Log Viewer'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.visual_studio_code_newest_version\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.visual_studio_code_newest_version\n state: sensor.visual_studio_code_version\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Log Viewer updated from {{ states('sensor.visual_studio_code_version')\n }} to {{ states('sensor.visual_studio_code_newest_version')}}.\n title: ':heavy_plus_sign: Add-on'\n log_level: Normal\n - action: update.install\n data: {}\n target:\n entity_id: update.studio_code_server_update\n mode: single", "config": [ { "name": "Visual Studio Code Newest Version", "room": null, "type": "sensor", "id": { "entity_id": "sensor.visual_studio_code_newest_version", "device_id": null } }, { "name": "Visual Studio Code Version", "room": null, "type": "sensor", "id": { "entity_id": "sensor.visual_studio_code_version", "device_id": null } }, { "name": "Studio Code Server Update", "room": null, "type": "update", "id": { "entity_id": "update.studio_code_server_update", "device_id": null } } ] }, { "id": "'1653739708849'", "automation": "- id: '1653739708849'\n alias: 'Telegram: Event Received'\n description: ''\n triggers:\n - trigger: event\n event_type: telegram_command\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.command == ''get_camera'' }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Getting camera {{ trigger.event.data.args}}\n default:\n - action: script.send_to_home_log\n data:\n message: 'Recieved Telegram event:\n\n\n command: {{ trigger.event.data.command }}\n\n args: {{ trigger.event.data.args }}\n\n from_first: {{ trigger.event.data.from_first }}\n\n from_last: {{ trigger.event.data.from_last }}\n\n user_id: {{ trigger.event.data.user_id }}\n\n chat_id: {{ trigger.event.data.chat_id }}\n\n chat: {{ trigger.event.data.chat }}'\n title: Telegram\n log_level: Debug\n mode: queued\n max: 10", "config": [] }, { "id": "'1653739708850'", "automation": "- id: '1653739708850'\n alias: 'Telegram: Message Received'\n description: ''\n triggers:\n - trigger: event\n event_type: telegram_text\n conditions: []\n actions:\n - if:\n - condition: template\n value_template: '{{ trigger.event.data.text|default(none, true) != none }}'\n then:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':speech_balloon: Received Telegram event:\n\n chat: {{ trigger.event.data.chat }}\n\n from_first: {{ trigger.event.data.from_first }}\n\n from_last: {{ trigger.event.data.from_last }}\n\n user_id: {{ trigger.event.data.user_id }}\n\n chat_id: {{ trigger.event.data.chat_id }}\n\n text: {{ trigger.event.data.text }}'\n title: Telegram\n log_level: Debug\n - choose:\n - alias: Message from Danny\n conditions:\n - condition: template\n value_template: '{{ trigger.event.data.user_id|string|default('''', true) ==\n states(''input_text.dannys_telegram_chat_id'') }}'\n sequence:\n - action: conversation.process\n data:\n agent_id: conversation.llama3_2_vision\n text: '{{ trigger.event.data.text }}'\n response_variable: assist\n - if:\n - condition: template\n value_template: '{{ assist.response.response_type|default(none, true)\n != none and assist.response.response_type == ''error''}}'\n then:\n - parallel:\n - action: telegram_bot.send_message\n data:\n message: '{%- set wait_response = [''hmm...'', ''thinking...'',\n ''...'', ''er...'', ''um...'', ''well''] -%} {{ wait_response[range(0,\n wait_response|length)|random] }}'\n config_entry_id: 01K3E0RTD04WM71CZ2G3F6VZ3W\n - action: conversation.process\n data:\n agent_id: conversation.home_assistant\n text: '{{ trigger.event.data.text }}'\n response_variable: assist\n - action: telegram_bot.send_message\n data:\n message: '{{ assist.response.speech.plain.speech }}'\n config_entry_id: 01K3E0RTD04WM71CZ2G3F6VZ3W\n default:\n - action: conversation.process\n data:\n agent_id: conversation.llama3_2_vision\n text: '{{ trigger.event.data.text }}'\n response_variable: assist\n - if:\n - condition: template\n value_template: '{{ assist.response.response_type|default(none, true) !=\n none and assist.response.response_type == ''error''}}'\n then:\n - parallel:\n - action: telegram_bot.send_message\n data:\n message: '{%- set wait_response = [''hmm...'', ''thinking...'', ''...'',\n ''er...'', ''um...'', ''well''] -%} {{ wait_response[range(0, wait_response|length)|random]\n }}'\n config_entry_id: 01K3E0RTD04WM71CZ2G3F6VZ3W\n - action: conversation.process\n data:\n agent_id: conversation.home_assistant\n text: '{{ trigger.event.data.text }}'\n response_variable: assist\n - action: telegram_bot.send_message\n data:\n message: '{{ assist.response.speech.plain.speech }}'\n config_entry_id: 01K3E0RTD04WM71CZ2G3F6VZ3W\n mode: queued\n max: 10", "config": [ { "name": "Danny's Telegram Chat ID", "room": null, "type": "input_text", "id": { "entity_id": "input_text.dannys_telegram_chat_id", "device_id": null } } ] }, { "id": "'1653739708851'", "automation": "- id: '1653739708851'\n alias: 'Telegram: Callback Received'\n description: ''\n triggers:\n - trigger: event\n event_type: telegram_callback\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':speech_balloon: Recieved Telegram event:\n\n data: {{ trigger.event.data.data }}\n\n\n message: {{ trigger.event.data.message }}\n\n\n from_first: {{ trigger.event.data.from_first }}\n\n\n from_last: {{ trigger.event.data.from_last }}\n\n\n user_id: {{ trigger.event.data.user_id }}\n\n\n id: {{ trigger.event.data.id }}\n\n\n chat_id: {{ trigger.event.data.chat_id }}\n\n\n text: {{ trigger.event.data.text }}'\n title: Telegram\n log_level: Debug\n mode: queued\n max: 10", "config": [] }, { "id": "'1726077652711'", "automation": "- id: '1726077652711'\n alias: 'Tesla: USB Archive'\n description: ''\n triggers:\n - trigger: webhook\n allowed_methods:\n - POST\n local_only: true\n webhook_id: teslausb\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: '{{ trigger.json.value2 }}'\n title: Tesla\n log_level: Normal\n mode: queued\n max: 10", "config": [] }, { "id": "'1750161174574'", "automation": "- id: '1750161174574'\n alias: 'Tesla: Windows Open At Night'\n description: ''\n triggers:\n - trigger: time\n at: '23:00:00'\n conditions:\n - condition: state\n entity_id: binary_sensor.model_3_windows\n state: 'on'\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n title: 'Car :car:'\n message: 'Model 3 windows :window: are open.'\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Model 3 Windows", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.model_3_windows", "device_id": null } } ] }, { "id": "'1622667704047'", "automation": "- id: '1622667704047'\n alias: 'Time: Warn Doors or Windows Still Open At Night'\n description: ''\n triggers:\n - trigger: time\n at: '22:00:00'\n conditions:\n - condition: state\n entity_id: binary_sensor.alarmed_doors_and_windows\n state: 'on'\n actions:\n - action: script.send_to_home_log\n data:\n message: ':warning: :clock{{ now().strftime(''%I'') | int }}{% if now().minute\n | int > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :door: :window:\n The following entrances are still open: {% for entity in state_attr(''binary_sensor.alarmed_doors_and_windows'',''entity_id'')\n %}{% if states(entity) == ''on'' %}{{ ''\n\n * '' ~ state_attr(entity, ''friendly_name'') }} {% endif %}{% endfor %}'\n log_level: Debug\n mode: single", "config": [ { "name": "alarmed doors and windows", "room": "house", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.alarmed_doors_and_windows", "device_id": null } } ] }, { "id": "'1619466600288'", "automation": "- id: '1619466600288'\n alias: 'Time: Delete Old Camera Files'\n description: ''\n triggers:\n - trigger: time_pattern\n hours: /2\n conditions: []\n actions:\n parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Deleting :camera:\n files'\n log_level: Debug\n - action: delete.files_in_folder\n data:\n folder: /config/camera/\n scan_subfolders: true\n remove_subfolders: false\n time: 14400\n except_files:\n - .gitignore\n - deepstack_object_conservatory_latest.png\n - deepstack_object_conservatory_none.png\n - deepstack_object_driveway_latest.png\n - deepstack_object_driveway_none.png\n - deepstack_object_front_door_latest.png\n - deepstack_object_front_door_None.png\n - deepstack_object_kitchen_latest.png\n - deepstack_object_kitchen_none.png\n - deepstack_object_lounge_latest.png\n - deepstack_object_lounge_none.png\n - deepstack_object_upstairs_latest.png\n - deepstack_object_upstairs_none.png\n - README.md\n mode: single", "config": [] }, { "id": "'1588859384208'", "automation": "- id: '1588859384208'\n alias: 'Time: Reset Morning Run'\n description: ''\n triggers:\n - trigger: time\n at: 04:59:00\n conditions: []\n actions:\n - parallel:\n - action: input_boolean.turn_on\n entity_id: input_boolean.enable_morning_routine\n data: {}\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: :sunny: Reset\n morning routine run flag'\n log_level: Debug\n mode: single", "config": [ { "name": "Enable Morning Routine", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_morning_routine", "device_id": null } } ] }, { "id": "'1582406380123'", "automation": "- id: '1582406380123'\n alias: 'Timed: Turn Off Downstairs Lights at 2am'\n description: Fall back to turn off all lights should there be any connectivity issues\n etc.\n triggers:\n - trigger: time\n at: 02:00:00\n id: 2am\n - trigger: time\n at: 03:00:00\n - trigger: time\n at: 04:00:00\n conditions:\n - not:\n - condition: time\n weekday:\n - sun\n - condition: trigger\n id:\n - 2am\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':clock{{ now().strftime(''%I'') | int }}{% if now().minute | int\n > 25 and now().minute | int < 35 %}30{% else %}{% endif %}: Turning downstairs\n light off.'\n log_level: Debug\n - action: scene.turn_on\n target:\n entity_id: scene.turn_off_downstairs_lights\n mode: single", "config": [ { "name": "Turn Off Downstairs Lights", "room": null, "type": "scene", "id": { "entity_id": "scene.turn_off_downstairs_lights", "device_id": null } } ] }, { "id": "'1745396436913'", "automation": "- id: '1745396436913'\n alias: 'Time: Announce Bed Time'\n description: ''\n triggers:\n - trigger: time\n at:\n entity_id: input_datetime.childrens_bed_time\n offset: '-1:15:00'\n id: 1h\n - trigger: time\n at:\n entity_id: input_datetime.childrens_bed_time\n offset: -0:15:00\n id: 0h\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: person.leo\n state: home\n - condition: state\n entity_id: person.ashlee\n state: home\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n - condition: time\n weekday:\n - thu\n - wed\n - tue\n - mon\n - sun\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id:\n - 1h\n sequence:\n - parallel:\n - action: script.send_to_home_log\n metadata: {}\n data:\n log_level: Debug\n message: Sending bed time notification\n - action: script.alexa_announce\n metadata: {}\n data:\n method: speak\n message: It's one hour before bedtime.\n - conditions:\n - condition: trigger\n id:\n - 0h\n sequence:\n - parallel:\n - action: script.send_to_home_log\n metadata: {}\n data:\n log_level: Debug\n message: Sending bed time notification\n - action: script.alexa_announce\n metadata: {}\n data:\n method: speak\n message: It's bed time. Don't forget your reading book.\n mode: single", "config": [ { "name": "leo person", "room": "house", "type": "person", "id": { "entity_id": "person.leo", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "childrens bed time", "room": "house", "type": "input_datetime", "id": { "entity_id": "input_datetime.childrens_bed_time", "device_id": null } }, { "name": "Ashlee", "room": null, "type": "person", "id": { "entity_id": "person.ashlee", "device_id": null } } ] }, { "id": "'1588609147280'", "automation": "- id: '1588609147280'\n alias: 'People: Someone Arrives Home'\n description: Someone is home.\n triggers:\n - trigger: state\n entity_id: group.tracked_people\n from: not_home\n to: home\n conditions:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: armed_away\n - condition: state\n entity_id: input_boolean.enable_home_presence_detection\n state: 'on'\n actions:\n - parallel:\n - choose:\n - conditions:\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: armed_away\n - condition: state\n entity_id: input_boolean.enable_morning_routine\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':house: :running: Someone arrived home.'\n log_level: Debug\n - action: script.set_alarm_to_disarmed_mode\n - conditions:\n - condition: state\n entity_id: input_boolean.enable_morning_routine\n state: 'on'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':house: :running: Someone arrived home before :city_sunrise:\n sunrise.'\n log_level: Debug\n - action: script.set_alarm_to_disarmed_mode\n default: []\n - choose:\n - conditions:\n - condition: state\n entity_id: climate.thermostat\n state: 'off'\n sequence:\n - action: script.send_to_home_log\n data:\n message: Heating is off. Turning heating on.\n title: ':hotsprings: :droplet: Boiler'\n log_level: Debug\n - action: script.set_central_heating_to_home_mode\n default: []\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "thermostat", "room": "house", "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } }, { "name": "Enable Home Presence Detection", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_home_presence_detection", "device_id": null } }, { "name": "Enable Morning Routine", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_morning_routine", "device_id": null } } ] }, { "id": "'1655063863297'", "automation": "- id: '1655063863297'\n alias: 'People: Heading Home'\n description: Triggers when someone has been away for long distance and heading back\n home.\n triggers:\n - trigger: numeric_state\n entity_id: sensor.danny_home_nearest_distance\n below: input_number.distance_close_to_home\n - trigger: numeric_state\n entity_id: sensor.terina_home_nearest_distance\n below: input_number.distance_close_to_home\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.danny_home_nearest_direction_of_travel\n state: towards\n - condition: state\n entity_id: sensor.terina_home_nearest_direction_of_travel\n state: towards\n sequence:\n - action: input_text.set_value\n data:\n value: '{%- if trigger.entity_id == ''sensor.danny_home_nearest_distance''\n -%} person.danny {%- elif trigger.entity_id == ''sensor.terina_home_nearest_distance''\n -%} person.terina {%- endif -%}'\n target:\n entity_id: input_text.origin_address\n - action: input_text.set_value\n data:\n value: zone.home\n target:\n entity_id: input_text.destination_address\n - action: homeassistant.update_entity\n data: {}\n target:\n entity_id: sensor.google_travel_time_by_car\n - action: script.send_to_home_log\n data:\n message: '{%- if trigger.entity_id == ''sensor.danny_home_nearest_distance''\n -%} {{ state_attr(''person.danny'', ''friendly_name'') }} {%- elif trigger.entity_id\n == ''sensor.terina_home_nearest_distance'' -%} {{ state_attr(''person.terina'',\n ''friendly_name'') }} {%- endif -%} is {{ states(''trigger.entity_id'',\n with_unit=True) }} from home and will arrive in {{ states(''sensor.google_travel_time_by_car'',\n with_unit=True) }}.'\n log_level: Debug\n - if:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n then:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Changing to normal mode\n log_level: Debug\n - action: input_select.select_option\n data:\n option: Normal\n target:\n entity_id: input_select.home_mode\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n sequence:\n - action: script.send_direct_notification\n data:\n message: '{%- if trigger.entity_id == ''sensor.danny_home_nearest_distance''\n -%} {{ state_attr(''person.danny'', ''friendly_name'') }} {%- elif trigger.entity_id\n == ''sensor.terina_home_nearest_distance'' -%} {{ state_attr(''person.terina'',\n ''friendly_name'') }} {%- endif -%} is {{ states(''trigger.entity_id'',\n with_unit=True) }} from home and will arrive in {{ states(''sensor.google_travel_time_by_car'',\n with_unit=True) }}.'\n people:\n entity_id:\n - person.danny\n default: []\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "danny home nearest distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.danny_home_nearest_distance", "device_id": null } }, { "name": "terina home nearest distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.terina_home_nearest_distance", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Destination Address", "room": null, "type": "input_text", "id": { "entity_id": "input_text.destination_address", "device_id": null } }, { "name": "Origin Address", "room": null, "type": "input_text", "id": { "entity_id": "input_text.origin_address", "device_id": null } }, { "name": "Danny Home Nearest Direction of Travel", "room": null, "type": "sensor", "id": { "entity_id": "sensor.danny_home_nearest_direction_of_travel", "device_id": null } }, { "name": "Google Travel Time By Car", "room": null, "type": "sensor", "id": { "entity_id": "sensor.google_travel_time_by_car", "device_id": null } }, { "name": "Terina Home Nearest Direction of Travel", "room": null, "type": "sensor", "id": { "entity_id": "sensor.terina_home_nearest_direction_of_travel", "device_id": null } }, { "name": "Trigger Entity ID", "room": null, "type": "trigger", "id": { "entity_id": "trigger.entity_id", "device_id": null } } ] }, { "id": "'1680450183660'", "automation": "- id: '1680450183660'\n alias: 'People: Near Home'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.danny_home_nearest_distance\n below: input_number.distance_almost_to_home\n - trigger: numeric_state\n entity_id: sensor.terina_home_nearest_distance\n below: input_number.distance_almost_to_home\n conditions:\n - or:\n - condition: state\n entity_id: sensor.danny_home_nearest_direction_of_travel\n state: towards\n - condition: state\n entity_id: sensor.terina_home_nearest_direction_of_travel\n state: towards\n - or:\n - condition: state\n entity_id: person.danny\n state: home\n - condition: state\n entity_id: person.terina\n state: home\n actions:\n - action: input_text.set_value\n data:\n value: '{% if trigger.entity_id == ''sensor.danny_home_nearest_distance'' %}\n person.danny {% elif trigger.entity_id == ''sensor.terina_home_nearest_distance''%}\n person.terina {% endif %}'\n target:\n entity_id: input_text.origin_address\n - action: input_text.set_value\n data:\n value: zone.home\n target:\n entity_id: input_text.destination_address\n - action: homeassistant.update_entity\n data: {}\n target:\n entity_id: sensor.google_travel_time_by_car\n - if:\n - condition: state\n entity_id: person.danny\n state: home\n then:\n - action: script.send_to_home_log\n data:\n message: '{% if trigger.entity_id == ''sensor.danny_home_nearest_distance''\n %} {{ state_attr(''person.danny'', ''friendly_name'') }} {% elif trigger.entity_id\n == ''sensor.terina_home_nearest_distance''%} {{ state_attr(''person.terina'',\n ''friendly_name'') }} {% endif %} is {{ states(''trigger.entity_id'', with_unit=True)\n }} from home and will arrive in {{ states(''sensor.google_travel_time_by_car'',\n with_unit=True) }}.'\n log_level: Normal\n people:\n - person.terina\n - if:\n - condition: state\n entity_id: person.terina\n state: home\n then:\n - action: script.send_to_home_log\n data:\n message: '{% if trigger.entity_id == ''sensor.danny_home_nearest_distance''\n %} {{ state_attr(''person.danny'', ''friendly_name'') }} {% elif trigger.entity_id\n == ''sensor.terina_home_nearest_distance''%} {{ state_attr(''person.terina'',\n ''friendly_name'') }} {% endif %} is {{ states(''trigger.entity_id'', with_unit=True)\n }} from home and will arrive in {{ states(''sensor.google_travel_time_by_car'',\n with_unit=True) }}.'\n log_level: Normal\n people:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "danny home nearest distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.danny_home_nearest_distance", "device_id": null } }, { "name": "terina home nearest distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.terina_home_nearest_distance", "device_id": null } }, { "name": "Destination Address", "room": null, "type": "input_text", "id": { "entity_id": "input_text.destination_address", "device_id": null } }, { "name": "Origin Address", "room": null, "type": "input_text", "id": { "entity_id": "input_text.origin_address", "device_id": null } }, { "name": "Danny Home Nearest Direction of Travel", "room": null, "type": "sensor", "id": { "entity_id": "sensor.danny_home_nearest_direction_of_travel", "device_id": null } }, { "name": "Google Travel Time By Car", "room": null, "type": "sensor", "id": { "entity_id": "sensor.google_travel_time_by_car", "device_id": null } }, { "name": "Terina Home Nearest Direction of Travel", "room": null, "type": "sensor", "id": { "entity_id": "sensor.terina_home_nearest_direction_of_travel", "device_id": null } }, { "name": "Trigger Entity ID", "room": null, "type": "trigger", "id": { "entity_id": "trigger.entity_id", "device_id": null } } ] }, { "id": "'1595524992207'", "automation": "- id: '1595524992207'\n alias: 'People: No One Home'\n description: ''\n triggers:\n - trigger: state\n entity_id: group.tracked_people\n for: 00:01:00\n to: not_home\n conditions:\n - condition: state\n entity_id: input_boolean.enable_home_presence_detection\n state: 'on'\n - not:\n - condition: state\n entity_id: device_tracker.udm_pro\n state: unavailable\n actions:\n - parallel:\n - action: script.lock_house\n - action: script.3d_printer_left_unattended\n - action: calendar.get_events\n target:\n entity_id:\n - calendar.tsang_children\n - calendar.family\n data:\n start_date_time: '{{ as_timestamp(now())|timestamp_custom(''%Y-%m-%d %H:%M:%S'')\n }}'\n duration:\n hours: 1\n minutes: 0\n seconds: 0\n response_variable: calendar\n - alias: Check if there's a family calendar event.\n choose:\n - conditions:\n - condition: template\n value_template: '{{ calendar[''calendar.family''].events | count > 0 }}'\n - condition: template\n value_template: '{{ calendar[''calendar.family''].events[0].location is\n not defined }}'\n sequence:\n - action: script.send_direct_notification\n data:\n message: 'No one home and there''s a family event on:\n\n Name: {{ calendar[''calendar.family''].events[0].summary }}\n\n Location: {{ calendar[''calendar.family''].events[0].location | default('''',\n true) }}\n\n Start Time: {{ calendar[''calendar.family''].events[0].start }}\n\n End Time: {{ calendar[''calendar.family''].events[0].end }}'\n people:\n entity_id:\n - person.danny\n default: []\n - alias: Check if there's a children calendar event.\n choose:\n - conditions:\n - condition: template\n value_template: '{{ calendar[''calendar.family''].events | count > 0 }}'\n sequence:\n - action: script.send_direct_notification\n data:\n message: 'No one home and there''s a childrens'' event on:\n\n Name: {{ calendar[''calendar.tsang_children''].events[0].summary }}\n\n Location: {{ calendar[''calendar.tsang_children''].events[0].location\n | default('''', true) }}\n\n Start Time: {{ calendar[''calendar.tsang_children''].events[0].start\n }}\n\n End Time: {{ calendar[''calendar.tsang_children''].events[0].end }}'\n people:\n entity_id:\n - person.danny\n default: []", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } }, { "name": "family calendar", "room": "house", "type": "calendar", "id": { "entity_id": "calendar.family", "device_id": null } }, { "name": "tsang children calendar", "room": "house", "type": "calendar", "id": { "entity_id": "calendar.tsang_children", "device_id": null } }, { "name": "Udm Pro", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.udm_pro", "device_id": null } }, { "name": "Enable Home Presence Detection", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_home_presence_detection", "device_id": null } } ] }, { "id": "'1655063863296'", "automation": "- id: '1655063863296'\n alias: 'People: Long Distance Away From Home'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.danny_home_nearest_distance\n above: input_number.long_distance_away_from_home\n - trigger: numeric_state\n entity_id: sensor.terina_home_nearest_distance\n above: input_number.long_distance_away_from_home\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: sensor.terina_home_nearest_distance\n above: input_number.long_distance_away_from_home\n - condition: numeric_state\n entity_id: sensor.danny_home_nearest_distance\n above: input_number.long_distance_away_from_home\n sequence:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Everyone is far away from home.\n log_level: Normal\n - if:\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n then:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Changing to holiday mode.\n title: Home Mode\n log_level: Normal\n - action: input_select.select_option\n data:\n option: Holiday\n target:\n entity_id: input_select.home_mode\n default: []\n mode: queued\n max: 10", "config": [ { "name": "danny home nearest distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.danny_home_nearest_distance", "device_id": null } }, { "name": "long distance away from home", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.long_distance_away_from_home", "device_id": null } }, { "name": "terina home nearest distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.terina_home_nearest_distance", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } } ] }, { "id": "'1674735382445'", "automation": "- id: '1674735382445'\n alias: 'People: Danny Arriving Home'\n description: Heading towards home and very close.\n triggers:\n - trigger: numeric_state\n entity_id: sensor.danny_home_nearest_distance\n below: input_number.arriving_home_threshold\n conditions:\n - condition: state\n entity_id: input_boolean.enable_alarm_automations\n state: 'on'\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: armed_home\n - condition: state\n entity_id: sensor.danny_home_nearest_direction_of_travel\n state: towards\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Danny is arriving home. Turning alarm off.\n title: ':man: Danny'\n log_level: Normal\n - action: script.set_alarm_to_disarmed_mode\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "enable alarm automations", "room": "house", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_alarm_automations", "device_id": null } }, { "name": "danny home nearest distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.danny_home_nearest_distance", "device_id": null } }, { "name": "Danny Home Nearest Direction of Travel", "room": null, "type": "sensor", "id": { "entity_id": "sensor.danny_home_nearest_direction_of_travel", "device_id": null } } ] }, { "id": "'1581867286886'", "automation": "- id: '1581867286886'\n alias: 'People: Danny Arrives Home'\n description: At Home.\n triggers:\n - trigger: state\n entity_id: person.danny\n from: not_home\n to: home\n conditions:\n - condition: state\n entity_id: input_boolean.enable_home_presence_detection\n state: 'on'\n actions:\n - parallel:\n - if:\n - condition: state\n entity_id: light.living_room_lamps\n state: 'off'\n then:\n - action: script.front_door_lock_status\n data: {}\n - action: script.send_to_home_log\n data:\n message: ':house: :running: Arrived home and it''s dark. Turning Lounge and\n kitchen ambient lights on.'\n title: ':man: Danny'\n log_level: Normal\n - action: script.announce_delayed_notifications\n data:\n people:\n entity_id:\n - person.danny\n test: false\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Enable Home Presence Detection", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_home_presence_detection", "device_id": null } }, { "name": "Living Room Lamps", "room": "Living Room", "type": "light", "id": { "entity_id": "light.living_room_lamps", "device_id": null } }, { "name": "Front Door Lock Status", "room": "Front Door", "type": "script", "id": { "entity_id": "script.front_door_lock_status", "device_id": null } } ] }, { "id": "'1582456019025'", "automation": "- id: '1582456019025'\n alias: 'People: Danny Leaves Home'\n description: ''\n triggers:\n - trigger: state\n entity_id: person.danny\n from: home\n to: not_home\n conditions:\n - condition: state\n entity_id: group.tracked_people\n state: not_home\n actions:\n - parallel:\n - action: scene.turn_on\n target:\n entity_id:\n - scene.turn_off_downstairs_lights\n - scene.office_all_lights_off\n - action: script.send_to_home_log\n data:\n message: ':running: :house: Danny has left the house and no one is home. Turning\n off lights.'\n title: ':man: Danny'\n log_level: Normal", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } }, { "name": "Office All Lights Off", "room": "Office", "type": "scene", "id": { "entity_id": "scene.office_all_lights_off", "device_id": null } }, { "name": "Turn Off Downstairs Lights", "room": null, "type": "scene", "id": { "entity_id": "scene.turn_off_downstairs_lights", "device_id": null } } ] }, { "id": "'1674735382446'", "automation": "- id: '1674735382446'\n alias: 'People: Terina Arriving Home'\n description: Heading towards home and very close.\n triggers:\n - trigger: numeric_state\n entity_id: sensor.terina_home_nearest_distance\n below: input_number.arriving_home_threshold\n conditions:\n - condition: state\n entity_id: input_boolean.enable_alarm_automations\n state: 'on'\n - condition: state\n entity_id: alarm_control_panel.house_alarm\n state: armed_home\n - condition: state\n entity_id: sensor.danny_home_nearest_direction_of_travel\n state: towards\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Terina is arriving home. Turning alarm off.\n title: ':woman: Terina'\n log_level: Normal\n - action: script.set_alarm_to_disarmed_mode\n mode: single", "config": [ { "name": "house alarm", "room": "house", "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.house_alarm", "device_id": null } }, { "name": "enable alarm automations", "room": "house", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_alarm_automations", "device_id": null } }, { "name": "terina home nearest distance", "room": "house", "type": "sensor", "id": { "entity_id": "sensor.terina_home_nearest_distance", "device_id": null } }, { "name": "Danny Home Nearest Direction of Travel", "room": null, "type": "sensor", "id": { "entity_id": "sensor.danny_home_nearest_direction_of_travel", "device_id": null } } ] }, { "id": "'1582754128581'", "automation": "- id: '1582754128581'\n alias: 'People: Terina Arrives Home'\n description: At Home.\n triggers:\n - trigger: state\n entity_id: person.terina\n from: not_home\n to: home\n conditions:\n - condition: numeric_state\n entity_id: sensor.living_room_motion_3_illuminance\n below: '55'\n actions:\n - parallel:\n - if:\n - condition: state\n entity_id: light.living_room_lamps\n state: 'off'\n then:\n - action: script.front_door_lock_status\n data: {}\n - action: script.send_to_home_log\n data:\n message: ':dancer: :house: :bulb: Arrived home and it''s dark. Turning Lounge\n and kitchen ambient lights on.'\n title: ':woman: Terina'\n log_level: Normal\n - action: script.announce_delayed_notifications\n data:\n people:\n entity_id:\n - person.terina\n test: false", "config": [ { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "Living Room Lamps", "room": "Living Room", "type": "light", "id": { "entity_id": "light.living_room_lamps", "device_id": null } }, { "name": "Front Door Lock Status", "room": "Front Door", "type": "script", "id": { "entity_id": "script.front_door_lock_status", "device_id": null } }, { "name": "Living Room Motion 3 Illuminance", "room": "Living Room", "type": "sensor", "id": { "entity_id": "sensor.living_room_motion_3_illuminance", "device_id": null } } ] }, { "id": "'1582456025977'", "automation": "- id: '1582456025977'\n alias: 'People: Terina Leaves Home'\n description: ''\n triggers:\n - trigger: state\n entity_id: person.terina\n from: home\n to: not_home\n conditions:\n - condition: state\n entity_id: group.tracked_people\n state: not_home\n actions:\n - action: scene.turn_on\n target:\n entity_id:\n - scene.turn_off_downstairs_lights\n - scene.office_all_lights_off\n - action: script.send_to_home_log\n data:\n message: ':house: :dancer: Left the house and no one is home.'\n title: ':woman: Terina'\n log_level: Normal", "config": [ { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } }, { "name": "Office All Lights Off", "room": "Office", "type": "scene", "id": { "entity_id": "scene.office_all_lights_off", "device_id": null } }, { "name": "Turn Off Downstairs Lights", "room": null, "type": "scene", "id": { "entity_id": "scene.turn_off_downstairs_lights", "device_id": null } } ] }, { "id": "'1582456025978'", "automation": "- id: '1582456025978'\n alias: 'People: Leo Leaves Home'\n description: ''\n triggers:\n - trigger: state\n entity_id: person.leo\n from: home\n to: not_home\n conditions:\n - condition: state\n entity_id: group.tracked_people\n state: not_home\n actions:\n - action: scene.turn_on\n target:\n entity_id:\n - scene.turn_off_downstairs_lights\n - scene.office_all_lights_off\n - action: script.send_to_home_log\n data:\n message: ':house: :boy: Left the house and no one is home.'\n title: ':boy: Leo'\n log_level: Normal", "config": [ { "name": "leo person", "room": "house", "type": "person", "id": { "entity_id": "person.leo", "device_id": null } }, { "name": "tracked people group", "room": "house", "type": "group", "id": { "entity_id": "group.tracked_people", "device_id": null } }, { "name": "Office All Lights Off", "room": "Office", "type": "scene", "id": { "entity_id": "scene.office_all_lights_off", "device_id": null } }, { "name": "Turn Off Downstairs Lights", "room": null, "type": "scene", "id": { "entity_id": "scene.turn_off_downstairs_lights", "device_id": null } } ] }, { "id": "'1712574983598'", "automation": "- id: '1712574983598'\n alias: 'People: Children Home And In No Children Mode'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - device_tracker.leos_nintendo_switch\n to: home\n from: not_home\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: No Children\n sequence:\n - parallel:\n - action: script.send_to_home_log\n metadata: {}\n data:\n log_level: Debug\n message: Leo's Nintendo Switch came home and in No Children mode. Switching\n to Normal.\n title: People\n - action: input_select.select_option\n metadata: {}\n data:\n option: Normal\n target:\n entity_id: input_select.home_mode\n mode: single", "config": [ { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Leos Nintendo Switch", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.leos_nintendo_switch", "device_id": null } } ] }, { "id": "'1722162099476'", "automation": "- id: '1722162099476'\n alias: 'People: Music Follow Danny'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.dannys_phone_ble_area\n not_to: unknown\n conditions:\n - condition: state\n entity_id: media_player.spotify_danny\n state: playing\n actions:\n - variables:\n target_source: '{{ states(''sensor.dannys_phone_ble_area'') }}'\n adjusted_source: '{%- if target_source|lower == ''office'' and states(''group.jd_computer'')\n == ''home'' -%} JD {%- elif target_source|lower == ''office'' -%} Office Echo\n Show {%- elif target_source|lower == ''living room'' -%} DO NOT CAST {%- else\n -%} {{ target_source }} {%- endif -%}'\n continue_on_error: true\n - if:\n - condition: template\n value_template: '{{ adjusted_source|lower != state_attr(''media_player.spotify_danny'',\n ''source'')|lower }}'\n - condition: template\n value_template: '{{ adjusted_source|lower in state_attr(''media_player.spotify_danny'',\n ''source_list'')|lower }}'\n then:\n - action: media_player.select_source\n data:\n source: '{{ adjusted_source }}'\n target:\n entity_id: media_player.spotify_danny\n mode: single", "config": [ { "name": "jd computer group", "room": "office", "type": "group", "id": { "entity_id": "group.jd_computer", "device_id": null } }, { "name": "Spotify Danny", "room": null, "type": "media_player", "id": { "entity_id": "media_player.spotify_danny", "device_id": null } }, { "name": "Danny's Phone BLE Area", "room": null, "type": "sensor", "id": { "entity_id": "sensor.dannys_phone_ble_area", "device_id": null } } ] }, { "id": "'1757534420170'", "automation": "- id: '1757534420170'\n alias: 'Unifi Protect: Personal Vehicles'\n description: ''\n triggers:\n - trigger: webhook\n allowed_methods:\n - POST\n local_only: true\n webhook_id: personal-vehicles\n conditions:\n - condition: state\n entity_id: input_boolean.enable_unifi_protect_events_automations\n state: 'on'\n actions:\n - action: script.send_to_home_log\n data:\n message: 'Personal vehicles detected\n\n\n Trigger Value: {{ trigger.json.alarm.triggers[0].value }}\n\n Event ID: {{ trigger.json.alarm.triggers[0].eventId }}'\n title: Front Garden\n log_level: Normal\n mode: queued\n max: 10", "config": [ { "name": "Enable Unifi Protect Events Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_unifi_protect_events_automations", "device_id": null } } ] }, { "id": "'1757533154370'", "automation": "- id: '1757533154370'\n alias: 'Unifi Protect: Known Faces'\n description: ''\n triggers:\n - trigger: webhook\n allowed_methods:\n - POST\n local_only: true\n webhook_id: known-faces\n conditions:\n - condition: state\n entity_id: input_boolean.enable_unifi_protect_events_automations\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n sequence:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: 'Unknown person\n\n\n Event ID: {{ trigger.json.alarm.triggers[0].eventId }}\n\n Event Path: {{ trigger.json.alarm.eventPath }}\n\n Event Local Link: {{ trigger.json.alarm.eventLocalLink }}'\n people:\n entity_id:\n - person.danny\n default: []\n mode: queued\n max: 10", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Enable Unifi Protect Events Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_unifi_protect_events_automations", "device_id": null } } ] }, { "id": "'1757533154371'", "automation": "- id: '1757533154371'\n alias: 'Unifi Protect: Unknown Faces'\n description: ''\n triggers:\n - trigger: webhook\n allowed_methods:\n - POST\n local_only: true\n webhook_id: unknown-faces\n conditions:\n - condition: state\n entity_id: input_boolean.enable_unifi_protect_events_automations\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Holiday\n sequence:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: 'Unknown person\n\n\n Event ID: {{ trigger.json.alarm.triggers[0].eventId }}\n\n Event Path: {{ trigger.json.alarm.eventPath }}\n\n Event Local Link: {{ trigger.json.alarm.eventLocalLink }}'\n people:\n entity_id:\n - person.danny\n default: []\n mode: queued\n max: 10", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "home mode", "room": "house", "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Enable Unifi Protect Events Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_unifi_protect_events_automations", "device_id": null } } ] }, { "id": "'1591963855737'", "automation": "- id: '1591963855737'\n alias: 'UPS: Status Change'\n description: Notification of interested states\n triggers:\n - trigger: state\n entity_id:\n - sensor.lounge_ups_status_data\n - sensor.computer_ups_status\n - sensor.server_ups_status_data\n - sensor.threedprinterups_status_data\n - sensor.familycomputerups_status_data\n to: unavailable\n conditions: []\n actions:\n - choose:\n - conditions:\n - alias: Error conditions\n condition: template\n value_template: '{{ states(trigger.entity_id) in (\"OB DISCHRG\", \"OL OFF\",\n \"ALARM OL RB\") }}'\n sequence:\n - action: script.send_direct_notification\n data:\n message: ':battery: Battery is {{ states(''trigger.entity_id'') }}.'\n title: ':bangbang: :battery: UPS: {%- if trigger.entity_id|default('''',\n true) == ''sensor.lounge_ups_status_data'' -%} :couch_and_lamp: Living\n Room {%- elif trigger.entity_id|default('''', true) == ''sensor.server_ups_status_data''\n -%} Server {%- elif trigger.entity_id|default('''', true) == ''sensor.computer_ups_status_data''\n -%} Computer {%- elif trigger.entity_id|default('''', true) == ''sensor.threedprinterups_status_data''\n -%} 3D Printer {%- elif trigger.entity_id|default('''', true) == ''sensor.familycomputerups_status_data''\n -%} :couch_and_lamp: Family Computer {%- else -%} :warning: Unknown device\n {{ trigger.entity_id }} {%- endif -%}\n\n :bangbang:'\n - conditions:\n - alias: Warning conditions\n condition: template\n value_template: '{{ states(trigger.entity_id) in (\"unavailable\", \"OB DISCHRG\",\n \"OL OFF\", \"ALARM OL RB\") }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':battery: Battery is {{ states(''trigger.entity_id'') }}.'\n title: ':warning: :battery: UPS: {%- if trigger.entity_id|default('''',\n true) == ''sensor.lounge_ups_status_data'' -%} :couch_and_lamp: Living\n Room {%- elif trigger.entity_id|default('''', true) == ''sensor.server_ups_status_data''\n -%} Server {%- elif trigger.entity_id|default('''', true) == ''sensor.computer_ups_status_data''\n -%} Computer {%- elif trigger.entity_id|default('''', true) == ''sensor.threedprinterups_status_data''\n -%} 3D Printer {%- elif trigger.entity_id|default('''', true) == ''sensor.familycomputerups_status_data''\n -%} :couch_and_lamp: Family Computer {%- else -%} :warning: Unknown device\n {{ trigger.entity_id }} {%- endif -%} {{ states(''trigger.entity_id'')\n }} :warning:'\n log_level: Normal\n - conditions:\n - alias: Return to normal conditions\n condition: template\n value_template: '{{ states(trigger.entity_id) in (\"OL CHRG\") }}'\n sequence:\n - action: script.send_direct_notification\n data:\n message: ':battery: UPS is {{ states(''trigger.entity_id'') }}.'\n title: ':heavy_check_mark: :battery: UPS: {%- if trigger.entity_id|default('''',\n true) == ''sensor.lounge_ups_status_data'' -%} :couch_and_lamp: Living\n Room {%- elif trigger.entity_id|default('''', true) == ''sensor.server_ups_status_data''\n -%} Server {%- elif trigger.entity_id|default('''', true) == ''sensor.computer_ups_status_data''\n -%} Computer {%- elif trigger.entity_id|default('''', true) == ''sensor.threedprinterups_status_data''\n -%} 3D Printer {%- elif trigger.entity_id|default('''', true) == ''sensor.familycomputerups_status_data''\n -%} :couch_and_lamp: Living Room {%- else -%} :warning: Unknown device\n {{ trigger.entity_id }} {%- endif -%} :heavy_check_mark:'\n - conditions:\n - alias: Return to normal conditions\n condition: template\n value_template: '{{ states(trigger.entity_id) in (\"OL\") }}'\n sequence:\n - action: script.send_to_home_log\n data:\n message: ':battery: UPS is {{ states(''trigger.entity_id'') }}.'\n title: ':battery: UPS: {%- if trigger.entity_id|default('''', true) == ''sensor.lounge_ups_status_data''\n -%} :couch_and_lamp: Living Room {%- elif trigger.entity_id|default('''',\n true) == ''sensor.server_ups_status_data'' -%} Server {%- elif trigger.entity_id|default('''',\n true) == ''sensor.computer_ups_status_data'' -%} Computer {%- elif trigger.entity_id|default('''',\n true) == ''sensor.threedprinterups_status_data'' -%} 3D Printer {%- elif\n trigger.entity_id|default('''', true) == ''sensor.familycomputerups_status_data''\n -%} :couch_and_lamp: Living Room {%- else -%} :warning: Unknown device\n {{ trigger.entity_id }} {%- endif -%}'\n log_level: Normal", "config": [ { "name": "lounge ups status data", "room": "living room", "type": "sensor", "id": { "entity_id": "sensor.lounge_ups_status_data", "device_id": null } }, { "name": "server ups status data", "room": "office", "type": "sensor", "id": { "entity_id": "sensor.server_ups_status_data", "device_id": null } }, { "name": "computer ups status data", "room": "office", "type": "sensor", "id": { "entity_id": "sensor.computer_ups_status_data", "device_id": null } }, { "name": "Computer UPS Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.computer_ups_status", "device_id": null } }, { "name": "Trigger Entity ID", "room": null, "type": "trigger", "id": { "entity_id": "trigger.entity_id", "device_id": null } }, { "name": "Familycomputerups Status Data", "room": null, "type": "sensor", "id": { "entity_id": "sensor.familycomputerups_status_data", "device_id": null } }, { "name": "Threedprinterups Status Data", "room": null, "type": "sensor", "id": { "entity_id": "sensor.threedprinterups_status_data", "device_id": null } } ] }, { "id": "'1741438466512'", "automation": "- id: '1741438466512'\n alias: 'Utility Room: Motion Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.utility\n - binary_sensor.utility_room_motion_occupancy\n - binary_sensor.utility_room_light_trigger\n to: 'on'\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':paw_prints: Motion detected. Turning :bulb: light off.'\n title: ':fountain: Utility Room'\n log_level: Debug\n - action: light.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: light.utility_room_light\n mode: single", "config": [ { "name": "Utility", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility", "device_id": null } }, { "name": "Utility Room Light Trigger", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility_room_light_trigger", "device_id": null } }, { "name": "Utility Room Motion Occupancy", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility_room_motion_occupancy", "device_id": null } }, { "name": "Utility Room Light", "room": "Utility Room", "type": "light", "id": { "entity_id": "light.utility_room_light", "device_id": null } } ] }, { "id": "'1741438515604'", "automation": "- id: '1741438515604'\n alias: 'Utility Room: No Motion Detected'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.utility_room_light_trigger\n to: 'off'\n for:\n hours: 0\n minutes: 2\n seconds: 0\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: ':no_pedestrians: No motion detected. Turning light off.'\n title: ':fountain: Utility Room'\n log_level: Debug\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: light.utility_room_light\n mode: single", "config": [ { "name": "Utility", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility", "device_id": null } }, { "name": "Utility Room Light Trigger", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility_room_light_trigger", "device_id": null } }, { "name": "Utility Room Light", "room": "Utility Room", "type": "light", "id": { "entity_id": "light.utility_room_light", "device_id": null } } ] }, { "id": "'1595678795894'", "automation": "- id: '1595678795894'\n alias: 'Utility: Freezer Door Open'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.utility_freezer_door_contact\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':door: :snowflake: Freezer door is open.'\n title: ':fountain: Utility Room'\n log_level: Debug\n mode: single", "config": [ { "name": "Utility", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility", "device_id": null } }, { "name": "Utility Freezer Door Contact", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility_freezer_door_contact", "device_id": null } } ] }, { "id": "'1595678900777'", "automation": "- id: '1595678900777'\n alias: 'Utility: Freezer Door Closed'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.utility_freezer_door_contact\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':door: :snowflake: Freezer door closed'\n title: ':fountain: Utility Room'\n log_level: Debug\n mode: single", "config": [ { "name": "Utility", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility", "device_id": null } }, { "name": "Utility Freezer Door Contact", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility_freezer_door_contact", "device_id": null } } ] }, { "id": "'1595679010792'", "automation": "- id: '1595679010792'\n alias: 'Utility: Freezer Open For A Long Period Of Time'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.utility_freezer_door_contact\n from: 'off'\n to: 'on'\n for: 00:04:00\n - trigger: state\n entity_id: binary_sensor.utility_freezer_door_contact\n to: 'on'\n for: 00:30:00\n - trigger: state\n entity_id: binary_sensor.utility_freezer_door_contact\n to: 'on'\n for: 00:45:00\n - trigger: state\n entity_id: binary_sensor.utility_freezer_door_contact\n to: 'on'\n for: 01:00:00\n conditions: []\n actions:\n - parallel:\n - action: script.send_direct_notification\n data:\n message: ':warning: :door: :snowflake: Freezer door has been open for more\n than {{ relative_time(states.binary_sensor.utility_freezer_door_contact.last_changed)\n }}!'\n title: ':fountain: Utility Room'\n - action: script.alexa_announce\n data:\n message: Utility Room ❄ Freezer door has been open for more than {{ relative_time(states.binary_sensor.utility_freezer_door_contact.last_changed)\n }}!\n mode: single", "config": [ { "name": "Utility", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility", "device_id": null } }, { "name": "Utility Freezer Door Contact", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility_freezer_door_contact", "device_id": null } } ] }, { "id": "'1657801925106'", "automation": "- id: '1657801925106'\n alias: 'Utility: Freezer Plug Turned Off'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.freezer\n to: 'off'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Freezer plug is turned off.\n title: ':fountain: Utility Room'\n log_level: Normal\n - action: script.send_actionable_notification_with_2_buttons\n data:\n message: Freezer plug is turned off. Turn on?\n title: ':fountain: Utility Room'\n log_level: Normal\n people:\n entity_id:\n - person.danny\n action1_title: 'Yes'\n action1_name: switch_on_freezer\n action2_title: 'No'\n action2_name: ignore\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Freezer", "room": null, "type": "switch", "id": { "entity_id": "switch.freezer", "device_id": null } } ] }, { "id": "'1595679010892'", "automation": "- id: '1595679010892'\n alias: 'Utility: Freezer Open For A Long Period Of Time'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.utility_fridge_door_contact\n from: 'off'\n to: 'on'\n for: 00:04:00\n - trigger: state\n entity_id: binary_sensor.utility_fridge_door_contact\n to: 'on'\n for: 00:30:00\n - trigger: state\n entity_id: binary_sensor.utility_fridge_door_contact\n to: 'on'\n for: 00:45:00\n - trigger: state\n entity_id: binary_sensor.utility_fridge_door_contact\n to: 'on'\n for: 01:00:00\n conditions: []\n actions:\n - parallel:\n - action: script.send_direct_notification\n data:\n message: ':warning: :door: :snowflake: Fridge door has been open for more\n than {{ relative_time(states.binary_sensor.utility_fridge_door_contact.last_changed)\n }}!'\n title: ':fountain: Utility Room'\n - action: script.alexa_announce\n data:\n message: Utility Room ❄ Freezer door has been open for more than {{ relative_time(states.binary_sensor.utility_fridge_door_contact.last_changed)\n }}!\n mode: single", "config": [ { "name": "Utility", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility", "device_id": null } }, { "name": "Utility Fridge Door Contact", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.utility_fridge_door_contact", "device_id": null } } ] }, { "id": "'1657801925107'", "automation": "- id: '1657801925107'\n alias: 'Utility: Fridge Plug Turned Off'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.utility_fridge\n to: 'off'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n conditions: []\n actions:\n - parallel:\n - action: script.send_to_home_log\n data:\n message: Fridge plug is turned off.\n title: ':fountain: Utility Room'\n log_level: Normal\n - action: script.send_actionable_notification_with_2_buttons\n data:\n message: Fridge plug is turned off. Turn on?\n title: ':fountain: Utility Room'\n log_level: Normal\n people:\n entity_id:\n - person.danny\n action1_title: 'Yes'\n action1_name: switch_on_fridge\n action2_title: 'No'\n action2_name: ignore\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Utility Fridge", "room": "Utility Room", "type": "switch", "id": { "entity_id": "switch.utility_fridge", "device_id": null } } ] }, { "id": "'1595679010794'", "automation": "- id: '1595679010794'\n alias: 'Utility: Washing Machine Started'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.washing_machine_powered_on\n to: 'on'\n conditions: []\n actions:\n - action: script.send_to_home_log\n data:\n message: ':shirt: :soap: Washing Machine :arrow_forward: Started.'\n title: Utility Room\n log_level: Debug\n mode: single", "config": [ { "name": "Washing Machine Powered On", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.washing_machine_powered_on", "device_id": null } } ] }, { "id": "'1595679010795'", "automation": "- id: '1595679010795'\n alias: 'Utility: Washing Machine Finished'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.washing_machine_powered_on\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - action: script.washing_complete_notification\n data:\n message: ':shirt: :soap: Washing Machine :checkered_flag: Finished.'\n title: Utility Room\n mode: single", "config": [ { "name": "Washing Machine Powered On", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.washing_machine_powered_on", "device_id": null } } ] }, { "id": "'1622374233311'", "automation": "- id: '1622374233311'\n alias: 'Weather: Forecast To Be Hot'\n description: Watches weather forecast for hot temperatures\n triggers:\n - trigger: numeric_state\n entity_id: weather.home\n attribute: temperature\n above: input_number.forecast_high_temperature\n - trigger: numeric_state\n entity_id: sensor.temperature_forecast_next_hour\n above: input_number.forecast_high_temperature\n - trigger: numeric_state\n entity_id:\n - sensor.front_garden_motion_illuminance\n - sensor.back_garden_motion_illuminance\n above: input_number.close_blinds_brightness_threshold\n conditions:\n - or:\n - condition: numeric_state\n entity_id: weather.home\n attribute: temperature\n above: input_number.forecast_high_temperature\n - condition: numeric_state\n entity_id: sensor.temperature_forecast_next_hour\n above: input_number.forecast_high_temperature\n - condition: state\n entity_id: sensor.season\n state: summer\n actions:\n - parallel:\n - if:\n - condition: numeric_state\n entity_id: sensor.front_garden_motion_illuminance\n above: input_number.close_blinds_brightness_threshold\n then:\n - action: script.bedroom_close_blinds_by_weather\n data:\n temperature: '{{ state_attr(trigger.entity_id, ''temperature'') }}'\n weather_condition: '{{ states(trigger.entity_id) }}'\n - action: script.ashlees_bedroom_close_blinds_by_weather\n data:\n temperature: '{{ state_attr(trigger.entity_id, ''temperature'') }}'\n weather_condition: '{{ states(trigger.entity_id) }}'\n - if:\n - condition: numeric_state\n entity_id: sensor.back_garden_motion_illuminance\n above: input_number.close_blinds_brightness_threshold\n then:\n - action: script.leos_bedroom_close_blinds_by_weather\n data:\n temperature: '{{ state_attr(trigger.entity_id, ''temperature'') }}'\n weather_condition: '{{ states(trigger.entity_id) }}'\n mode: single", "config": [ { "name": "back garden motion illuminance", "room": "back garden", "type": "sensor", "id": { "entity_id": "sensor.back_garden_motion_illuminance", "device_id": null } }, { "name": "close blinds brightness threshold", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.close_blinds_brightness_threshold", "device_id": null } }, { "name": "weather home", "room": "house", "type": "weather", "id": { "entity_id": "weather.home", "device_id": null } }, { "name": "forecast high temperature", "room": "house", "type": "input_number", "id": { "entity_id": "input_number.forecast_high_temperature", "device_id": null } }, { "name": "Front Garden Motion Illuminance", "room": "Front Garden", "type": "sensor", "id": { "entity_id": "sensor.front_garden_motion_illuminance", "device_id": null } }, { "name": "Season", "room": null, "type": "sensor", "id": { "entity_id": "sensor.season", "device_id": null } }, { "name": "Temperature Forecast Next Hour", "room": null, "type": "sensor", "id": { "entity_id": "sensor.temperature_forecast_next_hour", "device_id": null } }, { "name": "Trigger Entity ID", "room": null, "type": "trigger", "id": { "entity_id": "trigger.entity_id", "device_id": null } } ] }, { "id": "'1645568214221'", "automation": "- id: '1645568214221'\n alias: 'Weather: Warning Notification'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.met_office_rss_weather_warnings\n above: 0\n conditions: []\n actions:\n - action: script.send_direct_notification_with_url\n data:\n message: '{{ state_attr(''sensor.met_office_rss_weather_warnings'',''entries'')[0].title\n }}\n\n {{ state_attr(''sensor.met_office_rss_weather_warnings'',''entries'')[0].link\n }}'\n title: ':cloud: Weather'\n people:\n entity_id:\n - person.danny\n - person.terina\n url: '{{state_attr(''sensor.met_office_rss_weather_warnings'', ''entries'')[0].links[1].href\n }}'\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "Met Office RSS Weather Warnings", "room": null, "type": "sensor", "id": { "entity_id": "sensor.met_office_rss_weather_warnings", "device_id": null } } ] }, { "id": "'1734968573793'", "automation": "- id: '1734968573793'\n alias: 'Weather: Storm Warning'\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.bedroom_air_pressure_difference\n above: 4\n conditions: []\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: ':thunder_cloud_and_rain: Storm Alert'\n title: ':cloud: Weather'\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Bedroom Air Pressure Difference", "room": "Bedroom", "type": "sensor", "id": { "entity_id": "sensor.bedroom_air_pressure_difference", "device_id": null } } ] }, { "id": "'1712086876964'", "automation": "- id: '1712086876964'\n alias: 'Zappi: Charging Schedule Started'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.ev_charger_schedule_1\n - binary_sensor.ev_charger_schedule_2\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_zappi_automations\n state: 'on'\n - not:\n - condition: state\n entity_id: sensor.myenergi_zappi_plug_status\n state: EV Disconnected\n - or:\n - and:\n - condition: state\n entity_id: input_boolean.enable_ev_charger_schedule_1\n state: 'on'\n - condition: state\n entity_id: binary_sensor.ev_charger_schedule_1\n state: 'on'\n - and:\n - condition: state\n entity_id: input_boolean.enable_ev_charger_schedule_2\n state: 'on'\n - condition: state\n entity_id: binary_sensor.ev_charger_schedule_2\n state: 'on'\n actions:\n - action: script.zappi_check_ev_charge\n data:\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n current_electricity_export_rate: '{{ states(''sensor.octopus_energy_electricity_export_current_rate'')\n }}'\n mode: single", "config": [ { "name": "EV Charger Schedule 1", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ev_charger_schedule_1", "device_id": null } }, { "name": "EV Charger Schedule 2", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ev_charger_schedule_2", "device_id": null } }, { "name": "Enable EV Charger Schedule 1", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ev_charger_schedule_1", "device_id": null } }, { "name": "Enable EV Charger Schedule 2", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ev_charger_schedule_2", "device_id": null } }, { "name": "Enable Zappi Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_zappi_automations", "device_id": null } }, { "name": "MyEnergi Zappi Plug Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_zappi_plug_status", "device_id": null } }, { "name": "Octopus Energy Electricity Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_current_rate", "device_id": null } }, { "name": "Octopus Energy Electricity Export Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_export_current_rate", "device_id": null } } ] }, { "id": "'1712086876965'", "automation": "- id: '1712086876965'\n alias: 'Zappi: Charging Schedule Stopped'\n description: ''\n trace:\n stored_traces: 10\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.ev_charger_schedule_1\n - binary_sensor.ev_charger_schedule_2\n from: 'on'\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_zappi_automations\n state: 'on'\n - not:\n - condition: state\n entity_id: sensor.myenergi_zappi_plug_status\n state: EV Disconnected\n - not:\n - condition: state\n entity_id: sensor.myenergi_zappi_status\n state: Paused\n - or:\n - condition: state\n entity_id: input_boolean.enable_ev_charger_schedule_1\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_ev_charger_schedule_2\n state: 'on'\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: Charging schedule stopped from {{ state_attr(trigger.entity_id, 'friendly_name')\n }}\n title: 'Zappi: Charging Scheduled Stop'\n people:\n entity_id:\n - person.terina\n - action: myenergi.myenergi_boost\n target:\n entity_id:\n - select.myenergi_zappi_charge_mode\n data:\n amount: 1\n - action: select.select_option\n target:\n entity_id:\n - select.myenergi_zappi_charge_mode\n data:\n option: Eco+\n mode: single", "config": [ { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "EV Charger Schedule 1", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ev_charger_schedule_1", "device_id": null } }, { "name": "EV Charger Schedule 2", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ev_charger_schedule_2", "device_id": null } }, { "name": "Enable EV Charger Schedule 1", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ev_charger_schedule_1", "device_id": null } }, { "name": "Enable EV Charger Schedule 2", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_ev_charger_schedule_2", "device_id": null } }, { "name": "Enable Zappi Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_zappi_automations", "device_id": null } }, { "name": "MyEnergi Zappi Charge Mode", "room": null, "type": "select", "id": { "entity_id": "select.myenergi_zappi_charge_mode", "device_id": null } }, { "name": "MyEnergi Zappi Plug Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_zappi_plug_status", "device_id": null } }, { "name": "MyEnergi Zappi Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_zappi_status", "device_id": null } }, { "name": "Trigger Entity ID", "room": null, "type": "trigger", "id": { "entity_id": "trigger.entity_id", "device_id": null } } ] }, { "id": "'1712435997060'", "automation": "- id: '1712435997060'\n alias: 'Zappi: Connected'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.myenergi_zappi_plug_status\n from: EV Disconnected\n to: EV Connected\n conditions:\n - condition: state\n entity_id: input_boolean.enable_zappi_automations\n state: 'on'\n actions:\n - action: script.zappi_check_ev_charge\n data:\n current_electricity_import_rate: '{{ states(''sensor.octopus_energy_electricity_current_rate'')\n }}'\n current_electricity_import_rate_unit: '{{ state_attr(''sensor.octopus_energy_electricity_current_rate'',\n ''unit_of_measurement'') }}'\n current_electricity_export_rate: '{{ states(''sensor.octopus_energy_electricity_export_current_rate'')\n }}'\n mode: single", "config": [ { "name": "Enable Zappi Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_zappi_automations", "device_id": null } }, { "name": "MyEnergi Zappi Plug Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_zappi_plug_status", "device_id": null } }, { "name": "Octopus Energy Electricity Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_current_rate", "device_id": null } }, { "name": "Octopus Energy Electricity Export Current Rate", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_export_current_rate", "device_id": null } } ] }, { "id": "'1715345710884'", "automation": "- id: '1715345710884'\n alias: 'Zappi: Unidentified Vehicle Connected'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.myenergi_zappi_plug_status\n from: EV Disconnected\n not_to: unavailable\n for:\n minutes: 15\n conditions:\n - condition: state\n entity_id: input_boolean.enable_zappi_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.model_y_charger\n state: 'off'\n - condition: state\n entity_id: binary_sensor.model_3_charger\n state: 'off'\n - condition: state\n entity_id: input_boolean.guest_ev\n state: 'off'\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: Vehicle connected and it's not a recognized car.\n title: Zappi\n people:\n entity_id:\n - person.danny\n - person.terina\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "Model 3 Charger", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.model_3_charger", "device_id": null } }, { "name": "Model Y Charger", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.model_y_charger", "device_id": null } }, { "name": "Enable Zappi Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_zappi_automations", "device_id": null } }, { "name": "Guest EV", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.guest_ev", "device_id": null } }, { "name": "MyEnergi Zappi Plug Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_zappi_plug_status", "device_id": null } } ] }, { "id": "'1715345710885'", "automation": "- id: '1715345710885'\n alias: 'Zappi: Vehicle Disconnected'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.myenergi_zappi_plug_status\n to: EV Disconnected\n conditions:\n - condition: state\n entity_id: input_boolean.enable_zappi_automations\n state: 'on'\n actions:\n - parallel:\n - action: script.send_to_home_log\n metadata: {}\n data:\n message: Vehicle disconnected.\n title: Zappi\n debug: Debug\n - alias: Turn off guest EV mode if it's on\n if:\n - condition: state\n entity_id: input_boolean.guest_ev\n state: 'on'\n then:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.guest_ev\n data: {}\n - alias: Update Predbat mode\n if:\n - condition: state\n entity_id: input_boolean.enable_predbat_automations\n state: 'on'\n then:\n - action: select.select_option\n metadata: {}\n target:\n entity_id: select.predbat_mode\n data:\n option: Control charge & discharge\n mode: single", "config": [ { "name": "Enable Predbat Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_predbat_automations", "device_id": null } }, { "name": "Enable Zappi Automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_zappi_automations", "device_id": null } }, { "name": "Guest EV", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.guest_ev", "device_id": null } }, { "name": "Predbat Mode", "room": null, "type": "select", "id": { "entity_id": "select.predbat_mode", "device_id": null } }, { "name": "MyEnergi Zappi Plug Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_zappi_plug_status", "device_id": null } } ] }, { "id": "'1748515764878'", "automation": "- id: '1748515764878'\n alias: 'Zappi: Set Target Charge Time For Weekday'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.myenergi_zappi_plug_status\n to: EV Connected\n - trigger: state\n entity_id:\n - binary_sensor.model_y_charger\n to: 'on'\n conditions:\n - condition: state\n entity_id: sensor.myenergi_zappi_plug_status\n state: EV Connected\n - condition: state\n entity_id: binary_sensor.model_y_charger\n state: 'on'\n - condition: time\n weekday:\n - sun\n - mon\n - tue\n - wed\n - thu\n - condition: not\n conditions:\n - condition: state\n entity_id: select.octopus_energy_intelligent_target_time\n state: 08:00\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.model_y_charger\n state: 'on'\n sequence:\n - parallel:\n - action: script.send_direct_notification\n metadata: {}\n data:\n title: MyEnergi\n message: Changing Zappi target ready by time to 08:00.\n people:\n entity_id:\n - person.terina\n mode: single", "config": [ { "name": "terina person", "room": "house", "type": "person", "id": { "entity_id": "person.terina", "device_id": null } }, { "name": "Model Y Charger", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.model_y_charger", "device_id": null } }, { "name": "Octopus Energy Intelligent Target Time", "room": null, "type": "select", "id": { "entity_id": "select.octopus_energy_intelligent_target_time", "device_id": null } }, { "name": "MyEnergi Zappi Plug Status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myenergi_zappi_plug_status", "device_id": null } } ] }, { "id": "'1741294780206'", "automation": "- id: '1741294780206'\n alias: Zigbee Coordinator Unavailable\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.zigbee2mqtt_bridge_connection_state\n to: unavailable\n for:\n hours: 0\n minutes: 1\n seconds: 0\n conditions: []\n actions:\n - action: script.send_direct_notification\n metadata: {}\n data:\n message: Zigbee coordinator became unavailable.\n people:\n entity_id:\n - person.danny\n mode: single", "config": [ { "name": "danny person", "room": "house", "type": "person", "id": { "entity_id": "person.danny", "device_id": null } }, { "name": "Zigbee2MQTT Bridge Connection State", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zigbee2mqtt_bridge_connection_state", "device_id": null } } ] } ]