2021-08-04 19:48:57 +00:00
|
|
|
video_lighting_on:
|
|
|
|
alias: Video Lighting On
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.desk_accent_level_light_color_on_off
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.kitchen_sink_level_light_color_on_off
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.tower_spotlight_level_on_off
|
|
|
|
- service: switch.turn_on
|
|
|
|
entity_id: switch.tplink_a2
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.kat_lamp
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.jeff_lamp_level_light_color_on_off
|
|
|
|
mode: single
|
|
|
|
example_master_bedroom_lights_w_level:
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.jeff_lamp_level_light_color_on_off, light.tower_spotlight_level_on_off,
|
|
|
|
light.kat_lamp
|
|
|
|
data:
|
|
|
|
brightness: '{{ level | int }}'
|
|
|
|
color_temp: 369
|
|
|
|
mode: single
|
|
|
|
alias: Example Master Bedroom Lights with Level
|
|
|
|
tts_notification:
|
|
|
|
sequence:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_text.room_presence
|
|
|
|
state: kitchen
|
|
|
|
sequence:
|
|
|
|
- service: media_player.turn_on
|
|
|
|
entity_id: media_player.kitchen_display
|
|
|
|
- service: media_player.volume_set
|
|
|
|
target:
|
|
|
|
entity_id: media_player.kitchen_display
|
|
|
|
data:
|
|
|
|
volume_level: 0.8
|
|
|
|
- service: tts.amazon_polly_say
|
|
|
|
data:
|
|
|
|
entity_id: media_player.kitchen_display
|
|
|
|
message: <speak> Welcome Home! </speak>
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_text.room_presence
|
|
|
|
state: skylar_bedroom
|
|
|
|
sequence:
|
|
|
|
- service: notify.alexa_media_skylar_s_bedroom
|
|
|
|
data:
|
|
|
|
message: Welcome home!
|
|
|
|
data:
|
|
|
|
type: tts
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_text.room_presence
|
|
|
|
state: main
|
|
|
|
sequence:
|
|
|
|
- service: media_player.turn_on
|
2021-11-12 03:14:21 +00:00
|
|
|
entity_id: media_player.ha_blue
|
2021-08-04 19:48:57 +00:00
|
|
|
- service: media_player.volume_set
|
|
|
|
target:
|
2021-11-12 03:14:21 +00:00
|
|
|
entity_id: media_player.ha_blue
|
2021-08-04 19:48:57 +00:00
|
|
|
data:
|
|
|
|
volume_level: 0.8
|
|
|
|
- service: tts.amazon_polly_say
|
|
|
|
data:
|
2021-11-12 03:14:21 +00:00
|
|
|
entity_id: media_player.ha_blue
|
2021-08-04 19:48:57 +00:00
|
|
|
message: <speak> Welcome Home! </speak>
|
|
|
|
default: []
|
|
|
|
mode: single
|
|
|
|
alias: TTS Notification - Welcome Home
|
|
|
|
randomize_vacation_lights:
|
|
|
|
alias: randomize vacation lights
|
|
|
|
sequence:
|
|
|
|
- repeat:
|
|
|
|
until:
|
|
|
|
- condition: sun
|
|
|
|
after: sunrise
|
|
|
|
sequence:
|
2021-10-17 15:19:07 +00:00
|
|
|
- service: notify.mobile_app_jeffrey_ha_app
|
|
|
|
data:
|
|
|
|
message: Running Vacation Lights
|
2021-08-04 19:48:57 +00:00
|
|
|
- service: input_text.set_value
|
|
|
|
target:
|
|
|
|
entity_id: input_text.current_random_light
|
|
|
|
data:
|
|
|
|
value: '{{ state_attr(''group.vacation_lights'',''entity_id'') | random
|
|
|
|
}}'
|
|
|
|
- service: homeassistant.turn_on
|
|
|
|
data:
|
|
|
|
entity_id: '{{ states(''input_text.current_random_light'') }}'
|
|
|
|
- delay:
|
2021-10-17 15:19:07 +00:00
|
|
|
minutes: '{{ range(1,3) | random | int }}'
|
2021-08-04 19:48:57 +00:00
|
|
|
- service: homeassistant.turn_off
|
|
|
|
data:
|
|
|
|
entity_id: '{{ states(''input_text.current_random_light'') }}'
|
|
|
|
- service: input_text.set_value
|
|
|
|
data:
|
|
|
|
entity_id: input_text.current_random_light
|
|
|
|
value: None
|
|
|
|
mode: single
|
2022-01-19 12:07:44 +00:00
|
|
|
improved_randomize_vacation_lights:
|
|
|
|
alias: improved_randomize vacation lights
|
|
|
|
sequence:
|
|
|
|
- repeat:
|
|
|
|
until:
|
|
|
|
- condition: state
|
|
|
|
entity_id: sun.sun
|
|
|
|
state: 'above_horizon'
|
|
|
|
sequence:
|
|
|
|
- service: notify.mobile_app_jeffrey_ha_app
|
|
|
|
data:
|
|
|
|
message: Running Vacation Lights
|
|
|
|
- service: homeassistant.turn_on
|
|
|
|
data:
|
|
|
|
entity_id: '{{ expand(''group.vacation_lights'') | selectattr(''state'', ''eq'', ''off'') | map(attribute=''entity_id'') | list | random }}'
|
|
|
|
- delay:
|
|
|
|
minutes: '{{ range(1,3) | random | int }}'
|
|
|
|
- service: >
|
2022-01-20 01:30:09 +00:00
|
|
|
{% set service = ['homeassistant.turn_on', 'homeassistant.turn_off' ] | random %}
|
2022-01-19 12:07:44 +00:00
|
|
|
{{ service }}
|
|
|
|
data:
|
|
|
|
entity_id: >
|
|
|
|
{% if service == 'homeassistant.turn_on' %}
|
|
|
|
{{ expand('group.vacation_lights') | selectattr('state', 'eq', 'off') | map(attribute='entity_id') | list | random }}
|
|
|
|
{% else %}
|
|
|
|
{{ expand('group.vacation_lights') | selectattr('state', 'eq', 'on') | map(attribute='entity_id') | list | random }}
|
|
|
|
{% endif %}
|
|
|
|
- delay:
|
|
|
|
minutes: '{{ range(1,3) | random | int }}'
|
|
|
|
mode: single
|
2021-08-04 19:48:57 +00:00
|
|
|
randomize_vacation_lights_demo:
|
|
|
|
alias: demo - randomize vacation lights
|
|
|
|
sequence:
|
|
|
|
- repeat:
|
|
|
|
count: '8'
|
|
|
|
sequence:
|
|
|
|
- service: homeassistant.turn_on
|
|
|
|
data:
|
2022-01-19 12:07:44 +00:00
|
|
|
entity_id: '{{ expand(''group.vacation_lights'') | selectattr(''state'', ''eq'', ''off'') | map(attribute=''entity_id'') | list | random }}'
|
2021-08-04 19:48:57 +00:00
|
|
|
- delay:
|
|
|
|
seconds: '{{ range(2,5) | random | int }}'
|
2022-01-19 12:07:44 +00:00
|
|
|
- service: >
|
2022-02-21 15:39:42 +00:00
|
|
|
{% set service = ['homeassistant.turn_on', 'homeassistant.turn_off' ] | random %}
|
2022-01-19 12:07:44 +00:00
|
|
|
{{ service }}
|
2021-08-04 19:48:57 +00:00
|
|
|
data:
|
2022-01-19 12:07:44 +00:00
|
|
|
entity_id: >
|
|
|
|
{% if service == 'homeassistant.turn_on' %}
|
|
|
|
{{ expand('group.vacation_lights') | selectattr('state', 'eq', 'off') | map(attribute='entity_id') | list | random }}
|
|
|
|
{% else %}
|
|
|
|
{{ expand('group.vacation_lights') | selectattr('state', 'eq', 'on') | map(attribute='entity_id') | list | random }}
|
|
|
|
{% endif %}
|
2021-08-04 19:48:57 +00:00
|
|
|
mode: single
|
2021-10-17 15:19:07 +00:00
|
|
|
activate_arches_lamp:
|
|
|
|
alias: Activate Arches Lamp
|
|
|
|
sequence:
|
|
|
|
- service: media_player.play_media
|
|
|
|
data:
|
|
|
|
media_content_id: activate arches lamp
|
|
|
|
media_content_type: routine
|
|
|
|
entity_id: media_player.living_room_echo
|
|
|
|
mode: single
|
|
|
|
deactivate_arches_lamp:
|
|
|
|
alias: Deactivate Arches Lamp
|
|
|
|
sequence:
|
|
|
|
- service: media_player.play_media
|
|
|
|
data:
|
|
|
|
media_content_id: deactivate arches
|
|
|
|
media_content_type: routine
|
|
|
|
entity_id: media_player.living_room_echo
|
|
|
|
mode: single
|
|
|
|
dog_mode_lighting_on:
|
|
|
|
alias: Dog Mode Lighting On
|
|
|
|
sequence:
|
|
|
|
- condition: state
|
|
|
|
entity_id: sun.sun
|
|
|
|
state: below_horizon
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sentry_mode
|
|
|
|
state: 'on'
|
|
|
|
- service: scene.turn_on
|
|
|
|
entity_id: scene.diminished_kitchen_lighting
|
|
|
|
- service: scene.turn_on
|
2022-01-19 12:07:44 +00:00
|
|
|
entity_id: scene.security_kitchen_lighting
|
|
|
|
open_lr_curtains_lamp:
|
|
|
|
alias: Open Living Room Curtains
|
|
|
|
sequence:
|
|
|
|
- service: media_player.play_media
|
|
|
|
data:
|
|
|
|
media_content_id: open living room curtains
|
|
|
|
media_content_type: custom
|
|
|
|
entity_id: media_player.living_room_echo
|
|
|
|
mode: single
|
|
|
|
close_lr_curtains_lamp:
|
|
|
|
alias: Close Living Room Curtains
|
|
|
|
sequence:
|
|
|
|
- service: media_player.play_media
|
|
|
|
data:
|
|
|
|
media_content_id: close living room curtains
|
|
|
|
media_content_type: custom
|
|
|
|
entity_id: media_player.living_room_echo
|
|
|
|
mode: single
|