diff --git a/config/automations.yaml b/config/automations.yaml
index 10a73f9..4c3ce1b 100644
--- a/config/automations.yaml
+++ b/config/automations.yaml
@@ -272,7 +272,7 @@
state: 'off'
- condition: state
entity_id: group.family
- state: 'home'
+ state: home
action:
- service: switch.turn_on
data: {}
@@ -353,7 +353,8 @@
value: kitchen
- conditions:
- condition: template
- value_template: '{{ "Living" in trigger.to_state.attributes.friendly_name }}'
+ value_template: '{{ "Living" in trigger.to_state.attributes.friendly_name
+ }}'
sequence:
- service: input_text.set_value
data:
@@ -361,7 +362,8 @@
value: main
- conditions:
- condition: template
- value_template: '{{ "Master" in trigger.to_state.attributes.friendly_name }}'
+ value_template: '{{ "Master" in trigger.to_state.attributes.friendly_name
+ }}'
sequence:
- service: input_text.set_value
data:
@@ -377,7 +379,8 @@
value: croft
- conditions:
- condition: template
- value_template: '{{ "Skylar" in trigger.to_state.attributes.friendly_name }}'
+ value_template: '{{ "Skylar" in trigger.to_state.attributes.friendly_name
+ }}'
sequence:
- service: input_text.set_value
data:
@@ -429,3 +432,124 @@
entity_id: media_player.ha_speaker
default: []
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
diff --git a/config/groups.yaml b/config/groups.yaml
index e9d0406..5b1ae9c 100755
--- a/config/groups.yaml
+++ b/config/groups.yaml
@@ -12,13 +12,6 @@ arriving:
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:
- binary_sensor.living_room_motion_occupancy
- binary_sensor.kitchen_motion_occupancy
@@ -96,6 +89,14 @@ livingroom:
- switch.fireplace_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:
- light.theater_lights
diff --git a/config/scripts.yaml b/config/scripts.yaml
index e69de29..1a5cc27 100644
--- a/config/scripts.yaml
+++ b/config/scripts.yaml
@@ -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: Welcome Home!
+ - 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: Welcome Home!
+ 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