2020-04-30 01:40:21 +00:00
|
|
|
|
2019-07-16 01:38:24 +00:00
|
|
|
- id: upstairs_fan_on
|
|
|
|
alias: Upstairs Fan On
|
2019-07-11 11:31:10 +00:00
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- entity_id: binary_sensor.upstairs_occupancy
|
|
|
|
from: 'Off'
|
|
|
|
platform: state
|
|
|
|
to: 'On'
|
|
|
|
condition:
|
2020-08-22 03:33:13 +00:00
|
|
|
- above: 73
|
2019-07-11 11:31:10 +00:00
|
|
|
condition: numeric_state
|
|
|
|
entity_id: sensor.upstairs_temperature
|
|
|
|
action:
|
|
|
|
- data:
|
2019-07-16 01:38:24 +00:00
|
|
|
entity_id: switch.upstairs_fan
|
2019-07-11 11:31:10 +00:00
|
|
|
service: switch.turn_on
|
2020-06-12 20:02:42 +00:00
|
|
|
|
2019-07-11 11:31:10 +00:00
|
|
|
- id: '1562066108032'
|
|
|
|
alias: Living Room Fan On
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- entity_id: binary_sensor.living_room_occupancy
|
|
|
|
from: 'off'
|
|
|
|
platform: state
|
|
|
|
to: 'on'
|
|
|
|
condition:
|
|
|
|
- condition: state
|
2020-06-07 19:30:34 +00:00
|
|
|
entity_id: switch.livingroom_fan
|
2019-07-11 11:31:10 +00:00
|
|
|
state: 'off'
|
2020-08-22 03:33:13 +00:00
|
|
|
- above: 73
|
2020-03-18 02:49:21 +00:00
|
|
|
condition: numeric_state
|
2020-05-18 01:29:52 +00:00
|
|
|
entity_id: sensor.living_room_temperature
|
2019-07-11 11:31:10 +00:00
|
|
|
action:
|
|
|
|
- data:
|
2020-06-07 19:30:34 +00:00
|
|
|
entity_id: switch.livingroom_fan
|
2019-07-11 11:31:10 +00:00
|
|
|
service: switch.turn_on
|
|
|
|
- id: '1562067639239'
|
|
|
|
alias: Upstairs Fan Off
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- entity_id: binary_sensor.upstairs_occupancy
|
2019-07-16 01:38:24 +00:00
|
|
|
from: 'on'
|
2019-07-11 11:31:10 +00:00
|
|
|
platform: state
|
2019-07-16 01:38:24 +00:00
|
|
|
to: 'off'
|
2019-07-11 11:31:10 +00:00
|
|
|
condition:
|
|
|
|
- condition: state
|
2020-06-07 19:30:34 +00:00
|
|
|
entity_id: switch.croft_fan
|
2019-07-16 01:38:24 +00:00
|
|
|
state: 'on'
|
2020-08-22 03:33:13 +00:00
|
|
|
- below: 72
|
2020-03-18 02:49:21 +00:00
|
|
|
condition: numeric_state
|
|
|
|
entity_id: sensor.upstairs_temperature
|
2019-07-11 11:31:10 +00:00
|
|
|
action:
|
|
|
|
- data:
|
2020-06-07 19:30:34 +00:00
|
|
|
entity_id: switch.croft_fan
|
2019-07-11 11:31:10 +00:00
|
|
|
service: switch.turn_off
|
2020-06-12 20:02:42 +00:00
|
|
|
|
2019-07-16 01:38:24 +00:00
|
|
|
|
2019-09-07 19:11:00 +00:00
|
|
|
|
|
|
|
# - id: turn_off_ha_speaker
|
|
|
|
# alias: Turn Off HA Speaker
|
|
|
|
# trigger:
|
|
|
|
# - platform: state
|
|
|
|
# entity_id: media_player.hass_speaker
|
|
|
|
# from: 'playing'
|
|
|
|
# to: 'idle'
|
|
|
|
# action:
|
|
|
|
# - service: media_player.turn_off
|
|
|
|
# entity_id: media_player.hass_speaker
|
|
|
|
# initial_state: true
|
|
|
|
|
|
|
|
- id: turn_off_kitchen_speaker
|
|
|
|
alias: Turn Off Kitchen Display
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: media_player.googlehomehub3492
|
|
|
|
from: 'playing'
|
|
|
|
to: 'idle'
|
|
|
|
action:
|
|
|
|
- service: media_player.turn_off
|
|
|
|
entity_id: media_player.googlehomehub3492
|
|
|
|
initial_state: true
|
|
|
|
|
2019-11-14 01:55:04 +00:00
|
|
|
# - id: turn_off_ha_speaker
|
|
|
|
# alias: Turn Off HA Speaker
|
|
|
|
# trigger:
|
|
|
|
# - platform: state
|
2020-04-02 23:22:02 +00:00
|
|
|
# entity_id: media_player.ha_speaker
|
2019-11-14 01:55:04 +00:00
|
|
|
# from: 'playing'
|
|
|
|
# to: 'idle'
|
|
|
|
# action:
|
|
|
|
# - service: switch.turn_off
|
|
|
|
# entity_id: switch.ha_speaker
|
|
|
|
# - service: media_player.turn_off
|
2020-04-02 23:22:02 +00:00
|
|
|
# entity_id: media_player.ha_speaker
|
2019-11-14 01:55:04 +00:00
|
|
|
# - service: script.kill_this_ride
|
|
|
|
# initial_state: true
|
2019-07-16 01:38:24 +00:00
|
|
|
|
2020-05-28 20:33:50 +00:00
|
|
|
# - id: save_old_covid_stats
|
|
|
|
# alias: Old Covid Stats archive
|
|
|
|
# trigger:
|
|
|
|
# - platform: time
|
|
|
|
# at: '15:12:15'
|
|
|
|
# action:
|
|
|
|
# - service: script.save_old_covid_stats
|
|
|
|
# initial_state: true
|
2020-04-24 18:36:01 +00:00
|
|
|
|
|
|
|
- id: kitchen_occupency_lighting
|
|
|
|
alias: Kitchen Occupency Lighting
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
2020-08-22 03:33:13 +00:00
|
|
|
entity_id: binary_sensor.kitchen_motion
|
2020-04-24 18:36:01 +00:00
|
|
|
to: 'on'
|
|
|
|
action:
|
|
|
|
- service: script.dog_mode_on
|
|
|
|
- service: script.kitchen_lights_on
|
2020-08-22 03:33:13 +00:00
|
|
|
- service: script.kitchen_lights_night
|
|
|
|
|
2020-05-18 01:29:52 +00:00
|
|
|
|
|
|
|
- id: driveway_motion_lighting
|
|
|
|
alias: Driveway Motion Lighting
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.aarlo_motion_driveway
|
|
|
|
to: 'on'
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: sun.sun
|
|
|
|
state: 'below_horizon'
|
|
|
|
action:
|
|
|
|
- service: switch.turn_on
|
2020-08-22 03:33:13 +00:00
|
|
|
entity_id: switch.driveway_light
|
2020-05-18 01:29:52 +00:00
|
|
|
- delay:
|
|
|
|
minutes: 3
|
|
|
|
- service: switch.turn_off
|
2020-08-22 03:33:13 +00:00
|
|
|
entity_id: switch.driveway_light
|
2020-05-18 01:29:52 +00:00
|
|
|
|
|
|
|
|
2020-06-12 20:02:42 +00:00
|
|
|
|
2020-08-22 03:33:13 +00:00
|
|
|
# - id: show_time
|
|
|
|
# alias: Show Time
|
|
|
|
# initial_state: true
|
|
|
|
# trigger:
|
|
|
|
# - platform: state
|
|
|
|
# entity_id: media_player.home_theater
|
|
|
|
# to: 'playing'
|
|
|
|
# condition:
|
|
|
|
# - condition: state
|
|
|
|
# entity_id: light.theater_light
|
|
|
|
# state: 'on'
|
|
|
|
# action:
|
|
|
|
# - service: script.turn_on
|
|
|
|
# entity_id: script.theater_lights_down
|
|
|
|
# - service: script.turn_off
|
|
|
|
# entity_id: script.theater_lights_up
|
2020-06-15 00:39:45 +00:00
|
|
|
|
2020-08-22 03:33:13 +00:00
|
|
|
# - id: show_time start paused
|
|
|
|
# alias: Show Time Start Paused
|
|
|
|
# initial_state: true
|
|
|
|
# trigger:
|
|
|
|
# - platform: state
|
|
|
|
# entity_id: media_player.home_theater
|
|
|
|
# to: 'idle'
|
|
|
|
# condition:
|
|
|
|
# - condition: state
|
|
|
|
# entity_id: script.theater_lights_down
|
|
|
|
# state: 'on'
|
|
|
|
# action:
|
|
|
|
# - service: script.turn_off
|
|
|
|
# entity_id: script.theater_lights_down
|
2020-06-15 00:39:45 +00:00
|
|
|
|
|
|
|
- id: show_time_over
|
|
|
|
alias: Show Time over
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
2020-08-22 03:33:13 +00:00
|
|
|
entity_id: media_player.theater_tv
|
|
|
|
to: 'off'
|
2020-06-15 00:39:45 +00:00
|
|
|
for:
|
2020-08-22 03:33:13 +00:00
|
|
|
minutes: 20
|
2020-06-15 00:39:45 +00:00
|
|
|
action:
|
2020-08-22 03:33:13 +00:00
|
|
|
- service: scene.turn_on
|
|
|
|
entity_id: scene.theater_dark
|
2020-06-15 00:39:45 +00:00
|
|
|
|
|
|
|
- id: theater_fan_on
|
|
|
|
alias: Theater Fan On
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
2020-08-22 03:33:13 +00:00
|
|
|
- above: 74
|
2020-06-15 00:39:45 +00:00
|
|
|
platform: numeric_state
|
|
|
|
entity_id: sensor.theater_temperature
|
2020-08-22 03:33:13 +00:00
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: media_player.theater_tv
|
|
|
|
state: 'on'
|
2020-06-15 00:39:45 +00:00
|
|
|
action:
|
|
|
|
- data:
|
|
|
|
entity_id: switch.theater_fan
|
2020-08-22 03:33:13 +00:00
|
|
|
service: switch.turn_on
|
|
|
|
|
|
|
|
- id: theater_fan_off
|
|
|
|
alias: Theater Fan Off
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- below: 72
|
|
|
|
platform: numeric_state
|
|
|
|
entity_id: sensor.theater_temperature
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: media_player.theater_tv
|
|
|
|
state: 'off'
|
|
|
|
action:
|
|
|
|
- data:
|
|
|
|
entity_id: switch.theater_fan
|
|
|
|
service: switch.turn_on
|
2020-06-15 00:39:45 +00:00
|
|
|
|
|
|
|
- id: theater_light_pressed_up
|
|
|
|
alias: Theater Light Pressed Up
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.theater_light_up
|
|
|
|
action:
|
|
|
|
- service: scene.turn_on
|
|
|
|
entity_id: scene.theater_bright
|
|
|
|
|
|
|
|
- id: theater_light_pressed_down
|
|
|
|
alias: Theater Light Pressed Down
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.theater_light_down
|
|
|
|
action:
|
|
|
|
- service: scene.turn_on
|
|
|
|
entity_id: scene.theater_dark
|