2115 lines
48 KiB
YAML
2115 lines
48 KiB
YAML
- id: '1686618194582'
|
|
alias: Turn on Livingroom TV
|
|
description: Turns on the livingroom tv when required
|
|
trigger:
|
|
- platform: device
|
|
device_id: 516ac9d51d3bd882ceb88995c0e9a279
|
|
domain: webostv
|
|
type: webostv.turn_on
|
|
condition: []
|
|
action:
|
|
- action: wake_on_lan.send_magic_packet
|
|
data:
|
|
broadcast_port: 9
|
|
mac: b0:37:95:d5:eb:69
|
|
broadcast_address: 255.255.255.255
|
|
mode: single
|
|
- id: '1686618273321'
|
|
alias: Turn on Bedroom TV
|
|
description: ''
|
|
trigger:
|
|
- platform: device
|
|
device_id: 55ba5311202a9ada8dfeb8cb8f8f8943
|
|
domain: webostv
|
|
type: webostv.turn_on
|
|
condition: []
|
|
action:
|
|
- action: wake_on_lan.send_magic_packet
|
|
data:
|
|
broadcast_port: 9
|
|
mac: 58:fd:b1:ab:8e:73
|
|
broadcast_address: 255.255.255.255
|
|
mode: single
|
|
- id: '1686711618853'
|
|
alias: Workout fan auto on
|
|
description: ''
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: sensor.aaron_on_peloton_heart_rate_current
|
|
above: 130
|
|
id: workout_fan_auto_started
|
|
- platform: numeric_state
|
|
entity_id:
|
|
- sensor.thao_on_peloton_heart_rate_current
|
|
above: 130
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.standing_fan_auto_enabled
|
|
state: 'on'
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_select.standing_fan_mode
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id: input_select.standing_fan_mode
|
|
state: unknown
|
|
- condition: or
|
|
conditions:
|
|
- type: is_running
|
|
condition: device
|
|
device_id: 1deeadfbd47d7c685f34e5cde1231e47
|
|
entity_id: 5d26af4dd72c295b10062e9e83ba6efa
|
|
domain: binary_sensor
|
|
- type: is_running
|
|
condition: device
|
|
device_id: e4ea4923eab39ca70ae3805e7cc9a285
|
|
entity_id: 66d2f572455c2a7d225a314d54e4df46
|
|
domain: binary_sensor
|
|
action:
|
|
- action: input_select.select_option
|
|
data:
|
|
option: auto
|
|
target:
|
|
entity_id: input_select.standing_fan_mode
|
|
- action: fan.turn_on
|
|
data: {}
|
|
target:
|
|
device_id: 764b262e94b4094f7b8d88713bad1290
|
|
mode: single
|
|
- id: '1686711777584'
|
|
alias: Workout fan auto off
|
|
description: ''
|
|
triggers:
|
|
- type: not_running
|
|
device_id: e4ea4923eab39ca70ae3805e7cc9a285
|
|
entity_id: binary_sensor.aaron_on_peloton_workout
|
|
domain: binary_sensor
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
id: workout_stopped
|
|
trigger: device
|
|
- type: not_running
|
|
device_id: 1deeadfbd47d7c685f34e5cde1231e47
|
|
entity_id: 5d26af4dd72c295b10062e9e83ba6efa
|
|
domain: binary_sensor
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
trigger: device
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_select.standing_fan_mode
|
|
state: auto
|
|
- condition: not
|
|
conditions:
|
|
- condition: or
|
|
conditions:
|
|
- type: is_running
|
|
condition: device
|
|
device_id: e4ea4923eab39ca70ae3805e7cc9a285
|
|
entity_id: 66d2f572455c2a7d225a314d54e4df46
|
|
domain: binary_sensor
|
|
- type: is_running
|
|
condition: device
|
|
device_id: 1deeadfbd47d7c685f34e5cde1231e47
|
|
entity_id: 5d26af4dd72c295b10062e9e83ba6efa
|
|
domain: binary_sensor
|
|
actions:
|
|
- action: fan.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- fan.living_room_standing_fan
|
|
- action: input_select.select_option
|
|
data:
|
|
option: 'off'
|
|
target:
|
|
entity_id: input_select.standing_fan_mode
|
|
mode: single
|
|
- id: '1686886746116'
|
|
alias: Standing fan on transition
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- fan.living_room_standing_fan
|
|
to: 'on'
|
|
from: null
|
|
condition:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_select.standing_fan_mode
|
|
state: auto
|
|
action:
|
|
- action: input_select.select_option
|
|
data:
|
|
option: 'on'
|
|
target:
|
|
entity_id: input_select.standing_fan_mode
|
|
mode: single
|
|
- id: '1686889578143'
|
|
alias: Standing fan off transition
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- fan.living_room_standing_fan
|
|
to: 'off'
|
|
from: 'on'
|
|
condition: []
|
|
action:
|
|
- action: input_select.select_option
|
|
data:
|
|
option: 'off'
|
|
target:
|
|
entity_id: input_select.standing_fan_mode
|
|
mode: single
|
|
- id: '1686910516025'
|
|
alias: Office unoccupied
|
|
description: ''
|
|
triggers:
|
|
- type: not_occupied
|
|
device_id: ee3ec0a57e41420932d477d269cd70eb
|
|
entity_id: 37f8ec4222f4b6fe5daceb71de99f532
|
|
domain: binary_sensor
|
|
for:
|
|
hours: 1
|
|
minutes: 0
|
|
seconds: 0
|
|
trigger: device
|
|
conditions: []
|
|
actions:
|
|
- action: light.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.office_lights
|
|
- light.office_closet_lights
|
|
- action: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.compressor_plug_relay
|
|
mode: single
|
|
- id: '1686936873918'
|
|
alias: Bedroom receiver off with tv
|
|
description: ''
|
|
trigger:
|
|
- platform: device
|
|
device_id: 55ba5311202a9ada8dfeb8cb8f8f8943
|
|
domain: media_player
|
|
entity_id: media_player.bedroom_tv
|
|
type: turned_off
|
|
condition: []
|
|
action:
|
|
- type: turn_off
|
|
device_id: 29523c412ba5bd7581785ff7c92aded6
|
|
entity_id: remote.bedroom_hub
|
|
domain: remote
|
|
mode: single
|
|
- id: '1686970239679'
|
|
alias: Bedroom filter lights auto on
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- light.bedroom_ceiling_zigbee_group
|
|
from: 'off'
|
|
to: 'on'
|
|
condition:
|
|
- condition: sun
|
|
after: sunrise
|
|
action:
|
|
- action: input_boolean.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.bedroom_filter_lights
|
|
mode: single
|
|
- id: '1686970313828'
|
|
alias: Bedroom filter lights auto off
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- light.bedroom_ceiling_zigbee_group
|
|
to: 'off'
|
|
from: 'on'
|
|
condition:
|
|
- condition: sun
|
|
after: sunset
|
|
action:
|
|
- action: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.bedroom_filter_lights
|
|
mode: single
|
|
- id: '1686971151557'
|
|
alias: 'Livingroom filter lights auto on '
|
|
description: ''
|
|
trigger:
|
|
- platform: sun
|
|
event: sunrise
|
|
offset: 0
|
|
condition: []
|
|
action:
|
|
- action: input_boolean.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.livingroom_filter_lights
|
|
mode: single
|
|
- id: '1686971187922'
|
|
alias: Livingroom filter lights auto off
|
|
description: ''
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: 0
|
|
condition: []
|
|
action:
|
|
- action: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.livingroom_filter_lights
|
|
mode: single
|
|
- id: '1687227766070'
|
|
alias: Kitchen fan power
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.kitchen_fan_power
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.kitchen_fan_power
|
|
state: 'on'
|
|
sequence:
|
|
- action: input_button.press
|
|
data: {}
|
|
target:
|
|
entity_id: input_button.kitchen_fan_on
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.kitchen_fan_power
|
|
state: 'off'
|
|
sequence:
|
|
- action: input_button.press
|
|
data: {}
|
|
target:
|
|
entity_id: input_button.kitchen_fan_off
|
|
mode: single
|
|
- id: '1687228796727'
|
|
alias: Kitchen fan direction
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_select.kitchen_fan_direction
|
|
to: null
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.kitchen_fan_direction
|
|
state: forward
|
|
sequence:
|
|
- action: input_button.press
|
|
data: {}
|
|
target:
|
|
entity_id: input_button.kitchen_fan_in
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.kitchen_fan_direction
|
|
state: reverse
|
|
sequence:
|
|
- action: input_button.press
|
|
data: {}
|
|
target:
|
|
entity_id: input_button.kitchen_fan_out
|
|
mode: single
|
|
- id: '1687229789519'
|
|
alias: Kitchen fan auto mode
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.kitchen_fan_auto_mode
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.kitchen_fan_auto_mode
|
|
state: 'on'
|
|
sequence:
|
|
- action: input_button.press
|
|
data: {}
|
|
target:
|
|
entity_id: input_button.kitchen_fan_auto
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.kitchen_fan_auto_mode
|
|
state: 'off'
|
|
sequence:
|
|
- action: input_button.press
|
|
data: {}
|
|
target:
|
|
entity_id: input_button.kitchen_fan_auto_off
|
|
mode: single
|
|
- id: '1687231247879'
|
|
alias: 'Kitchen fan temperature auto on '
|
|
description: ''
|
|
triggers:
|
|
- entity_id:
|
|
- sensor.thermostat_temperature
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
above: 76
|
|
trigger: numeric_state
|
|
- type: running
|
|
device_id: e4ea4923eab39ca70ae3805e7cc9a285
|
|
entity_id: binary_sensor.aaron_on_peloton_workout
|
|
domain: binary_sensor
|
|
enabled: false
|
|
trigger: device
|
|
- entity_id:
|
|
- binary_sensor.aaron_on_peloton_workout
|
|
to: 'on'
|
|
trigger: state
|
|
conditions: []
|
|
actions:
|
|
- action: input_boolean.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.kitchen_fan_power
|
|
- action: input_select.select_option
|
|
data:
|
|
option: reverse
|
|
target:
|
|
entity_id: input_select.kitchen_fan_direction
|
|
mode: single
|
|
- id: '1687231424056'
|
|
alias: Kitchen fan temperature auto off
|
|
description: ''
|
|
triggers:
|
|
- entity_id:
|
|
- sensor.thermostat_temperature
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
below: 72
|
|
trigger: numeric_state
|
|
- entity_id:
|
|
- sensor.bedroom_temperature
|
|
below: 69
|
|
enabled: false
|
|
trigger: numeric_state
|
|
conditions:
|
|
- condition: state
|
|
entity_id: fan.kitchen_fan
|
|
state: 'on'
|
|
actions:
|
|
- action: fan.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: fan.kitchen_fan
|
|
mode: single
|
|
- id: '1687234802998'
|
|
alias: Sleep mode on
|
|
description: ''
|
|
trigger:
|
|
- platform: time
|
|
at: '22:00:00'
|
|
condition: []
|
|
action:
|
|
- action: switch.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: switch.adaptive_lighting_sleep_mode_bedroom_lamp
|
|
mode: single
|
|
- id: '1687235046134'
|
|
alias: Sleep mode off
|
|
description: ''
|
|
trigger:
|
|
- platform: sun
|
|
event: sunrise
|
|
offset: 0
|
|
condition: []
|
|
action:
|
|
- action: switch.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: switch.adaptive_lighting_sleep_mode_bedroom_lamp
|
|
mode: single
|
|
- id: '1687242459466'
|
|
alias: Apple tv pause bridge
|
|
description: ''
|
|
triggers:
|
|
- entity_id:
|
|
- input_button.livingroom_apple_tv_pause
|
|
trigger: state
|
|
conditions: []
|
|
actions:
|
|
- if:
|
|
- condition: device
|
|
device_id: 7f6b46a822eed331ceb9d0f5e007b161
|
|
domain: media_player
|
|
entity_id: fa2b61fbc334d0190bf011293365fb7d
|
|
type: is_on
|
|
then:
|
|
- type: turn_off
|
|
device_id: 7f6b46a822eed331ceb9d0f5e007b161
|
|
entity_id: b75f0ea555074d8f61a4349376a208b6
|
|
domain: remote
|
|
- data: {}
|
|
action: media_player.turn_on
|
|
target:
|
|
device_id: 7f6b46a822eed331ceb9d0f5e007b161
|
|
- data: {}
|
|
target:
|
|
entity_id:
|
|
- media_player.plex_plex_for_apple_tv_apple_tv
|
|
- media_player.living_room_appletv
|
|
action: media_player.media_pause
|
|
mode: single
|
|
- id: '1687244305614'
|
|
alias: Livingroom apple tv play bridge
|
|
description: ''
|
|
triggers:
|
|
- entity_id:
|
|
- input_button.livingroom_apple_tv_play
|
|
trigger: state
|
|
conditions: []
|
|
actions:
|
|
- data: {}
|
|
target:
|
|
entity_id:
|
|
- media_player.living_room_appletv
|
|
- media_player.plex_plex_for_apple_tv_apple_tv
|
|
action: media_player.media_play
|
|
mode: single
|
|
- id: '1687391684109'
|
|
alias: peloton fan power button
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_button.peloton_fan_power_button
|
|
condition: []
|
|
action:
|
|
- action: rest_command.peloton_fan_power_ir
|
|
data: {}
|
|
mode: single
|
|
- id: '1687395998304'
|
|
alias: peloton fan minus
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_button.peloton_minus_button
|
|
condition: []
|
|
action:
|
|
- action: rest_command.peloton_fan_minus_ir
|
|
data: {}
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 300
|
|
- action: rest_command.peloton_fan_minus_ir
|
|
data: {}
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 300
|
|
- action: rest_command.peloton_fan_minus_ir
|
|
data: {}
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 300
|
|
- action: rest_command.peloton_fan_minus_ir
|
|
data: {}
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 300
|
|
- action: rest_command.peloton_fan_minus_ir
|
|
data: {}
|
|
mode: single
|
|
- id: '1687396160615'
|
|
alias: peloton fan plus
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_button.peloton_fan_plus_button
|
|
condition: []
|
|
action:
|
|
- action: rest_command.peloton_fan_plus_ir
|
|
data: {}
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 300
|
|
- action: rest_command.peloton_fan_plus_ir
|
|
data: {}
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 300
|
|
- action: rest_command.peloton_fan_plus_ir
|
|
data: {}
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 300
|
|
- action: rest_command.peloton_fan_plus_ir
|
|
data: {}
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 300
|
|
- action: rest_command.peloton_fan_plus_ir
|
|
data: {}
|
|
mode: single
|
|
- id: '1687396382954'
|
|
alias: Peloton Fan Auto Off
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.aaron_on_peloton_workout
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
to: 'off'
|
|
from: 'on'
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.thao_on_peloton_workout
|
|
from: 'on'
|
|
to: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
condition:
|
|
- condition: state
|
|
entity_id: fan.peloton_fan
|
|
state: 'on'
|
|
action:
|
|
- action: fan.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: fan.peloton_fan
|
|
mode: single
|
|
- id: '1688520226655'
|
|
alias: Living Room Airconditioner Auto Off
|
|
description: Turn off livingroom AC when window opens
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.living_room_windows
|
|
from: 'off'
|
|
to: 'on'
|
|
condition:
|
|
- condition: device
|
|
device_id: 4b987c6c5611f851761cceac2d341f5e
|
|
domain: climate
|
|
entity_id: climate.livingroom_airconditioner
|
|
type: is_hvac_mode
|
|
hvac_mode: cool
|
|
action:
|
|
- device_id: 4b987c6c5611f851761cceac2d341f5e
|
|
domain: climate
|
|
entity_id: climate.livingroom_airconditioner
|
|
type: set_hvac_mode
|
|
hvac_mode: 'off'
|
|
mode: single
|
|
- id: '1688587556389'
|
|
alias: Bedroom Airconditioner Auto Off
|
|
description: Turn off bedroom AC when a window is opened
|
|
triggers:
|
|
- entity_id:
|
|
- binary_sensor.bedroom_windows
|
|
from: 'off'
|
|
to: 'on'
|
|
trigger: state
|
|
conditions:
|
|
- condition: or
|
|
conditions:
|
|
- condition: device
|
|
device_id: 6833b84bb9fbdfd52286d43e14fa7596
|
|
domain: climate
|
|
entity_id: 4c3f38b88fc0931fe2cc6dbcd3377e26
|
|
type: is_hvac_mode
|
|
hvac_mode: dry
|
|
- condition: device
|
|
device_id: 6833b84bb9fbdfd52286d43e14fa7596
|
|
domain: climate
|
|
entity_id: 4c3f38b88fc0931fe2cc6dbcd3377e26
|
|
type: is_hvac_mode
|
|
hvac_mode: cool
|
|
- condition: device
|
|
device_id: 6833b84bb9fbdfd52286d43e14fa7596
|
|
domain: climate
|
|
entity_id: 4c3f38b88fc0931fe2cc6dbcd3377e26
|
|
type: is_hvac_mode
|
|
hvac_mode: fan_only
|
|
actions:
|
|
- device_id: 6833b84bb9fbdfd52286d43e14fa7596
|
|
domain: climate
|
|
entity_id: 4c3f38b88fc0931fe2cc6dbcd3377e26
|
|
type: set_hvac_mode
|
|
hvac_mode: 'off'
|
|
mode: single
|
|
- id: '1688606850903'
|
|
alias: Bathroom Fan Auto Threshold
|
|
description: ''
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: fan.bathroom_fan
|
|
attribute: percentage
|
|
above: number.bathroom_fan_idle_speed
|
|
condition: []
|
|
action:
|
|
- action: number.set_value
|
|
data:
|
|
value: '{{ states(''sensor.living_room_humidity'')|float + 5.0 }}'
|
|
target:
|
|
entity_id: number.bathroom_fan_humidity_clear_threshold
|
|
enabled: true
|
|
mode: single
|
|
- id: '1689042230107'
|
|
alias: Living Room Ceiling Color Temp
|
|
description: ''
|
|
use_blueprint:
|
|
path: swifty99/RGBW2CTLight.yaml
|
|
input:
|
|
rgbw_2_ct_requested_input: input_number.living_room_ceiling_color_temp
|
|
target_light:
|
|
entity_id: light.living_room_ceiling
|
|
rgbw_2_ct_target_ct:
|
|
- 2000
|
|
- 2500
|
|
- 3000
|
|
- 5000
|
|
- 6535
|
|
rgbw_2_red_calibration:
|
|
- 100
|
|
- 100
|
|
- 100
|
|
- 90
|
|
- 100
|
|
rgbw_2_green_calibration:
|
|
- 64
|
|
- 78
|
|
- 92
|
|
- 94
|
|
- 100
|
|
rgbw_2_blue_calibration:
|
|
- 0
|
|
- 40
|
|
- 64
|
|
- 81
|
|
- 93
|
|
rgbw_2_white_calibration:
|
|
- 69
|
|
- 85
|
|
- 100
|
|
- 89
|
|
- 100
|
|
- id: '1689099025587'
|
|
alias: RGBW Calibration
|
|
description: ''
|
|
use_blueprint:
|
|
path: swifty99/RGBWCalibration.yaml
|
|
input:
|
|
light_cal_r: input_number.red_cal_2
|
|
light_cal_g: input_number.green_cal_2
|
|
light_cal_b: input_number.blue_cal_2
|
|
light_cal_w: input_number.white_cal_2
|
|
light_cal_brightness: input_number.brightness_cal
|
|
target_light:
|
|
entity_id: light.living_room_ceiling
|
|
- id: '1689142844176'
|
|
alias: Peloton Fan Auto On
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.aaron_on_peloton_workout
|
|
to: 'on'
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.thao_on_peloton_workout
|
|
to: 'on'
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
condition:
|
|
- condition: state
|
|
entity_id: fan.peloton_fan
|
|
state: 'off'
|
|
action:
|
|
- action: fan.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: fan.peloton_fan
|
|
mode: single
|
|
- id: '1689211764991'
|
|
alias: Office Light Switch
|
|
description: ''
|
|
use_blueprint:
|
|
path: richlee91/zha_lutron_aurora_blueprint - toggle.yaml
|
|
input:
|
|
sensitivity: 1
|
|
remote: 4ff060ba2568dbebf963963b35f9272a
|
|
light:
|
|
entity_id: light.office_lights
|
|
- id: '1689213160453'
|
|
alias: Kitchen Light Switch
|
|
description: ''
|
|
use_blueprint:
|
|
path: richlee91/zha_lutron_aurora_blueprint - toggle.yaml
|
|
input:
|
|
remote: 4babd9e8a30d6b7de780827c0e3b14f7
|
|
light:
|
|
entity_id: light.kitchen_lights
|
|
sensitivity: 1
|
|
- id: '1689214043664'
|
|
alias: Hallway Light Switch
|
|
description: ''
|
|
use_blueprint:
|
|
path: richlee91/zha_lutron_aurora_blueprint - toggle.yaml
|
|
input:
|
|
remote: 703190f1d97b8e2d051f4aa18c98041d
|
|
light:
|
|
entity_id: light.hallway_lights
|
|
sensitivity: 1
|
|
- id: '1689220051839'
|
|
alias: Bedroom Light Switch
|
|
description: ''
|
|
use_blueprint:
|
|
path: richlee91/zha_lutron_aurora_blueprint - toggle.yaml
|
|
input:
|
|
remote: 3fc2502d88893fcf95586a983e8d5368
|
|
sensitivity: 1
|
|
light:
|
|
entity_id: light.bedroom_ceiling
|
|
- id: '1689229319560'
|
|
alias: Living Room Light Switch
|
|
description: ''
|
|
use_blueprint:
|
|
path: richlee91/zha_lutron_aurora_blueprint - toggle.yaml
|
|
input:
|
|
remote: f9442f80cbf1b43c6f491e8a7969db51
|
|
light:
|
|
entity_id: light.living_room_lights
|
|
sensitivity: 1
|
|
- id: '1689458270429'
|
|
alias: Bathroom fan return to idle
|
|
description: ''
|
|
triggers:
|
|
- entity_id: fan.bathroom_fan
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
attribute: percentage
|
|
above: number.bathroom_fan_idle_speed
|
|
trigger: numeric_state
|
|
conditions:
|
|
- condition: numeric_state
|
|
entity_id: sensor.bathroom_fan_controller_zone
|
|
above: 0
|
|
below: 2
|
|
actions:
|
|
- action: fan.set_percentage
|
|
data:
|
|
percentage: '{{ states(''number.bathroom_fan_idle_speed'') }}'
|
|
target:
|
|
entity_id: fan.bathroom_fan
|
|
- action: fan.set_direction
|
|
data:
|
|
direction: forward
|
|
target:
|
|
entity_id: fan.bathroom_fan
|
|
mode: single
|
|
- id: '1689729580504'
|
|
alias: Aaron arrives home
|
|
description: ''
|
|
trigger:
|
|
- platform: zone
|
|
entity_id: person.aaron_solochek
|
|
zone: zone.home
|
|
event: enter
|
|
- platform: state
|
|
entity_id:
|
|
- device_tracker.aarons_watch
|
|
from: not_home
|
|
to: home
|
|
enabled: false
|
|
condition: []
|
|
action:
|
|
- action: light.turn_on
|
|
data: {}
|
|
target:
|
|
area_id:
|
|
- hallway
|
|
- living_room
|
|
- kitchen
|
|
mode: single
|
|
- id: '1689729841116'
|
|
alias: Aaron leaves home
|
|
description: ''
|
|
triggers:
|
|
- entity_id: person.aaron_solochek
|
|
zone: zone.home
|
|
event: leave
|
|
trigger: zone
|
|
conditions: []
|
|
actions:
|
|
- action: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.aaron_s_home
|
|
- if:
|
|
- condition: state
|
|
entity_id: input_boolean.thao_s_home
|
|
state: 'off'
|
|
then:
|
|
- action: light.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.all_lights
|
|
mode: single
|
|
- id: '1689914996388'
|
|
alias: Kitchen Fan Off Trigger
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.kitchen_fan_power
|
|
to: 'off'
|
|
condition: []
|
|
action:
|
|
- action: input_button.press
|
|
data: {}
|
|
target:
|
|
entity_id: input_button.kitchen_fan_off
|
|
mode: single
|
|
- id: '1689915056014'
|
|
alias: Kitchen Fan On Trigger
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.kitchen_fan_power
|
|
to: 'on'
|
|
condition: []
|
|
action:
|
|
- action: input_button.press
|
|
data: {}
|
|
target:
|
|
entity_id: input_button.kitchen_fan_on
|
|
mode: single
|
|
- id: '1690373246907'
|
|
alias: Bedroom fans auto off
|
|
description: ''
|
|
trigger:
|
|
- platform: time
|
|
at: 05:30:00
|
|
condition:
|
|
- condition: numeric_state
|
|
entity_id: sensor.bedroom_air_quality_temperature
|
|
below: 67
|
|
action:
|
|
- action: cover.close_cover
|
|
data: {}
|
|
target:
|
|
entity_id: cover.bedroom_closet_window
|
|
- action: switch.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: switch.bedroom_fan_plug
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 5
|
|
milliseconds: 0
|
|
- action: switch.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: switch.bedroom_fan_plug
|
|
mode: single
|
|
- id: '1691371154961'
|
|
alias: Bedroom Humidity Correction
|
|
description: Reads the humidity/temp from the espresense device and corrects it
|
|
for actual room temperature
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- sensor.espresense_bedroom_humidity
|
|
condition: []
|
|
action:
|
|
- action: pyscript.humidity_correction
|
|
data:
|
|
dest_id: input_number.bedroom_corrected_humidity
|
|
initial_humidity: sensor.espresense_bedroom_humidity
|
|
initial_temperature: sensor.espresense_bedroom_temperature
|
|
new_temperature: sensor.bedroom_ecobee_temperature
|
|
mode: single
|
|
- id: '1691879070103'
|
|
alias: Bedroom Air Conditioner Turned on
|
|
description: ''
|
|
triggers:
|
|
- device_id: 6833b84bb9fbdfd52286d43e14fa7596
|
|
domain: climate
|
|
entity_id: 4c3f38b88fc0931fe2cc6dbcd3377e26
|
|
type: hvac_mode_changed
|
|
to: cool
|
|
trigger: device
|
|
conditions:
|
|
- condition: state
|
|
entity_id: cover.bedroom_closet_window
|
|
state: open
|
|
actions:
|
|
- data: {}
|
|
target:
|
|
entity_id: cover.bedroom_closet_window
|
|
action: cover.close_cover
|
|
mode: single
|
|
- id: '1691882214924'
|
|
alias: 'Bedroom Closet fans on '
|
|
description: 'Turn off AC if fans are turned on '
|
|
triggers:
|
|
- entity_id:
|
|
- fan.bedroom_closet_fans
|
|
from: 'off'
|
|
to: 'on'
|
|
trigger: state
|
|
conditions:
|
|
- condition: device
|
|
device_id: 6833b84bb9fbdfd52286d43e14fa7596
|
|
domain: climate
|
|
entity_id: 4c3f38b88fc0931fe2cc6dbcd3377e26
|
|
type: is_hvac_mode
|
|
hvac_mode: cool
|
|
actions:
|
|
- action: climate.set_hvac_mode
|
|
data:
|
|
hvac_mode: 'off'
|
|
target:
|
|
entity_id: climate.bedroom_air_conditioner
|
|
mode: single
|
|
- id: '1693694108785'
|
|
alias: Living room purifier auto on
|
|
description: ''
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: sensor.living_room_air_quality_index
|
|
above: 30
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
condition: []
|
|
action:
|
|
- action: fan.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: fan.living_room_purifier
|
|
mode: single
|
|
- id: '1693694154040'
|
|
alias: 'Bedroom Purifier auto on '
|
|
description: ''
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: sensor.bedroom_air_quality_aqi
|
|
above: 30
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
condition: []
|
|
action:
|
|
- action: fan.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: fan.bedroom_purifier
|
|
mode: single
|
|
- id: '1693694232661'
|
|
alias: Living room purifier auto off
|
|
description: ''
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: sensor.living_room_air_quality_index
|
|
below: 5
|
|
condition: []
|
|
action:
|
|
- action: fan.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: fan.living_room_purifier
|
|
mode: single
|
|
- id: '1693694272863'
|
|
alias: Bedroom Purifier auto off
|
|
description: ''
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: sensor.bedroom_air_quality_aqi
|
|
below: 5
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
condition:
|
|
- condition: state
|
|
entity_id: fan.bedroom_purifier
|
|
state: 'on'
|
|
action:
|
|
- action: fan.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- fan.bedroom_purifier_for_homekit
|
|
mode: single
|
|
- id: '1694549588237'
|
|
alias: Dawn Tasks
|
|
description: ''
|
|
triggers:
|
|
- event: sunrise
|
|
offset: '3600'
|
|
trigger: sun
|
|
conditions: []
|
|
actions:
|
|
- action: light.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: light.front_porch
|
|
- action: switch.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.adaptive_lighting_sleep_mode_bedroom
|
|
- switch.adaptive_lighting_sleep_mode_bedroom_lamp
|
|
- switch.adaptive_lighting_sleep_mode_hallway
|
|
- switch.adaptive_lighting_sleep_mode_kitchen
|
|
- switch.adaptive_lighting_sleep_mode_living_room
|
|
- switch.adaptive_lighting_sleep_mode_office
|
|
enabled: false
|
|
mode: single
|
|
- id: '1694549692218'
|
|
alias: Dusk Tasks
|
|
description: ''
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: '-3600'
|
|
condition: []
|
|
action:
|
|
- data:
|
|
brightness_pct: 100
|
|
target:
|
|
entity_id: light.front_porch
|
|
action: light.turn_on
|
|
mode: single
|
|
- id: '1694560280897'
|
|
alias: Bedroom Closet Motion Light On
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.bedroom_closet_window_closet_motion
|
|
to: 'on'
|
|
condition: []
|
|
action:
|
|
- action: light.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.bedroom_closet_light
|
|
mode: single
|
|
- id: '1694560354122'
|
|
alias: Bedroom Closet Motion Light Off
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.bedroom_closet_window_closet_motion
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
to: 'off'
|
|
- platform: time_pattern
|
|
minutes: /5
|
|
condition:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: light.bedroom_closet_light
|
|
state: 'on'
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
- condition: state
|
|
entity_id: binary_sensor.bedroom_closet_window_closet_motion
|
|
state: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
action:
|
|
- action: light.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: light.bedroom_closet_light
|
|
mode: single
|
|
- id: '1695651606674'
|
|
alias: Sunrise Actions
|
|
description: ''
|
|
trigger:
|
|
- platform: sun
|
|
event: sunrise
|
|
offset: '0'
|
|
condition: []
|
|
action:
|
|
- action: switch.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.adaptive_lighting_sleep_mode_bedroom
|
|
- switch.adaptive_lighting_sleep_mode_bedroom_lamp
|
|
- switch.adaptive_lighting_sleep_mode_hallway
|
|
- switch.adaptive_lighting_sleep_mode_kitchen
|
|
- switch.adaptive_lighting_sleep_mode_living_room
|
|
- switch.adaptive_lighting_sleep_mode_office
|
|
- action: input_boolean.turn_off
|
|
target:
|
|
entity_id: input_boolean.auto_lights_disabled
|
|
data: {}
|
|
mode: single
|
|
- id: '1695651659423'
|
|
alias: Sunset Actions
|
|
description: ''
|
|
triggers:
|
|
- event: sunset
|
|
offset: '0'
|
|
trigger: sun
|
|
conditions: []
|
|
actions:
|
|
- action: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.compressor_plug_relay
|
|
mode: single
|
|
- id: '1697851358987'
|
|
alias: Thao's Home
|
|
description: ''
|
|
triggers:
|
|
- entity_id:
|
|
- device_tracker.thao_watch
|
|
from: null
|
|
to: home
|
|
trigger: state
|
|
- entity_id:
|
|
- device_tracker.thao_phone
|
|
from: null
|
|
to: home
|
|
trigger: state
|
|
- entity_id:
|
|
- sensor.thaos_phone
|
|
to: null
|
|
from: not_home
|
|
trigger: state
|
|
- entity_id:
|
|
- sensor.thaos_watch
|
|
to: null
|
|
from: not_home
|
|
trigger: state
|
|
conditions:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.thao_s_home
|
|
state: 'off'
|
|
enabled: false
|
|
- condition: state
|
|
entity_id: input_boolean.thao_s_home
|
|
state: 'off'
|
|
actions:
|
|
- action: notify.mobile_app_ham
|
|
data:
|
|
message: Thao's Home
|
|
- action: input_boolean.turn_on
|
|
target:
|
|
entity_id:
|
|
- input_boolean.thao_s_home
|
|
data: {}
|
|
mode: single
|
|
- id: '1701253992219'
|
|
alias: Bathroom Displays Invert
|
|
description: ''
|
|
trigger:
|
|
- platform: time
|
|
at: 08:00:00
|
|
- platform: time
|
|
at: '20:00:00'
|
|
condition: []
|
|
action:
|
|
- action: switch.toggle
|
|
data: {}
|
|
target:
|
|
entity_id: switch.bathroom_fan_display_invert
|
|
mode: single
|
|
- id: '1704920718213'
|
|
alias: Someone Comes Home
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.thao_s_home
|
|
from: 'off'
|
|
to: 'on'
|
|
id: thao_arrived_home
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.aaron_s_home
|
|
from: 'off'
|
|
to: 'on'
|
|
id: aaron_arrived_home
|
|
conditions:
|
|
- condition: or
|
|
conditions:
|
|
- condition: sun
|
|
after: sunset
|
|
- condition: numeric_state
|
|
entity_id: sensor.living_room_presence_light_sensor
|
|
below: 10
|
|
- condition: numeric_state
|
|
entity_id: sensor.kitchen_presence_light_sensor
|
|
below: 10
|
|
- condition: and
|
|
conditions:
|
|
- condition: trigger
|
|
id:
|
|
- thao_arrived_home
|
|
- condition: state
|
|
entity_id: input_boolean.aaron_s_home
|
|
state: 'off'
|
|
- condition: and
|
|
conditions:
|
|
- condition: trigger
|
|
id:
|
|
- aaron_arrived_home
|
|
- condition: state
|
|
entity_id: input_boolean.thao_s_home
|
|
state: 'off'
|
|
actions:
|
|
- wait_for_trigger:
|
|
- type: opened
|
|
device_id: c4fc2ed608a793675ded3c0623a42ebf
|
|
entity_id: 804077174d2bb120d98f6fe6750f98bd
|
|
domain: binary_sensor
|
|
trigger: device
|
|
continue_on_timeout: false
|
|
timeout:
|
|
hours: 0
|
|
minutes: 4
|
|
seconds: 0
|
|
milliseconds: 0
|
|
- if:
|
|
- condition: state
|
|
entity_id: input_boolean.auto_lights_disabled
|
|
state: 'off'
|
|
then:
|
|
- action: script.welcome_lights
|
|
data: {}
|
|
mode: single
|
|
- id: '1706996915630'
|
|
alias: Disable Welcome Lights At Night
|
|
description: Disable the welcome lights when someone goes to walk the dog
|
|
triggers:
|
|
- entity_id:
|
|
- device_tracker.aarons_watch
|
|
- device_tracker.thao_watch
|
|
- device_tracker.ham_ble
|
|
from: home
|
|
to: not_home
|
|
trigger: state
|
|
- device_id: 22777d2f3d0cd0034f66e7efd6c85664
|
|
domain: device_tracker
|
|
entity_id: fc0f8236c2c84530a7812e15ec94b0bd
|
|
type: leaves
|
|
trigger: device
|
|
zone: zone.home
|
|
- entity_id:
|
|
- sensor.thao_s_phone
|
|
to: not_home
|
|
trigger: state
|
|
conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: numeric_state
|
|
entity_id: sensor.living_room_presence_light_sensor
|
|
below: 10
|
|
- condition: numeric_state
|
|
entity_id: sensor.kitchen_presence_light_sensor
|
|
below: 10
|
|
- condition: time
|
|
after: 00:00:00
|
|
before: 06:00:00
|
|
weekday:
|
|
- sun
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
- sat
|
|
actions:
|
|
- action: input_boolean.turn_on
|
|
target:
|
|
entity_id: input_boolean.auto_lights_disabled
|
|
data: {}
|
|
mode: single
|
|
- id: '1711506282692'
|
|
alias: Grow Light On
|
|
description: ''
|
|
triggers:
|
|
- at: '10:00:00'
|
|
trigger: time
|
|
conditions: []
|
|
actions:
|
|
- action: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.grow_lights
|
|
mode: single
|
|
- id: '1711506319291'
|
|
alias: Grow Light Off
|
|
description: ''
|
|
triggers:
|
|
- at: '16:00:00'
|
|
trigger: time
|
|
conditions: []
|
|
actions:
|
|
- action: switch.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: switch.grow_lights
|
|
mode: single
|
|
- id: '1712364725887'
|
|
alias: Thao Leaves
|
|
description: ''
|
|
triggers:
|
|
- entity_id:
|
|
- device_tracker.thao_watch
|
|
from: home
|
|
to: null
|
|
trigger: state
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
- entity_id:
|
|
- device_tracker.thao_phone
|
|
from: home
|
|
to: null
|
|
trigger: state
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: device_tracker.thao_phone
|
|
state: not_home
|
|
- condition: state
|
|
entity_id: device_tracker.thao_phone
|
|
state: unavailable
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: device_tracker.thao_watch
|
|
state: not_home
|
|
- condition: state
|
|
entity_id: device_tracker.thao_watch
|
|
state: unavailable
|
|
actions:
|
|
- action: input_boolean.turn_off
|
|
target:
|
|
entity_id:
|
|
- input_boolean.thao_s_home
|
|
data: {}
|
|
mode: single
|
|
- id: '1725390359299'
|
|
alias: Office Air Conditioner Turns On
|
|
description: ''
|
|
triggers:
|
|
- device_id: 4d342d88be4e71bf65993a020f1fc6b9
|
|
domain: climate
|
|
entity_id: 757b2309cadeda1a7daa9008ca7ff6fe
|
|
type: hvac_mode_changed
|
|
to: cool
|
|
trigger: device
|
|
conditions:
|
|
- condition: state
|
|
state: open
|
|
entity_id: cover.office_window
|
|
actions:
|
|
- data: {}
|
|
action: cover.close_cover
|
|
target:
|
|
device_id: 16d8400cc7d608972a9bd92665f9be76
|
|
mode: single
|
|
- id: '1725390531625'
|
|
alias: Office Window Opens
|
|
description: ''
|
|
triggers:
|
|
- device_id: 16d8400cc7d608972a9bd92665f9be76
|
|
domain: cover
|
|
entity_id: 8213b9ba02ce5d0ddf7f2eb05e7f82dd
|
|
type: opening
|
|
trigger: device
|
|
conditions:
|
|
- condition: device
|
|
device_id: 4d342d88be4e71bf65993a020f1fc6b9
|
|
domain: climate
|
|
entity_id: 757b2309cadeda1a7daa9008ca7ff6fe
|
|
type: is_hvac_mode
|
|
hvac_mode: cool
|
|
actions:
|
|
- device_id: 4d342d88be4e71bf65993a020f1fc6b9
|
|
domain: climate
|
|
entity_id: 757b2309cadeda1a7daa9008ca7ff6fe
|
|
type: set_hvac_mode
|
|
hvac_mode: 'off'
|
|
mode: single
|
|
- id: '1725390709722'
|
|
alias: Office High Temperature
|
|
description: ''
|
|
triggers:
|
|
- entity_id:
|
|
- sensor.office_air_quality_temperature
|
|
above: 82
|
|
trigger: numeric_state
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
conditions: []
|
|
actions:
|
|
- device_id: 4d342d88be4e71bf65993a020f1fc6b9
|
|
domain: climate
|
|
entity_id: 757b2309cadeda1a7daa9008ca7ff6fe
|
|
type: set_hvac_mode
|
|
hvac_mode: cool
|
|
mode: single
|
|
- id: '1725394841935'
|
|
alias: Office Low Temperature
|
|
description: ''
|
|
triggers:
|
|
- entity_id:
|
|
- sensor.office_air_quality_temperature
|
|
below: 71
|
|
trigger: numeric_state
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
conditions:
|
|
- condition: device
|
|
device_id: 4d342d88be4e71bf65993a020f1fc6b9
|
|
domain: climate
|
|
entity_id: 757b2309cadeda1a7daa9008ca7ff6fe
|
|
type: is_hvac_mode
|
|
hvac_mode: cool
|
|
actions:
|
|
- device_id: 4d342d88be4e71bf65993a020f1fc6b9
|
|
domain: climate
|
|
entity_id: 757b2309cadeda1a7daa9008ca7ff6fe
|
|
type: set_hvac_mode
|
|
hvac_mode: 'off'
|
|
mode: single
|
|
- id: '1727422190427'
|
|
alias: Thao WFH Begin
|
|
description: ''
|
|
triggers:
|
|
- entity_id:
|
|
- device_tracker.thaos_work_laptop
|
|
from: not_home
|
|
to: home
|
|
trigger: state
|
|
- entity_id:
|
|
- binary_sensor.10_3_1_31
|
|
to: 'on'
|
|
from: null
|
|
trigger: state
|
|
conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: time
|
|
after: 08:00:00
|
|
before: '17:00:00'
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
- sat
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: sensor.thaos_phone
|
|
state: living_room
|
|
- condition: state
|
|
entity_id: sensor.thaos_phone
|
|
state: hallway
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: sensor.ham
|
|
state: ''
|
|
actions:
|
|
- action: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.cat_camera_privacy_mode
|
|
- action: notify.mobile_app_ham
|
|
data:
|
|
message: Thao's WFH Begin
|
|
mode: single
|
|
- id: '1727422854484'
|
|
alias: Thao WFH End
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- device_tracker.thaos_work_laptop
|
|
from: home
|
|
to: not_home
|
|
enabled: true
|
|
- platform: state
|
|
entity_id:
|
|
- device_tracker.thaos_work_laptop
|
|
from: home
|
|
to: unknown
|
|
enabled: true
|
|
- platform: state
|
|
entity_id:
|
|
- device_tracker.thaos_work_laptop
|
|
from: home
|
|
to: unavailable
|
|
enabled: true
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.10_3_1_31
|
|
to: 'off'
|
|
from: null
|
|
condition:
|
|
- condition: state
|
|
entity_id: switch.cat_camera_privacy_mode
|
|
state: 'on'
|
|
action:
|
|
- action: switch.turn_off
|
|
target:
|
|
entity_id:
|
|
- switch.cat_camera_privacy_mode
|
|
data: {}
|
|
- action: notify.mobile_app_ham
|
|
data:
|
|
message: Thao's WFH End
|
|
mode: single
|
|
- id: '1727486858594'
|
|
alias: Thao WFH Force Stop
|
|
description: Stop WFH at 5
|
|
trigger:
|
|
- platform: time
|
|
at: '17:00:00'
|
|
condition:
|
|
- condition: state
|
|
entity_id: switch.cat_camera_privacy_mode
|
|
state: 'on'
|
|
action:
|
|
- action: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.cat_camera_privacy_mode
|
|
- action: automation.trigger
|
|
target:
|
|
entity_id: automation.thao_wfh_stop
|
|
data:
|
|
skip_condition: true
|
|
mode: single
|
|
- id: '1729886597169'
|
|
alias: Thao Leaves 2
|
|
description: Detect leaving based on espresense
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- sensor.thaos_phone
|
|
from: null
|
|
to: not_home
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
- trigger: state
|
|
entity_id:
|
|
- sensor.thaos_watch
|
|
from: null
|
|
to: not_home
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: sensor.thaos_phone
|
|
state: not_home
|
|
- condition: state
|
|
entity_id: sensor.thaos_watch
|
|
state: not_home
|
|
actions:
|
|
- action: input_boolean.turn_off
|
|
target:
|
|
entity_id:
|
|
- input_boolean.thao_s_home
|
|
data: {}
|
|
mode: single
|
|
- id: '1729887658095'
|
|
alias: Aaron's Home
|
|
description: ''
|
|
triggers:
|
|
- entity_id:
|
|
- device_tracker.aarons_watch
|
|
from: null
|
|
to: home
|
|
trigger: state
|
|
- entity_id:
|
|
- device_tracker.ham
|
|
from: null
|
|
to: home
|
|
trigger: state
|
|
- entity_id:
|
|
- sensor.ham
|
|
to: null
|
|
from: not_home
|
|
trigger: state
|
|
- entity_id:
|
|
- sensor.aarons_watch
|
|
to: null
|
|
from: not_home
|
|
trigger: state
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.aaron_s_home
|
|
state: 'off'
|
|
actions:
|
|
- action: notify.mobile_app_ham
|
|
data:
|
|
message: Thao's Home
|
|
enabled: false
|
|
- action: input_boolean.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.aaron_s_home
|
|
- wait_for_trigger:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.front_door
|
|
from: 'off'
|
|
to: 'on'
|
|
timeout:
|
|
hours: 0
|
|
minutes: 4
|
|
seconds: 0
|
|
milliseconds: 0
|
|
continue_on_timeout: false
|
|
- if:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.auto_lights_disabled
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id: input_boolean.thao_s_home
|
|
state: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 5
|
|
seconds: 0
|
|
then:
|
|
- action: script.welcome_lights
|
|
data: {}
|
|
mode: single
|
|
- id: '1729887755553'
|
|
alias: Aaron Leaves
|
|
description: Detect leaving based on espresense
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- sensor.ham
|
|
from: null
|
|
to: not_home
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
- trigger: state
|
|
entity_id:
|
|
- sensor.aarons_watch
|
|
from: null
|
|
to: not_home
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
- trigger: state
|
|
entity_id:
|
|
- sensor.ham_area
|
|
attribute: area_name
|
|
to: Unknown
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
- device_id: 605e8c94e02dcc3898d14db2036107f2
|
|
domain: device_tracker
|
|
entity_id: c3e540f98f2ab10eaf40b7576e43504a
|
|
type: leaves
|
|
trigger: device
|
|
zone: zone.home
|
|
- trigger: state
|
|
entity_id:
|
|
- sensor.aarons_watch_area
|
|
to: unknown
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: sensor.ham
|
|
state: not_home
|
|
- condition: state
|
|
entity_id: sensor.aarons_watch
|
|
state: not_home
|
|
- condition: state
|
|
entity_id: sensor.ham_area
|
|
attribute: area_name
|
|
state: Unknown
|
|
- condition: state
|
|
entity_id: sensor.aarons_watch_area
|
|
attribute: area_name
|
|
state: Unknown
|
|
actions:
|
|
- action: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.aaron_s_home
|
|
mode: single
|
|
- id: '1730532459264'
|
|
alias: Cat Bed Auto-On
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- switch.cat_bed
|
|
from: 'on'
|
|
to: 'off'
|
|
conditions: []
|
|
actions:
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
milliseconds: 0
|
|
- action: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.cat_bed
|
|
mode: single
|
|
- id: '1737060759730'
|
|
alias: Database Maintenance
|
|
description: ''
|
|
triggers:
|
|
- trigger: time
|
|
at: 04:00:00
|
|
conditions: []
|
|
actions:
|
|
- action: recorder.purge_entities
|
|
data:
|
|
keep_days: 30
|
|
mode: single
|
|
- id: '1737355222486'
|
|
alias: Laundry Machine Trigger Off
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.laundry_machine_plug_power
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
below: 1
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.laundry_running
|
|
state: 'on'
|
|
actions:
|
|
- action: input_boolean.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.laundry_running
|
|
- action: notify.notify
|
|
continue_on_error: true
|
|
metadata: {}
|
|
data:
|
|
message: Laundry machine finished
|
|
- action: notify.tv
|
|
continue_on_error: true
|
|
metadata: {}
|
|
data:
|
|
message: Laundry is finished
|
|
mode: single
|
|
- id: '1738096219384'
|
|
alias: Laundry Machine Trigger On
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.laundry_machine_plug_power
|
|
for:
|
|
hours: 0
|
|
minutes: 2
|
|
seconds: 0
|
|
above: 1
|
|
conditions: []
|
|
actions:
|
|
- action: input_boolean.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.laundry_running
|
|
mode: single
|
|
- id: '1738562985812'
|
|
alias: Turn off stove light
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.kitchen_presence_occupancy
|
|
from: 'on'
|
|
to: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 2
|
|
seconds: 0
|
|
conditions:
|
|
- condition: state
|
|
entity_id: light.kitchen_stove_hood_light_enable
|
|
state: 'on'
|
|
actions:
|
|
- action: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: light.kitchen_stove_hood_light_enable
|
|
mode: single
|
|
- id: '1745369287814'
|
|
alias: Dishwasher Trigger On
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.main_panel_20_dishwasher_power
|
|
for:
|
|
hours: 0
|
|
minutes: 2
|
|
seconds: 0
|
|
above: 5
|
|
conditions: []
|
|
actions:
|
|
- action: input_boolean.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.dishwasher_running
|
|
mode: single
|
|
- id: '1745369433075'
|
|
alias: Dishwasher Trigger Off
|
|
description: ''
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.main_panel_20_dishwasher_power
|
|
for:
|
|
hours: 0
|
|
minutes: 7
|
|
seconds: 0
|
|
below: 5
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.dishwasher_running
|
|
state: 'on'
|
|
actions:
|
|
- action: input_boolean.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.dishwasher_running
|
|
- action: notify.notify
|
|
continue_on_error: true
|
|
metadata: {}
|
|
data:
|
|
message: Dishwasher finished
|
|
- action: notify.tv
|
|
continue_on_error: true
|
|
metadata: {}
|
|
data:
|
|
message: Dishwasher is finished
|
|
mode: single
|
|
- id: '1743625350097'
|
|
alias: Doorbell Fingerprint Identified
|
|
description: Automation that triggers when a fingerprint is successfully identified
|
|
on the G4 Doorbell Pro
|
|
triggers:
|
|
- event_type: state_changed
|
|
event_data:
|
|
entity_id: event.door_fingerprint
|
|
trigger: event
|
|
conditions:
|
|
- condition: template
|
|
value_template: "{{\n not trigger.event.data.old_state.attributes.get('restored',\
|
|
\ false) and\n not trigger.event.data.old_state.state == 'unavailable' and\n\
|
|
\ trigger.event.data.new_state is not none and\n trigger.event.data.new_state.attributes.event_type\
|
|
\ == 'identified' and\n (trigger.event.data.new_state.attributes.ulp_id|default(''))\
|
|
\ != '' \n}}\n"
|
|
actions:
|
|
- action: unifiprotect.get_user_keyring_info
|
|
data:
|
|
device_id: 60040da037cd882a1a9db147d57940b5
|
|
response_variable: keyring
|
|
- variables:
|
|
user_data: "{{ \n keyring.users | selectattr(\"ulp_id\", \"equalto\", trigger.event.data.new_state.attributes.ulp_id)|\
|
|
\ first\n}}\n"
|
|
- if:
|
|
- condition: template
|
|
value_template: '{{ user_data.user_status == "ACTIVE" }}
|
|
|
|
'
|
|
then:
|
|
- action: notify.notify
|
|
data:
|
|
title: Fingerprint Scan Notification
|
|
message: Front Door Unlocked by {{ user_data.full_name }}
|
|
- action: lock.unlock
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: lock.front_door
|
|
else:
|
|
- action: notify.notify
|
|
data:
|
|
title: Fingerprint Scan Notification
|
|
message: User {{ user_data.full_name }} is marked INACTIVE
|
|
- id: '1743741722757'
|
|
alias: Doorbell NFC Scan
|
|
description: Automation that triggers when an NFC card is successfully identified
|
|
on the G4 Doorbell Pro
|
|
triggers:
|
|
- event_type: state_changed
|
|
event_data:
|
|
entity_id: event.door_nfc
|
|
trigger: event
|
|
conditions:
|
|
- condition: template
|
|
value_template: "{{\n not trigger.event.data.old_state.attributes.get('restored',\
|
|
\ false) and\n not trigger.event.data.old_state.state == 'unavailable' and\n\
|
|
\ trigger.event.data.new_state is not none and\n trigger.event.data.new_state.attributes.event_type\
|
|
\ == 'scanned'\n}}\n"
|
|
actions:
|
|
- action: unifiprotect.get_user_keyring_info
|
|
data:
|
|
device_id: 60040da037cd882a1a9db147d57940b5
|
|
response_variable: keyring
|
|
- variables:
|
|
name: "{% set ns = namespace(name=\"Unknown\") %} {% for user in keyring.users\
|
|
\ if user['keys'] | \n selectattr('key_type', 'eq', 'nfc') | \n selectattr('nfc_id',\
|
|
\ 'eq', trigger.event.data.new_state.attributes.nfc_id) | \n list | first\
|
|
\ | default %}\n {% set ns.name = user.full_name %}\n{% endfor %} {{ ns.name\
|
|
\ }}\n"
|
|
is_valid: "{% set ns = namespace(is_valid=\"false\") %} {% for user in keyring.users\
|
|
\ | selectattr('user_status', 'eq', 'ACTIVE') \n if user['keys'] | \n \
|
|
\ selectattr('key_type', 'eq', 'nfc') | \n selectattr('nfc_id', 'eq', trigger.event.data.new_state.attributes.nfc_id)\
|
|
\ | \n list | first | default %}\n {% set ns.is_valid = \"true\" %}\n\
|
|
{% endfor %} {{ ns.is_valid }}\n"
|
|
- if:
|
|
- condition: template
|
|
value_template: '{{ is_valid == "true" }}
|
|
|
|
'
|
|
then:
|
|
- action: notify.notify
|
|
data:
|
|
title: NFC Scan Notification
|
|
message: Front Door unlocked by {{ name }}
|
|
- action: lock.unlock
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: lock.front_door
|
|
else:
|
|
- action: notify.notify
|
|
data:
|
|
title: NFC Scan Notification
|
|
message: User {{ name }} is marked INACTIVE
|
|
mode: single
|