962 lines
24 KiB
YAML
962 lines
24 KiB
YAML
- alias: Config - Update, Check & Restart
|
|
mode: single
|
|
triggers:
|
|
- trigger: webhook
|
|
allowed_methods:
|
|
- POST
|
|
local_only: false
|
|
webhook_id: -Z7gIJKDlN9QKCG6poK8q67CT
|
|
action:
|
|
- action: shell_command.git_pull
|
|
- action: homeassistant.check_config
|
|
- action: homeassistant.restart
|
|
- alias: Dehumidifier - Basement - Toggle
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- sensor.octopus_energy_electricity_22l3444132_1610012177566_current_rate
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.cheap_electricity
|
|
state: 'on'
|
|
sequence:
|
|
- action: switch.turn_on
|
|
target:
|
|
entity_id: switch.dehumidifier_basement_switch
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.cheap_electricity
|
|
state: 'off'
|
|
sequence:
|
|
- action: switch.turn_off
|
|
target:
|
|
entity_id: switch.dehumidifier_basement_switch
|
|
- alias: Dehumidifier - Bedroom - Toggle
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- schedule.bedroom_dehumidifier
|
|
- trigger: time_pattern
|
|
minutes: /15
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.bedroom_dehumidifier
|
|
state: 'off'
|
|
sequence:
|
|
- action: switch.turn_off
|
|
target:
|
|
entity_id: switch.dehumidifier_bedroom_switch
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.bedroom_dehumidifier
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.bedroom_window_opening
|
|
state: 'off'
|
|
sequence:
|
|
- action: switch.turn_on
|
|
target:
|
|
entity_id: switch.dehumidifier_bedroom_switch
|
|
- alias: Dehumidifier - Bedroom - Window
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.bedroom_window_opening
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.bedroom_window_opening
|
|
state: 'on'
|
|
sequence:
|
|
- action: switch.turn_off
|
|
target:
|
|
entity_id: switch.dehumidifier_bedroom_switch
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.bedroom_window_opening
|
|
state: 'off'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.bedroom_dehumidifier
|
|
state: 'on'
|
|
sequence:
|
|
- action: switch.turn_on
|
|
target:
|
|
entity_id: switch.dehumidifier_bedroom_switch
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.bedroom_dehumidifier
|
|
state: 'off'
|
|
sequence:
|
|
- action: switch.turn_off
|
|
target:
|
|
entity_id: switch.dehumidifier_bedroom_switch
|
|
- alias: Cheap Energy
|
|
description: Determines whether to set the Cheap Electricity switch to on/off
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- sensor.octopus_energy_electricity_22l3444132_1610012177566_current_rate
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: template
|
|
value_template: '{{ states(''sensor.octopus_energy_electricity_22l3444132_1610012177566_current_rate'')
|
|
| float > states(''sensor.average_electricity_rate'') | float }}'
|
|
sequence:
|
|
- action: input_boolean.turn_off
|
|
target:
|
|
entity_id: input_boolean.cheap_electricity
|
|
- conditions:
|
|
- condition: template
|
|
value_template: '{{ states(''sensor.octopus_energy_electricity_22l3444132_1610012177566_current_rate'')
|
|
| float < states(''sensor.average_electricity_rate'') | float }}'
|
|
sequence:
|
|
- action: input_boolean.turn_on
|
|
target:
|
|
entity_id: input_boolean.cheap_electricity
|
|
- alias: Heating - Attic - Schedule
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- schedule.attic_wfh
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.home_state
|
|
- trigger: time_pattern
|
|
minutes: /15
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.attic_wfh
|
|
state: 'on'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 21
|
|
target:
|
|
entity_id: climate.attic
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 18
|
|
target:
|
|
entity_id: climate.attic
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.attic_wfh
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 20
|
|
target:
|
|
entity_id: climate.attic
|
|
- alias: Heating - Basement - Schedule
|
|
mode: single
|
|
triggers:
|
|
- trigger: time_pattern
|
|
minutes: /15
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: numeric_state
|
|
entity_id: sensor.basement_humidity
|
|
above: 70
|
|
- condition: state
|
|
entity_id: switch.dehumidifier_basement_switch
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 21
|
|
target:
|
|
entity_id: climate.basement
|
|
default:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 18
|
|
target:
|
|
entity_id: climate.basement
|
|
- alias: Heating - Bathroom - Schedule
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- schedule.bathroom_boost
|
|
- trigger: time_pattern
|
|
minutes: /15
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.bathroom_boost
|
|
state: 'on'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 25
|
|
target:
|
|
entity_id: climate.bathroom
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 17
|
|
target:
|
|
entity_id: climate.bathroom
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.bathroom_boost
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 19
|
|
target:
|
|
entity_id: climate.bathroom
|
|
- alias: Heating - Bedroom - Schedule
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- schedule.bedroom_daytime
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.home_state
|
|
- trigger: time_pattern
|
|
minutes: /15
|
|
condition:
|
|
- condition: state
|
|
entity_id: binary_sensor.upstairs_windows
|
|
state: 'off'
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.bedroom_daytime
|
|
state: 'on'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 20
|
|
target:
|
|
entity_id: climate.bedroom
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 18
|
|
target:
|
|
entity_id: climate.bedroom
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.bedroom_daytime
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 19
|
|
target:
|
|
entity_id: climate.bedroom
|
|
- alias: Heating - Bedroom - Window
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.upstairs_windows
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.upstairs_windows
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.turn_off
|
|
target:
|
|
entity_id: climate.bedroom
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.upstairs_windows
|
|
state: 'off'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.bedroom_daytime
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 20
|
|
target:
|
|
entity_id: climate.bedroom
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.bedroom_daytime
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 18
|
|
target:
|
|
entity_id: climate.bedroom
|
|
- alias: Heating - Hallway - Schedule
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- schedule.hallway_daytime
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.home_state
|
|
- trigger: time_pattern
|
|
minutes: /15
|
|
condition:
|
|
- condition: state
|
|
entity_id: binary_sensor.living_room_window_opening
|
|
state: 'off'
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.hallway_daytime
|
|
state: 'on'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 21
|
|
target:
|
|
entity_id: climate.hallway
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 18
|
|
target:
|
|
entity_id: climate.hallway
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.hallway_daytime
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 20
|
|
target:
|
|
entity_id: climate.hallway
|
|
- alias: Heating - Hallway - Window
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.living_room_window_opening
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.living_room_window_opening
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.turn_off
|
|
target:
|
|
entity_id: climate.hallway
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.living_room_window_opening
|
|
state: 'off'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.hallway_daytime
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 21
|
|
target:
|
|
entity_id: climate.hallway
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.hallway_daytime
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 20
|
|
target:
|
|
entity_id: climate.hallway
|
|
- alias: Heating - Kitchen - Schedule
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- schedule.kitchen_evening
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.home_state
|
|
- trigger: time_pattern
|
|
minutes: /15
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.kitchen_evening
|
|
state: 'on'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 21
|
|
target:
|
|
entity_id: climate.kitchen
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 19
|
|
target:
|
|
entity_id: climate.kitchen
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.kitchen_evening
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 20
|
|
target:
|
|
entity_id: climate.kitchen
|
|
- alias: Heating - Living Room - Schedule
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- schedule.living_room_evening
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.home_state
|
|
- trigger: time_pattern
|
|
minutes: /15
|
|
condition:
|
|
- condition: state
|
|
entity_id: binary_sensor.living_room_window_opening
|
|
state: 'off'
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.living_room_evening
|
|
state: 'on'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 22
|
|
target:
|
|
entity_id: climate.living_room
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 18
|
|
target:
|
|
entity_id: climate.living_room
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.living_room_evening
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 20
|
|
target:
|
|
entity_id: climate.living_room
|
|
- alias: Heating - Living Room - Window
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.living_room_window_opening
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.living_room_window_opening
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.turn_off
|
|
target:
|
|
entity_id: climate.living_room
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.living_room_window_opening
|
|
state: 'off'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.living_room_evening
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 22
|
|
target:
|
|
entity_id: climate.living_room
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.living_room_evening
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 20
|
|
target:
|
|
entity_id: climate.living_room
|
|
- alias: Heating - Nursery - Schedule
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.home_state
|
|
- trigger: time_pattern
|
|
minutes: /15
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'on'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 21
|
|
target:
|
|
entity_id: climate.nursery
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: 19
|
|
target:
|
|
entity_id: climate.nursery
|
|
- alias: Homekit Presence - Restart
|
|
mode: single
|
|
triggers:
|
|
- trigger: homeassistant
|
|
event: start
|
|
action:
|
|
- parallel:
|
|
- if:
|
|
- condition: state
|
|
entity_id: input_boolean.bertie_present
|
|
state: 'on'
|
|
then:
|
|
- action: device_tracker.see
|
|
data:
|
|
dev_id: homekit_bertie
|
|
location_name: home
|
|
- if:
|
|
- condition: state
|
|
entity_id: input_boolean.stoof_present
|
|
state: 'on'
|
|
then:
|
|
- action: device_tracker.see
|
|
data:
|
|
dev_id: homekit_stoof
|
|
location_name: home
|
|
- if:
|
|
- condition: state
|
|
entity_id: input_boolean.housesitter_present
|
|
state: 'on'
|
|
then:
|
|
- action: device_tracker.see
|
|
data:
|
|
dev_id: homekit_housesitter
|
|
location_name: home
|
|
- alias: Homekit Presence - Toggle
|
|
mode: parallel
|
|
max: 10
|
|
triggers:
|
|
- trigger: state
|
|
entity_id: input_boolean.bertie_present
|
|
- trigger: state
|
|
entity_id: input_boolean.stoof_present
|
|
- trigger: state
|
|
entity_id: input_boolean.housesitter_present
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: template
|
|
value_template: '{{ trigger.to_state.state == ''on'' }}'
|
|
sequence:
|
|
- action: device_tracker.see
|
|
data_template:
|
|
dev_id: homekit_{{ trigger.to_state.name }}
|
|
location_name: home
|
|
- conditions:
|
|
- condition: template
|
|
value_template: '{{ trigger.to_state.state == ''off'' }}'
|
|
sequence:
|
|
- action: device_tracker.see
|
|
data_template:
|
|
dev_id: homekit_{{ trigger.to_state.name }}
|
|
location_name: not_home
|
|
- alias: Home State - Update
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- group.family
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: group.family
|
|
state: home
|
|
sequence:
|
|
- action: input_boolean.turn_on
|
|
target:
|
|
entity_id: input_boolean.home_state
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: group.family
|
|
state: not_home
|
|
sequence:
|
|
- action: input_boolean.turn_off
|
|
target:
|
|
entity_id:
|
|
- input_boolean.home_state
|
|
- alias: Lights - Bedroom - Schedule
|
|
mode: single
|
|
triggers:
|
|
- trigger: time
|
|
at: '20:30:00'
|
|
condition:
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: person.bertie
|
|
state: home
|
|
- condition: state
|
|
entity_id: person.stoof
|
|
state: home
|
|
action:
|
|
- action: light.turn_on
|
|
target:
|
|
entity_id:
|
|
- light.bedroom
|
|
data:
|
|
kelvin: 2600
|
|
brightness_pct: 100
|
|
- alias: Lights - Landing - Schedule
|
|
mode: single
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id: sun.sun
|
|
attribute: elevation
|
|
below: 5
|
|
- trigger: time
|
|
at: '21:00:00'
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'on'
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: time
|
|
after: '14:30:00'
|
|
before: '21:00:00'
|
|
sequence:
|
|
- action: light.turn_on
|
|
target:
|
|
entity_id: light.hare
|
|
data:
|
|
kelvin: 2600
|
|
brightness_pct: 70
|
|
- conditions:
|
|
- condition: time
|
|
after: '21:00:00'
|
|
before: 06:00:00
|
|
sequence:
|
|
- action: light.turn_off
|
|
target:
|
|
entity_id:
|
|
- light.hare
|
|
- alias: Lights - Living Room - Schedule
|
|
mode: single
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id: sun.sun
|
|
attribute: elevation
|
|
below: 7
|
|
- trigger: time
|
|
at: 01:00:00
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: light.living_room
|
|
state: 'off'
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: time
|
|
after: '14:30:00'
|
|
before: '23:59:00'
|
|
sequence:
|
|
- action: light.turn_on
|
|
target:
|
|
entity_id: light.living_room
|
|
data:
|
|
kelvin: 2600
|
|
brightness_pct: 70
|
|
- conditions:
|
|
- condition: time
|
|
after: '23:59:00'
|
|
before: 06:00:00
|
|
sequence:
|
|
- action: light.turn_off
|
|
target:
|
|
entity_id:
|
|
- light.living_room
|
|
- alias: Lights - Living Room - TV
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
from: playing
|
|
entity_id:
|
|
- media_player.plex_plex_for_apple_tv_apple_tv
|
|
- trigger: state
|
|
to: playing
|
|
entity_id:
|
|
- media_player.plex_plex_for_apple_tv_apple_tv
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'on'
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: media_player.plex_plex_for_apple_tv_apple_tv
|
|
state: playing
|
|
sequence:
|
|
- action: light.turn_on
|
|
target:
|
|
entity_id: light.living_room
|
|
data:
|
|
kelvin: 2600
|
|
brightness_pct: 30
|
|
default:
|
|
- action: light.turn_on
|
|
target:
|
|
entity_id: light.living_room
|
|
data:
|
|
kelvin: 2600
|
|
brightness_pct: 60
|
|
- alias: Lights - Home - Presence
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.home_state
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'on'
|
|
- condition: numeric_state
|
|
entity_id: sun.sun
|
|
attribute: elevation
|
|
below: 5
|
|
sequence:
|
|
- action: light.turn_on
|
|
target:
|
|
entity_id:
|
|
- light.bedroom
|
|
- light.landing
|
|
- light.living_room
|
|
- light.study_corner
|
|
data:
|
|
brightness_pct: 100
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_state
|
|
state: 'off'
|
|
sequence:
|
|
- action: switch.turn_off
|
|
target:
|
|
entity_id:
|
|
- switch.attic_workstation_switch
|
|
- action: light.turn_off
|
|
target:
|
|
entity_id:
|
|
- light.bedroom
|
|
- light.landing
|
|
- light.living_room
|
|
- light.study
|
|
- alias: Sensor Low Battery
|
|
triggers:
|
|
- trigger: numeric_state
|
|
below: 10
|
|
entity_id:
|
|
- sensor.nursery_window_battery
|
|
- trigger: state
|
|
to: unavailable
|
|
for: 06:00:00
|
|
entity_id:
|
|
- sensor.nursery_window_battery
|
|
action:
|
|
- action: notify.mobile_app_berties_iphone
|
|
data:
|
|
message: 🔋 The {{ state_attr(trigger.entity_id, 'friendly_name') }} level is
|
|
{{ trigger.to_state.state }}
|
|
- alias: Octopus - Wheel of Fortune spins
|
|
mode: single
|
|
triggers:
|
|
- trigger: numeric_state
|
|
above: 0
|
|
entity_id:
|
|
- sensor.octopus_energy_a_e94ebeba_wheel_of_fortune_spins_electricity
|
|
- sensor.octopus_energy_a_e94ebeba_wheel_of_fortune_spins_gas
|
|
action:
|
|
- action: persistent_notification.create
|
|
data:
|
|
title: Wheel of Fortune spins available
|
|
message: Octopus - Wheel of Fortune spins available
|
|
- alias: Hass Startup Notification
|
|
triggers:
|
|
- trigger: homeassistant
|
|
event: shutdown
|
|
action:
|
|
- action: notify.mobile_app_berties_iphone
|
|
data:
|
|
message: 🌶 Home Assistant is shutting down
|
|
- alias: Hass Startup Notification
|
|
triggers:
|
|
- trigger: homeassistant
|
|
event: start
|
|
action:
|
|
- action: notify.mobile_app_berties_iphone
|
|
data:
|
|
message: 🌵 Home Assistant has started
|
|
- alias: Update Available Notification
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- update.home_assistant_core_update
|
|
- update.home_assistant_operating_system_update
|
|
- update.home_assistant_supervisor_update
|
|
to: 'on'
|
|
action:
|
|
- action: notify.mobile_app_berties_iphone
|
|
data:
|
|
message: 🛵 {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
|
- alias: Workstation - Attic - Schedule
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- schedule.attic_wfh
|
|
condition:
|
|
- condition: state
|
|
entity_id: person.bertie
|
|
state: home
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.attic_wfh
|
|
state: 'on'
|
|
sequence:
|
|
- action: switch.turn_on
|
|
target:
|
|
entity_id:
|
|
- switch.attic_workstation_switch
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: schedule.attic_wfh
|
|
state: 'off'
|
|
sequence:
|
|
- action: switch.turn_off
|
|
target:
|
|
entity_id:
|
|
- switch.attic_workstation_switch
|