Changes made for recent youtube video on vacation lighting
This commit is contained in:
parent
490e4edc9f
commit
95a6e975e5
|
@ -272,7 +272,7 @@
|
||||||
state: 'off'
|
state: 'off'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: group.family
|
entity_id: group.family
|
||||||
state: 'home'
|
state: home
|
||||||
action:
|
action:
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
data: {}
|
data: {}
|
||||||
|
@ -353,7 +353,8 @@
|
||||||
value: kitchen
|
value: kitchen
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: '{{ "Living" in trigger.to_state.attributes.friendly_name }}'
|
value_template: '{{ "Living" in trigger.to_state.attributes.friendly_name
|
||||||
|
}}'
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_text.set_value
|
- service: input_text.set_value
|
||||||
data:
|
data:
|
||||||
|
@ -361,7 +362,8 @@
|
||||||
value: main
|
value: main
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: '{{ "Master" in trigger.to_state.attributes.friendly_name }}'
|
value_template: '{{ "Master" in trigger.to_state.attributes.friendly_name
|
||||||
|
}}'
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_text.set_value
|
- service: input_text.set_value
|
||||||
data:
|
data:
|
||||||
|
@ -377,7 +379,8 @@
|
||||||
value: croft
|
value: croft
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: '{{ "Skylar" in trigger.to_state.attributes.friendly_name }}'
|
value_template: '{{ "Skylar" in trigger.to_state.attributes.friendly_name
|
||||||
|
}}'
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_text.set_value
|
- service: input_text.set_value
|
||||||
data:
|
data:
|
||||||
|
@ -429,3 +432,124 @@
|
||||||
entity_id: media_player.ha_speaker
|
entity_id: media_player.ha_speaker
|
||||||
default: []
|
default: []
|
||||||
mode: restart
|
mode: restart
|
||||||
|
- id: '1626618008890'
|
||||||
|
alias: Garden Needs Watering
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: time
|
||||||
|
at: '18:00:00'
|
||||||
|
condition:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ (states(''sensor.daily_rainfall'') | int | round(2) + states(''sensor.previous_rainfall'')
|
||||||
|
| int) >= ''.5'' | float}}'
|
||||||
|
action:
|
||||||
|
- service: script.text_notify
|
||||||
|
data:
|
||||||
|
who: all_ios
|
||||||
|
message: The Garden has only received {{ (states('sensor.daily_rainfall') |
|
||||||
|
int | round(2) + states('sensor.previous_rainfall') | int) }} inches of rain
|
||||||
|
in the last 48 hours.
|
||||||
|
mode: single
|
||||||
|
- id: '1627078744808'
|
||||||
|
alias: buy more xlm
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: numeric_state
|
||||||
|
entity_id: sensor.xlm_exchange_rate
|
||||||
|
below: '.20'
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: notify.mobile_app_jeffrey_ha_app
|
||||||
|
data:
|
||||||
|
message: XLM is now at ${{ states('sensor.xlm_exchange_rate') }}!!
|
||||||
|
mode: single
|
||||||
|
- id: '1627080083081'
|
||||||
|
alias: XLM to the Moon
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: numeric_state
|
||||||
|
entity_id: sensor.xlm_price_stats
|
||||||
|
attribute: change
|
||||||
|
above: '20'
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: notify.mobile_app_jeffrey_ha_app
|
||||||
|
data:
|
||||||
|
message: XLM to the Moon!
|
||||||
|
mode: single
|
||||||
|
- id: '1627174942201'
|
||||||
|
alias: run vacation lights
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: sun
|
||||||
|
event: sunset
|
||||||
|
id: sundown
|
||||||
|
- platform: sun
|
||||||
|
event: sunrise
|
||||||
|
id: sunup
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.vacation_mode
|
||||||
|
id: cancel
|
||||||
|
from: 'off'
|
||||||
|
to: 'on'
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: sundown
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.vacation_mode
|
||||||
|
state: 'on'
|
||||||
|
sequence:
|
||||||
|
- service: script.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: script.randomize_vacation_lights
|
||||||
|
- conditions:
|
||||||
|
- condition: or
|
||||||
|
conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: sunup
|
||||||
|
- condition: trigger
|
||||||
|
id: cancel
|
||||||
|
sequence:
|
||||||
|
- service: script.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: script.randomize_vacation_lights
|
||||||
|
default: []
|
||||||
|
mode: single
|
||||||
|
- id: '1627694115326'
|
||||||
|
alias: Skylar Bedtime Announcement
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: time
|
||||||
|
at: input_datetime.skylar_school_bedtime
|
||||||
|
id: school_night
|
||||||
|
- platform: time
|
||||||
|
at: input_datetime.skylar_bedtime_holiday
|
||||||
|
id: no_school
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: sensor.school_tomorrow
|
||||||
|
state: 'on'
|
||||||
|
- condition: trigger
|
||||||
|
id: school_night
|
||||||
|
sequence:
|
||||||
|
- service: script.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: script.skylar_nightly_briefing
|
||||||
|
- conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: sensor.school_tomorrow
|
||||||
|
state: 'off'
|
||||||
|
- condition: trigger
|
||||||
|
id: no_school
|
||||||
|
sequence:
|
||||||
|
- service: script.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: script.skylar_nightly_briefing
|
||||||
|
default: []
|
||||||
|
mode: single
|
||||||
|
|
|
@ -12,13 +12,6 @@ arriving:
|
||||||
entities: []
|
entities: []
|
||||||
|
|
||||||
|
|
||||||
House Conditions:
|
|
||||||
- climate.first_floor
|
|
||||||
- sensor.accurite_back_porch_temperature
|
|
||||||
- sensor.accurite_back_porch_humidity
|
|
||||||
- sensor.accurite_garage_temperature
|
|
||||||
- sensor.accurite_garage_humidity
|
|
||||||
|
|
||||||
occupancy:
|
occupancy:
|
||||||
- binary_sensor.living_room_motion_occupancy
|
- binary_sensor.living_room_motion_occupancy
|
||||||
- binary_sensor.kitchen_motion_occupancy
|
- binary_sensor.kitchen_motion_occupancy
|
||||||
|
@ -96,6 +89,14 @@ livingroom:
|
||||||
- switch.fireplace_lights
|
- switch.fireplace_lights
|
||||||
- switch.rail_lights
|
- switch.rail_lights
|
||||||
|
|
||||||
|
vacation lights:
|
||||||
|
- light.front_door_lamp
|
||||||
|
- light.living_room_lamp
|
||||||
|
- light.living_room_tower_lamp
|
||||||
|
- switch.fireplace_lights
|
||||||
|
- switch.croft_light
|
||||||
|
- light.skylars_dresser_lamp
|
||||||
|
|
||||||
theater lights:
|
theater lights:
|
||||||
- light.theater_lights
|
- light.theater_lights
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,130 @@
|
||||||
|
video_lighting_on:
|
||||||
|
alias: Video Lighting On
|
||||||
|
sequence:
|
||||||
|
- service: light.turn_on
|
||||||
|
data: {}
|
||||||
|
entity_id: light.desk_accent_level_light_color_on_off
|
||||||
|
- service: light.turn_on
|
||||||
|
data: {}
|
||||||
|
entity_id: light.kitchen_sink_level_light_color_on_off
|
||||||
|
- service: light.turn_on
|
||||||
|
data: {}
|
||||||
|
entity_id: light.tower_spotlight_level_on_off
|
||||||
|
- service: switch.turn_on
|
||||||
|
data: {}
|
||||||
|
entity_id: switch.tplink_a2
|
||||||
|
- service: light.turn_on
|
||||||
|
data: {}
|
||||||
|
entity_id: light.kat_lamp
|
||||||
|
- service: light.turn_on
|
||||||
|
data: {}
|
||||||
|
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
|
||||||
|
entity_id: media_player.ha_speaker
|
||||||
|
- service: media_player.volume_set
|
||||||
|
target:
|
||||||
|
entity_id: media_player.ha_speaker
|
||||||
|
data:
|
||||||
|
volume_level: 0.8
|
||||||
|
- service: tts.amazon_polly_say
|
||||||
|
data:
|
||||||
|
entity_id: media_player.ha_speaker
|
||||||
|
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:
|
||||||
|
- 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:
|
||||||
|
minutes: '{{ range(5,59) | random | int }}'
|
||||||
|
- 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
|
||||||
|
randomize_vacation_lights_demo:
|
||||||
|
alias: demo - randomize vacation lights
|
||||||
|
sequence:
|
||||||
|
- repeat:
|
||||||
|
count: '8'
|
||||||
|
sequence:
|
||||||
|
- service: input_text.set_value
|
||||||
|
data:
|
||||||
|
entity_id: input_text.current_random_light
|
||||||
|
value: '{{ state_attr(''group.livingroom'',''entity_id'') | random }}'
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: '{{ states(''input_text.current_random_light'') }}'
|
||||||
|
- delay:
|
||||||
|
seconds: '{{ range(2,5) | random | int }}'
|
||||||
|
- 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
|
Loading…
Reference in New Issue