diff --git a/README.md b/README.md
index 9632185..14cc01d 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ ran {% if defined(trigger)%}because {{ trigger.entity_id }} changed{% endif %}{%
```
This is how to actuall do it!
```yaml
- - service: notify.logfile
+ - action: notify.logfile
data_template:
message: >
{{ states("sensor.date_time_iso") }} Computer Area Motion On ran
diff --git a/automations/alerts/something_open_hvac_on.yaml b/automations/alerts/something_open_hvac_on.yaml
index b5c377d..697f885 100644
--- a/automations/alerts/something_open_hvac_on.yaml
+++ b/automations/alerts/something_open_hvac_on.yaml
@@ -8,7 +8,7 @@ triggers:
to: "on"
action:
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
message: >-
The following are open: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_hvac_affecting_openings', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}"
@@ -20,4 +20,4 @@ action:
title: "Sound Alarm" # The button title
- action: "URI"
title: "Adjust Thermostat"
- uri: "entityId:climate.thermostat"
\ No newline at end of file
+ uri: "entityId:climate.thermostat"
diff --git a/automations/cameras/camera6_presets.yaml b/automations/cameras/camera6_presets.yaml
index 307dd92..2c264ff 100644
--- a/automations/cameras/camera6_presets.yaml
+++ b/automations/cameras/camera6_presets.yaml
@@ -13,41 +13,40 @@ trigger:
minutes: "/30"
action:
-- choose:
- - conditions:
- - condition: state
- entity_id: input_select.camera_06
- state: 'Static'
- sequence:
- - service: shell_command.master_bedroom_left_preset_1
- - conditions:
- - condition: state
- entity_id: input_select.camera_06
- state: 'Door'
- sequence:
- - service: shell_command.master_bedroom_left_preset_3
- - conditions:
- - condition: state
- entity_id: input_select.camera_06
- state: 'Bed'
- sequence:
- - service: shell_command.master_bedroom_left_preset_3
- - conditions:
- - condition: state
- entity_id: input_select.camera_06
- state: 'Window'
- sequence:
- - service: shell_command.master_bedroom_left_preset_2
- - conditions:
- - condition: state
- entity_id: input_select.camera_06
- state: 'Floor'
- sequence:
- - service: shell_command.master_bedroom_left_preset_4
- - conditions:
- - condition: state
- entity_id: input_select.camera_06
- state: 'Privacy'
- sequence:
- - service: shell_command.master_bedroom_left_preset_5
-
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: input_select.camera_06
+ state: "Static"
+ sequence:
+ - action: shell_command.master_bedroom_left_preset_1
+ - conditions:
+ - condition: state
+ entity_id: input_select.camera_06
+ state: "Door"
+ sequence:
+ - action: shell_command.master_bedroom_left_preset_3
+ - conditions:
+ - condition: state
+ entity_id: input_select.camera_06
+ state: "Bed"
+ sequence:
+ - action: shell_command.master_bedroom_left_preset_3
+ - conditions:
+ - condition: state
+ entity_id: input_select.camera_06
+ state: "Window"
+ sequence:
+ - action: shell_command.master_bedroom_left_preset_2
+ - conditions:
+ - condition: state
+ entity_id: input_select.camera_06
+ state: "Floor"
+ sequence:
+ - action: shell_command.master_bedroom_left_preset_4
+ - conditions:
+ - condition: state
+ entity_id: input_select.camera_06
+ state: "Privacy"
+ sequence:
+ - action: shell_command.master_bedroom_left_preset_5
diff --git a/automations/cameras/camera7_presets.yaml b/automations/cameras/camera7_presets.yaml
index dbe0319..45fd681 100644
--- a/automations/cameras/camera7_presets.yaml
+++ b/automations/cameras/camera7_presets.yaml
@@ -13,40 +13,40 @@ trigger:
minutes: "/30"
action:
-- choose:
- - conditions:
- - condition: state
- entity_id: input_select.camera_07
- state: 'Static'
- sequence:
- - service: shell_command.master_bedroom_right_preset_2
- - conditions:
- - condition: state
- entity_id: input_select.camera_07
- state: 'Door'
- sequence:
- - service: shell_command.master_bedroom_right_preset_1
- - conditions:
- - condition: state
- entity_id: input_select.camera_07
- state: 'Bed'
- sequence:
- - service: shell_command.master_bedroom_right_preset_3
- - conditions:
- - condition: state
- entity_id: input_select.camera_07
- state: 'Window'
- sequence:
- - service: shell_command.master_bedroom_right_preset_2
- - conditions:
- - condition: state
- entity_id: input_select.camera_07
- state: 'Floor'
- sequence:
- - service: shell_command.master_bedroom_right_preset_4
- - conditions:
- - condition: state
- entity_id: input_select.camera_07
- state: 'Privacy'
- sequence:
- - service: shell_command.master_bedroom_right_preset_5
\ No newline at end of file
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: input_select.camera_07
+ state: "Static"
+ sequence:
+ - action: shell_command.master_bedroom_right_preset_2
+ - conditions:
+ - condition: state
+ entity_id: input_select.camera_07
+ state: "Door"
+ sequence:
+ - action: shell_command.master_bedroom_right_preset_1
+ - conditions:
+ - condition: state
+ entity_id: input_select.camera_07
+ state: "Bed"
+ sequence:
+ - action: shell_command.master_bedroom_right_preset_3
+ - conditions:
+ - condition: state
+ entity_id: input_select.camera_07
+ state: "Window"
+ sequence:
+ - action: shell_command.master_bedroom_right_preset_2
+ - conditions:
+ - condition: state
+ entity_id: input_select.camera_07
+ state: "Floor"
+ sequence:
+ - action: shell_command.master_bedroom_right_preset_4
+ - conditions:
+ - condition: state
+ entity_id: input_select.camera_07
+ state: "Privacy"
+ sequence:
+ - action: shell_command.master_bedroom_right_preset_5
diff --git a/automations/cameras/frigate_recordings.yaml b/automations/cameras/frigate_recordings.yaml
index bcfc3ce..240fc67 100644
--- a/automations/cameras/frigate_recordings.yaml
+++ b/automations/cameras/frigate_recordings.yaml
@@ -24,86 +24,85 @@ trigger:
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.debug_recordings
- state: 'on'
- sequence:
- - service: switch.turn_on
- data: {}
- target:
- entity_id:
- - switch.frigate_cam01_recordings
- - switch.frigate_cam03_recordings
- - switch.frigate_cam04_recordings
- - switch.frigate_cam06_recordings
- - switch.frigate_cam07_recordings
- - switch.frigate_cam08_recordings
- - switch.frigate_cam12_recordings
- - switch.frigate_cam13_recordings
- - switch.frigate_cam14_recordings
- - switch.frigate_cam18_recordings
- - switch.frigate_cam19_recordings
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.debug_recordings
+ state: "on"
+ sequence:
+ - action: switch.turn_on
+ data: {}
+ target:
+ entity_id:
+ - switch.frigate_cam01_recordings
+ - switch.frigate_cam03_recordings
+ - switch.frigate_cam04_recordings
+ - switch.frigate_cam06_recordings
+ - switch.frigate_cam07_recordings
+ - switch.frigate_cam08_recordings
+ - switch.frigate_cam12_recordings
+ - switch.frigate_cam13_recordings
+ - switch.frigate_cam14_recordings
+ - switch.frigate_cam18_recordings
+ - switch.frigate_cam19_recordings
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.indoor_recordings
- state: 'on'
- sequence:
- - service: switch.turn_on
- data: {}
- target:
- entity_id:
- - switch.frigate_cam01_recordings
- - switch.frigate_cam03_recordings
- - switch.frigate_cam06_recordings
- - switch.frigate_cam07_recordings
- - switch.frigate_cam08_recordings
- - switch.frigate_cam12_recordings
- - switch.frigate_cam13_recordings
- - conditions:
- - condition: state
- entity_id: input_boolean.indoor_recordings
- state: 'off'
- sequence:
- - service: switch.turn_off
- data: {}
- target:
- entity_id:
- - switch.frigate_cam01_recordings
- - switch.frigate_cam03_recordings
- - switch.frigate_cam06_recordings
- - switch.frigate_cam07_recordings
- - switch.frigate_cam08_recordings
- - switch.frigate_cam12_recordings
- - switch.frigate_cam13_recordings
-
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.indoor_recordings
+ state: "on"
+ sequence:
+ - action: switch.turn_on
+ data: {}
+ target:
+ entity_id:
+ - switch.frigate_cam01_recordings
+ - switch.frigate_cam03_recordings
+ - switch.frigate_cam06_recordings
+ - switch.frigate_cam07_recordings
+ - switch.frigate_cam08_recordings
+ - switch.frigate_cam12_recordings
+ - switch.frigate_cam13_recordings
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.indoor_recordings
+ state: "off"
+ sequence:
+ - action: switch.turn_off
+ data: {}
+ target:
+ entity_id:
+ - switch.frigate_cam01_recordings
+ - switch.frigate_cam03_recordings
+ - switch.frigate_cam06_recordings
+ - switch.frigate_cam07_recordings
+ - switch.frigate_cam08_recordings
+ - switch.frigate_cam12_recordings
+ - switch.frigate_cam13_recordings
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.outdoor_recordings
- state: 'on'
- sequence:
- - service: switch.turn_on
- data: {}
- target:
- entity_id:
- - switch.frigate_cam04_recordings
- - switch.frigate_cam14_recordings
- - switch.frigate_cam18_recordings
- - switch.frigate_cam19_recordings
- - conditions:
- - condition: state
- entity_id: input_boolean.outdoor_recordings
- state: 'off'
- sequence:
- - service: switch.turn_off
- data: {}
- target:
- entity_id:
- - switch.frigate_cam04_recordings
- - switch.frigate_cam14_recordings
- - switch.frigate_cam18_recordings
- - switch.frigate_cam19_recordings
\ No newline at end of file
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.outdoor_recordings
+ state: "on"
+ sequence:
+ - action: switch.turn_on
+ data: {}
+ target:
+ entity_id:
+ - switch.frigate_cam04_recordings
+ - switch.frigate_cam14_recordings
+ - switch.frigate_cam18_recordings
+ - switch.frigate_cam19_recordings
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.outdoor_recordings
+ state: "off"
+ sequence:
+ - action: switch.turn_off
+ data: {}
+ target:
+ entity_id:
+ - switch.frigate_cam04_recordings
+ - switch.frigate_cam14_recordings
+ - switch.frigate_cam18_recordings
+ - switch.frigate_cam19_recordings
diff --git a/automations/cameras/frigate_snapshots.yaml b/automations/cameras/frigate_snapshots.yaml
index c9dfbdc..17db64c 100644
--- a/automations/cameras/frigate_snapshots.yaml
+++ b/automations/cameras/frigate_snapshots.yaml
@@ -24,86 +24,85 @@ trigger:
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.debug_snapshots
- state: 'on'
- sequence:
- - service: switch.turn_on
- data: {}
- target:
- entity_id:
- - switch.frigate_cam01_snapshots
- - switch.frigate_cam03_snapshots
- - switch.frigate_cam04_snapshots
- - switch.frigate_cam06_snapshots
- - switch.frigate_cam07_snapshots
- - switch.frigate_cam08_snapshots
- - switch.frigate_cam12_snapshots
- - switch.frigate_cam13_snapshots
- - switch.frigate_cam14_snapshots
- - switch.frigate_cam18_snapshots
- - switch.frigate_cam19_snapshots
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.debug_snapshots
+ state: "on"
+ sequence:
+ - action: switch.turn_on
+ data: {}
+ target:
+ entity_id:
+ - switch.frigate_cam01_snapshots
+ - switch.frigate_cam03_snapshots
+ - switch.frigate_cam04_snapshots
+ - switch.frigate_cam06_snapshots
+ - switch.frigate_cam07_snapshots
+ - switch.frigate_cam08_snapshots
+ - switch.frigate_cam12_snapshots
+ - switch.frigate_cam13_snapshots
+ - switch.frigate_cam14_snapshots
+ - switch.frigate_cam18_snapshots
+ - switch.frigate_cam19_snapshots
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.indoor_snapshots
- state: 'on'
- sequence:
- - service: switch.turn_on
- data: {}
- target:
- entity_id:
- - switch.frigate_cam01_snapshots
- - switch.frigate_cam03_snapshots
- - switch.frigate_cam06_snapshots
- - switch.frigate_cam07_snapshots
- - switch.frigate_cam08_snapshots
- - switch.frigate_cam12_snapshots
- - switch.frigate_cam13_snapshots
- - conditions:
- - condition: state
- entity_id: input_boolean.indoor_snapshots
- state: 'off'
- sequence:
- - service: switch.turn_off
- data: {}
- target:
- entity_id:
- - switch.frigate_cam01_snapshots
- - switch.frigate_cam03_snapshots
- - switch.frigate_cam06_snapshots
- - switch.frigate_cam07_snapshots
- - switch.frigate_cam08_snapshots
- - switch.frigate_cam12_snapshots
- - switch.frigate_cam13_snapshots
-
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.indoor_snapshots
+ state: "on"
+ sequence:
+ - action: switch.turn_on
+ data: {}
+ target:
+ entity_id:
+ - switch.frigate_cam01_snapshots
+ - switch.frigate_cam03_snapshots
+ - switch.frigate_cam06_snapshots
+ - switch.frigate_cam07_snapshots
+ - switch.frigate_cam08_snapshots
+ - switch.frigate_cam12_snapshots
+ - switch.frigate_cam13_snapshots
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.indoor_snapshots
+ state: "off"
+ sequence:
+ - action: switch.turn_off
+ data: {}
+ target:
+ entity_id:
+ - switch.frigate_cam01_snapshots
+ - switch.frigate_cam03_snapshots
+ - switch.frigate_cam06_snapshots
+ - switch.frigate_cam07_snapshots
+ - switch.frigate_cam08_snapshots
+ - switch.frigate_cam12_snapshots
+ - switch.frigate_cam13_snapshots
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.outdoor_snapshots
- state: 'on'
- sequence:
- - service: switch.turn_on
- data: {}
- target:
- entity_id:
- - switch.frigate_cam04_snapshots
- - switch.frigate_cam14_snapshots
- - switch.frigate_cam18_snapshots
- - switch.frigate_cam19_snapshots
- - conditions:
- - condition: state
- entity_id: input_boolean.outdoor_snapshots
- state: 'off'
- sequence:
- - service: switch.turn_off
- data: {}
- target:
- entity_id:
- - switch.frigate_cam04_snapshots
- - switch.frigate_cam14_snapshots
- - switch.frigate_cam18_snapshots
- - switch.frigate_cam19_snapshots
\ No newline at end of file
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.outdoor_snapshots
+ state: "on"
+ sequence:
+ - action: switch.turn_on
+ data: {}
+ target:
+ entity_id:
+ - switch.frigate_cam04_snapshots
+ - switch.frigate_cam14_snapshots
+ - switch.frigate_cam18_snapshots
+ - switch.frigate_cam19_snapshots
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.outdoor_snapshots
+ state: "off"
+ sequence:
+ - action: switch.turn_off
+ data: {}
+ target:
+ entity_id:
+ - switch.frigate_cam04_snapshots
+ - switch.frigate_cam14_snapshots
+ - switch.frigate_cam18_snapshots
+ - switch.frigate_cam19_snapshots
diff --git a/automations/climate/hvac_fan_off.yaml b/automations/climate/hvac_fan_off.yaml
index dd3c047..fd7e66e 100644
--- a/automations/climate/hvac_fan_off.yaml
+++ b/automations/climate/hvac_fan_off.yaml
@@ -1,69 +1,69 @@
alias: HVAC Fan Off
id: automation_hvac_fan_off
-description: "Purposefully disabled because it just re-circulates the upstairs air"
- # This shouldn't be used because it just re-circulates the air in the house.
- # Since there aren't any returns in the basement, the upstairs air recirculates itself
- # which accomplishes nothing
- # I'd need to get some kind of fresh air intake and a damper
+description:
+ "Purposefully disabled because it just re-circulates the upstairs air"
+ # This shouldn't be used because it just re-circulates the air in the house.
+ # Since there aren't any returns in the basement, the upstairs air recirculates itself
+ # which accomplishes nothing
+ # I'd need to get some kind of fresh air intake and a damper
trigger:
# Has the fan been running for ten minutes?
- platform: state
entity_id: switch.thermostat_fan_mode
- to: 'on'
- for: '00:10:00'
+ to: "on"
+ for: "00:10:00"
# Did the system turn on?
- platform: state
entity_id: sensor.hvac_action
- from: 'idle'
+ from: "idle"
# Check the conditions every 5 minutes
- platform: time_pattern
- minutes: '/5'
+ minutes: "/5"
- platform: state
entity_id: input_boolean.allow_fan
- to: 'off'
+ to: "off"
condition:
# Is the fan currently on?
- condition: state
entity_id: switch.thermostat_fan_mode
- state: 'on'
+ state: "on"
- condition: or
conditions:
- # Is it getting too warm outside?
+ # Is it getting too warm outside?
- condition: and
conditions:
- - condition: numeric_state
- entity_id: sensor.thermostat_temperature
- above: 68
- - condition: state
- entity_id: binary_sensor.warmer_outside
- state: 'on'
+ - condition: numeric_state
+ entity_id: sensor.thermostat_temperature
+ above: 68
+ - condition: state
+ entity_id: binary_sensor.warmer_outside
+ state: "on"
# Is it getting too cool outside?
- condition: and
conditions:
- - condition: numeric_state
- entity_id: sensor.thermostat_temperature
- below: 65
- - condition: state
- entity_id: binary_sensor.cooler_outside
- state: 'on'
+ - condition: numeric_state
+ entity_id: sensor.thermostat_temperature
+ below: 65
+ - condition: state
+ entity_id: binary_sensor.cooler_outside
+ state: "on"
# Did the system turn on?
- condition: not
conditions:
- - condition: state
- entity_id: sensor.hvac_action
- state: 'idle'
+ - condition: state
+ entity_id: sensor.hvac_action
+ state: "idle"
action:
- - service: logbook.log
+ - action: logbook.log
data_template:
name: HVAC Fan Off
entity_id: automation.hvac_fan_off
message: >
Turned off HVAC fan
-
- - service: homeassistant.turn_off
- entity_id: switch.thermostat_fan_mode
\ No newline at end of file
+ - action: homeassistant.turn_off
+ entity_id: switch.thermostat_fan_mode
diff --git a/automations/frigate/frigate_person_back_yard.yaml b/automations/frigate/frigate_person_back_yard.yaml
index 7eee370..5bbe461 100644
--- a/automations/frigate/frigate_person_back_yard.yaml
+++ b/automations/frigate/frigate_person_back_yard.yaml
@@ -50,13 +50,13 @@ action:
attachment:
url: /api/frigate/notifications/{{id}}/thumbnail.jpg
- - service: persistent_notification.create
+ - action: persistent_notification.create
data:
title: A {{ label }} was detected on the {{ camera_name }} camera.
message: 'A {{ label }} was detected on the {{ camera_name }} camera. '
notification_id: "{{ id }}"
default:
- - service: notify.{{ group_target }}
+ - action: notify.{{ group_target }}
data:
message: A {{ label }} was detected on the {{ camera_name }} camera.
data:
@@ -109,7 +109,7 @@ action:
title: Silence Notifications
destructive: true
default:
- - service: notify.{{ group_target }}
+ - action: notify.{{ group_target }}
data:
message: A {{ label }} was detected on the {{ camera_name }} camera.
data:
diff --git a/automations/frigate/frigate_person_from_street.yaml b/automations/frigate/frigate_person_from_street.yaml
index c977230..8b7639d 100644
--- a/automations/frigate/frigate_person_from_street.yaml
+++ b/automations/frigate/frigate_person_from_street.yaml
@@ -59,13 +59,13 @@ action:
attachment:
url: /api/frigate/notifications/{{id}}/thumbnail.jpg
- - service: persistent_notification.create
+ - action: persistent_notification.create
data:
title: A {{ label }} was detected on the {{ camera_name }} camera.
message: 'A {{ label }} was detected on the {{ camera_name }} camera. '
notification_id: "{{ id }}"
default:
- - service: notify.{{ group_target }}
+ - action: notify.{{ group_target }}
data:
message: A {{ label }} was detected on the {{ camera_name }} camera.
data:
@@ -118,7 +118,7 @@ action:
title: Silence Notifications
destructive: true
default:
- - service: notify.{{ group_target }}
+ - action: notify.{{ group_target }}
data:
message: A {{ label }} was detected on the {{ camera_name }} camera.
data:
@@ -156,4 +156,3 @@ action:
continue_on_timeout: false
- delay:
minutes: 30
-
diff --git a/automations/frigate/frigate_person_front_porch.yaml b/automations/frigate/frigate_person_front_porch.yaml
index 538b530..5c5f7a2 100644
--- a/automations/frigate/frigate_person_front_porch.yaml
+++ b/automations/frigate/frigate_person_front_porch.yaml
@@ -56,13 +56,13 @@ action:
attachment:
url: /api/frigate/notifications/{{id}}/thumbnail.jpg
- - service: persistent_notification.create
+ - action: persistent_notification.create
data:
title: A {{ label }} was detected on the {{ camera_name }} camera.
message: 'A {{ label }} was detected on the {{ camera_name }} camera. '
notification_id: "{{ id }}"
default:
- - service: notify.{{ group_target }}
+ - action: notify.{{ group_target }}
data:
message: A {{ label }} was detected on the {{ camera_name }} camera.
data:
@@ -115,7 +115,7 @@ action:
title: Silence Notifications
destructive: true
default:
- - service: notify.{{ group_target }}
+ - action: notify.{{ group_target }}
data:
message: A {{ label }} was detected on the {{ camera_name }} camera.
data:
@@ -153,4 +153,3 @@ action:
continue_on_timeout: false
- delay:
minutes: 30
-
diff --git a/automations/frigate/frigate_vehicle_notification.yaml b/automations/frigate/frigate_vehicle_notification.yaml
index 196669f..d502ee8 100644
--- a/automations/frigate/frigate_vehicle_notification.yaml
+++ b/automations/frigate/frigate_vehicle_notification.yaml
@@ -63,13 +63,13 @@ action:
attachment:
url: /api/frigate/notifications/{{id}}/thumbnail.jpg
- - service: persistent_notification.create
+ - action: persistent_notification.create
data:
title: A {{ label }} was detected on the {{ camera_name }} camera.
message: 'A {{ label }} was detected on the {{ camera_name }} camera. '
notification_id: "{{ id }}"
default:
- - service: notify.{{ group_target }}
+ - action: notify.{{ group_target }}
data:
message: A {{ label }} was detected on the {{ camera_name }} camera.
data:
@@ -122,7 +122,7 @@ action:
title: Silence Notifications
destructive: true
default:
- - service: notify.{{ group_target }}
+ - action: notify.{{ group_target }}
data:
message: A {{ label }} was detected on the {{ camera_name }} camera.
data:
diff --git a/automations/house/all_away_media_off.yaml b/automations/house/all_away_media_off.yaml
index 14062f7..4100de4 100644
--- a/automations/house/all_away_media_off.yaml
+++ b/automations/house/all_away_media_off.yaml
@@ -1,42 +1,42 @@
-alias: 'All away media off'
+alias: "All away media off"
id: automation_all_away_media_off
-initial_state: 'on'
+initial_state: "on"
mode: single
max_exceeded: silent
trigger:
- platform: state
entity_id: input_boolean.home_occupied
- to: 'off'
- for: '00:05:00'
+ to: "off"
+ for: "00:05:00"
condition:
condition: or
conditions:
- - condition: state
- entity_id: media_player.kitchen
- state: 'playing'
- - condition: state
- entity_id: media_player.great_room
- state: 'playing'
- - condition: state
- entity_id: media_player.front_room_tv
- state: 'playing'
- - condition: state
- entity_id: media_player.front_room_hub
- state: 'playing'
- - condition: state
- entity_id: media_player.master_bedroom_clock
- state: 'playing'
- - condition: state
- entity_id: media_player.nursery_hub
- state: 'playing'
- - condition: state
- entity_id: media_player.bathroom_mini
- state: 'playing'
- - condition: state
- entity_id: media_player.downstairs_roku
- state: 'playing'
+ - condition: state
+ entity_id: media_player.kitchen
+ state: "playing"
+ - condition: state
+ entity_id: media_player.great_room
+ state: "playing"
+ - condition: state
+ entity_id: media_player.front_room_tv
+ state: "playing"
+ - condition: state
+ entity_id: media_player.front_room_hub
+ state: "playing"
+ - condition: state
+ entity_id: media_player.master_bedroom_clock
+ state: "playing"
+ - condition: state
+ entity_id: media_player.girls_room_hub
+ state: "playing"
+ - condition: state
+ entity_id: media_player.bathroom_mini
+ state: "playing"
+ - condition: state
+ entity_id: media_player.downstairs_roku
+ state: "playing"
action:
- service: media_player.turn_off
+ action: media_player.turn_off
data:
entity_id: all
diff --git a/automations/house/guest_mode_off_nobody_home.yaml b/automations/house/guest_mode_off_nobody_home.yaml
index 85168b4..50c9a0a 100644
--- a/automations/house/guest_mode_off_nobody_home.yaml
+++ b/automations/house/guest_mode_off_nobody_home.yaml
@@ -1,4 +1,4 @@
-alias: 'Guest mode off nobody home'
+alias: "Guest mode off nobody home"
id: automation_guest_mode_off_nobody_home
mode: single
max_exceeded: silent
@@ -6,23 +6,23 @@ max_exceeded: silent
trigger:
- platform: state
entity_id: input_boolean.guest_mode
- to: 'off'
+ to: "off"
condition:
condition: and
conditions:
# We're all away
- condition: state
entity_id: input_boolean.clint_home
- state: 'off'
+ state: "off"
- condition: state
entity_id: input_boolean.kristy_home
- state: 'off'
+ state: "off"
- condition: or
conditions:
- # Either the phone or tablet are away, or the family room isn't occupied
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'off'
+ # Either the phone or tablet are away, or the family room isn't occupied
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "off"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.home_occupied
diff --git a/automations/house/home_not_occupied.yaml b/automations/house/home_not_occupied.yaml
index a16afa1..ac81189 100644
--- a/automations/house/home_not_occupied.yaml
+++ b/automations/house/home_not_occupied.yaml
@@ -1,4 +1,4 @@
-alias: 'Home not occupied'
+alias: "Home not occupied"
id: automation_home_not_occupied
mode: single
max_exceeded: silent
@@ -14,36 +14,36 @@ trigger:
- input_boolean.tess_home
- input_boolean.ebin_home
- input_boolean.guest_mode
- to: 'off'
+ to: "off"
condition:
- condition: state
entity_id: input_boolean.home_occupied
- state: 'on'
+ state: "on"
# We're all away
- condition: numeric_state
entity_id: group.person_household
below: 1
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_household', 'entity_id'))|list)|groupby('state'))['on']|count }}"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
target:
entity_id: input_boolean.home_occupied
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
target:
entity_id:
- input_boolean.indoor_snapshots
- input_boolean.outdoor_snapshots
-
- - service: automation.turn_on
+
+ - action: automation.turn_on
data:
entity_id: automation.garage_open_nobody_home
- choose:
- - conditions:
- - condition: state
- entity_id: binary_sensor.patio_door_contact
- state: 'off'
- sequence:
- - service: lock.lock
- target:
- entity_id: lock.patio_door
\ No newline at end of file
+ - conditions:
+ - condition: state
+ entity_id: binary_sensor.patio_door_contact
+ state: "off"
+ sequence:
+ - action: lock.lock
+ target:
+ entity_id: lock.patio_door
diff --git a/automations/house/home_occupied.yaml b/automations/house/home_occupied.yaml
index 2411a4f..3c4ff87 100644
--- a/automations/house/home_occupied.yaml
+++ b/automations/house/home_occupied.yaml
@@ -1,4 +1,4 @@
-alias: 'Home occupied'
+alias: "Home occupied"
id: automation_home_occupied
mode: single
max_exceeded: silent
@@ -14,29 +14,29 @@ trigger:
- input_boolean.tess_home
- input_boolean.ebin_home
- input_boolean.guest_mode
- to: 'on'
+ to: "on"
- platform: state
entity_id: cover.garage_door
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.home_occupied
- state: 'off'
+ state: "off"
# One person is home
- condition: numeric_state
entity_id: group.person_household
above: 0
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_household', 'entity_id'))|list)|groupby('state'))['on']|count }}"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
target:
entity_id: input_boolean.home_occupied
- # - service: input_boolean.turn_off
+ # - action: input_boolean.turn_off
# target:
# entity_id: input_boolean.indoor_snapshots
- - service: automation.turn_off
+ - action: automation.turn_off
data:
entity_id: automation.garage_open_nobody_home
diff --git a/automations/house/house_mode_change.yaml b/automations/house/house_mode_change.yaml
index f6da62a..88c25e5 100644
--- a/automations/house/house_mode_change.yaml
+++ b/automations/house/house_mode_change.yaml
@@ -10,95 +10,93 @@ trigger:
- input_boolean.bedtime
- sensor.people_count
-
- platform: homeassistant
event: start
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.house
- option: 'Away'
-
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'on'
-
- - condition: state
- entity_id: sensor.people_count
- state: '1'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.house
- option: 'Bachelor'
-
- - service: homeassistant.turn_on
- entity_id:
- - input_boolean.lighting_automations
- - input_boolean.brightness_automations
-
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'on'
- - condition: numeric_state
- entity_id: sensor.people_count
- above: 1
- below: 4
- - condition: or
- conditions:
+ - conditions:
- condition: state
- entity_id: input_boolean.emmett_home
- state: 'on'
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.house
+ option: "Away"
+
+ - conditions:
- condition: state
- entity_id: input_boolean.bridget_home
- state: 'on'
+ entity_id: input_boolean.home_occupied
+ state: "on"
- sequence:
- - service: input_select.select_option
- data:
+ - condition: state
+ entity_id: sensor.people_count
+ state: "1"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.house
+ option: "Bachelor"
+
+ - action: homeassistant.turn_on
+ entity_id:
+ - input_boolean.lighting_automations
+ - input_boolean.brightness_automations
+
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "on"
+ - condition: numeric_state
+ entity_id: sensor.people_count
+ above: 1
+ below: 4
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_boolean.emmett_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.bridget_home
+ state: "on"
+
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.house
+ option: "Dad"
+ - action: homeassistant.turn_on
+ entity_id:
+ - input_boolean.lighting_automations
+ - input_boolean.brightness_automations
+
+ - conditions:
+ - condition: state
entity_id: input_select.house
- option: 'Dad'
- - service: homeassistant.turn_on
- entity_id:
- - input_boolean.lighting_automations
- - input_boolean.brightness_automations
+ state: "Guest"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id:
+ - input_boolean.lighting_automations
- - conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Guest'
- sequence:
- - service: homeassistant.turn_off
- entity_id:
- - input_boolean.lighting_automations
-
-
- - conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Manual'
- sequence:
- - service: homeassistant.turn_off
- entity_id:
- - input_boolean.lighting_automations
- - input_boolean.brightness_automations
+ - conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Manual"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id:
+ - input_boolean.lighting_automations
+ - input_boolean.brightness_automations
default:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.house
- option: 'Auto'
+ option: "Auto"
- - service: homeassistant.turn_on
+ - action: homeassistant.turn_on
entity_id:
- input_boolean.lighting_automations
- input_boolean.brightness_automations
diff --git a/automations/house/leaving_home.yaml b/automations/house/leaving_home.yaml
index f43366c..5e9a9c9 100644
--- a/automations/house/leaving_home.yaml
+++ b/automations/house/leaving_home.yaml
@@ -9,7 +9,7 @@ trigger:
to: "off"
for: "00:05:00"
action:
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
entity_id:
- group.my_lights
- group.my_fans
diff --git a/automations/house/update_automatic_light_profile.yaml b/automations/house/update_automatic_light_profile.yaml
index 09ccc76..168410c 100644
--- a/automations/house/update_automatic_light_profile.yaml
+++ b/automations/house/update_automatic_light_profile.yaml
@@ -1,4 +1,4 @@
-alias: 'Update Automatic Light Profile'
+alias: "Update Automatic Light Profile"
id: automation_update_automatic_light_profile
trigger:
- platform: state
@@ -23,197 +23,197 @@ trigger:
- input_select.late_evening_kids_mode
- input_select.night_kids_mode
action:
-- choose:
- - conditions:
- - condition: state
- entity_id: binary_sensor.have_custody
- state: 'off'
- sequence:
- - choose:
- # Set to Energize during Early Morning (04:00 - 06:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Early Morning'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.early_morning_mode')}}"
- # Set to Energize during Morning (06:00 - 09:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Morning'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.morning_mode')}}"
- # Set to Energize during Late Morning (09:00 - 12:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Late Morning'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.late_morning_mode')}}"
- # Set to Concentrate during Early Afternoon (12:00 - 15:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Early Afternoon'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.early_afternoon_mode')}}"
- # Set to Concentrate during Late Afternoon (15:00 - 17:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Late Afternoon'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.late_afternoon_mode')}}"
- # Set to Read during Early Evening (17:00 - 19:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Early Evening'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.early_evening_mode')}}"
- # Set to Relax during Evening (19:00 - 22:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Evening'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.evening_mode')}}"
- # Set to Dimmed during Late Evening (22:00 - 00:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Late Evening'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.late_evening_mode')}}"
- # Set to Nightlight during Night (00:00 - 04:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Night'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.night_mode')}}"
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: binary_sensor.have_custody
+ state: "off"
+ sequence:
+ - choose:
+ # Set to Energize during Early Morning (04:00 - 06:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Early Morning"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.early_morning_mode')}}"
+ # Set to Energize during Morning (06:00 - 09:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Morning"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.morning_mode')}}"
+ # Set to Energize during Late Morning (09:00 - 12:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Late Morning"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.late_morning_mode')}}"
+ # Set to Concentrate during Early Afternoon (12:00 - 15:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Early Afternoon"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.early_afternoon_mode')}}"
+ # Set to Concentrate during Late Afternoon (15:00 - 17:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Late Afternoon"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.late_afternoon_mode')}}"
+ # Set to Read during Early Evening (17:00 - 19:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Early Evening"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.early_evening_mode')}}"
+ # Set to Relax during Evening (19:00 - 22:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Evening"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.evening_mode')}}"
+ # Set to Dimmed during Late Evening (22:00 - 00:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Late Evening"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.late_evening_mode')}}"
+ # Set to Nightlight during Night (00:00 - 04:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Night"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.night_mode')}}"
- - conditions:
- - condition: state
- entity_id: binary_sensor.have_custody
- state: 'on'
- sequence:
- - choose:
- # Set to Energize during Early Morning (04:00 - 06:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Early Morning'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.early_morning_kids_mode')}}"
- # Set to Energize during Morning (06:00 - 09:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Morning'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.morning_kids_mode')}}"
- # Set to Energize during Late Morning (09:00 - 12:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Late Morning'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.late_morning_kids_mode')}}"
- # Set to Concentrate during Early Afternoon (12:00 - 15:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Early Afternoon'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.early_afternoon_kids_mode')}}"
- # Set to Concentrate during Late Afternoon (15:00 - 17:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Late Afternoon'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.late_afternoon_kids_mode')}}"
- # Set to Read during Early Evening (17:00 - 19:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Early Evening'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.early_evening_kids_mode')}}"
- # Set to Relax during Evening (19:00 - 22:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Evening'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.evening_kids_mode')}}"
- # Set to Dimmed during Late Evening (22:00 - 00:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Late Evening'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.late_evening_kids_mode')}}"
- # Set to Nightlight during Night (00:00 - 04:00)
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Night'
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.automatic_light_profile
- option: "{{states('input_select.night_kids_mode')}}"
\ No newline at end of file
+ - conditions:
+ - condition: state
+ entity_id: binary_sensor.have_custody
+ state: "on"
+ sequence:
+ - choose:
+ # Set to Energize during Early Morning (04:00 - 06:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Early Morning"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.early_morning_kids_mode')}}"
+ # Set to Energize during Morning (06:00 - 09:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Morning"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.morning_kids_mode')}}"
+ # Set to Energize during Late Morning (09:00 - 12:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Late Morning"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.late_morning_kids_mode')}}"
+ # Set to Concentrate during Early Afternoon (12:00 - 15:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Early Afternoon"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.early_afternoon_kids_mode')}}"
+ # Set to Concentrate during Late Afternoon (15:00 - 17:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Late Afternoon"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.late_afternoon_kids_mode')}}"
+ # Set to Read during Early Evening (17:00 - 19:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Early Evening"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.early_evening_kids_mode')}}"
+ # Set to Relax during Evening (19:00 - 22:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Evening"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.evening_kids_mode')}}"
+ # Set to Dimmed during Late Evening (22:00 - 00:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Late Evening"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.late_evening_kids_mode')}}"
+ # Set to Nightlight during Night (00:00 - 04:00)
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Night"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.automatic_light_profile
+ option: "{{states('input_select.night_kids_mode')}}"
diff --git a/automations/house/update_light_off_delay.yaml b/automations/house/update_light_off_delay.yaml
index 98933c9..5659975 100644
--- a/automations/house/update_light_off_delay.yaml
+++ b/automations/house/update_light_off_delay.yaml
@@ -12,256 +12,256 @@ trigger:
action:
- choose:
- - alias: "House set to Away"
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Away'
- sequence:
- - service: input_number.set_value
- target:
- entity_id: input_number.short_light_off_delay_seconds
- data:
- value: 30
- - service: input_number.set_value
- target:
- entity_id: input_number.short_light_off_delay_minutes
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.short_light_off_delay_hours
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.normal_light_off_delay_seconds
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.normal_light_off_delay_minutes
- data:
- value: 5
- - service: input_number.set_value
- target:
- entity_id: input_number.normal_light_off_delay_hours
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.long_light_off_delay_seconds
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.long_light_off_delay_minutes
- data:
- value: 30
- - service: input_number.set_value
- target:
- entity_id: input_number.long_light_off_delay_hours
- data:
- value: 0
+ - alias: "House set to Away"
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Away"
+ sequence:
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.short_light_off_delay_seconds
+ data:
+ value: 30
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.short_light_off_delay_minutes
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.short_light_off_delay_hours
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.normal_light_off_delay_seconds
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.normal_light_off_delay_minutes
+ data:
+ value: 5
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.normal_light_off_delay_hours
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.long_light_off_delay_seconds
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.long_light_off_delay_minutes
+ data:
+ value: 30
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.long_light_off_delay_hours
+ data:
+ value: 0
- - alias: "House set to Bachelor - 10 minutes"
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Bachelor'
- sequence:
- - service: input_number.set_value
- target:
- entity_id: input_number.short_light_off_delay_seconds
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.short_light_off_delay_minutes
- data:
- value: 1
- - service: input_number.set_value
- target:
- entity_id: input_number.short_light_off_delay_hours
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.normal_light_off_delay_seconds
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.normal_light_off_delay_minutes
- data:
- value: 10
- - service: input_number.set_value
- target:
- entity_id: input_number.normal_light_off_delay_hours
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.long_light_off_delay_seconds
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.long_light_off_delay_minutes
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.long_light_off_delay_hours
- data:
- value: 1
+ - alias: "House set to Bachelor - 10 minutes"
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Bachelor"
+ sequence:
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.short_light_off_delay_seconds
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.short_light_off_delay_minutes
+ data:
+ value: 1
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.short_light_off_delay_hours
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.normal_light_off_delay_seconds
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.normal_light_off_delay_minutes
+ data:
+ value: 10
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.normal_light_off_delay_hours
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.long_light_off_delay_seconds
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.long_light_off_delay_minutes
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.long_light_off_delay_hours
+ data:
+ value: 1
- - alias: "House set to Guest - 30 minutes"
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Manual'
- sequence:
- - service: input_number.set_value
- target:
- entity_id: input_number.short_light_off_delay_seconds
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.short_light_off_delay_minutes
- data:
- value: 10
- - service: input_number.set_value
- target:
- entity_id: input_number.short_light_off_delay_hours
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.normal_light_off_delay_seconds
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.normal_light_off_delay_minutes
- data:
- value: 30
- - service: input_number.set_value
- target:
- entity_id: input_number.normal_light_off_delay_hours
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.long_light_off_delay_seconds
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.long_light_off_delay_minutes
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.long_light_off_delay_hours
- data:
- value: 1
+ - alias: "House set to Guest - 30 minutes"
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Manual"
+ sequence:
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.short_light_off_delay_seconds
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.short_light_off_delay_minutes
+ data:
+ value: 10
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.short_light_off_delay_hours
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.normal_light_off_delay_seconds
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.normal_light_off_delay_minutes
+ data:
+ value: 30
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.normal_light_off_delay_hours
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.long_light_off_delay_seconds
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.long_light_off_delay_minutes
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.long_light_off_delay_hours
+ data:
+ value: 1
- - alias: "House set to Manual - 60 minutes"
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Manual'
- sequence:
- - service: input_number.set_value
- target:
- entity_id: input_number.short_light_off_delay_seconds
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.short_light_off_delay_minutes
- data:
- value: 20
- - service: input_number.set_value
- target:
- entity_id: input_number.short_light_off_delay_hours
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.normal_light_off_delay_seconds
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.normal_light_off_delay_minutes
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.normal_light_off_delay_hours
- data:
- value: 1
- - service: input_number.set_value
- target:
- entity_id: input_number.long_light_off_delay_seconds
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.long_light_off_delay_minutes
- data:
- value: 0
- - service: input_number.set_value
- target:
- entity_id: input_number.long_light_off_delay_hours
- data:
- value: 2
+ - alias: "House set to Manual - 60 minutes"
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Manual"
+ sequence:
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.short_light_off_delay_seconds
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.short_light_off_delay_minutes
+ data:
+ value: 20
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.short_light_off_delay_hours
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.normal_light_off_delay_seconds
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.normal_light_off_delay_minutes
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.normal_light_off_delay_hours
+ data:
+ value: 1
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.long_light_off_delay_seconds
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.long_light_off_delay_minutes
+ data:
+ value: 0
+ - action: input_number.set_value
+ target:
+ entity_id: input_number.long_light_off_delay_hours
+ data:
+ value: 2
default:
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.short_light_off_delay_seconds
data:
value: 0
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.short_light_off_delay_minutes
data:
value: 10
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.short_light_off_delay_hours
data:
value: 0
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.normal_light_off_delay_seconds
data:
value: 0
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.normal_light_off_delay_minutes
data:
value: 30
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.normal_light_off_delay_hours
data:
value: 0
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.long_light_off_delay_seconds
data:
value: 0
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.long_light_off_delay_minutes
data:
value: 0
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.long_light_off_delay_hours
data:
diff --git a/automations/people/Bridget/bridget_in_bed.yaml b/automations/people/Bridget/bridget_in_bed.yaml
index 5ae3599..1c63ce6 100644
--- a/automations/people/Bridget/bridget_in_bed.yaml
+++ b/automations/people/Bridget/bridget_in_bed.yaml
@@ -5,7 +5,7 @@ mode: restart
trigger:
- trigger: state
- entity_id: binary_sensor.black_bed_occupied
+ entity_id: binary_sensor.bridgets_bed
to: "on"
for: "00:10:00"
- trigger: state
@@ -22,7 +22,7 @@ condition:
state: "on"
- condition: state
entity_id:
- - binary_sensor.black_bed_occupied
+ - binary_sensor.bridgets_bed
state: "on"
for: "00:05:00"
- condition: state
diff --git a/automations/people/Clint/Clint_WFH.yaml b/automations/people/Clint/Clint_WFH.yaml
index 22e069b..f2ff9b2 100644
--- a/automations/people/Clint/Clint_WFH.yaml
+++ b/automations/people/Clint/Clint_WFH.yaml
@@ -10,18 +10,18 @@ trigger:
event: start
action:
-- choose:
- - conditions:
- - condition: state
- entity_id: binary_sensor.clint_work_from_home
- state: 'on'
- sequence:
- - service: homeassistant.turn_on
- entity_id: input_boolean.clint_work_from_home
- - conditions:
- - condition: state
- entity_id: binary_sensor.clint_work_from_home
- state: 'off'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.clint_work_from_home
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: binary_sensor.clint_work_from_home
+ state: "on"
+ sequence:
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.clint_work_from_home
+ - conditions:
+ - condition: state
+ entity_id: binary_sensor.clint_work_from_home
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.clint_work_from_home
diff --git a/automations/people/Clint/Clint_asleep.yaml b/automations/people/Clint/Clint_asleep.yaml
index a2c150d..495f679 100644
--- a/automations/people/Clint/Clint_asleep.yaml
+++ b/automations/people/Clint/Clint_asleep.yaml
@@ -2,26 +2,25 @@ alias: Clint Asleep
id: automation_clint_asleep
#description:
-initial_state: 'on'
+initial_state: "on"
trigger:
- platform: state
entity_id: input_boolean.clint_in_bed
- to: 'on'
+ to: "on"
for:
minutes: 15
condition:
- condition: and
conditions:
- - condition: state
- entity_id: input_boolean.clint_is_awake
- state: 'on'
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - condition: time
- after: '21:00:00'
- before: '04:00:00'
+ - condition: state
+ entity_id: input_boolean.clint_is_awake
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - condition: time
+ after: "21:00:00"
+ before: "04:00:00"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.clint_is_awake
-
diff --git a/automations/people/Clint/Clint_at_work.yaml b/automations/people/Clint/Clint_at_work.yaml
index 8df97ae..50463df 100644
--- a/automations/people/Clint/Clint_at_work.yaml
+++ b/automations/people/Clint/Clint_at_work.yaml
@@ -4,11 +4,11 @@ id: automation_clint_at_work
trigger:
platform: state
entity_id: device_tracker.pixel_7
- to: 'WMU'
+ to: "WMU"
action:
- - service: automation.turn_on
+ - action: automation.turn_on
entity_id: automation.clint_home_after_work
- - service: input_text.set_value
+ - action: input_text.set_value
data:
entity_id: input_text.person_clint
value: at work
diff --git a/automations/people/Clint/Clint_awake.yaml b/automations/people/Clint/Clint_awake.yaml
index b574759..a843028 100644
--- a/automations/people/Clint/Clint_awake.yaml
+++ b/automations/people/Clint/Clint_awake.yaml
@@ -6,11 +6,11 @@ mode: restart
trigger:
- platform: state
entity_id: input_boolean.clint_in_bed
- to: 'off'
- for: '00:00:30'
+ to: "off"
+ for: "00:00:30"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.clint_is_awake
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.clint_travel_sensor
diff --git a/automations/people/Clint/Clint_away.yaml b/automations/people/Clint/Clint_away.yaml
index a7fe5c4..c6ea8a4 100644
--- a/automations/people/Clint/Clint_away.yaml
+++ b/automations/people/Clint/Clint_away.yaml
@@ -9,32 +9,31 @@ trigger:
- device_tracker.pixel_7
- person.clint
- group.person_clint
- from: 'home'
+ from: "home"
- platform: homeassistant
event: start
condition:
-
- condition: not
conditions:
- - condition: state
- entity_id: person.clint
- state: 'home'
- - condition: state
- entity_id: device_tracker.pixel_7
- state: 'home'
-
-action:
-- choose:
- - conditions:
- - condition: not
- conditions:
- condition: state
entity_id: person.clint
- state: 'home'
- sequence:
- - service: input_boolean.turn_off
- entity_id: input_boolean.clint_home
+ state: "home"
+ - condition: state
+ entity_id: device_tracker.pixel_7
+ state: "home"
-- delay: '00:00:30'
\ No newline at end of file
+action:
+ - choose:
+ - conditions:
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: person.clint
+ state: "home"
+ sequence:
+ - action: input_boolean.turn_off
+ entity_id: input_boolean.clint_home
+
+ - delay: "00:00:30"
diff --git a/automations/people/Clint/Clint_home.yaml b/automations/people/Clint/Clint_home.yaml
index ab7ba4b..8368465 100644
--- a/automations/people/Clint/Clint_home.yaml
+++ b/automations/people/Clint/Clint_home.yaml
@@ -10,7 +10,7 @@ trigger:
- person.clint
- group.person_clint
- device_tracker.pixel_7_wifi
- to: 'home'
+ to: "home"
- platform: state
id: car_home
@@ -18,44 +18,41 @@ trigger:
- binary_sensor.gray_suv_east_side
- binary_sensor.gray_suv_west_side
- group.traverse
- from: 'off'
- to: 'on'
-
+ from: "off"
+ to: "on"
- platform: homeassistant
event: start
action:
-- choose:
- - conditions:
- - condition: or
- conditions:
- - condition: numeric_state
- entity_id: group.person_clint
- above: 0
- value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_clint', 'entity_id'))|list)|groupby('state'))['home']|count }}"
- - condition: state
- entity_id: sensor.pixel_7_wifi_connection
- state: 'DreamWeaver'
- - condition: state
- entity_id: sensor.pixel_7_wifi_connection
- state: 'DreamIoT-2G'
- - condition: state
- entity_id: sensor.pixel_7_wifi_connection
- state: 'pozfam'
- - condition: state
- entity_id: sensor.pixel_7_wifi_connection
- state: 'pozfam-2.4G'
- - condition: trigger
- id: "car_home"
- sequence:
- - service: input_boolean.turn_off
- entity_id: input_boolean.clint_travelling
- - service: input_boolean.turn_on
- entity_id: input_boolean.clint_home
- - service: automation.turn_on
- entity_id: automation.clint_at_work
-
-- delay: '00:00:30'
-
+ - choose:
+ - conditions:
+ - condition: or
+ conditions:
+ - condition: numeric_state
+ entity_id: group.person_clint
+ above: 0
+ value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_clint', 'entity_id'))|list)|groupby('state'))['home']|count }}"
+ - condition: state
+ entity_id: sensor.pixel_7_wifi_connection
+ state: "DreamWeaver"
+ - condition: state
+ entity_id: sensor.pixel_7_wifi_connection
+ state: "DreamIoT-2G"
+ - condition: state
+ entity_id: sensor.pixel_7_wifi_connection
+ state: "pozfam"
+ - condition: state
+ entity_id: sensor.pixel_7_wifi_connection
+ state: "pozfam-2.4G"
+ - condition: trigger
+ id: "car_home"
+ sequence:
+ - action: input_boolean.turn_off
+ entity_id: input_boolean.clint_travelling
+ - action: input_boolean.turn_on
+ entity_id: input_boolean.clint_home
+ - action: automation.turn_on
+ entity_id: automation.clint_at_work
+ - delay: "00:00:30"
diff --git a/automations/people/Clint/Clint_home_after_work.yaml b/automations/people/Clint/Clint_home_after_work.yaml
index e794875..2a39e8a 100644
--- a/automations/people/Clint/Clint_home_after_work.yaml
+++ b/automations/people/Clint/Clint_home_after_work.yaml
@@ -1,11 +1,11 @@
-initial_state: 'off'
-alias: 'clint home after work'
+initial_state: "off"
+alias: "clint home after work"
id: automation_home_after_work
#description:
trigger:
platform: state
entity_id: device_tracker.pixel_7
- to: 'home'
+ to: "home"
for:
minutes: 10
condition:
@@ -13,17 +13,17 @@ condition:
conditions:
- condition: state
entity_id: input_boolean.notify_clint_work
- state: 'on'
+ state: "on"
- condition: or
conditions:
- - condition: time
- after: '15:00:00'
- weekday:
- - mon
- - tue
- - wed
- - thu
- - fri
+ - condition: time
+ after: "15:00:00"
+ weekday:
+ - mon
+ - tue
+ - wed
+ - thu
+ - fri
action:
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
entity_id: automation.clint_home_after_work
diff --git a/automations/people/Clint/Clint_in_bed.yaml b/automations/people/Clint/Clint_in_bed.yaml
index 85248e3..5a3bca2 100644
--- a/automations/people/Clint/Clint_in_bed.yaml
+++ b/automations/people/Clint/Clint_in_bed.yaml
@@ -6,22 +6,22 @@ trigger:
# Bed in master bedroom is occupied
- platform: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
- to: 'on'
+ to: "on"
# Radio playing
- platform: state
entity_id: media_player.master_bedroom_clock
- to: 'playing'
+ to: "playing"
- platform: state
entity_id: media_player.master_bedroom_clock
- to: 'idle'
+ to: "idle"
# Light on
- platform: state
entity_id: light.master_bedroom_hue
- to: 'on'
+ to: "on"
# Front room unoccupied for at least 5 minutes
- platform: state
entity_id: input_boolean.front_room_occupied
- to: 'off'
+ to: "off"
for:
minutes: 5
# Something gets plugged in
@@ -33,39 +33,38 @@ trigger:
to: "wireless"
- platform: state
entity_id: input_boolean.clint_tablet_charging
- to: 'on'
+ to: "on"
condition:
- alias: "An adult is home and not in bed"
condition: or
conditions:
- - alias: "Clint is home and not in bed"
- condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.clint_in_bed
- state: 'off'
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - alias: "Kristy is home and not in bed"
- condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.kristy_in_bed
- state: 'off'
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'on'
+ - alias: "Clint is home and not in bed"
+ condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.clint_in_bed
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - alias: "Kristy is home and not in bed"
+ condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.kristy_in_bed
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "on"
- alias: "Its between 8:30PM and 5AM"
condition: time
- after: '20:30:00'
- before: '05:00:00'
+ after: "20:30:00"
+ before: "05:00:00"
- alias: "The bed is occupied"
condition: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
- state: 'on'
+ state: "on"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.clint_in_bed
-
diff --git a/automations/people/Clint/Clint_location_update.yaml b/automations/people/Clint/Clint_location_update.yaml
index bf8f2b8..58a78ad 100644
--- a/automations/people/Clint/Clint_location_update.yaml
+++ b/automations/people/Clint/Clint_location_update.yaml
@@ -1,5 +1,5 @@
-initial_state: 'on'
-alias: 'Clint Location Update'
+initial_state: "on"
+alias: "Clint Location Update"
id: automation_clint_location_update
mode: restart
#description:
@@ -14,8 +14,8 @@ trigger:
condition:
- condition: template
- value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
+ value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
action:
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.clint_travel_sensor
diff --git a/automations/people/Clint/Clint_travelling.yaml b/automations/people/Clint/Clint_travelling.yaml
index dcce130..3a0b16d 100644
--- a/automations/people/Clint/Clint_travelling.yaml
+++ b/automations/people/Clint/Clint_travelling.yaml
@@ -1,16 +1,16 @@
alias: Clint Travelling
id: automation_clint_travelling
-initial_state: 'on'
+initial_state: "on"
#description:
trigger:
- platform: homeassistant
event: start
- platform: time
- at: '21:00:00'
+ at: "21:00:00"
condition:
-- condition: state
- entity_id: input_boolean.clint_home
- state: 'off'
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.clint_travelling
diff --git a/automations/people/Clint/Clint_up.yaml b/automations/people/Clint/Clint_up.yaml
index 3d7860c..ae9823f 100644
--- a/automations/people/Clint/Clint_up.yaml
+++ b/automations/people/Clint/Clint_up.yaml
@@ -1,45 +1,44 @@
-alias: 'Clint Up'
+alias: "Clint Up"
id: automation_clint_up
-initial_state: 'on'
+initial_state: "on"
#description:
trigger:
- platform: state
entity_id: media_player.great_room
- to: 'playing'
+ to: "playing"
- platform: state
entity_id: media_player.great_room
- to: 'idle'
+ to: "idle"
- platform: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
- to: 'off'
- for: '00:05:00'
+ to: "off"
+ for: "00:05:00"
- platform: state
entity_id:
- binary_sensor.master_bedroom_door_contact
- binary_sensor.master_suite_door_contact
- to: 'on'
+ to: "on"
- platform: state
entity_id: binary_sensor.pixel_7_is_charging
- from: 'on'
- to: 'off'
- for: '00:10:00'
+ from: "on"
+ to: "off"
+ for: "00:10:00"
condition:
- condition: and
conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.clint_in_bed
- state: 'on'
- - condition: time
- after: '04:00:00'
- before: '22:00:00'
- - condition: state
- entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
- state: 'off'
- for: '00:01:00'
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.clint_in_bed
+ state: "on"
+ - condition: time
+ after: "04:00:00"
+ before: "22:00:00"
+ - condition: state
+ entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
+ state: "off"
+ for: "00:01:00"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.clint_in_bed
-
diff --git a/automations/people/Clint/Clint_wakeup.yaml b/automations/people/Clint/Clint_wakeup.yaml
index 64bf8f6..7c9f025 100644
--- a/automations/people/Clint/Clint_wakeup.yaml
+++ b/automations/people/Clint/Clint_wakeup.yaml
@@ -6,33 +6,33 @@ mode: restart
trigger:
- platform: state
entity_id: binary_sensor.morning
- to: 'on'
+ to: "on"
- platform: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
- to: 'on'
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.clint_home
- state: 'on'
+ state: "on"
- condition: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
- state: 'on'
+ state: "on"
- condition: state
entity_id: binary_sensor.morning
- state: 'on'
+ state: "on"
- condition: state
entity_id: binary_sensor.is_workday
- state: 'on'
+ state: "on"
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.master_bedroom_mode
- option: 'Auto'
+ option: "Auto"
- - service: homeassistant.turn_on
+ - action: homeassistant.turn_on
data:
entity_id: light.master_bedroom_hue
- - delay: '00:30:00'
+ - delay: "00:30:00"
diff --git a/automations/people/Clint/clint_changing_zones.yaml b/automations/people/Clint/clint_changing_zones.yaml
index aa87271..2707383 100644
--- a/automations/people/Clint/clint_changing_zones.yaml
+++ b/automations/people/Clint/clint_changing_zones.yaml
@@ -1,20 +1,20 @@
-initial_state: 'on'
-alias: 'Clint changing zones'
+initial_state: "on"
+alias: "Clint changing zones"
id: automation_clint_changing_zones
#description:
trigger:
# Been away for a few minutes
- platform: state
entity_id: device_tracker.pixel_7
- to: 'not_home'
- for: '00:05:00'
+ to: "not_home"
+ for: "00:05:00"
# Arrived in a zone
- platform: state
entity_id: device_tracker.pixel_7
- from: 'not_home'
+ from: "not_home"
condition:
# Been at least 5 minutes
- condition: template
value_template: "{{ ( as_timestamp(now()) - as_timestamp(state_attr('script.clint_traveltime','last_triggered'))|float)|float > 300 }}"
action:
- - service: script.clint_traveltime
+ - action: script.clint_traveltime
diff --git a/automations/people/Clint/clint_status_at_startup.yaml b/automations/people/Clint/clint_status_at_startup.yaml
index 152eb3a..9778c12 100644
--- a/automations/people/Clint/clint_status_at_startup.yaml
+++ b/automations/people/Clint/clint_status_at_startup.yaml
@@ -9,39 +9,39 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.clint_home
- state: 'on'
+ state: "on"
action:
- choose:
- - conditions:
- - condition: time
- after: '23:30:00'
- before: '00:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.clint_in_bed
+ - conditions:
+ - condition: time
+ after: "23:30:00"
+ before: "00:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.clint_in_bed
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.clint_is_awake
- - conditions:
- - condition: time
- after: '00:00:00'
- before: '06:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.clint_in_bed
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.clint_is_awake
+ - conditions:
+ - condition: time
+ after: "00:00:00"
+ before: "06:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.clint_in_bed
- - service: input_boolean.turn_off
- entity_id:
- - input_boolean.clint_is_awake
+ - action: input_boolean.turn_off
+ entity_id:
+ - input_boolean.clint_is_awake
default:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id:
- input_boolean.clint_in_bed
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id:
- - input_boolean.clint_is_awake
\ No newline at end of file
+ - input_boolean.clint_is_awake
diff --git a/automations/people/Clint/set_clint_next_alarm.yaml b/automations/people/Clint/set_clint_next_alarm.yaml
index dee1104..ca7ee74 100644
--- a/automations/people/Clint/set_clint_next_alarm.yaml
+++ b/automations/people/Clint/set_clint_next_alarm.yaml
@@ -5,38 +5,38 @@ id: automation_set_clint_next_alarm
trigger:
- platform: state
entity_id: binary_sensor.is_workday
- to: 'off'
+ to: "off"
- platform: state
entity_id: binary_sensor.is_workday
- to: 'on'
+ to: "on"
- platform: time
- at: '01:00:00'
+ at: "01:00:00"
- platform: homeassistant
event: start
action:
- choose:
- - conditions:
- - condition: state
- entity_id: binary_sensor.is_workday
- state: 'off'
- sequence:
- - service: input_datetime.set_datetime
- target:
- entity_id: input_datetime.clint_next_alarm
- data:
- time: "07:00:00"
+ - conditions:
+ - condition: state
+ entity_id: binary_sensor.is_workday
+ state: "off"
+ sequence:
+ - action: input_datetime.set_datetime
+ target:
+ entity_id: input_datetime.clint_next_alarm
+ data:
+ time: "07:00:00"
- - conditions:
- - condition: state
- entity_id: binary_sensor.is_workday
- state: 'on'
- sequence:
- - service: input_datetime.set_datetime
- target:
- entity_id: input_datetime.clint_next_alarm
- data:
- time: "05:30:00"
+ - conditions:
+ - condition: state
+ entity_id: binary_sensor.is_workday
+ state: "on"
+ sequence:
+ - action: input_datetime.set_datetime
+ target:
+ entity_id: input_datetime.clint_next_alarm
+ data:
+ time: "05:30:00"
diff --git a/automations/people/Clint/wake_clint.yaml b/automations/people/Clint/wake_clint.yaml
index 7c91ad4..71f88b6 100644
--- a/automations/people/Clint/wake_clint.yaml
+++ b/automations/people/Clint/wake_clint.yaml
@@ -1,4 +1,4 @@
-alias: 'Wake Clint'
+alias: "Wake Clint"
id: automation_wake_clint
initial_state: on
@@ -9,7 +9,7 @@ trigger:
entity_id: input_datetime.clint_next_alarm
offset: "-300"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data:
entity_id: input_boolean.master_bedroom_asleep
@@ -19,7 +19,7 @@ action:
seconds: 0
milliseconds: 0
- - service: media_player.volume_set
+ - action: media_player.volume_set
data:
entity_id: media_player.master_bedroom_clock
volume_level: 0.50
@@ -28,18 +28,18 @@ action:
- conditions:
- condition: state
entity_id: input_select.master_bedroom_mode
- state: 'off'
+ state: "off"
sequence:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
option: Energize
target:
entity_id: input_select.master_bedroom_mode
- - service: input_select.select_option
+ - action: input_select.select_option
data:
option: Energize
target:
entity_id: input_select.master_bedroom_mode
- - service: script.wake_up_the_master_bedroom
\ No newline at end of file
+ - action: script.wake_up_the_master_bedroom
diff --git a/automations/people/Ebin/ebin_away.yaml b/automations/people/Ebin/ebin_away.yaml
index a72a9a2..6ddf7f5 100644
--- a/automations/people/Ebin/ebin_away.yaml
+++ b/automations/people/Ebin/ebin_away.yaml
@@ -1,4 +1,4 @@
-alias: 'Ebin Away'
+alias: "Ebin Away"
id: automation_ebin_away
mode: restart
@@ -12,7 +12,7 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.ebin_home
- state: 'on'
+ state: "on"
action:
- - service: input_boolean.turn_off
- entity_id: input_boolean.ebin_home
\ No newline at end of file
+ - action: input_boolean.turn_off
+ entity_id: input_boolean.ebin_home
diff --git a/automations/people/Ebin/ebin_home.yaml b/automations/people/Ebin/ebin_home.yaml
index 6087474..70cbc90 100644
--- a/automations/people/Ebin/ebin_home.yaml
+++ b/automations/people/Ebin/ebin_home.yaml
@@ -1,4 +1,4 @@
-alias: 'Ebin Home'
+alias: "Ebin Home"
id: automation_ebin_home
mode: restart
@@ -12,14 +12,14 @@ trigger:
condition:
- condition: and
conditions:
- - condition: state
- entity_id: binary_sensor.have_custody
- state: 'off'
- - condition: state
- entity_id: person.kristy
- state: 'home'
+ - condition: state
+ entity_id: binary_sensor.have_custody
+ state: "off"
+ - condition: state
+ entity_id: person.kristy
+ state: "home"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.ebin_travelling
- - service: input_boolean.turn_on
- entity_id: input_boolean.ebin_home
\ No newline at end of file
+ - action: input_boolean.turn_on
+ entity_id: input_boolean.ebin_home
diff --git a/automations/people/Ebin/ebin_in_bed.yaml b/automations/people/Ebin/ebin_in_bed.yaml
index be54d2f..8dff31b 100644
--- a/automations/people/Ebin/ebin_in_bed.yaml
+++ b/automations/people/Ebin/ebin_in_bed.yaml
@@ -37,5 +37,5 @@ condition:
minutes: 5
action:
- - service: homeassistant.turn_on
+ - action: homeassistant.turn_on
entity_id: input_boolean.ebin_in_bed
diff --git a/automations/people/Ebin/ebin_location_update.yaml b/automations/people/Ebin/ebin_location_update.yaml
index d2fc672..151c510 100644
--- a/automations/people/Ebin/ebin_location_update.yaml
+++ b/automations/people/Ebin/ebin_location_update.yaml
@@ -1,4 +1,4 @@
-alias: 'Ebin Location Update'
+alias: "Ebin Location Update"
id: automation_ebin_location_update
mode: restart
@@ -10,8 +10,8 @@ trigger:
- input_boolean.ebin_home
condition:
- condition: template
- value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
+ value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
action:
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.ebin_travel_sensor
diff --git a/automations/people/Ebin/ebin_status_at_startup.yaml b/automations/people/Ebin/ebin_status_at_startup.yaml
index 6c39deb..8486b5e 100644
--- a/automations/people/Ebin/ebin_status_at_startup.yaml
+++ b/automations/people/Ebin/ebin_status_at_startup.yaml
@@ -8,39 +8,39 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.ebin_home
- state: 'on'
+ state: "on"
action:
- choose:
- - conditions:
- - condition: time
- after: '20:00:00'
- before: '21:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.ebin_in_bed
+ - conditions:
+ - condition: time
+ after: "20:00:00"
+ before: "21:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.ebin_in_bed
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.ebin_is_awake
- - conditions:
- - condition: time
- after: '21:00:00'
- before: '06:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.ebin_in_bed
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.ebin_is_awake
+ - conditions:
+ - condition: time
+ after: "21:00:00"
+ before: "06:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.ebin_in_bed
- - service: input_boolean.turn_off
- entity_id:
- - input_boolean.ebin_is_awake
+ - action: input_boolean.turn_off
+ entity_id:
+ - input_boolean.ebin_is_awake
default:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id:
- input_boolean.ebin_in_bed
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id:
- - input_boolean.ebin_is_awake
\ No newline at end of file
+ - input_boolean.ebin_is_awake
diff --git a/automations/people/Emmett/emmett_asleep.yaml b/automations/people/Emmett/emmett_asleep.yaml
index bf6205a..2950e12 100644
--- a/automations/people/Emmett/emmett_asleep.yaml
+++ b/automations/people/Emmett/emmett_asleep.yaml
@@ -6,8 +6,8 @@ trigger:
- platform: state
id: in_bed
entity_id: input_boolean.emmett_in_bed
- to: 'on'
- for: '00:20:00'
+ to: "on"
+ for: "00:20:00"
- platform: homeassistant
event: start
@@ -16,13 +16,13 @@ condition:
entity_id:
- input_boolean.emmett_home
- input_boolean.kids_bedtime
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_boolean.emmett_is_awake
- state: 'on'
+ state: "on"
- condition: trigger
id: "in_bed"
action:
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
entity_id: input_boolean.emmett_is_awake
diff --git a/automations/people/Emmett/emmett_away.yaml b/automations/people/Emmett/emmett_away.yaml
index 8e7b6d6..4fc2b88 100644
--- a/automations/people/Emmett/emmett_away.yaml
+++ b/automations/people/Emmett/emmett_away.yaml
@@ -1,20 +1,20 @@
-alias: 'Emmett Away'
+alias: "Emmett Away"
id: automation_emmett_away
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.emmett_home
- to: 'off'
+ to: "off"
- platform: time_pattern
minutes: "/5"
condition:
- condition: state
entity_id: input_boolean.emmett_home
- state: 'on'
+ state: "on"
- condition: state
entity_id: binary_sensor.emmett_home
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.emmett_home
diff --git a/automations/people/Emmett/emmett_home.yaml b/automations/people/Emmett/emmett_home.yaml
index af4ae60..d6d446d 100644
--- a/automations/people/Emmett/emmett_home.yaml
+++ b/automations/people/Emmett/emmett_home.yaml
@@ -1,22 +1,22 @@
-alias: 'Emmett Home'
+alias: "Emmett Home"
id: automation_emmett_home
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.emmett_home
- to: 'on'
+ to: "on"
- platform: time_pattern
minutes: "/5"
condition:
- condition: state
entity_id: input_boolean.emmett_home
- state: 'off'
+ state: "off"
- condition: state
entity_id: binary_sensor.emmett_home
- state: 'on'
+ state: "on"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.emmett_travelling
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.emmett_home
diff --git a/automations/people/Emmett/emmett_in_bed.yaml b/automations/people/Emmett/emmett_in_bed.yaml
index 0926575..42c7c0a 100644
--- a/automations/people/Emmett/emmett_in_bed.yaml
+++ b/automations/people/Emmett/emmett_in_bed.yaml
@@ -5,11 +5,11 @@ mode: restart
trigger:
- platform: state
entity_id: binary_sensor.white_bed_occupied
- to: 'on'
- for: '00:10:00'
+ to: "on"
+ for: "00:10:00"
- platform: state
entity_id: input_boolean.kids_bedtime
- to: 'on'
+ to: "on"
- platform: homeassistant
event: start
@@ -18,15 +18,15 @@ condition:
entity_id:
- input_boolean.emmett_home
- input_boolean.kids_bedtime
- state: 'on'
+ state: "on"
- condition: state
entity_id:
- binary_sensor.white_bed_occupied
- state: 'on'
- for: '00:10:00'
+ state: "on"
+ for: "00:10:00"
- condition: state
entity_id: input_boolean.emmett_in_bed
- state: 'off'
+ state: "off"
#- condition: state
# entity_id: binary_sensor.black_bed_occupied
# state: 'on'
@@ -34,5 +34,5 @@ condition:
# minutes: 5
action:
- - service: homeassistant.turn_on
+ - action: homeassistant.turn_on
entity_id: input_boolean.emmett_in_bed
diff --git a/automations/people/Emmett/emmett_status_at_startup.yaml b/automations/people/Emmett/emmett_status_at_startup.yaml
index 770236a..7b50682 100644
--- a/automations/people/Emmett/emmett_status_at_startup.yaml
+++ b/automations/people/Emmett/emmett_status_at_startup.yaml
@@ -8,39 +8,39 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.emmett_home
- state: 'on'
+ state: "on"
action:
- choose:
- - conditions:
- - condition: time
- after: '20:00:00'
- before: '21:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.emmett_in_bed
+ - conditions:
+ - condition: time
+ after: "20:00:00"
+ before: "21:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.emmett_in_bed
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.emmett_is_awake
- - conditions:
- - condition: time
- after: '21:00:00'
- before: '06:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.emmett_in_bed
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.emmett_is_awake
+ - conditions:
+ - condition: time
+ after: "21:00:00"
+ before: "06:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.emmett_in_bed
- - service: input_boolean.turn_off
- entity_id:
- - input_boolean.emmett_is_awake
+ - action: input_boolean.turn_off
+ entity_id:
+ - input_boolean.emmett_is_awake
default:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id:
- input_boolean.emmett_in_bed
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id:
- - input_boolean.emmett_is_awake
\ No newline at end of file
+ - input_boolean.emmett_is_awake
diff --git a/automations/people/Guest/guest_location_update.yaml b/automations/people/Guest/guest_location_update.yaml
index 1326383..c32774d 100644
--- a/automations/people/Guest/guest_location_update.yaml
+++ b/automations/people/Guest/guest_location_update.yaml
@@ -1,4 +1,4 @@
-alias: 'Guest Location Update'
+alias: "Guest Location Update"
id: automation_guest_location_update
mode: restart
@@ -8,13 +8,13 @@ trigger:
entity_id:
- input_select.guest_status_dropdown
- input_boolean.guest_home
- # Sleeping status changed
+ # Sleeping status changed
- input_boolean.guest_is_awake
- input_boolean.guest_in_bed
condition:
- condition: template
- value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
+ value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
action:
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.guest_travel_sensor
diff --git a/automations/people/Guest/guest_status_at_startup.yaml b/automations/people/Guest/guest_status_at_startup.yaml
index 3cc966b..09da83e 100644
--- a/automations/people/Guest/guest_status_at_startup.yaml
+++ b/automations/people/Guest/guest_status_at_startup.yaml
@@ -8,39 +8,39 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.guest_home
- state: 'on'
+ state: "on"
action:
- choose:
- - conditions:
- - condition: time
- after: '23:30:00'
- before: '00:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.guest_in_bed
+ - conditions:
+ - condition: time
+ after: "23:30:00"
+ before: "00:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.guest_in_bed
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.guest_is_awake
- - conditions:
- - condition: time
- after: '00:00:00'
- before: '06:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.guest_in_bed
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.guest_is_awake
+ - conditions:
+ - condition: time
+ after: "00:00:00"
+ before: "06:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.guest_in_bed
- - service: input_boolean.turn_off
- entity_id:
- - input_boolean.guest_is_awake
+ - action: input_boolean.turn_off
+ entity_id:
+ - input_boolean.guest_is_awake
default:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id:
- input_boolean.guest_in_bed
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id:
- - input_boolean.guest_is_awake
\ No newline at end of file
+ - input_boolean.guest_is_awake
diff --git a/automations/people/Kristy/kristy_asleep.yaml b/automations/people/Kristy/kristy_asleep.yaml
index 00748bd..c087400 100644
--- a/automations/people/Kristy/kristy_asleep.yaml
+++ b/automations/people/Kristy/kristy_asleep.yaml
@@ -1,26 +1,25 @@
alias: Kristy Asleep
id: automation_kristy_asleep
-initial_state: 'on'
+initial_state: "on"
trigger:
- platform: state
entity_id: input_boolean.kristy_in_bed
- to: 'on'
+ to: "on"
for:
minutes: 15
condition:
- condition: and
conditions:
- - condition: state
- entity_id: input_boolean.kristy_is_awake
- state: 'on'
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'on'
- - condition: time
- after: '20:30:00'
- before: '04:00:00'
+ - condition: state
+ entity_id: input_boolean.kristy_is_awake
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "on"
+ - condition: time
+ after: "20:30:00"
+ before: "04:00:00"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.kristy_is_awake
-
diff --git a/automations/people/Kristy/kristy_awake.yaml b/automations/people/Kristy/kristy_awake.yaml
index 356ece1..14d40fd 100644
--- a/automations/people/Kristy/kristy_awake.yaml
+++ b/automations/people/Kristy/kristy_awake.yaml
@@ -5,11 +5,11 @@ mode: restart
trigger:
- platform: state
entity_id: input_boolean.kristy_in_bed
- to: 'off'
- for: '00:05:00'
+ to: "off"
+ for: "00:05:00"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.kristy_is_awake
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.kristy_travel_sensor
diff --git a/automations/people/Kristy/kristy_away.yaml b/automations/people/Kristy/kristy_away.yaml
index c319acd..72f6f86 100644
--- a/automations/people/Kristy/kristy_away.yaml
+++ b/automations/people/Kristy/kristy_away.yaml
@@ -1,4 +1,4 @@
-alias: 'Kristy Away'
+alias: "Kristy Away"
id: automation_kristy_away
mode: restart
@@ -6,32 +6,30 @@ trigger:
- platform: state
entity_id:
- device_tracker.kristy_s_phone
- from: 'home'
+ from: "home"
- platform: homeassistant
event: start
condition:
-
- condition: state
entity_id: device_tracker.kristy_s_phone
- state: 'not_home'
+ state: "not_home"
action:
-- choose:
- - conditions:
- - condition: state
- entity_id: device_tracker.kristy_s_phone
- state: 'not_home'
- sequence:
- - service: input_boolean.turn_off
- entity_id: input_boolean.kristy_home
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: device_tracker.kristy_s_phone
+ state: "not_home"
+ sequence:
+ - action: input_boolean.turn_off
+ entity_id: input_boolean.kristy_home
- - service: input_boolean.turn_on
- entity_id: input_boolean.allow_announcements
+ - action: input_boolean.turn_on
+ entity_id: input_boolean.allow_announcements
- - service: input_boolean.turn_on
- entity_id: input_boolean.out_of_bed_alert
-
-- delay: '00:00:30'
+ - action: input_boolean.turn_on
+ entity_id: input_boolean.out_of_bed_alert
+ - delay: "00:00:30"
diff --git a/automations/people/Kristy/kristy_home.yaml b/automations/people/Kristy/kristy_home.yaml
index 6f11b70..f131e7a 100644
--- a/automations/people/Kristy/kristy_home.yaml
+++ b/automations/people/Kristy/kristy_home.yaml
@@ -1,4 +1,4 @@
-alias: 'Kristy Home'
+alias: "Kristy Home"
id: automation_kristy_home
mode: restart
@@ -10,32 +10,32 @@ trigger:
entity_id:
- group.person_kristy
- device_tracker.nmap_tracker_d6_28_7a_58_b8_da
- to: 'home'
+ to: "home"
- platform: event
event_type: automation_reloaded
condition:
- - alias: 'They were previously considered away'
+ - alias: "They were previously considered away"
condition: state
entity_id: input_boolean.kristy_home
- state: 'off'
+ state: "off"
- - alias: 'At least one tracker is home'
+ - alias: "At least one tracker is home"
condition: numeric_state
entity_id: group.person_kristy
above: 0
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_kristy', 'entity_id'))|list)|groupby('state'))['home']|count }}"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.kristy_travelling
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.kristy_home
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.allow_announcements
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.out_of_bed_alert
diff --git a/automations/people/Kristy/kristy_in_bed.yaml b/automations/people/Kristy/kristy_in_bed.yaml
index 3a5bce3..ffb9304 100644
--- a/automations/people/Kristy/kristy_in_bed.yaml
+++ b/automations/people/Kristy/kristy_in_bed.yaml
@@ -5,35 +5,34 @@ trigger:
# Bed in master bedroom is occupied
- platform: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_left
- to: 'on'
+ to: "on"
# Radio playing
- platform: state
entity_id: media_player.master_bedroom_clock
- to: 'playing'
+ to: "playing"
- platform: state
entity_id: media_player.master_bedroom_clock
- to: 'idle'
+ to: "idle"
# Light on
- platform: state
entity_id: light.master_bedroom_hue
- to: 'on'
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.kristy_in_bed
- state: 'off'
+ state: "off"
- condition: state
entity_id: input_boolean.kristy_home
- state: 'on'
+ state: "on"
- alias: "Its between 8:30PM and 5AM"
condition: time
- after: '20:30:00'
- before: '05:00:00'
+ after: "20:30:00"
+ before: "05:00:00"
- alias: "The bed is occupied"
condition: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_left
- state: 'on'
+ state: "on"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.kristy_in_bed
-
diff --git a/automations/people/Kristy/kristy_location_update.yaml b/automations/people/Kristy/kristy_location_update.yaml
index da82bb7..2a1932a 100644
--- a/automations/people/Kristy/kristy_location_update.yaml
+++ b/automations/people/Kristy/kristy_location_update.yaml
@@ -1,4 +1,4 @@
-alias: 'Kristy Location Update'
+alias: "Kristy Location Update"
id: automation_kristy_location_update
mode: restart
@@ -11,8 +11,8 @@ trigger:
condition:
- condition: template
- value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
+ value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
action:
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.kristy_travel_sensor
diff --git a/automations/people/Kristy/kristy_status_at_startup.yaml b/automations/people/Kristy/kristy_status_at_startup.yaml
index 22188d9..1f91d7f 100644
--- a/automations/people/Kristy/kristy_status_at_startup.yaml
+++ b/automations/people/Kristy/kristy_status_at_startup.yaml
@@ -9,41 +9,41 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.kristy_home
- state: 'on'
+ state: "on"
action:
- choose:
- - conditions:
- - condition: time
- after: '23:30:00'
- before: '00:00:00'
-
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.kristy_in_bed
+ - conditions:
+ - condition: time
+ after: "23:30:00"
+ before: "00:00:00"
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.kristy_is_awake
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.kristy_in_bed
- - conditions:
- - condition: time
- after: '00:00:00'
- before: '06:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.kristy_in_bed
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.kristy_is_awake
- - service: input_boolean.turn_off
- entity_id:
- - input_boolean.kristy_is_awake
+ - conditions:
+ - condition: time
+ after: "00:00:00"
+ before: "06:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.kristy_in_bed
+
+ - action: input_boolean.turn_off
+ entity_id:
+ - input_boolean.kristy_is_awake
default:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id:
- input_boolean.kristy_in_bed
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id:
- - input_boolean.kristy_is_awake
\ No newline at end of file
+ - input_boolean.kristy_is_awake
diff --git a/automations/people/Marshall/marshall_away.yaml b/automations/people/Marshall/marshall_away.yaml
index 75e7b19..e7368c0 100644
--- a/automations/people/Marshall/marshall_away.yaml
+++ b/automations/people/Marshall/marshall_away.yaml
@@ -1,17 +1,17 @@
-alias: 'Marshall Away'
+alias: "Marshall Away"
id: automation_marshall_away
mode: restart
trigger:
- platform: state
entity_id: device_tracker.nmap_tracker_fe_cf_82_b2_22_e0
- to: 'not_home'
+ to: "not_home"
condition:
- condition: state
entity_id: input_boolean.marshall_home
- state: 'on'
+ state: "on"
action:
- - service: input_boolean.turn_off
- entity_id: input_boolean.marshall_home
\ No newline at end of file
+ - action: input_boolean.turn_off
+ entity_id: input_boolean.marshall_home
diff --git a/automations/people/Marshall/marshall_home.yaml b/automations/people/Marshall/marshall_home.yaml
index 023aa28..861378b 100644
--- a/automations/people/Marshall/marshall_home.yaml
+++ b/automations/people/Marshall/marshall_home.yaml
@@ -1,4 +1,4 @@
-alias: 'Marshall Home'
+alias: "Marshall Home"
id: automation_marshall_home
mode: restart
@@ -10,25 +10,25 @@ trigger:
entity_id:
- group.person_marshall
- device_tracker.nmap_tracker_fe_cf_82_b2_22_e0
- to: 'home'
+ to: "home"
- platform: event
event_type: automation_reloaded
condition:
- - alias: 'They were previously considered away'
+ - alias: "They were previously considered away"
condition: state
entity_id: input_boolean.marshall_home
- state: 'off'
+ state: "off"
- - alias: 'At least one tracker is home'
+ - alias: "At least one tracker is home"
condition: numeric_state
entity_id: group.person_marshall
above: 0
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_marshall', 'entity_id'))|list)|groupby('state'))['home']|count }}"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.marshall_travelling
- - service: input_boolean.turn_on
- entity_id: input_boolean.marshall_home
\ No newline at end of file
+ - action: input_boolean.turn_on
+ entity_id: input_boolean.marshall_home
diff --git a/automations/people/Marshall/marshall_location_update.yaml b/automations/people/Marshall/marshall_location_update.yaml
index 45c07ba..8c274d7 100644
--- a/automations/people/Marshall/marshall_location_update.yaml
+++ b/automations/people/Marshall/marshall_location_update.yaml
@@ -1,4 +1,4 @@
-alias: 'Marshall Location Update'
+alias: "Marshall Location Update"
id: automation_marshall_location_update
mode: restart
@@ -10,11 +10,10 @@ trigger:
- input_boolean.marshall_home
condition:
- condition: template
- value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
+ value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
- condition: state
entity_id: script.marshall_travel_sensor
- state: 'off'
+ state: "off"
action:
-
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.marshall_travel_sensor
diff --git a/automations/people/Marshall/marshall_status_at_startup.yaml b/automations/people/Marshall/marshall_status_at_startup.yaml
index 6df8cda..bf8c316 100644
--- a/automations/people/Marshall/marshall_status_at_startup.yaml
+++ b/automations/people/Marshall/marshall_status_at_startup.yaml
@@ -8,39 +8,39 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.marshall_home
- state: 'on'
+ state: "on"
action:
- choose:
- - conditions:
- - condition: time
- after: '22:00:00'
- before: '23:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.marshall_in_bed
+ - conditions:
+ - condition: time
+ after: "22:00:00"
+ before: "23:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.marshall_in_bed
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.marshall_is_awake
- - conditions:
- - condition: time
- after: '23:00:00'
- before: '06:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.marshall_in_bed
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.marshall_is_awake
+ - conditions:
+ - condition: time
+ after: "23:00:00"
+ before: "06:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.marshall_in_bed
- - service: input_boolean.turn_off
- entity_id:
- - input_boolean.marshall_is_awake
+ - action: input_boolean.turn_off
+ entity_id:
+ - input_boolean.marshall_is_awake
default:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id:
- input_boolean.marshall_in_bed
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id:
- - input_boolean.marshall_is_awake
\ No newline at end of file
+ - input_boolean.marshall_is_awake
diff --git a/automations/people/Tess/tess_away.yaml b/automations/people/Tess/tess_away.yaml
index f01272b..6cc1e46 100644
--- a/automations/people/Tess/tess_away.yaml
+++ b/automations/people/Tess/tess_away.yaml
@@ -1,4 +1,4 @@
-alias: 'Tess Away'
+alias: "Tess Away"
id: automation_tess_away
mode: restart
@@ -6,15 +6,15 @@ trigger:
- platform: state
entity_id:
- person.kristy
- to: 'not_home'
+ to: "not_home"
- platform: state
entity_id:
- person.tess
- to: 'not_home'
+ to: "not_home"
condition:
- condition: state
entity_id: input_boolean.tess_home
- state: 'on'
+ state: "on"
action:
- - service: input_boolean.turn_off
- entity_id: input_boolean.tess_home
\ No newline at end of file
+ - action: input_boolean.turn_off
+ entity_id: input_boolean.tess_home
diff --git a/automations/people/Tess/tess_home.yaml b/automations/people/Tess/tess_home.yaml
index 59adb48..9f4783b 100644
--- a/automations/people/Tess/tess_home.yaml
+++ b/automations/people/Tess/tess_home.yaml
@@ -1,4 +1,4 @@
-alias: 'Tess Home'
+alias: "Tess Home"
id: automation_tess_home
mode: restart
@@ -7,18 +7,18 @@ trigger:
event_type: automation_reloaded
condition:
- - alias: 'They were previously considered away'
+ - alias: "They were previously considered away"
condition: state
entity_id: input_boolean.tess_home
- state: 'off'
+ state: "off"
- - alias: 'At least one tracker is home'
+ - alias: "At least one tracker is home"
condition: numeric_state
entity_id: group.person_tess
above: 0
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_tess', 'entity_id'))|list)|groupby('state'))['home']|count }}"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.tess_travelling
- - service: input_boolean.turn_on
- entity_id: input_boolean.tess_home
\ No newline at end of file
+ - action: input_boolean.turn_on
+ entity_id: input_boolean.tess_home
diff --git a/automations/people/Tess/tess_location_update.yaml b/automations/people/Tess/tess_location_update.yaml
index 9047f46..9dcc560 100644
--- a/automations/people/Tess/tess_location_update.yaml
+++ b/automations/people/Tess/tess_location_update.yaml
@@ -1,4 +1,4 @@
-alias: 'Tess Location Update'
+alias: "Tess Location Update"
id: automation_tess_location_update
mode: restart
@@ -10,11 +10,10 @@ trigger:
- input_boolean.tess_home
condition:
- condition: template
- value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
+ value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
- condition: state
entity_id: script.tess_travel_sensor
- state: 'off'
+ state: "off"
action:
-
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.tess_travel_sensor
diff --git a/automations/people/Tess/tess_status_at_startup.yaml b/automations/people/Tess/tess_status_at_startup.yaml
index 138443b..a706fe7 100644
--- a/automations/people/Tess/tess_status_at_startup.yaml
+++ b/automations/people/Tess/tess_status_at_startup.yaml
@@ -8,39 +8,39 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.tess_home
- state: 'on'
+ state: "on"
action:
- choose:
- - conditions:
- - condition: time
- after: '22:00:00'
- before: '23:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.tess_in_bed
+ - conditions:
+ - condition: time
+ after: "22:00:00"
+ before: "23:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.tess_in_bed
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.tess_is_awake
- - conditions:
- - condition: time
- after: '23:00:00'
- before: '06:00:00'
- sequence:
- - service: input_boolean.turn_on
- entity_id:
- - input_boolean.tess_in_bed
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.tess_is_awake
+ - conditions:
+ - condition: time
+ after: "23:00:00"
+ before: "06:00:00"
+ sequence:
+ - action: input_boolean.turn_on
+ entity_id:
+ - input_boolean.tess_in_bed
- - service: input_boolean.turn_off
- entity_id:
- - input_boolean.tess_is_awake
+ - action: input_boolean.turn_off
+ entity_id:
+ - input_boolean.tess_is_awake
default:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id:
- input_boolean.tess_in_bed
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id:
- - input_boolean.tess_is_awake
\ No newline at end of file
+ - input_boolean.tess_is_awake
diff --git a/automations/people/adults_asleep.yaml b/automations/people/adults_asleep.yaml
index 19a14a7..8a5dbb0 100644
--- a/automations/people/adults_asleep.yaml
+++ b/automations/people/adults_asleep.yaml
@@ -10,60 +10,60 @@ trigger:
- input_boolean.clint_is_awake
- input_boolean.kristy_is_awake
- input_boolean.guest_is_awake
- to: 'off'
+ to: "off"
action:
- choose:
- conditions:
- condition: or
conditions:
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.clint_is_awake
- state: 'off'
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.kristy_is_awake
- state: 'off'
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'on'
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.guest_is_awake
- state: 'off'
- - condition: state
- entity_id: input_boolean.guest_home
- state: 'on'
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.clint_is_awake
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.kristy_is_awake
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "on"
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.guest_is_awake
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.guest_home
+ state: "on"
sequence:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
data:
entity_id:
- input_boolean.asleep
- input_boolean.teens_asleep
- input_boolean.kids_asleep
- - service: input_select.select_option
+ - action: input_select.select_option
target:
entity_id: input_select.master_bedroom_mode
data:
option: Nightlight
- choose:
- - conditions:
- - condition: state
- entity_id: binary_sensor.patio_door_contact
- state: 'off'
- sequence:
- - service: lock.lock
- target:
- entity_id: lock.patio_door
+ - conditions:
+ - condition: state
+ entity_id: binary_sensor.patio_door_contact
+ state: "off"
+ sequence:
+ - action: lock.lock
+ target:
+ entity_id: lock.patio_door
default:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data:
entity_id: input_boolean.asleep
diff --git a/automations/people/adults_awake.yaml b/automations/people/adults_awake.yaml
index 632bbfd..431b819 100644
--- a/automations/people/adults_awake.yaml
+++ b/automations/people/adults_awake.yaml
@@ -20,17 +20,17 @@ trigger:
- platform: state
id: late_morning
entity_id: binary_sensor.late_morning
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
- platform: homeassistant
event: start
condition:
- condition: time
- after: '04:30:00'
+ after: "04:30:00"
- condition: time
- before: '10:00:00'
+ before: "10:00:00"
- condition: or
conditions:
- condition: trigger
@@ -39,57 +39,56 @@ condition:
id: wake_clint
- condition: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
- state: 'off'
- for: '00:10:00'
+ state: "off"
+ for: "00:10:00"
- condition: and
conditions:
- - condition: or
- conditions:
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'off'
- - condition: and
+ - condition: or
conditions:
- - condition: or
- conditions:
- condition: state
- entity_id: input_boolean.kristy_is_awake
- state: 'on'
- - condition: state
- entity_id: input_boolean.kristy_in_bed
- state: 'off'
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'on'
- - condition: or
- conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'off'
- - condition: and
+ entity_id: input_boolean.kristy_home
+ state: "off"
+ - condition: and
+ conditions:
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_boolean.kristy_is_awake
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.kristy_in_bed
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "on"
+ - condition: or
conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - condition: or
- conditions:
- condition: state
- entity_id: input_boolean.clint_is_awake
- state: 'on'
- - condition: state
- entity_id: input_boolean.clint_in_bed
- state: 'off'
+ entity_id: input_boolean.clint_home
+ state: "off"
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_boolean.clint_is_awake
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.clint_in_bed
+ state: "off"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id:
- input_boolean.bedtime
- input_boolean.asleep
- input_boolean.master_bedroom_asleep
- - service: input_select.select_option
+ - action: input_select.select_option
target:
entity_id: input_select.master_bedroom_mode
data:
option: Auto
-
diff --git a/automations/people/adults_away.yaml b/automations/people/adults_away.yaml
index 43c28b8..6cb6e7b 100644
--- a/automations/people/adults_away.yaml
+++ b/automations/people/adults_away.yaml
@@ -8,20 +8,20 @@ trigger:
- input_boolean.clint_home
- input_boolean.kristy_home
- input_boolean.guest_home
- to: 'off'
+ to: "off"
condition:
# All away
- condition: and
conditions:
- condition: state
entity_id: input_boolean.clint_home
- state: 'off'
+ state: "off"
- condition: state
entity_id: input_boolean.kristy_home
- state: 'off'
+ state: "off"
- condition: state
entity_id: input_boolean.guest_home
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.adults_away
diff --git a/automations/people/adults_away_something_open.yaml b/automations/people/adults_away_something_open.yaml
index 9e8b9c8..88d5b9e 100644
--- a/automations/people/adults_away_something_open.yaml
+++ b/automations/people/adults_away_something_open.yaml
@@ -10,13 +10,13 @@ trigger:
condition:
- condition: state
entity_id: binary_sensor.something_open
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_boolean.home_occupied
state: "off"
action:
# Notify the last person to leave
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
message: >-
{% if as_timestamp(states.input_boolean.kristy_home.last_updated) > as_timestamp(states.input_boolean.clint_home.last_updated) %}
diff --git a/automations/people/adults_returned.yaml b/automations/people/adults_returned.yaml
index 1d7f9f1..695d09c 100644
--- a/automations/people/adults_returned.yaml
+++ b/automations/people/adults_returned.yaml
@@ -1,4 +1,4 @@
-alias: 'Adults returned'
+alias: "Adults returned"
id: automation_adults_returned
mode: restart
@@ -8,11 +8,11 @@ trigger:
- input_boolean.clint_home
- input_boolean.kristy_home
- input_boolean.guest_home
- to: 'on'
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.adults_away
- state: 'on'
+ state: "on"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.adults_away
diff --git a/automations/people/all_away.yaml b/automations/people/all_away.yaml
index 7c103d5..4769dff 100644
--- a/automations/people/all_away.yaml
+++ b/automations/people/all_away.yaml
@@ -1,4 +1,4 @@
-alias: 'All away'
+alias: "All away"
id: automation_all_away
mode: restart
@@ -17,41 +17,41 @@ trigger:
- input_boolean.computer_area_occupied
- input_boolean.kitchen_occupied
- input_boolean.great_room_occupied
- to: 'off'
+ to: "off"
condition:
# Adults are away
- condition: and
conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'off'
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'off'
- - condition: state
- entity_id: input_boolean.guest_home
- state: 'off'
- # Kids are away
- - condition: state
- entity_id: input_boolean.emmett_home
- state: 'off'
- - condition: state
- entity_id: input_boolean.bridget_home
- state: 'off'
- - condition: state
- entity_id: input_boolean.marshall_home
- state: 'off'
- - condition: state
- entity_id: input_boolean.tess_home
- state: 'off'
- - condition: state
- entity_id: input_boolean.ebin_home
- state: 'off'
- # And not in guest mode
- - condition: state
- entity_id: input_boolean.guest_mode
- state: 'off'
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.guest_home
+ state: "off"
+ # Kids are away
+ - condition: state
+ entity_id: input_boolean.emmett_home
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.bridget_home
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.marshall_home
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.tess_home
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.ebin_home
+ state: "off"
+ # And not in guest mode
+ - condition: state
+ entity_id: input_boolean.guest_mode
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.all_away
- - delay: '00:00:30'
\ No newline at end of file
+ - delay: "00:00:30"
diff --git a/automations/people/all_returned.yaml b/automations/people/all_returned.yaml
index 6c903bd..39acab5 100644
--- a/automations/people/all_returned.yaml
+++ b/automations/people/all_returned.yaml
@@ -1,4 +1,4 @@
-alias: 'All returned'
+alias: "All returned"
id: automation_all_returned
mode: restart
@@ -7,7 +7,7 @@ trigger:
entity_id:
- input_boolean.clint_home
- input_boolean.kristy_home
- to: 'on'
+ to: "on"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.all_away
diff --git a/automations/people/almost_bedtime.yaml b/automations/people/almost_bedtime.yaml
index 64171de..d541e34 100644
--- a/automations/people/almost_bedtime.yaml
+++ b/automations/people/almost_bedtime.yaml
@@ -22,7 +22,7 @@ condition:
entity_id: input_boolean.ebin_home
state: "on"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
target:
entity_id: input_boolean.kids_bedtime
@@ -31,7 +31,7 @@ action:
- condition: template
value_template: "{{states('media_player.announcements') == 'unknown' or states('media_player.announcements') == 'unavailable' }}"
sequence:
- - service: script.make_clever_announcement
+ - action: script.make_clever_announcement
data:
entity_id:
- media_player.bathroom_mini
@@ -40,7 +40,7 @@ action:
media_content_id: media-source://media_source/tts/almost_bedtime.mp3
volume: 0.7
default:
- - service: script.make_clever_announcement
+ - action: script.make_clever_announcement
data:
entity_id: media_player.announcements
media_content_id: media-source://media_source/tts/almost_bedtime.mp3
@@ -54,7 +54,7 @@ action:
- condition: template
value_template: "{{states('switch.nursery_bed_lights') == 'off' }}"
sequence:
- - service: input_select.select_option
+ - action: input_select.select_option
target:
entity_id: input_select.nursery_wled
data:
diff --git a/automations/people/almost_bedtime_tts.yaml b/automations/people/almost_bedtime_tts.yaml
index ccaf360..674626a 100644
--- a/automations/people/almost_bedtime_tts.yaml
+++ b/automations/people/almost_bedtime_tts.yaml
@@ -1,4 +1,4 @@
-alias: 'Almost Bedtime TTS'
+alias: "Almost Bedtime TTS"
id: automation_almost_bedtime_tts
initial_state: off
trigger:
@@ -9,18 +9,18 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.announce_bedtime
- state: 'on'
+ state: "on"
- condition: or
conditions:
- - condition: state
- entity_id: input_boolean.emmett_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.bridget_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.ebin_home
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.emmett_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.bridget_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.ebin_home
+ state: "on"
action:
- action: media_player.volume_set
data_template:
@@ -29,20 +29,20 @@ action:
- media_player.bathroom_mini
- media_player.front_room_hub
- media_player.kitchen
- - media_player.nursery_hub
+ - media_player.girls_room_hub
- media_player.master_bedroom_clock
volume_level: 0.7
- - delay: '00:00:03'
+ - delay: "00:00:03"
- action: tts.speak
target:
entity_id: tts.google_translate_en_com
data:
media_player_entity_id: media_player.all_speakers
message: Alright kids. Its almost bedtime. You've got 5 minutes.
- - delay: '00:00:10'
- - service: media_player.turn_off
+ - delay: "00:00:10"
+ - action: media_player.turn_off
entity_id: media_player.all_speakers
- - service: input_select.select_option
+ - action: input_select.select_option
entity_id: input_select.automatic_light_profile
data:
- option: Dimmed
\ No newline at end of file
+ option: Dimmed
diff --git a/automations/people/bedtime.yaml b/automations/people/bedtime.yaml
index cbb6004..7ab5e71 100644
--- a/automations/people/bedtime.yaml
+++ b/automations/people/bedtime.yaml
@@ -1,5 +1,5 @@
-initial_state: 'on'
-alias: 'Bedtime'
+initial_state: "on"
+alias: "Bedtime"
id: automation_bedtime
trigger:
# - platform: homeassistant
@@ -9,44 +9,44 @@ trigger:
entity_id:
- input_boolean.kristy_in_bed
- input_boolean.clint_in_bed
- to: 'on'
+ to: "on"
condition:
- condition: and
conditions:
- - condition: or
- conditions:
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'off'
- - condition: and
+ - condition: or
conditions:
- - condition: state
- entity_id: input_boolean.kristy_in_bed
- state: 'on'
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'on'
- - condition: or
- conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'off'
- - condition: and
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "off"
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.kristy_in_bed
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "on"
+ - condition: or
conditions:
- - condition: state
- entity_id: input_boolean.clint_in_bed
- state: 'on'
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "off"
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.clint_in_bed
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id:
- input_boolean.bedtime
- input_boolean.teens_bedtime
- input_boolean.kids_bedtime
- - service: input_select.select_option
+ - action: input_select.select_option
target:
entity_id: input_select.automatic_light_profile
data:
- option: Nightlight
\ No newline at end of file
+ option: Nightlight
diff --git a/automations/people/bedtime_something_open.yaml b/automations/people/bedtime_something_open.yaml
index 2243f3d..28f9aa7 100644
--- a/automations/people/bedtime_something_open.yaml
+++ b/automations/people/bedtime_something_open.yaml
@@ -1,30 +1,30 @@
-alias: 'Bedtime something open'
+alias: "Bedtime something open"
id: automation_bedtime_something_open
mode: restart
trigger:
- platform: state
entity_id: input_boolean.clint_is_awake
- to: 'off'
+ to: "off"
condition:
condition: and
conditions:
# We're both in bed
- condition: state
entity_id: input_boolean.clint_is_awake
- state: 'off'
+ state: "off"
- condition: state
entity_id: binary_sensor.something_open
- state: 'on'
+ state: "on"
- condition: state
entity_id: binary_sensor.impending_rain
- state: 'on'
+ state: "on"
action:
- - service: media_player.turn_on
+ - action: media_player.turn_on
data_template:
entity_id: media_player.master_bedroom_clock
- - service: media_player.volume_set
+ - action: media_player.volume_set
data_template:
volume_level: 0.30
entity_id: media_player.master_bedroom_clock
@@ -36,7 +36,7 @@ action:
message: >-
The following are open:
{{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_exterior_windows', 'entity_id') + state_attr('group.my_exterior_doors', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
- - delay: '00:01:00'
- - service: media_player.turn_off
+ - delay: "00:01:00"
+ - action: media_player.turn_off
data:
entity_id: media_player.master_bedroom_clock
diff --git a/automations/people/continue_nursery_noise.yaml b/automations/people/continue_nursery_noise.yaml
index a576ba3..41fe6fb 100644
--- a/automations/people/continue_nursery_noise.yaml
+++ b/automations/people/continue_nursery_noise.yaml
@@ -2,52 +2,52 @@ alias: Continue Nursery Noise
id: automation_continue_nursery_noise
trigger:
- platform: state
- entity_id: media_player.nursery_hub
+ entity_id: media_player.girls_room_hub
from: "playing"
condition:
- condition: state
entity_id: input_boolean.nursery_asleep
- state: 'on'
+ state: "on"
- condition: or
conditions:
- condition: and
conditions:
- - condition: state
- entity_id: input_boolean.emmett_in_bed
- state: 'on'
- - condition: state
- entity_id: input_boolean.emmett_home
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.emmett_in_bed
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.emmett_home
+ state: "on"
- condition: and
conditions:
- - condition: state
- entity_id: input_boolean.bridget_in_bed
- state: 'on'
- - condition: state
- entity_id: input_boolean.bridget_home
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.bridget_in_bed
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.bridget_home
+ state: "on"
- condition: and
conditions:
- - condition: state
- entity_id: input_boolean.ebin_in_bed
- state: 'on'
- - condition: state
- entity_id: input_boolean.ebin_home
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.ebin_in_bed
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.ebin_home
+ state: "on"
- condition: state
entity_id: input_select.nursery_mode
- state: 'Night on'
+ state: "Night on"
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.google_home
- option: 'Nursery'
- - service: input_select.select_option
+ option: "Nursery"
+ - action: input_select.select_option
data:
entity_id: input_select.ambient_sound
- option: 'Random White Noise'
- - service: input_number.set_value
+ option: "Random White Noise"
+ - action: input_number.set_value
data:
entity_id: input_number.volume_ambientsounds
- value: '0.35'
- - service: script.ambientsounds
+ value: "0.35"
+ - action: script.ambientsounds
diff --git a/automations/people/goodnight_kids.yaml b/automations/people/goodnight_kids.yaml
index 94c60f5..2f36bd0 100644
--- a/automations/people/goodnight_kids.yaml
+++ b/automations/people/goodnight_kids.yaml
@@ -22,7 +22,7 @@ condition:
entity_id: input_boolean.ebin_home
state: "on"
action:
- - service: homeassistant.turn_on
+ - action: homeassistant.turn_on
entity_id: input_boolean.kids_bedtime
- choose:
@@ -30,7 +30,7 @@ action:
- condition: template
value_template: "{{states('media_player.announcements') == 'unknown' or states('media_player.announcements') == 'unavailable' }}"
sequence:
- - service: script.make_clever_announcement
+ - action: script.make_clever_announcement
data:
entity_id:
- media_player.bathroom_mini
@@ -60,7 +60,7 @@ action:
{% endif %}
volume: 0.7
default:
- - service: script.make_clever_announcement
+ - action: script.make_clever_announcement
data:
entity_id: media_player.announcements
media_content_id: >-
@@ -93,29 +93,29 @@ action:
- choose:
- conditions: "{{is_state_attr('media_player.front_room_tv','source','YouTube')}}"
sequence:
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
entity_id: media_player.front_room_tv
- choose:
- conditions: "{{is_state_attr('media_player.downstairs_roku','source','YouTube')}}"
sequence:
- - service: media_player.select_source
+ - action: media_player.select_source
data:
source: Home
target:
entity_id: media_player.downstairs_roku
- # - service: homeassistant.turn_off
+ # - action: homeassistant.turn_off
# entity_id: switch.shelly_projector
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.automatic_light_profile
option: Dimmed
- delay: "00:00:01"
- # - service: media_player.play_media
+ # - action: media_player.play_media
# target:
# entity_id: media_player.front_room_hub
# data:
@@ -136,13 +136,13 @@ action:
- choose:
- conditions: "{{is_state('input_boolean.ebin_home','on')}}"
sequence:
- - service: input_select.select_option
+ - action: input_select.select_option
target:
entity_id: input_select.nursery_wled
data:
option: "Off"
- - service: input_select.select_option
+ - action: input_select.select_option
target:
entity_id: input_select.nursery_mode
data:
@@ -153,25 +153,25 @@ action:
- choose:
- conditions: "{{is_state('input_boolean.bridget_home','on')}}"
sequence:
- - service: input_button.press
+ - action: input_button.press
data: {}
target:
entity_id: input_button.nursery_bedtime
- - service: input_select.select_option
+ - action: input_select.select_option
data:
option: Running Rainbow
target:
entity_id: input_select.nursery_wled
- # - service: automation.trigger
+ # - action: automation.trigger
# target:
# entity_id: automation.nursery_wled_changed
# - choose:
# - conditions: "{{is_state('input_boolean.bridget_home','on')}}"
# sequence:
- # - service: input_boolean.turn_on
+ # - action: input_boolean.turn_on
# data: {}
# target:
# entity_id: input_boolean.nursery_asleep
@@ -181,7 +181,7 @@ action:
# - choose:
# - conditions: "{{is_state('media_player.ytube_music_player','on')}}"
# sequence:
- # - service: media_player.turn_off
+ # - action: media_player.turn_off
# target:
# entity_id: media_player.ytube_music_player
@@ -190,13 +190,13 @@ action:
- choose:
- conditions: "{{is_state('input_boolean.emmett_home','on')}}"
sequence:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
data: {}
target:
- entity_id: input_boolean.blue_room_asleep
+ entity_id: input_boolean.boys_room_asleep
- - service: input_select.select_option
+ - action: input_select.select_option
target:
- entity_id: input_select.blue_room_mode
+ entity_id: input_select.boys_room_mode
data:
- option: "Nightlight"
\ No newline at end of file
+ option: "Nightlight"
diff --git a/automations/people/kids_asleep.yaml b/automations/people/kids_asleep.yaml
index 6f6899e..9039e76 100644
--- a/automations/people/kids_asleep.yaml
+++ b/automations/people/kids_asleep.yaml
@@ -10,48 +10,47 @@ trigger:
- input_boolean.emmett_is_awake
- input_boolean.bridget_is_awake
- input_boolean.ebin_is_awake
- to: 'off'
+ to: "off"
- platform: state
entity_id: input_boolean.kids_away
- to: 'on'
+ to: "on"
action:
- choose:
- conditions:
- condition: or
conditions:
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.emmett_is_awake
- state: 'off'
- - condition: state
- entity_id: input_boolean.emmett_home
- state: 'on'
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.bridget_is_awake
- state: 'off'
- - condition: state
- entity_id: input_boolean.bridget_home
- state: 'on'
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.ebin_is_awake
- state: 'off'
- - condition: state
- entity_id: input_boolean.ebin_home
- state: 'on'
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.emmett_is_awake
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.emmett_home
+ state: "on"
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.bridget_is_awake
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.bridget_home
+ state: "on"
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.ebin_is_awake
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.ebin_home
+ state: "on"
sequence:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
data:
entity_id: input_boolean.kids_asleep
default:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data:
entity_id: input_boolean.kids_asleep
-
diff --git a/automations/people/kids_awake.yaml b/automations/people/kids_awake.yaml
index 65cd77b..cb1a0fc 100644
--- a/automations/people/kids_awake.yaml
+++ b/automations/people/kids_awake.yaml
@@ -15,8 +15,8 @@ trigger:
- platform: state
entity_id:
- - binary_sensor.black_bed_occupied
- - binary_sensor.white_bed_occupied
+ - binary_sensor.emmetts_bed
+ - binary_sensor.bridgets_bed
to: "off"
for: "00:05:00"
@@ -46,10 +46,10 @@ condition:
- condition: or
conditions:
- condition: state
- entity_id: binary_sensor.black_bed_occupied
+ entity_id: binary_sensor.emmetts_bed
state: "off"
- condition: state
- entity_id: binary_sensor.black_bed_occupied
+ entity_id: binary_sensor.emmetts_bed
state: "unavailable"
- condition: or
conditions:
@@ -67,10 +67,10 @@ condition:
- condition: or
conditions:
- condition: state
- entity_id: binary_sensor.white_bed_occupied
+ entity_id: binary_sensor.bridgets_bed
state: "off"
- condition: state
- entity_id: binary_sensor.white_bed_occupied
+ entity_id: binary_sensor.bridgets_bed
state: "unavailable"
- condition: or
conditions:
@@ -88,21 +88,21 @@ condition:
- condition: or
conditions:
- condition: state
- entity_id: binary_sensor.black_bed_occupied
+ entity_id: binary_sensor.emmetts_bed
state: "off"
- condition: state
- entity_id: binary_sensor.black_bed_occupied
+ entity_id: binary_sensor.emmetts_bed
state: "unavailable"
- condition: or
conditions:
- condition: state
- entity_id: binary_sensor.white_bed_occupied
+ entity_id: binary_sensor.bridgets_bed
state: "off"
- condition: state
- entity_id: binary_sensor.white_bed_occupied
+ entity_id: binary_sensor.bridgets_bed
state: "unavailable"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id:
- input_boolean.kids_bedtime
- input_boolean.kids_asleep
@@ -118,15 +118,15 @@ action:
- condition: or
conditions:
- condition: state
- entity_id: binary_sensor.black_bed_occupied
+ entity_id: binary_sensor.emmetts_bed
state: "off"
- condition: state
- entity_id: binary_sensor.black_bed_occupied
+ entity_id: binary_sensor.emmetts_bed
state: "unavailable"
sequence:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.emmett_in_bed
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.emmett_is_awake
- choose:
@@ -140,15 +140,15 @@ action:
- condition: or
conditions:
- condition: state
- entity_id: binary_sensor.white_bed_occupied
+ entity_id: binary_sensor.bridgets_bed
state: "off"
- condition: state
- entity_id: binary_sensor.white_bed_occupied
+ entity_id: binary_sensor.bridgets_bed
state: "unavailable"
sequence:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.bridget_in_bed
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.bridget_is_awake
- choose:
@@ -162,42 +162,34 @@ action:
- condition: or
conditions:
- condition: state
- entity_id: binary_sensor.black_bed_occupied
+ entity_id: binary_sensor.emmetts_bed
state: "off"
- condition: state
- entity_id: binary_sensor.black_bed_occupied
+ entity_id: binary_sensor.emmetts_bed
state: "unavailable"
- condition: or
conditions:
- condition: state
- entity_id: binary_sensor.white_bed_occupied
+ entity_id: binary_sensor.bridgets_bed
state: "off"
- condition: state
- entity_id: binary_sensor.white_bed_occupied
+ entity_id: binary_sensor.bridgets_bed
state: "unavailable"
sequence:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.ebin_in_bed
- - service: input_boolean.turn_on
- entity_id: input_boolean.bridget_is_awake
+ - action: input_boolean.turn_on
+ entity_id: input_boolean.ebin_is_awake
- choose:
- conditions:
- condition: or
conditions:
- condition: state
- entity_id: binary_sensor.black_bed_occupied
+ entity_id: binary_sensor.bridgets_bed
state: "off"
- condition: state
- entity_id: binary_sensor.black_bed_occupied
- state: "unavailable"
- - condition: or
- conditions:
- - condition: state
- entity_id: binary_sensor.white_bed_occupied
- state: "off"
- - condition: state
- entity_id: binary_sensor.white_bed_occupied
+ entity_id: binary_sensor.bridgets_bed
state: "unavailable"
- condition: not
conditions:
@@ -208,7 +200,31 @@ action:
entity_id: input_select.house
state: "Away"
sequence:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.nursery_mode
option: Auto
+
+ - choose:
+ - conditions:
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: binary_sensor.emmetts_bed
+ state: "off"
+ - condition: state
+ entity_id: binary_sensor.emmetts_bed
+ state: "unavailable"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.boys_room_mode
+ state: "Manual"
+ - condition: state
+ entity_id: input_select.house
+ state: "Away"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.boys_room_mode
+ option: Auto
diff --git a/automations/people/kids_away.yaml b/automations/people/kids_away.yaml
index 96979ab..ce17b31 100644
--- a/automations/people/kids_away.yaml
+++ b/automations/people/kids_away.yaml
@@ -8,10 +8,10 @@ trigger:
- input_boolean.emmett_home
- input_boolean.bridget_home
- input_boolean.ebin_home
- to: 'off'
+ to: "off"
- platform: state
entity_id: binary_sensor.kids_at_home
- to: 'off'
+ to: "off"
condition:
- condition: state
entity_id:
@@ -19,8 +19,8 @@ condition:
- input_boolean.bridget_home
- input_boolean.ebin_home
- binary_sensor.kids_at_home
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.kids_away
diff --git a/automations/people/kids_away_videos_on.yaml b/automations/people/kids_away_videos_on.yaml
index 60b2d68..84a2619 100644
--- a/automations/people/kids_away_videos_on.yaml
+++ b/automations/people/kids_away_videos_on.yaml
@@ -4,113 +4,113 @@ id: automation_kids_away_videos_on
trigger:
- platform: state
entity_id: input_boolean.kids_away
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
condition:
- condition: or
conditions:
- - condition: state
- entity_id: media_player.front_room_tv
- state: 'on'
- - condition: state
- entity_id: media_player.front_room_tv
- state: 'playing'
+ - condition: state
+ entity_id: media_player.front_room_tv
+ state: "on"
+ - condition: state
+ entity_id: media_player.front_room_tv
+ state: "playing"
- condition: or
conditions:
- - condition: state
- entity_id: media_player.front_room_tv
- attribute: source
- state: 'PBS Kids'
- - condition: state
- entity_id: media_player.front_room_tv
- attribute: source
- state: 'YouTube'
- - condition: state
- entity_id: media_player.front_room_hub
- attribute: source
- state: 'PBS Kids'
- - condition: state
- entity_id: media_player.front_room_hub
- attribute: source
- state: 'YouTube'
- - condition: state
- entity_id: media_player.master_bedroom_clock
- attribute: source
- state: 'PBS Kids'
- - condition: state
- entity_id: media_player.master_bedroom_clock
- attribute: source
- state: 'YouTube'
+ - condition: state
+ entity_id: media_player.front_room_tv
+ attribute: source
+ state: "PBS Kids"
+ - condition: state
+ entity_id: media_player.front_room_tv
+ attribute: source
+ state: "YouTube"
+ - condition: state
+ entity_id: media_player.front_room_hub
+ attribute: source
+ state: "PBS Kids"
+ - condition: state
+ entity_id: media_player.front_room_hub
+ attribute: source
+ state: "YouTube"
+ - condition: state
+ entity_id: media_player.master_bedroom_clock
+ attribute: source
+ state: "PBS Kids"
+ - condition: state
+ entity_id: media_player.master_bedroom_clock
+ attribute: source
+ state: "YouTube"
action:
-- choose:
- - conditions:
- - condition: state
- entity_id: media_player.front_room_tv
- state: 'playing'
- - condition: or
- conditions:
- - condition: state
- entity_id: media_player.front_room_tv
- attribute: source
- state: 'YouTube'
- - condition: state
- entity_id: media_player.front_room_tv
- attribute: source
- state: 'PBS Kids'
- sequence:
- - service: media_player.select_source
- data:
- entity_id: media_player.front_room_tv
- source: Home
- - service: media_player.turn_off
- data:
- entity_id: media_player.front_room_tv
-- choose:
- - conditions:
- - condition: state
- entity_id: media_player.front_room_hub
- state: 'playing'
- - condition: or
- conditions:
- - condition: state
- entity_id: media_player.front_room_hub
- attribute: source
- state: 'YouTube'
- - condition: state
- entity_id: media_player.front_room_hub
- attribute: source
- state: 'PBS Kids'
- sequence:
- - service: media_player.select_source
- data:
- entity_id: media_player.front_room_hub
- source: Home
- - service: media_player.turn_off
- data:
- entity_id: media_player.front_room_hub
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: media_player.front_room_tv
+ state: "playing"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: media_player.front_room_tv
+ attribute: source
+ state: "YouTube"
+ - condition: state
+ entity_id: media_player.front_room_tv
+ attribute: source
+ state: "PBS Kids"
+ sequence:
+ - action: media_player.select_source
+ data:
+ entity_id: media_player.front_room_tv
+ source: Home
+ - action: media_player.turn_off
+ data:
+ entity_id: media_player.front_room_tv
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: media_player.front_room_hub
+ state: "playing"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: media_player.front_room_hub
+ attribute: source
+ state: "YouTube"
+ - condition: state
+ entity_id: media_player.front_room_hub
+ attribute: source
+ state: "PBS Kids"
+ sequence:
+ - action: media_player.select_source
+ data:
+ entity_id: media_player.front_room_hub
+ source: Home
+ - action: media_player.turn_off
+ data:
+ entity_id: media_player.front_room_hub
-- choose:
- - conditions:
- - condition: state
- entity_id: media_player.master_bedroom_clock
- state: 'playing'
- - condition: or
- conditions:
- - condition: state
- entity_id: media_player.master_bedroom_clock
- attribute: source
- state: 'YouTube'
- - condition: state
- entity_id: media_player.master_bedroom_clock
- attribute: source
- state: 'PBS Kids'
- sequence:
- - service: media_player.select_source
- data:
- entity_id: media_player.master_bedroom_clock
- source: Home
- - service: media_player.turn_off
- data:
- entity_id: media_player.master_bedroom_clock
\ No newline at end of file
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: media_player.master_bedroom_clock
+ state: "playing"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: media_player.master_bedroom_clock
+ attribute: source
+ state: "YouTube"
+ - condition: state
+ entity_id: media_player.master_bedroom_clock
+ attribute: source
+ state: "PBS Kids"
+ sequence:
+ - action: media_player.select_source
+ data:
+ entity_id: media_player.master_bedroom_clock
+ source: Home
+ - action: media_player.turn_off
+ data:
+ entity_id: media_player.master_bedroom_clock
diff --git a/automations/people/kids_returned.yaml b/automations/people/kids_returned.yaml
index b63cffc..0471487 100644
--- a/automations/people/kids_returned.yaml
+++ b/automations/people/kids_returned.yaml
@@ -8,11 +8,11 @@ trigger:
- input_boolean.emmett_home
- input_boolean.bridget_home
- input_boolean.ebin_home
- to: 'on'
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.kids_away
- state: 'on'
+ state: "on"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.kids_away
diff --git a/automations/people/nearly_home.yaml b/automations/people/nearly_home.yaml
index 278b4e2..d3cb9d0 100644
--- a/automations/people/nearly_home.yaml
+++ b/automations/people/nearly_home.yaml
@@ -1,17 +1,17 @@
-alias: 'Nearly Home'
+alias: "Nearly Home"
id: automation_nearly_home
-initial_state: 'on'
+initial_state: "on"
trigger:
- platform: state
entity_id:
- binary_sensor.garage_door
- binary_sensor.front_door_contact
- to: 'on'
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.home_occupied
- state: 'off'
- for: '00:10:00'
+ state: "off"
+ for: "00:10:00"
- condition: numeric_state
entity_id: sensor.deck_light_level
below: 25
@@ -19,7 +19,7 @@ condition:
entity_id: sensor.sun_elevation
below: 15
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.entryway_mode
- option: 'Auto'
+ option: "Auto"
diff --git a/automations/people/people_count_changed.yaml b/automations/people/people_count_changed.yaml
index 3c64d73..ecebee7 100644
--- a/automations/people/people_count_changed.yaml
+++ b/automations/people/people_count_changed.yaml
@@ -10,18 +10,18 @@ trigger:
action:
- choose:
- - conditions:
- - condition: state
- entity_id: person.clint
- state: 'home'
- - condition: numeric_state
- entity_id: sensor.people_count
- above: 0
- below: 2
- sequence:
- - service: homeassistant.turn_on
- entity_id: input_boolean.clint_home_alone
+ - conditions:
+ - condition: state
+ entity_id: person.clint
+ state: "home"
+ - condition: numeric_state
+ entity_id: sensor.people_count
+ above: 0
+ below: 2
+ sequence:
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.clint_home_alone
default:
- - service: homeassistant.turn_off
- entity_id: input_boolean.clint_home_alone
\ No newline at end of file
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.clint_home_alone
diff --git a/automations/people/person_arrived.yaml b/automations/people/person_arrived.yaml
index 7379fda..59e01ae 100644
--- a/automations/people/person_arrived.yaml
+++ b/automations/people/person_arrived.yaml
@@ -16,7 +16,7 @@ trigger:
from: "off"
to: "on"
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data_template:
entity_id: >
{% if trigger.entity_id == 'input_boolean.clint_home' %}
@@ -87,16 +87,15 @@ action:
{% endif %}
{% endif %}
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Person Arrived
entity_id: automation.person_arrived
message: >
Person Arrived ran
-
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.all_away
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.home_occupied
diff --git a/automations/people/person_asleep.yaml b/automations/people/person_asleep.yaml
index 132b409..7a989d6 100644
--- a/automations/people/person_asleep.yaml
+++ b/automations/people/person_asleep.yaml
@@ -15,7 +15,7 @@ trigger:
- input_boolean.tess_in_bed
- input_boolean.ebin_in_bed
- input_boolean.guest_in_bed
- to: 'On'
+ to: "On"
for:
minutes: 5
- platform: state
@@ -28,148 +28,148 @@ trigger:
- input_boolean.tess_is_awake
- input_boolean.ebin_is_awake
- input_boolean.guest_is_awake
- to: 'off'
+ to: "off"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.clint_in_bed
- state: 'on'
- for:
- minutes: 5
- - condition: state
- entity_id: input_boolean.clint_is_awake
- state: 'on'
- sequence:
- - service: input_boolean.turn_off
- data:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.clint_in_bed
+ state: "on"
+ for:
+ minutes: 5
+ - condition: state
entity_id: input_boolean.clint_is_awake
+ state: "on"
+ sequence:
+ - action: input_boolean.turn_off
+ data:
+ entity_id: input_boolean.clint_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.emmett_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.emmett_in_bed
- state: 'on'
- for:
- minutes: 5
- - condition: state
- entity_id: input_boolean.emmett_is_awake
- state: 'on'
- sequence:
- - service: input_boolean.turn_off
- data:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.emmett_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.emmett_in_bed
+ state: "on"
+ for:
+ minutes: 5
+ - condition: state
entity_id: input_boolean.emmett_is_awake
+ state: "on"
+ sequence:
+ - action: input_boolean.turn_off
+ data:
+ entity_id: input_boolean.emmett_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.bridget_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.bridget_in_bed
- state: 'on'
- for:
- minutes: 5
- - condition: state
- entity_id: input_boolean.bridget_is_awake
- state: 'on'
- sequence:
- - service: input_boolean.turn_off
- data:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.bridget_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.bridget_in_bed
+ state: "on"
+ for:
+ minutes: 5
+ - condition: state
entity_id: input_boolean.bridget_is_awake
+ state: "on"
+ sequence:
+ - action: input_boolean.turn_off
+ data:
+ entity_id: input_boolean.bridget_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.kristy_in_bed
- state: 'on'
- for:
- minutes: 5
- - condition: state
- entity_id: input_boolean.kristy_is_awake
- state: 'on'
- sequence:
- - service: input_boolean.turn_off
- data:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.kristy_in_bed
+ state: "on"
+ for:
+ minutes: 5
+ - condition: state
entity_id: input_boolean.kristy_is_awake
+ state: "on"
+ sequence:
+ - action: input_boolean.turn_off
+ data:
+ entity_id: input_boolean.kristy_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.marshall_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.marshall_in_bed
- state: 'on'
- for:
- minutes: 5
- - condition: state
- entity_id: input_boolean.marshall_is_awake
- state: 'on'
- sequence:
- - service: input_boolean.turn_off
- data:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.marshall_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.marshall_in_bed
+ state: "on"
+ for:
+ minutes: 5
+ - condition: state
entity_id: input_boolean.marshall_is_awake
+ state: "on"
+ sequence:
+ - action: input_boolean.turn_off
+ data:
+ entity_id: input_boolean.marshall_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.tess_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.tess_in_bed
- state: 'on'
- for:
- minutes: 5
- - condition: state
- entity_id: input_boolean.tess_is_awake
- state: 'on'
- sequence:
- - service: input_boolean.turn_off
- data:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.tess_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.tess_in_bed
+ state: "on"
+ for:
+ minutes: 5
+ - condition: state
entity_id: input_boolean.tess_is_awake
+ state: "on"
+ sequence:
+ - action: input_boolean.turn_off
+ data:
+ entity_id: input_boolean.tess_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.ebin_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.ebin_in_bed
- state: 'on'
- for:
- minutes: 5
- - condition: state
- entity_id: input_boolean.ebin_is_awake
- state: 'on'
- sequence:
- - service: input_boolean.turn_off
- data:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.ebin_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.ebin_in_bed
+ state: "on"
+ for:
+ minutes: 5
+ - condition: state
entity_id: input_boolean.ebin_is_awake
+ state: "on"
+ sequence:
+ - action: input_boolean.turn_off
+ data:
+ entity_id: input_boolean.ebin_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.guest_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.guest_in_bed
- state: 'on'
- for:
- minutes: 5
- - condition: state
- entity_id: input_boolean.guest_is_awake
- state: 'on'
- sequence:
- - service: input_boolean.turn_off
- data:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.guest_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.guest_in_bed
+ state: "on"
+ for:
+ minutes: 5
+ - condition: state
entity_id: input_boolean.guest_is_awake
+ state: "on"
+ sequence:
+ - action: input_boolean.turn_off
+ data:
+ entity_id: input_boolean.guest_is_awake
diff --git a/automations/people/person_away.yaml b/automations/people/person_away.yaml
index 9c770e0..1f280e9 100644
--- a/automations/people/person_away.yaml
+++ b/automations/people/person_away.yaml
@@ -13,11 +13,11 @@ trigger:
- input_select.tess_status_dropdown
- input_select.ebin_status_dropdown
- input_select.guest_status_dropdown
- to: 'Just Left'
+ to: "Just Left"
for:
minutes: 5
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data_template:
entity_id: >
{% if trigger.entity_id == 'input_select.clint_status_dropdown' %}
@@ -39,7 +39,7 @@ action:
{% endif %}
option: Away
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Person Away
entity_id: automation.person_away
diff --git a/automations/people/person_extended_away.yaml b/automations/people/person_extended_away.yaml
index 626ff7c..c04e29d 100644
--- a/automations/people/person_extended_away.yaml
+++ b/automations/people/person_extended_away.yaml
@@ -5,46 +5,46 @@ mode: queued
trigger:
- platform: state
entity_id: input_select.clint_status_dropdown
- to: 'Away'
+ to: "Away"
for:
hours: 24
- platform: state
entity_id: input_select.emmett_status_dropdown
- to: 'Away'
+ to: "Away"
for:
hours: 24
- platform: state
entity_id: input_select.bridget_status_dropdown
- to: 'Away'
+ to: "Away"
for:
hours: 24
- platform: state
entity_id: input_select.kristy_status_dropdown
- to: 'Away'
+ to: "Away"
for:
hours: 24
- platform: state
entity_id: input_select.marshall_status_dropdown
- to: 'Away'
+ to: "Away"
for:
hours: 24
- platform: state
entity_id: input_select.tess_status_dropdown
- to: 'Away'
+ to: "Away"
for:
hours: 24
- platform: state
entity_id: input_select.ebin_status_dropdown
- to: 'Away'
+ to: "Away"
for:
hours: 24
- platform: state
entity_id: input_select.guest_status_dropdown
- to: 'Away'
+ to: "Away"
for:
hours: 24
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data_template:
entity_id: >
{{ trigger.entity_id }}
diff --git a/automations/people/person_home.yaml b/automations/people/person_home.yaml
index ba7add7..4ce146f 100644
--- a/automations/people/person_home.yaml
+++ b/automations/people/person_home.yaml
@@ -12,7 +12,7 @@ trigger:
- input_select.marshall_status_dropdown
- input_select.tess_status_dropdown
- input_select.ebin_status_dropdown
- to: 'Just Arrived'
+ to: "Just Arrived"
for:
minutes: 5
- platform: state
@@ -25,10 +25,10 @@ trigger:
- input_select.tess_status_dropdown
- input_select.ebin_status_dropdown
- input_select.guest_status_dropdown
- from: 'Just Left'
- to: 'Just Arrived'
+ from: "Just Left"
+ to: "Just Arrived"
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data_template:
entity_id: >
{{ trigger.entity_id }}
diff --git a/automations/people/person_left.yaml b/automations/people/person_left.yaml
index 14ee609..0d0b3fb 100644
--- a/automations/people/person_left.yaml
+++ b/automations/people/person_left.yaml
@@ -16,7 +16,7 @@ trigger:
from: "on"
to: "off"
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data_template:
entity_id: >
{% if trigger.entity_id == 'input_boolean.clint_home' %}
@@ -38,10 +38,9 @@ action:
{% endif %}
option: Just Left
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Person Left
entity_id: automation.person_left
message: >
Person Left ran
-
diff --git a/automations/people/returned_home.yaml b/automations/people/returned_home.yaml
index ccfe58b..b9916cb 100644
--- a/automations/people/returned_home.yaml
+++ b/automations/people/returned_home.yaml
@@ -5,16 +5,16 @@ mode: queued
trigger:
- platform: state
entity_id: binary_sensor.front_door_contact
- to: 'on'
+ to: "on"
- platform: state
entity_id: binary_sensor.garage_door
- to: 'on'
+ to: "on"
# - platform: state
# entity_id: binary_sensor.outer_garage_door
# to: 'on'
- platform: state
entity_id: binary_sensor.outer_garage_door_contact
- to: 'on'
+ to: "on"
# People just got home
- platform: state
entity_id:
@@ -26,7 +26,7 @@ trigger:
- input_select.tess_status_dropdown
- input_select.ebin_status_dropdown
- input_select.guest_status_dropdown
- to: 'Just Arrived'
+ to: "Just Arrived"
# Should also include some travel time magic here
# Basically, travel time < 15 for 10 minutes, travelling towards home
condition:
@@ -35,7 +35,7 @@ condition:
# Lighting automations are enabled
- condition: state
entity_id: input_boolean.lighting_automations
- state: 'on'
+ state: "on"
# It's getting dark
- condition: numeric_state
entity_id: sensor.bar_light_level
@@ -43,40 +43,40 @@ condition:
# Somebody is nearly home, or just arrived
- condition: or
conditions:
- # Front door is open, somebody is nearly home or just arrived
- - condition: state
- entity_id: binary_sensor.front_door_contact
- state: 'on'
- - condition: state
- entity_id: binary_sensor.garage_door
- state: 'on'
- # - condition: state
- # entity_id: binary_sensor.outer_garage_door
- # state: 'on'
- - condition: state
- entity_id: binary_sensor.outer_garage_door_contact
- state: 'on'
- # Or somebody has just arrived
- - condition: template
- value_template: "{{ is_state('input_select.clint_status_dropdown','Just Arrived') }}"
- - condition: template
- value_template: "{{ is_state('input_select.emmett_status_dropdown','Just Arrived') }}"
- - condition: template
- value_template: "{{ is_state('input_select.bridget_status_dropdown','Just Arrived') }}"
- - condition: template
- value_template: "{{ is_state('input_select.kristy_status_dropdown','Just Arrived') }}"
- - condition: template
- value_template: "{{ is_state('input_select.marshall_status_dropdown','Just Arrived') }}"
- - condition: template
- value_template: "{{ is_state('input_select.tess_status_dropdown','Just Arrived') }}"
- - condition: template
- value_template: "{{ is_state('input_select.ebin_status_dropdown','Just Arrived') }}"
- - condition: template
- value_template: "{{ is_state('input_select.guest_status_dropdown','Just Arrived') }}"
+ # Front door is open, somebody is nearly home or just arrived
+ - condition: state
+ entity_id: binary_sensor.front_door_contact
+ state: "on"
+ - condition: state
+ entity_id: binary_sensor.garage_door
+ state: "on"
+ # - condition: state
+ # entity_id: binary_sensor.outer_garage_door
+ # state: 'on'
+ - condition: state
+ entity_id: binary_sensor.outer_garage_door_contact
+ state: "on"
+ # Or somebody has just arrived
+ - condition: template
+ value_template: "{{ is_state('input_select.clint_status_dropdown','Just Arrived') }}"
+ - condition: template
+ value_template: "{{ is_state('input_select.emmett_status_dropdown','Just Arrived') }}"
+ - condition: template
+ value_template: "{{ is_state('input_select.bridget_status_dropdown','Just Arrived') }}"
+ - condition: template
+ value_template: "{{ is_state('input_select.kristy_status_dropdown','Just Arrived') }}"
+ - condition: template
+ value_template: "{{ is_state('input_select.marshall_status_dropdown','Just Arrived') }}"
+ - condition: template
+ value_template: "{{ is_state('input_select.tess_status_dropdown','Just Arrived') }}"
+ - condition: template
+ value_template: "{{ is_state('input_select.ebin_status_dropdown','Just Arrived') }}"
+ - condition: template
+ value_template: "{{ is_state('input_select.guest_status_dropdown','Just Arrived') }}"
action:
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Returned Home
entity_id: automation.returned_home
message: >
- Returned Home ran
\ No newline at end of file
+ Returned Home ran
diff --git a/automations/people/something_open_too_warm_or_cold.yaml b/automations/people/something_open_too_warm_or_cold.yaml
index 2d494d0..e3e1456 100644
--- a/automations/people/something_open_too_warm_or_cold.yaml
+++ b/automations/people/something_open_too_warm_or_cold.yaml
@@ -1,14 +1,14 @@
-alias: 'Something open too warm or cold'
+alias: "Something open too warm or cold"
id: automation_something_open_too_warm_or_cold
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.something_open_too_warm_or_cold
- to: 'on'
+ to: "on"
action:
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
message: >-
- Its too hot or cold to leave these open: {{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_hvac_affecting_openings', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
+ Its too hot or cold to leave these open: {{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_hvac_affecting_openings', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
diff --git a/automations/people/teens_asleep.yaml b/automations/people/teens_asleep.yaml
index da0e544..966180a 100644
--- a/automations/people/teens_asleep.yaml
+++ b/automations/people/teens_asleep.yaml
@@ -10,36 +10,35 @@ trigger:
- input_boolean.marshall_is_awake
- input_boolean.tess_is_awake
- input_boolean.asleep
- to: 'off'
+ to: "off"
action:
- choose:
- conditions:
- condition: or
conditions:
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.marshall_is_awake
- state: 'off'
- - condition: state
- entity_id: input_boolean.marshall_home
- state: 'on'
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.tess_is_awake
- state: 'off'
- - condition: state
- entity_id: input_boolean.tess_home
- state: 'on'
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.marshall_is_awake
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.marshall_home
+ state: "on"
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.tess_is_awake
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.tess_home
+ state: "on"
sequence:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
data:
entity_id: input_boolean.teens_asleep
default:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data:
entity_id: input_boolean.teens_asleep
-
diff --git a/automations/people/teens_awake.yaml b/automations/people/teens_awake.yaml
index 8faa4b2..40498f9 100644
--- a/automations/people/teens_awake.yaml
+++ b/automations/people/teens_awake.yaml
@@ -9,7 +9,7 @@ trigger:
- input_boolean.marshall_is_awake
- input_boolean.tess_is_awake
- binary_sensor.morning
- to: 'on'
+ to: "on"
- platform: homeassistant
event: start
@@ -17,69 +17,68 @@ trigger:
condition:
- condition: or
conditions:
- - condition: time
- before: '19:00:00'
- after: '06:00:00'
- - condition: and
- conditions:
- - condition: or
+ - condition: time
+ before: "19:00:00"
+ after: "06:00:00"
+ - condition: and
conditions:
- - condition: state
- entity_id: input_boolean.marshall_home
- state: 'off'
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.marshall_is_awake
- state: 'off'
- - condition: state
- entity_id: input_boolean.marshall_home
- state: 'on'
- - condition: or
- conditions:
- - condition: state
- entity_id: input_boolean.tess_home
- state: 'off'
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.tess_is_awake
- state: 'off'
- - condition: state
- entity_id: input_boolean.tess_home
- state: 'on'
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_boolean.marshall_home
+ state: "off"
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.marshall_is_awake
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.marshall_home
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_boolean.tess_home
+ state: "off"
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.tess_is_awake
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.tess_home
+ state: "on"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id:
- input_boolean.teens_bedtime
- input_boolean.teens_asleep
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.marshall_is_awake
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.marshall_home
+ state: "on"
+ sequence:
+ - action: input_boolean.turn_off
+ entity_id: input_boolean.marshall_in_bed
+ - action: input_boolean.turn_on
+ entity_id: input_boolean.marshall_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.marshall_is_awake
- state: 'off'
- - condition: state
- entity_id: input_boolean.marshall_home
- state: 'on'
- sequence:
- - service: input_boolean.turn_off
- entity_id: input_boolean.marshall_in_bed
- - service: input_boolean.turn_on
- entity_id: input_boolean.marshall_is_awake
-
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.tess_is_awake
- state: 'off'
- - condition: state
- entity_id: input_boolean.tess_home
- state: 'on'
- sequence:
- - service: input_boolean.turn_off
- entity_id: input_boolean.tess_in_bed
- - service: input_boolean.turn_on
- entity_id: input_boolean.tess_is_awake
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.tess_is_awake
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.tess_home
+ state: "on"
+ sequence:
+ - action: input_boolean.turn_off
+ entity_id: input_boolean.tess_in_bed
+ - action: input_boolean.turn_on
+ entity_id: input_boolean.tess_is_awake
diff --git a/automations/people/vacation.yaml b/automations/people/vacation.yaml
index 69b0590..f8c30b1 100644
--- a/automations/people/vacation.yaml
+++ b/automations/people/vacation.yaml
@@ -1,25 +1,25 @@
-alias: 'Vacation'
+alias: "Vacation"
id: automation_vacation
-initial_state: 'on'
+initial_state: "on"
trigger:
- platform: state
entity_id:
- input_boolean.clint_travelling
- input_boolean.emmett_travelling
- input_boolean.bridget_travelling
- to: 'on'
+ to: "on"
condition:
condition: and
conditions:
- condition: state
entity_id: input_boolean.clint_travelling
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_boolean.emmett_travelling
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_boolean.bridget_travelling
- state: 'on'
+ state: "on"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.vacation_mode
diff --git a/automations/people/vacation_over.yaml b/automations/people/vacation_over.yaml
index 831f290..6b953e0 100644
--- a/automations/people/vacation_over.yaml
+++ b/automations/people/vacation_over.yaml
@@ -1,25 +1,25 @@
-alias: 'Vacation over'
+alias: "Vacation over"
id: automation_vacation_over
-initial_state: 'on'
+initial_state: "on"
trigger:
- platform: state
entity_id:
- input_boolean.clint_travelling
- input_boolean.emmett_travelling
- input_boolean.bridget_travelling
- to: 'off'
+ to: "off"
condition:
condition: and
conditions:
- condition: state
entity_id: input_boolean.clint_travelling
- state: 'off'
+ state: "off"
- condition: state
entity_id: input_boolean.emmett_travelling
- state: 'off'
+ state: "off"
- condition: state
entity_id: input_boolean.bridget_travelling
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.vacation_mode
diff --git a/automations/platform/home_assistant_update_available.yaml b/automations/platform/home_assistant_update_available.yaml
index 4def8ee..581d1dd 100644
--- a/automations/platform/home_assistant_update_available.yaml
+++ b/automations/platform/home_assistant_update_available.yaml
@@ -4,8 +4,8 @@ id: automation_home_assistant_update_available
trigger:
- platform: state
entity_id: binary_sensor.latest_version_update_available
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
- platform: homeassistant
event: start
@@ -14,10 +14,10 @@ condition:
- alias: "Update Available"
condition: state
entity_id: binary_sensor.latest_version_update_available
- state: 'on'
+ state: "on"
action:
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
title: Update Available
message: A Home Assistant update is available
diff --git a/automations/rooms/blue_room/blue_room_lights_to_off.yaml b/automations/rooms/blue_room/blue_room_lights_to_off.yaml
deleted file mode 100644
index cb7b969..0000000
--- a/automations/rooms/blue_room/blue_room_lights_to_off.yaml
+++ /dev/null
@@ -1,67 +0,0 @@
-alias: Blue Room Lights to Off
-id: automation_blue_room_lights_to_off
-mode: restart
-
-trigger:
- - platform: state
- entity_id: input_select.blue_room_mode
-
- - platform: state
- entity_id: input_boolean.blue_room_occupied
- to: 'off'
-
- #- platform: time_pattern
- # minutes: "/5"
-
-condition:
- - condition: state
- entity_id: light.blue_room_hue
- state: 'on'
-
- - condition: state
- entity_id: input_boolean.lights_off_manually
- state: 'off'
- - condition: or
- conditions:
- - condition: state
- entity_id: input_select.blue_room_mode
- state: 'Off'
- - condition: state
- entity_id: input_boolean.blue_room_occupied
- state: 'off'
-
-action:
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
- - condition: or
- conditions:
- - condition: state
- entity_id: input_select.blue_room_mode
- state: 'Off'
- - condition: state
- entity_id: input_boolean.blue_room_occupied
- state: 'off'
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.blue_room_mode
- state: 'Manual'
- sequence:
- - service: scene.turn_on
- data:
- transition: 5
- target:
- entity_id: scene.blue_room_hue_off
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.guest_mode
- state: 'on'
- sequence:
- - alias: "Turn off z-wave switch since all lights are off"
- service: homeassistant.turn_off
- target:
- entity_id: switch.blue_room_motion_switch
diff --git a/automations/rooms/blue_room/blue_room_lights_to_on.yaml b/automations/rooms/blue_room/blue_room_lights_to_on.yaml
deleted file mode 100644
index bf02c78..0000000
--- a/automations/rooms/blue_room/blue_room_lights_to_on.yaml
+++ /dev/null
@@ -1,168 +0,0 @@
-alias: Blue Room Lights to On
-id: automation_blue_room_lights_to_on
-mode: single
-# Hide warnings when triggered while in delay.
-max_exceeded: silent
-
-trigger:
- - platform: state
- id: mode_change
- entity_id:
- - input_select.blue_room_mode
- - input_select.automatic_light_profile
-
- - platform: state
- id: occupied
- entity_id:
- - binary_sensor.blue_room_occupied
- - input_boolean.blue_room_occupied
- to: "on"
-
- # - platform: state
- # id: motion
- # entity_id: group.blue_room_motion
- # to: "on"
-
- - platform: state
- id: light_level
- entity_id: binary_sensor.blue_room_naturally_lit
- from: 'on'
- to: 'off'
-
-condition:
- - alias: "Home is occupied"
- condition: state
- entity_id: input_boolean.home_occupied
- state: "on"
-
- - alias: "Check if light should turn on"
- condition: or
- conditions:
-
- - alias: "Guest mode is on"
- condition: state
- entity_id: input_boolean.guest_mode
- state: "on"
-
- - alias: "Motion or occupancy were detected in a dim room"
- condition: and
- conditions:
- - alias: "Light level below trigger amount"
- condition: state
- entity_id: binary_sensor.blue_room_naturally_lit
- state: 'off'
-
- - alias: "Motion or occupancy were detected"
- condition: or
- conditions:
- - alias: "Motion was detected"
- condition: trigger
- id: "motion"
- - alias: "Occupancy was detected"
- condition: trigger
- id: "occupied"
-
- - alias: "A scene changed and the lights are already on"
- condition: and
- conditions:
- - condition: trigger
- id: "mode_change"
- - condition: state
- entity_id: input_boolean.blue_room_occupied
- state: "on"
-
- - alias: "The light level changed, the room is occupied, and the light is off"
- condition: and
- conditions:
- - condition: trigger
- id: light_level
- - condition: state
- entity_id: input_boolean.blue_room_occupied
- state: 'on'
- - condition: state
- entity_id: light.blue_room_hue
- state: 'off'
-
-variables:
- switch_name: switch.blue_room_motion_switch
- light_name: blue_room_hue
- mode_name: input_select.blue_room_mode
-
-action:
- - alias: "Make sure Z-Wave switch is turned on"
- service: homeassistant.turn_on
- target:
- entity_id: "{{ switch_name }}"
- - choose:
- - alias: "If the room is set to manual, just turn the lights on"
- conditions:
- - alias: "Room set to manual"
- condition: state
- entity_id: input_select.blue_room_mode
- state: Manual
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.blue_room_hue
-
- - alias: "If the room is set to auto, the lights are already on, and the room is dim, change to the Automatic Light Profile scene with a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.blue_room_mode
- state: Auto
- - alias: "Lights are on"
- condition: state
- entity_id: light.blue_room_hue
- state: 'on'
- - "{{ states('sensor.blue_room_multisensor_illuminance') | float(default=0) < states('input_number.blue_room_light_level_trigger') | float(default=0) }}"
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
-
- - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.blue_room_mode
- state: Auto
- - alias: "Lights are off"
- condition: state
- entity_id: light.blue_room_hue
- state: 'off'
- - "{{ states('sensor.blue_room_multisensor_illuminance') | float(default=0) < states('input_number.blue_room_light_level_trigger') | float(default=0) }}"
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
-
- - alias: "If the room is not set to auto and the lights are on, change to the Blue Room Mode scene with a transition"
- conditions:
- - alias: "Room not manual or auto and lights are on"
- condition: state
- entity_id: light.blue_room_hue
- state: 'on'
- - "{{ states('sensor.blue_room_multisensor_illuminance') | float(default=0) < states('input_number.blue_room_light_level_trigger') | float(default=0) }}"
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
-
- - alias: "If the room is not set to auto and the lights are on, change to the Blue Room Mode scene without a transition"
- conditions:
- - alias: "Room not manual or auto and lights are off"
- condition: state
- entity_id: light.blue_room_hue
- state: 'off'
- - "{{ states('sensor.blue_room_multisensor_illuminance') | float(default=0) < states('input_number.blue_room_light_level_trigger') | float(default=0) }}"
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
-
- - delay: 1
\ No newline at end of file
diff --git a/automations/rooms/blue_room/blue_room_not_occupied.yaml b/automations/rooms/blue_room/blue_room_not_occupied.yaml
deleted file mode 100644
index 0a8a689..0000000
--- a/automations/rooms/blue_room/blue_room_not_occupied.yaml
+++ /dev/null
@@ -1,59 +0,0 @@
-alias: 'Blue Room Not Occupied'
-id: automation_blue_room_not_occupied
-mode: restart
-trigger:
- - platform: state
- entity_id: input_boolean.home_occupied
- from: 'on'
- to: 'off'
-
- - platform: state
- entity_id:
- - input_boolean.home_occupied
- - binary_sensor.blue_room_occupied
- to: 'off'
- for: '00:10:00'
-
- # - platform: time_pattern
- # minutes: "/5"
-
-condition:
- - condition: or
- conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- - condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.blue_room_occupied
- state: 'on'
- - condition: state
- entity_id: binary_sensor.blue_room_occupied
- state: 'off'
- for: '00:10:00'
-
-action:
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.blue_room_occupied
- - conditions:
- - condition: or
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Auto'
- - condition: state
- entity_id: input_select.house
- state: 'Dad'
- - condition: state
- entity_id: input_select.house
- state: 'Bachelor'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.blue_room_occupied
diff --git a/automations/rooms/blue_room/blue_room_occupied.yaml b/automations/rooms/blue_room/blue_room_occupied.yaml
deleted file mode 100644
index 12437fe..0000000
--- a/automations/rooms/blue_room/blue_room_occupied.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-alias: Blue Room Occupied
-id: automation_blue_room_occupied
-mode: restart
-
-trigger:
- - platform: state
- entity_id:
- - binary_sensor.blue_room_occupied
- to: 'on'
-
-condition:
- - condition: state
- entity_id: input_boolean.blue_room_occupied
- state: 'off'
-
-action:
- - service: input_boolean.turn_on
- entity_id: input_boolean.blue_room_occupied
-
- - service: logbook.log
- data_template:
- name: Blue Room Occupied
- entity_id: automation.blue_room_occupied
- message: >
- {{ states("sensor.date_time_iso") }} Blue Room Occupied ran
diff --git a/automations/rooms/blue_room/blue_room_white_noise_off.yaml b/automations/rooms/blue_room/blue_room_white_noise_off.yaml
deleted file mode 100644
index 0670531..0000000
--- a/automations/rooms/blue_room/blue_room_white_noise_off.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-alias: Blue Room White Noise Off
-id: automation_blue_room_white_noise_off
-
-trigger:
- - platform: state
- entity_id: input_boolean.blue_room_asleep
- to: "off"
-
-action:
- - service: media_player.turn_off
- entity_id: media_player.ma_blue_room_clock
-
diff --git a/automations/rooms/blue_room/blue_room_white_noise_on.yaml b/automations/rooms/blue_room/blue_room_white_noise_on.yaml
deleted file mode 100644
index ce24e89..0000000
--- a/automations/rooms/blue_room/blue_room_white_noise_on.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-alias: Blue Room White Noise On
-id: automation_blue_room_white_noise_on
-
-trigger:
- - platform: state
- entity_id: input_boolean.blue_room_asleep
- to: "on"
-
-action:
- - choose:
- - conditions:
- - condition: state
- entity_id: media_player.ma_blue_room_clock
- state: "playing"
- sequence:
- - service: media_player.media_stop
- target:
- entity_id: media_player.ma_blue_room_clock
-
- - action: media_player.volume_set
- data:
- volume_level: 0.30
- target:
- entity_id: media_player.ma_blue_room_clock
-
-
- #- service: script.goodnight_kids_youtube_music
-
- - action: media_player.shuffle_set
- metadata: {}
- data:
- shuffle: false
- target:
- entity_id: media_player.ma_blue_room_clock
- - action: media_player.repeat_set
- metadata: {}
- data:
- repeat: "all"
- target:
- entity_id: media_player.ma_blue_room_clock
- - action: music_assistant.play_media
- metadata: {}
- data:
- media_id: library://track/101
- media_type: track
- enqueue: replace
- target:
- entity_id: media_player.ma_blue_room_clock
-
diff --git a/automations/rooms/blue_room_lights.yaml b/automations/rooms/blue_room_lights.yaml
deleted file mode 100644
index b94f155..0000000
--- a/automations/rooms/blue_room_lights.yaml
+++ /dev/null
@@ -1,68 +0,0 @@
-# alias: Blue Room Lights
-# id: automation_blue_room_lights
-# mode: queued
-
-# trigger:
-# - platform: state
-# id: door_open
-# entity_id: binary_sensor.blue_room_door_contact
-# from: "off"
-# to: "on"
-
-# - platform: state
-# id: motion_on
-# entity_id: binary_sensor.blue_room_motion_switch_home_security_motion_detection
-# from: "off"
-# to: "on"
-
-# - platform: state
-# id: door_closed
-# entity_id: binary_sensor.blue_room_door_contact
-# to: "off"
-# for: "00:10:00"
-
-# - platform: state
-# id: motion_off
-# entity_id: binary_sensor.blue_room_motion_switch_home_security_motion_detection
-# to: "off"
-# for: "00:15:00"
-
-# action:
-# - choose:
-# - conditions:
-# - condition: or
-# conditions:
-# - condition: trigger
-# id: "door_open"
-# - condition: trigger
-# id: "motion_on"
-# - condition: state
-# entity_id: light.blue_room
-# state: 'off'
-# sequence:
-# - service: light.turn_on
-# target:
-# entity_id: light.blue_room
-# - service: switch.turn_on
-# target:
-# entity_id: switch.frigate_cam01_detect
-# - conditions:
-# - condition: or
-# conditions:
-# - condition: trigger
-# id: "door_closed"
-# - condition: trigger
-# id: "motion_off"
-# - condition: state
-# entity_id: binary_sensor.blue_room_motion_switch_home_security_motion_detection
-# state: "off"
-# - condition: state
-# entity_id: light.blue_room
-# state: 'on'
-# sequence:
-# - service: light.turn_off
-# target:
-# entity_id: light.blue_room
-# - service: switch.turn_off
-# target:
-# entity_id: switch.frigate_cam01_detect
\ No newline at end of file
diff --git a/automations/rooms/blue_room/blue_room_into_bed.yaml b/automations/rooms/boys_room/boys_room_into_bed.yaml
similarity index 72%
rename from automations/rooms/blue_room/blue_room_into_bed.yaml
rename to automations/rooms/boys_room/boys_room_into_bed.yaml
index f4298af..3c28478 100644
--- a/automations/rooms/blue_room/blue_room_into_bed.yaml
+++ b/automations/rooms/boys_room/boys_room_into_bed.yaml
@@ -1,5 +1,5 @@
-alias: Blue Room Into Bed
-id: automation_blue_room_into_bed
+alias: Boys Room Into Bed
+id: automation_boys_room_into_bed
trigger:
- platform: state
@@ -27,18 +27,18 @@ condition:
- condition: state
entity_id: input_boolean.ebin_home
state: "on"
+ # - condition: state
+ # entity_id: input_boolean.nursery_light_cycle
+ # state: "off"
- condition: state
- entity_id: input_boolean.nursery_light_cycle
- state: "off"
- - condition: state
- entity_id: input_select.blue_room_mode
+ entity_id: input_select.boys_room_mode
state: "Nightlight"
- condition: state
- entity_id: light.blue_room_hue
+ entity_id: light.boys_room_hue
state: "on"
action:
- - service: light.turn_on
+ - action: light.turn_on
data:
entity_id:
- - light.blue_room_closet
+ - light.accent
diff --git a/automations/rooms/boys_room/boys_room_lights_to_off.yaml b/automations/rooms/boys_room/boys_room_lights_to_off.yaml
new file mode 100644
index 0000000..49b14ce
--- /dev/null
+++ b/automations/rooms/boys_room/boys_room_lights_to_off.yaml
@@ -0,0 +1,67 @@
+alias: Boys Room Lights to Off
+id: automation_boys_room_lights_to_off
+mode: restart
+
+trigger:
+ - platform: state
+ entity_id: input_select.boys_room_mode
+
+ - platform: state
+ entity_id: input_boolean.boys_room_occupied
+ to: "off"
+
+ #- platform: time_pattern
+ # minutes: "/5"
+
+condition:
+ - condition: state
+ entity_id: light.boys_room_hue
+ state: "on"
+
+ - condition: state
+ entity_id: input_boolean.lights_off_manually
+ state: "off"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.boys_room_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.boys_room_occupied
+ state: "off"
+
+action:
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.boys_room_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.boys_room_occupied
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.boys_room_mode
+ state: "Manual"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: 5
+ target:
+ entity_id: scene.boys_room_hue_off
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.guest_mode
+ state: "on"
+ sequence:
+ - alias: "Turn off z-wave switch since all lights are off"
+ action: homeassistant.turn_off
+ target:
+ entity_id: switch.boys_room_motion_switch
diff --git a/automations/rooms/boys_room/boys_room_lights_to_on.yaml b/automations/rooms/boys_room/boys_room_lights_to_on.yaml
new file mode 100644
index 0000000..10cad23
--- /dev/null
+++ b/automations/rooms/boys_room/boys_room_lights_to_on.yaml
@@ -0,0 +1,163 @@
+alias: Boys Room Lights to On
+id: automation_boys_room_lights_to_on
+mode: single
+# Hide warnings when triggered while in delay.
+max_exceeded: silent
+
+triggers:
+ - trigger: state
+ id: mode_change
+ entity_id:
+ - input_select.boys_room_mode
+ - input_select.automatic_light_profile
+
+ - trigger: state
+ id: occupied
+ entity_id:
+ - binary_sensor.boys_room_occupied
+ - input_boolean.boys_room_occupied
+ to: "on"
+
+ # - platform: state
+ # id: motion
+ # entity_id: group.boys_room_motion
+ # to: "on"
+
+ - trigger: state
+ id: light_level
+ entity_id: binary_sensor.boys_room_naturally_lit
+ from: "on"
+ to: "off"
+
+condition:
+ - alias: "Home is occupied"
+ condition: state
+ entity_id: input_boolean.home_occupied
+ state: "on"
+
+ - alias: "Check if light should turn on"
+ condition: or
+ conditions:
+ - alias: "Guest mode is on"
+ condition: state
+ entity_id: input_boolean.guest_mode
+ state: "on"
+
+ - alias: "Motion or occupancy were detected in a dim room"
+ condition: and
+ conditions:
+ - alias: "Light level below trigger amount"
+ condition: state
+ entity_id: binary_sensor.boys_room_naturally_lit
+ state: "off"
+
+ - alias: "Motion or occupancy were detected"
+ condition: or
+ conditions:
+ - alias: "Motion was detected"
+ condition: trigger
+ id: "motion"
+ - alias: "Occupancy was detected"
+ condition: trigger
+ id: "occupied"
+
+ - alias: "A scene changed and the lights are already on"
+ condition: and
+ conditions:
+ - condition: trigger
+ id: "mode_change"
+ - condition: state
+ entity_id: input_boolean.boys_room_occupied
+ state: "on"
+
+ - alias: "The light level changed, the room is occupied, and the light is off"
+ condition: and
+ conditions:
+ - condition: trigger
+ id: light_level
+ - condition: state
+ entity_id: input_boolean.boys_room_occupied
+ state: "on"
+ - condition: state
+ entity_id: light.boys_room_hue
+ state: "off"
+
+variables:
+ switch_name: switch.boys_room_motion_switch
+ light_name: boys_room_hue
+ mode_name: input_select.boys_room_mode
+
+action:
+ - alias: "Make sure Z-Wave switch is turned on"
+ action: homeassistant.turn_on
+ target:
+ entity_id: "{{ switch_name }}"
+ - choose:
+ - alias: "If the room is set to manual, just turn the lights on"
+ conditions:
+ - alias: "Room set to manual"
+ condition: state
+ entity_id: input_select.boys_room_mode
+ state: Manual
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.boys_room_hue
+
+ - alias: "If the room is set to auto and the lights are already on, change to the Automatic Light Profile scene with a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.boys_room_mode
+ state: Auto
+ - alias: "Lights are on"
+ condition: state
+ entity_id: light.boys_room_hue
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+
+ - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.boys_room_mode
+ state: Auto
+ - alias: "Lights are off"
+ condition: state
+ entity_id: light.boys_room_hue
+ state: "off"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+
+ - alias: "If the room is not set to auto and the lights are on, change to the Boys Room Mode scene with a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are on"
+ condition: state
+ entity_id: light.boys_room_hue
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+
+ - alias: "If the room is not set to auto and the lights are on, change to the Boys Room Mode scene without a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are off"
+ condition: state
+ entity_id: light.boys_room_hue
+ state: "off"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+
+ - delay: 1
diff --git a/automations/rooms/boys_room/boys_room_not_occupied.yaml b/automations/rooms/boys_room/boys_room_not_occupied.yaml
new file mode 100644
index 0000000..c984b9d
--- /dev/null
+++ b/automations/rooms/boys_room/boys_room_not_occupied.yaml
@@ -0,0 +1,59 @@
+alias: Boys Room Not Occupied
+id: automation_boys_room_not_occupied
+mode: restart
+trigger:
+ - platform: state
+ entity_id: input_boolean.home_occupied
+ from: "on"
+ to: "off"
+
+ - platform: state
+ entity_id:
+ - input_boolean.home_occupied
+ - binary_sensor.boys_room_occupied
+ to: "off"
+ for: "00:10:00"
+
+ # - platform: time_pattern
+ # minutes: "/5"
+
+condition:
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.boys_room_occupied
+ state: "on"
+ - condition: state
+ entity_id: binary_sensor.boys_room_occupied
+ state: "off"
+ for: "00:10:00"
+
+action:
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.boys_room_occupied
+ - conditions:
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Auto"
+ - condition: state
+ entity_id: input_select.house
+ state: "Dad"
+ - condition: state
+ entity_id: input_select.house
+ state: "Bachelor"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.boys_room_occupied
diff --git a/automations/rooms/boys_room/boys_room_occupied.yaml b/automations/rooms/boys_room/boys_room_occupied.yaml
new file mode 100644
index 0000000..4408951
--- /dev/null
+++ b/automations/rooms/boys_room/boys_room_occupied.yaml
@@ -0,0 +1,18 @@
+alias: Boys Room Occupied
+id: automation_boys_room_occupied
+mode: restart
+
+trigger:
+ - platform: state
+ entity_id:
+ - binary_sensor.boys_room_occupied
+ to: "on"
+
+condition:
+ - condition: state
+ entity_id: input_boolean.boys_room_occupied
+ state: "off"
+
+action:
+ - action: input_boolean.turn_on
+ entity_id: input_boolean.boys_room_occupied
diff --git a/automations/rooms/blue_room/blue_room_out_of_bed.yaml b/automations/rooms/boys_room/boys_room_out_of_bed.yaml
similarity index 94%
rename from automations/rooms/blue_room/blue_room_out_of_bed.yaml
rename to automations/rooms/boys_room/boys_room_out_of_bed.yaml
index 4ef0258..2830931 100644
--- a/automations/rooms/blue_room/blue_room_out_of_bed.yaml
+++ b/automations/rooms/boys_room/boys_room_out_of_bed.yaml
@@ -1,5 +1,5 @@
-alias: Blue Room Out of Bed
-id: automation_blue_room_out_of_bed
+alias: Boys Room Out of Bed
+id: automation_boys_room_out_of_bed
mode: single
# Hide warnings when triggered while in delay.
max_exceeded: silent
@@ -11,7 +11,7 @@ trigger:
to: "off"
for: "00:00:03"
- trigger: state
- entity_id: binary_sensor.blue_room_door
+ entity_id: binary_sensor.boys_room_door_contact
from: "off"
to: "on"
@@ -127,7 +127,7 @@ action:
# count: 6
# sequence:
# - delay: 1
- # - service: light.toggle
+ # - action: light.toggle
# target:
# entity_id:
# - light.entryway_hue
@@ -136,21 +136,21 @@ action:
#- delay: '00:00:02'
# - alias: "Fix computer area lights"
- # service: automation.trigger
+ # action: automation.trigger
# target:
# entity_id: "automation.computer_area_lights_to_{{ computer_area }}"
# data:
# skip_condition: true
# - alias: "Fix front room lights"
- # service: automation.trigger
+ # action: automation.trigger
# target:
# entity_id: "automation.front_room_lights_to_{{ front_room }}"
# data:
# skip_condition: true
# - alias: "Fix entryway lights"
- # service: automation.trigger
+ # action: automation.trigger
# target:
# entity_id: "automation.entryway_lights_to_{{ entryway }}"
# data:
diff --git a/automations/rooms/boys_room/boys_room_white_noise_off.yaml b/automations/rooms/boys_room/boys_room_white_noise_off.yaml
new file mode 100644
index 0000000..be26b3e
--- /dev/null
+++ b/automations/rooms/boys_room/boys_room_white_noise_off.yaml
@@ -0,0 +1,11 @@
+alias: Boys Room White Noise Off
+id: automation_boys_room_white_noise_off
+
+trigger:
+ - platform: state
+ entity_id: input_boolean.boys_room_asleep
+ to: "off"
+
+action:
+ - action: media_player.turn_off
+ entity_id: media_player.ma_boys_room_clock
diff --git a/automations/rooms/boys_room/boys_room_white_noise_on.yaml b/automations/rooms/boys_room/boys_room_white_noise_on.yaml
new file mode 100644
index 0000000..6002880
--- /dev/null
+++ b/automations/rooms/boys_room/boys_room_white_noise_on.yaml
@@ -0,0 +1,57 @@
+alias: Boys Room White Noise On
+id: automation_boys_room_white_noise_on
+
+trigger:
+ - platform: state
+ entity_id: input_boolean.boys_room_asleep
+ to: "on"
+ - platform: state
+ entity_id: media_player.ma_boys_room_clock
+ to: "idle"
+ for: 00:00:05
+
+condition:
+ - alias: "Do we want to be alerted?"
+ condition: state
+ entity_id: input_boolean.boys_room_asleep
+ state: "on"
+
+action:
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: media_player.ma_boys_room_clock
+ state: "playing"
+ sequence:
+ - action: media_player.media_stop
+ target:
+ entity_id: media_player.ma_boys_room_clock
+
+ - action: media_player.volume_set
+ data:
+ volume_level: 0.30
+ target:
+ entity_id: media_player.ma_boys_room_clock
+
+ #- action: script.goodnight_kids_youtube_music
+
+ - action: media_player.shuffle_set
+ metadata: {}
+ data:
+ shuffle: false
+ target:
+ entity_id: media_player.ma_boys_room_clock
+ - action: media_player.repeat_set
+ metadata: {}
+ data:
+ repeat: "all"
+ target:
+ entity_id: media_player.ma_boys_room_clock
+ - action: music_assistant.play_media
+ metadata: {}
+ data:
+ media_id: library://track/101
+ media_type: track
+ enqueue: replace
+ target:
+ entity_id: media_player.ma_boys_room_clock
diff --git a/automations/rooms/computer_area/computer_area_light_cycle.yaml b/automations/rooms/computer_area/computer_area_light_cycle.yaml
index 146e6ae..7f5bc86 100644
--- a/automations/rooms/computer_area/computer_area_light_cycle.yaml
+++ b/automations/rooms/computer_area/computer_area_light_cycle.yaml
@@ -5,8 +5,8 @@ trigger:
- id: light_cycle_on
platform: state
entity_id: input_boolean.computer_area_light_cycle
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
- id: setting_change
platform: state
@@ -19,113 +19,111 @@ condition: "{{ is_state('input_boolean.computer_area_light_cycle','on') }}"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.computer_area_light_cycle
- state: 'on'
- sequence:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.computer_area_light_cycle
+ state: "on"
+ sequence:
+ - repeat:
+ sequence:
+ - choose:
+ - conditions: # If all lights should be the same color and the projector is off, reference the Hue group for all the lights
+ - condition: state
+ entity_id: input_boolean.computer_area_cycle_same
+ state: "on"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.computer_area_hue
+ data:
+ brightness: '{{ states("input_number.computer_area_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.computer_area_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.computer_area_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
- - repeat:
- sequence:
- - choose:
- - conditions: # If all lights should be the same color and the projector is off, reference the Hue group for all the lights
+ - conditions: # If all lights should be different colors, start referencing the individual lights that don't obscure the TV
+ - condition: state
+ entity_id: input_boolean.computer_area_cycle_same
+ state: "off"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.basement_1
+ data:
+ brightness: '{{ states("input_number.computer_area_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.computer_area_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.computer_area_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.computer_area_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+
+ - delay:
+ seconds: '{{ states("input_number.computer_area_light_cycle_transition") | int }}'
+
+ until:
- condition: state
- entity_id: input_boolean.computer_area_cycle_same
- state: 'on'
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.computer_area_hue
- data:
- brightness: '{{ states("input_number.computer_area_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.computer_area_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.computer_area_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.computer_area_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.computer_area_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.computer_area_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.computer_area_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.computer_area_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.computer_area_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.computer_area_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.computer_area_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.computer_area_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.computer_area_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.computer_area_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.computer_area_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.computer_area_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.computer_area_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
+ entity_id: input_boolean.computer_area_light_cycle
+ state: "off"
-
- - conditions: # If all lights should be different colors, start referencing the individual lights that don't obscure the TV
- - condition: state
- entity_id: input_boolean.computer_area_cycle_same
- state: 'off'
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.basement_1
- data:
- brightness: '{{ states("input_number.computer_area_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.computer_area_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.computer_area_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.computer_area_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.computer_area_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.computer_area_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.computer_area_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.computer_area_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.computer_area_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.computer_area_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.computer_area_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.computer_area_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.computer_area_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.computer_area_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.computer_area_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.computer_area_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.computer_area_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - delay:
- seconds: '{{ states("input_number.computer_area_light_cycle_transition") | int }}'
-
- until:
- - condition: state
- entity_id: input_boolean.computer_area_light_cycle
- state: 'off'
-
- - service: automation.trigger
+ - action: automation.trigger
entity_id: automation.computer_area_lights_to_on
diff --git a/automations/rooms/computer_area/computer_area_lights_manual.yaml b/automations/rooms/computer_area/computer_area_lights_manual.yaml
index 5860c3f..e688522 100644
--- a/automations/rooms/computer_area/computer_area_lights_manual.yaml
+++ b/automations/rooms/computer_area/computer_area_lights_manual.yaml
@@ -9,8 +9,8 @@ trigger:
entity_id: switch.great_room_motion_switch
action:
- - service: light.turn_on
+ - action: light.turn_on
data:
profile: concentrate
target:
- entity_id: light.computer_area_hue
\ No newline at end of file
+ entity_id: light.computer_area_hue
diff --git a/automations/rooms/computer_area/computer_area_lights_to_off.yaml b/automations/rooms/computer_area/computer_area_lights_to_off.yaml
index a65c860..cf9b942 100644
--- a/automations/rooms/computer_area/computer_area_lights_to_off.yaml
+++ b/automations/rooms/computer_area/computer_area_lights_to_off.yaml
@@ -10,12 +10,12 @@ trigger:
- platform: state
entity_id: input_boolean.computer_area_occupied
- to: 'off'
+ to: "off"
- platform: state
id: light_level
entity_id: binary_sensor.computer_area_naturally_lit
- to: 'on'
+ to: "on"
condition:
- alias: "Not occupied or mode is set to off"
@@ -23,61 +23,61 @@ condition:
conditions:
- condition: state
entity_id: input_select.computer_area_mode
- state: 'Off'
+ state: "Off"
- condition: state
entity_id: input_boolean.computer_area_occupied
- state: 'off'
+ state: "off"
- alias: "Great Room Light Cycle is off"
condition: state
entity_id: input_boolean.great_room_light_cycle
- state: 'off'
+ state: "off"
- alias: "Computer Area Light Cycle is off"
condition: state
entity_id: input_boolean.computer_area_light_cycle
- state: 'off'
+ state: "off"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
- - condition: or
- conditions:
+ - conditions:
- condition: state
- entity_id: input_select.computer_area_mode
- state: 'Off'
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.computer_area_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.computer_area_occupied
+ state: "off"
- condition: state
- entity_id: input_boolean.computer_area_occupied
- state: 'off'
- - condition: state
- entity_id: binary_sensor.computer_chair_contact_occupied
- state: 'off'
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.computer_area_mode
- state: 'Manual'
- sequence:
- - service: scene.turn_on
- data:
- transition: 5
- target:
- entity_id: scene.computer_area_hue_off
- # - service: light.turn_off
- # target:
- # entity_id: light.basement_1
+ entity_id: binary_sensor.computer_chair_contact_occupied
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.computer_area_mode
+ state: "Manual"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: 5
+ target:
+ entity_id: scene.computer_area_hue_off
+ # - action: light.turn_off
+ # target:
+ # entity_id: light.basement_1
- - choose:
- - conditions:
- - condition: state
- entity_id: light.great_room_hue
- state: 'off'
- - condition: state
- entity_id: input_boolean.guest_mode
- state: 'on'
- sequence:
- - alias: "Turn off z-wave switch since all lights are off"
- service: homeassistant.turn_off
- target:
- entity_id: switch.great_room_motion_switch
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: light.great_room_hue
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.guest_mode
+ state: "on"
+ sequence:
+ - alias: "Turn off z-wave switch since all lights are off"
+ action: homeassistant.turn_off
+ target:
+ entity_id: switch.great_room_motion_switch
diff --git a/automations/rooms/computer_area/computer_area_lights_to_on.yaml b/automations/rooms/computer_area/computer_area_lights_to_on.yaml
index dd85a24..1409ea9 100644
--- a/automations/rooms/computer_area/computer_area_lights_to_on.yaml
+++ b/automations/rooms/computer_area/computer_area_lights_to_on.yaml
@@ -14,8 +14,8 @@ trigger:
- platform: state
id: light_level
entity_id: binary_sensor.computer_area_naturally_lit
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
id: occupied
@@ -53,7 +53,6 @@ condition:
- alias: "Check if light should turn on"
condition: or
conditions:
-
- alias: "Guest mode is on"
condition: state
entity_id: input_boolean.guest_mode
@@ -62,11 +61,10 @@ condition:
- alias: "Motion or occupancy were detected in a dim room"
condition: and
conditions:
-
- alias: "Room not naturally lit"
condition: state
entity_id: binary_sensor.computer_area_naturally_lit
- state: 'off'
+ state: "off"
- alias: "Motion or occupancy were detected"
condition: or
@@ -95,75 +93,75 @@ variables:
action:
- alias: "Make sure Z-Wave switch is turned on"
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
target:
entity_id: "{{ switch_name }}"
- choose:
- - alias: "If the room is set to manual, just turn the lights on"
- conditions:
- - alias: "Room set to manual"
- condition: state
- entity_id: input_select.computer_area_mode
- state: Manual
- sequence:
- - service: light.turn_on
- target:
+ - alias: "If the room is set to manual, just turn the lights on"
+ conditions:
+ - alias: "Room set to manual"
+ condition: state
+ entity_id: input_select.computer_area_mode
+ state: Manual
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.computer_area_hue
+
+ - alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.computer_area_mode
+ state: Auto
+ - alias: "Lights are on"
+ condition: state
entity_id: light.computer_area_hue
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- - alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.computer_area_mode
- state: Auto
- - alias: "Lights are on"
- condition: state
- entity_id: light.computer_area_hue
- state: 'on'
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+ - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.computer_area_mode
+ state: Auto
+ - alias: "Lights are off"
+ condition: state
+ entity_id: light.computer_area_hue
+ state: "off"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.computer_area_mode
- state: Auto
- - alias: "Lights are off"
- condition: state
- entity_id: light.computer_area_hue
- state: 'off'
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+ - alias: "If the room is not set to auto and the lights are on, change to the Computer Area Mode scene with a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are on"
+ condition: state
+ entity_id: light.computer_area_hue
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- - alias: "If the room is not set to auto and the lights are on, change to the Computer Area Mode scene with a transition"
- conditions:
- - alias: "Room not manual or auto and lights are on"
- condition: state
- entity_id: light.computer_area_hue
- state: 'on'
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+ - alias: "If the room is not set to auto and the lights are on, change to the Computer Area Mode scene without a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are off"
+ condition: state
+ entity_id: light.computer_area_hue
+ state: "off"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- - alias: "If the room is not set to auto and the lights are on, change to the Computer Area Mode scene without a transition"
- conditions:
- - alias: "Room not manual or auto and lights are off"
- condition: state
- entity_id: light.computer_area_hue
- state: 'off'
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
-
- - delay: 1
\ No newline at end of file
+ - delay: 1
diff --git a/automations/rooms/computer_area/computer_area_not_occupied.yaml b/automations/rooms/computer_area/computer_area_not_occupied.yaml
index c7f75cc..81d2b86 100644
--- a/automations/rooms/computer_area/computer_area_not_occupied.yaml
+++ b/automations/rooms/computer_area/computer_area_not_occupied.yaml
@@ -1,19 +1,19 @@
-alias: 'Computer Area Not Occupied'
+alias: "Computer Area Not Occupied"
id: automation_computer_area_not_occupied
mode: restart
trigger:
- platform: state
entity_id: input_boolean.home_occupied
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
entity_id:
- input_boolean.home_occupied
- binary_sensor.computer_area_occupied
- to: 'off'
- for: '00:15:00'
+ to: "off"
+ for: "00:15:00"
# - platform: time_pattern
# minutes: "/5"
@@ -22,47 +22,47 @@ condition:
- alias: "Room is considered occupied"
condition: state
entity_id: input_boolean.computer_area_occupied
- state: 'on'
+ state: "on"
- alias: "Lights are not forced to be turned off manually"
condition: state
entity_id: input_boolean.lights_off_manually
- state: 'off'
+ state: "off"
- alias: "Either the home is unoccupied, or no presence has been detected in the room for 15 minutes"
condition: or
conditions:
- condition: state
entity_id: input_boolean.home_occupied
- state: 'off'
+ state: "off"
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.computer_area_person_occupancy
- state: 'off'
+ state: "off"
for:
minutes: 15
- condition: state
entity_id: binary_sensor.computer_area_occupied
- state: 'off'
+ state: "off"
for:
minutes: 15
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.computer_area_occupied
- - conditions:
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Manual'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.computer_area_occupied
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.computer_area_occupied
+ - conditions:
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Manual"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.computer_area_occupied
diff --git a/automations/rooms/computer_area/computer_area_occupied.yaml b/automations/rooms/computer_area/computer_area_occupied.yaml
index 072bdb1..71d1341 100644
--- a/automations/rooms/computer_area/computer_area_occupied.yaml
+++ b/automations/rooms/computer_area/computer_area_occupied.yaml
@@ -1,4 +1,4 @@
-alias: 'Computer Area Occupied'
+alias: "Computer Area Occupied"
id: automation_computer_area_occupied
mode: restart
@@ -6,28 +6,28 @@ trigger:
- platform: state
entity_id:
- binary_sensor.computer_area_occupied
- to: 'on'
+ to: "on"
condition:
# Computer area was not already occupied or computer area light is off while not set to manual or off
- condition: or
conditions:
- - condition: state
- entity_id: input_boolean.computer_area_occupied
- state: 'off'
- - condition: and
- conditions:
- condition: state
- entity_id: light.computer_area_hue
- state: 'off'
- - condition: not
+ entity_id: input_boolean.computer_area_occupied
+ state: "off"
+ - condition: and
conditions:
- condition: state
- entity_id: input_select.computer_area_mode
- state: 'Off'
- - condition: state
- entity_id: input_select.computer_area_mode
- state: 'Manual'
+ entity_id: light.computer_area_hue
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.computer_area_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_select.computer_area_mode
+ state: "Manual"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.computer_area_occupied
diff --git a/automations/rooms/dining_room/dining_room_lights_to_off.yaml b/automations/rooms/dining_room/dining_room_lights_to_off.yaml
index 6b9ec86..1cd28bd 100644
--- a/automations/rooms/dining_room/dining_room_lights_to_off.yaml
+++ b/automations/rooms/dining_room/dining_room_lights_to_off.yaml
@@ -8,13 +8,13 @@ trigger:
- platform: state
entity_id: input_boolean.dining_room_occupied
- to: 'off'
+ to: "off"
- platform: state
id: light_level
entity_id: binary_sensor.dining_room_naturally_lit
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
#- platform: time_pattern
# minutes: "/5"
@@ -24,57 +24,57 @@ condition:
conditions:
- condition: state
entity_id: input_select.dining_room_mode
- state: 'Off'
+ state: "Off"
- condition: state
entity_id: input_boolean.dining_room_occupied
- state: 'off'
+ state: "off"
- condition: state
entity_id: binary_sensor.dining_room_naturally_lit
- state: 'on'
+ state: "on"
action:
- choose:
- - conditions:
- - condition: or
- conditions:
- - condition: and
+ - conditions:
+ - condition: or
conditions:
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.dining_room_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.dining_room_occupied
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.dining_room_mode
+ state: "Manual"
- condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
- - condition: or
- conditions:
- - condition: state
- entity_id: input_select.dining_room_mode
- state: 'Off'
- - condition: state
- entity_id: input_boolean.dining_room_occupied
- state: 'off'
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.dining_room_mode
- state: 'Manual'
- - condition: state
- entity_id: binary_sensor.dining_room_naturally_lit
- state: 'on'
- sequence:
+ entity_id: binary_sensor.dining_room_naturally_lit
+ state: "on"
+ sequence:
- alias: "Turn off z-wave switch since all lights are off"
- service: homeassistant.turn_off
+ action: homeassistant.turn_off
target:
entity_id: switch.dining_room_switch
- # - service: scene.turn_on
- # data:
- # transition: 5
- # target:
- # entity_id: scene.dining_room_hue_off
- # - choose:
- # - conditions:
- # - condition: state
- # entity_id: input_boolean.guest_mode
- # state: 'on'
- # sequence:
- # - alias: "Turn off z-wave switch since all lights are off"
- # service: homeassistant.turn_off
- # target:
- # entity_id: switch.dining_room_switch
+ # - action: scene.turn_on
+ # data:
+ # transition: 5
+ # target:
+ # entity_id: scene.dining_room_hue_off
+ # - choose:
+ # - conditions:
+ # - condition: state
+ # entity_id: input_boolean.guest_mode
+ # state: 'on'
+ # sequence:
+ # - alias: "Turn off z-wave switch since all lights are off"
+ # action: homeassistant.turn_off
+ # target:
+ # entity_id: switch.dining_room_switch
diff --git a/automations/rooms/dining_room/dining_room_lights_to_on.yaml b/automations/rooms/dining_room/dining_room_lights_to_on.yaml
index 1ed2c29..3aee68d 100644
--- a/automations/rooms/dining_room/dining_room_lights_to_on.yaml
+++ b/automations/rooms/dining_room/dining_room_lights_to_on.yaml
@@ -14,8 +14,8 @@ trigger:
- platform: state
id: light_level
entity_id: binary_sensor.dining_room_naturally_lit
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
id: occupied
@@ -36,7 +36,6 @@ condition:
- alias: "Check if light should turn on"
condition: or
conditions:
-
- alias: "Guest mode is on"
condition: state
entity_id: input_boolean.guest_mode
@@ -48,7 +47,7 @@ condition:
- alias: "Light level below trigger amount"
condition: state
entity_id: binary_sensor.dining_room_naturally_lit
- state: 'off'
+ state: "off"
- alias: "Motion or occupancy were detected"
condition: or
conditions:
@@ -81,7 +80,7 @@ condition:
# action:
# - alias: "Make sure Z-Wave switch is turned on"
-# service: homeassistant.turn_on
+# action: homeassistant.turn_on
# target:
# entity_id: "{{ switch_name }}"
# - choose:
@@ -92,7 +91,7 @@ condition:
# entity_id: input_select.dining_room_mode
# state: Manual
# sequence:
-# - service: light.turn_on
+# - action: light.turn_on
# target:
# entity_id: light.dining_room_hue
@@ -107,7 +106,7 @@ condition:
# entity_id: light.dining_room_hue
# state: 'on'
# sequence:
-# - service: scene.turn_on
+# - action: scene.turn_on
# data:
# transition: "{{ states('input_number.light_scene_transition') }}"
# target:
@@ -124,7 +123,7 @@ condition:
# entity_id: light.dining_room_hue
# state: 'off'
# sequence:
-# - service: scene.turn_on
+# - action: scene.turn_on
# target:
# entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
@@ -135,7 +134,7 @@ condition:
# entity_id: light.dining_room_hue
# state: 'on'
# sequence:
-# - service: scene.turn_on
+# - action: scene.turn_on
# data:
# transition: "{{ states('input_number.light_scene_transition') }}"
# target:
@@ -148,14 +147,14 @@ condition:
# entity_id: light.dining_room_hue
# state: 'off'
# sequence:
-# - service: scene.turn_on
+# - action: scene.turn_on
# target:
# entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
action:
- alias: "Make sure Z-Wave switch is turned on"
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
target:
entity_id: switch.dining_room_switch
- - delay: 1
\ No newline at end of file
+ - delay: 1
diff --git a/automations/rooms/dining_room/dining_room_not_occupied.yaml b/automations/rooms/dining_room/dining_room_not_occupied.yaml
index 3d772b3..6e9cfbb 100644
--- a/automations/rooms/dining_room/dining_room_not_occupied.yaml
+++ b/automations/rooms/dining_room/dining_room_not_occupied.yaml
@@ -1,19 +1,19 @@
-alias: 'Dining Room Not Occupied'
+alias: "Dining Room Not Occupied"
id: automation_dining_room_not_occupied
mode: restart
trigger:
- platform: state
entity_id: input_boolean.home_occupied
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
entity_id:
- input_boolean.home_occupied
- binary_sensor.dining_room_occupied
- to: 'off'
- for: '00:15:00'
+ to: "off"
+ for: "00:15:00"
# - platform: time_pattern
# minutes: "/5"
@@ -21,45 +21,45 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.dining_room_occupied
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_boolean.lights_off_manually
- state: 'off'
+ state: "off"
- condition: or
conditions:
- condition: state
entity_id: input_boolean.home_occupied
- state: 'off'
+ state: "off"
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.dining_room_person_occupancy
- state: 'off'
+ state: "off"
for:
minutes: 5
- condition: state
entity_id: binary_sensor.dining_room_occupied
- state: 'off'
+ state: "off"
for:
minutes: 5
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.dining_room_occupied
- - conditions:
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Manual'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.dining_room_occupied
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.dining_room_occupied
+ - conditions:
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Manual"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.dining_room_occupied
diff --git a/automations/rooms/dining_room/dining_room_occupied.yaml b/automations/rooms/dining_room/dining_room_occupied.yaml
index a9cda6a..a3218ca 100644
--- a/automations/rooms/dining_room/dining_room_occupied.yaml
+++ b/automations/rooms/dining_room/dining_room_occupied.yaml
@@ -1,4 +1,4 @@
-alias: 'Dining Room Occupied'
+alias: "Dining Room Occupied"
id: automation_dining_room_occupied
mode: restart
@@ -6,13 +6,13 @@ trigger:
- platform: state
entity_id:
- binary_sensor.dining_room_occupied
- to: 'on'
+ to: "on"
condition:
# Dining Room was not already occupied
- condition: state
entity_id: input_boolean.dining_room_occupied
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.dining_room_occupied
diff --git a/automations/rooms/driveway_lights.yaml b/automations/rooms/driveway_lights.yaml
index 76ee198..31a5a56 100644
--- a/automations/rooms/driveway_lights.yaml
+++ b/automations/rooms/driveway_lights.yaml
@@ -36,33 +36,33 @@ trigger:
action:
- choose:
- - conditions:
- - condition: trigger
- id: "motion_on"
- - condition: or
- conditions:
- - condition: state
- alias: "It is dark outside"
- entity_id: binary_sensor.is_dark
- state: 'on'
- - condition: state
- alias: "Front porch light is on"
- entity_id: light.front_porch_overhead
- state: 'on'
- - condition: state
- entity_id: light.driveway
- state: 'off'
- sequence:
- - service: light.turn_on
- target:
+ - conditions:
+ - condition: trigger
+ id: "motion_on"
+ - condition: or
+ conditions:
+ - condition: state
+ alias: "It is dark outside"
+ entity_id: binary_sensor.is_dark
+ state: "on"
+ - condition: state
+ alias: "Front porch light is on"
+ entity_id: light.front_porch_overhead
+ state: "on"
+ - condition: state
entity_id: light.driveway
- - conditions:
- - condition: trigger
- id: "motion_off"
- - condition: state
- entity_id: light.driveway
- state: 'on'
- sequence:
- - service: light.turn_off
- target:
+ state: "off"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.driveway
+ - conditions:
+ - condition: trigger
+ id: "motion_off"
+ - condition: state
entity_id: light.driveway
+ state: "on"
+ sequence:
+ - action: light.turn_off
+ target:
+ entity_id: light.driveway
diff --git a/automations/rooms/entryway/entryway_lights_to_off.yaml b/automations/rooms/entryway/entryway_lights_to_off.yaml
index 96ff5f9..189cf95 100644
--- a/automations/rooms/entryway/entryway_lights_to_off.yaml
+++ b/automations/rooms/entryway/entryway_lights_to_off.yaml
@@ -8,76 +8,76 @@ trigger:
- platform: state
entity_id: input_boolean.entryway_occupied
- to: 'off'
+ to: "off"
- platform: state
id: light_level
entity_id: binary_sensor.entryway_naturally_lit
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
#- platform: time_pattern
# minutes: "/5"
condition:
- condition: state
entity_id: input_boolean.lighting_automations
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_boolean.lights_off_manually
- state: 'off'
+ state: "off"
- condition: or
conditions:
- condition: state
entity_id: input_select.entryway_mode
- state: 'Off'
+ state: "Off"
- condition: state
entity_id: input_boolean.entryway_occupied
- state: 'off'
+ state: "off"
- condition: state
entity_id: binary_sensor.entryway_naturally_lit
- state: 'on'
+ state: "on"
action:
- choose:
- - conditions:
- - condition: or
- conditions:
- - condition: and
+ - conditions:
+ - condition: or
conditions:
+ - condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.entryway_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.entryway_occupied
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.entryway_mode
+ state: "Manual"
- condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
- - condition: or
- conditions:
+ entity_id: binary_sensor.entryway_naturally_lit
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: 5
+ target:
+ entity_id: scene.entryway_hue_off
+ - choose:
+ - conditions:
- condition: state
- entity_id: input_select.entryway_mode
- state: 'Off'
- - condition: state
- entity_id: input_boolean.entryway_occupied
- state: 'off'
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.entryway_mode
- state: 'Manual'
- - condition: state
- entity_id: binary_sensor.entryway_naturally_lit
- state: 'on'
- sequence:
- - service: scene.turn_on
- data:
- transition: 5
- target:
- entity_id: scene.entryway_hue_off
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.guest_mode
- state: 'on'
- sequence:
- - alias: "Turn off z-wave switch since all lights are off"
- service: homeassistant.turn_off
- target:
- entity_id: switch.entryway_motion_switch
\ No newline at end of file
+ entity_id: input_boolean.guest_mode
+ state: "on"
+ sequence:
+ - alias: "Turn off z-wave switch since all lights are off"
+ action: homeassistant.turn_off
+ target:
+ entity_id: switch.entryway_motion_switch
diff --git a/automations/rooms/entryway/entryway_not_occupied.yaml b/automations/rooms/entryway/entryway_not_occupied.yaml
index 11458dd..2cb928d 100644
--- a/automations/rooms/entryway/entryway_not_occupied.yaml
+++ b/automations/rooms/entryway/entryway_not_occupied.yaml
@@ -1,18 +1,18 @@
-alias: 'Entryway Not Occupied'
+alias: "Entryway Not Occupied"
id: automation_entryway_not_occupied
mode: restart
trigger:
- platform: state
entity_id: input_boolean.home_occupied
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
entity_id:
- input_boolean.home_occupied
- binary_sensor.entryway_occupied
- to: 'off'
- for: '00:05:00'
+ to: "off"
+ for: "00:05:00"
# - platform: time_pattern
# minutes: "/5"
@@ -22,32 +22,32 @@ condition:
conditions:
- condition: state
entity_id: input_boolean.home_occupied
- state: 'off'
+ state: "off"
- condition: and
conditions:
- condition: state
entity_id: input_boolean.entryway_occupied
- state: 'on'
+ state: "on"
- condition: state
entity_id: binary_sensor.entryway_occupied
- state: 'off'
- for: '00:05:00'
+ state: "off"
+ for: "00:05:00"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.entryway_occupied
- - conditions:
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Manual'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.entryway_occupied
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.entryway_occupied
+ - conditions:
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Manual"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.entryway_occupied
diff --git a/automations/rooms/entryway/entryway_occupied.yaml b/automations/rooms/entryway/entryway_occupied.yaml
index bf219f1..4b7bc1a 100644
--- a/automations/rooms/entryway/entryway_occupied.yaml
+++ b/automations/rooms/entryway/entryway_occupied.yaml
@@ -1,4 +1,4 @@
-alias: 'Entryway Occupied'
+alias: "Entryway Occupied"
id: automation_entryway_occupied
mode: restart
@@ -6,13 +6,13 @@ trigger:
- platform: state
entity_id:
- binary_sensor.entryway_occupied
- to: 'on'
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.entryway_occupied
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.entryway_occupied
diff --git a/automations/rooms/front_porch_lights.yaml b/automations/rooms/front_porch_lights.yaml
index 2ed2287..f47b4d2 100644
--- a/automations/rooms/front_porch_lights.yaml
+++ b/automations/rooms/front_porch_lights.yaml
@@ -51,105 +51,105 @@ trigger:
action:
- choose:
- - conditions:
- - condition: trigger
- id: "door_open"
+ - conditions:
+ - condition: trigger
+ id: "door_open"
- - condition: state
- entity_id: light.front_porch_overhead
- state: 'off'
-
- - alias: "It is not late evening"
- condition: state
- entity_id: binary_sensor.late_evening
- state: 'off'
-
- - alias: "It is not night"
- condition: state
- entity_id: binary_sensor.night
- state: 'off'
-
- - alias: "Front porch not naturally lit"
- condition: state
- entity_id: binary_sensor.front_porch_naturally_lit
- state: 'off'
-
- sequence:
- - service: light.turn_on
- target:
+ - condition: state
entity_id: light.front_porch_overhead
+ state: "off"
- - conditions:
- - condition: trigger
- id: "motion_on"
+ - alias: "It is not late evening"
+ condition: state
+ entity_id: binary_sensor.late_evening
+ state: "off"
- - condition: state
- entity_id: light.front_porch_overhead
- state: 'off'
+ - alias: "It is not night"
+ condition: state
+ entity_id: binary_sensor.night
+ state: "off"
- - alias: "Front porch not naturally lit"
- condition: state
- entity_id: binary_sensor.front_porch_naturally_lit
- state: 'off'
+ - alias: "Front porch not naturally lit"
+ condition: state
+ entity_id: binary_sensor.front_porch_naturally_lit
+ state: "off"
- sequence:
- - service: light.turn_on
- target:
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.front_porch_overhead
+
+ - conditions:
+ - condition: trigger
+ id: "motion_on"
+
+ - condition: state
entity_id: light.front_porch_overhead
+ state: "off"
- - conditions:
- - condition: trigger
- id: "too_bright"
+ - alias: "Front porch not naturally lit"
+ condition: state
+ entity_id: binary_sensor.front_porch_naturally_lit
+ state: "off"
- - condition: state
- entity_id: light.front_porch_overhead
- state: 'on'
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.front_porch_overhead
- sequence:
- - service: light.turn_off
- target:
+ - conditions:
+ - condition: trigger
+ id: "too_bright"
+
+ - condition: state
entity_id: light.front_porch_overhead
+ state: "on"
- - conditions:
- - condition: trigger
- id: "too_dark"
+ sequence:
+ - action: light.turn_off
+ target:
+ entity_id: light.front_porch_overhead
- - condition: state
- entity_id: light.front_porch_overhead
- state: 'off'
+ - conditions:
+ - condition: trigger
+ id: "too_dark"
- - condition: state
- entity_id:
- - binary_sensor.front_porch_motion
- - binary_sensor.front_porch_person_occupancy
- - binary_sensor.front_yard_person_occupancy
- state: 'on'
-
- sequence:
- - service: light.turn_on
- target:
+ - condition: state
entity_id: light.front_porch_overhead
+ state: "off"
- - conditions:
- - condition: state
- entity_id: binary_sensor.front_porch_motion
- state: "off"
- for:
- minutes: 5
+ - condition: state
+ entity_id:
+ - binary_sensor.front_porch_motion
+ - binary_sensor.front_porch_person_occupancy
+ - binary_sensor.front_yard_person_occupancy
+ state: "on"
- # - condition: state
- # entity_id: binary_sensor.outer_garage_door
- # state: 'off'
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.front_porch_overhead
- - condition: state
- entity_id: binary_sensor.outer_garage_door_contact
- state: 'off'
+ - conditions:
+ - condition: state
+ entity_id: binary_sensor.front_porch_motion
+ state: "off"
+ for:
+ minutes: 5
- - condition: state
- entity_id: light.front_porch_overhead
- state: 'on'
+ # - condition: state
+ # entity_id: binary_sensor.outer_garage_door
+ # state: 'off'
- sequence:
- - service: light.turn_off
- target:
- entity_id: light.front_porch_overhead
\ No newline at end of file
+ - condition: state
+ entity_id: binary_sensor.outer_garage_door_contact
+ state: "off"
+
+ - condition: state
+ entity_id: light.front_porch_overhead
+ state: "on"
+
+ sequence:
+ - action: light.turn_off
+ target:
+ entity_id: light.front_porch_overhead
diff --git a/automations/rooms/front_room/baby_monitor_off_hub.yaml b/automations/rooms/front_room/baby_monitor_off_hub.yaml
index f6fd99f..02e568c 100644
--- a/automations/rooms/front_room/baby_monitor_off_hub.yaml
+++ b/automations/rooms/front_room/baby_monitor_off_hub.yaml
@@ -7,6 +7,6 @@ trigger:
event_data:
entity_id: timer.nursery_camera_on_hub
action:
- service: media_player.turn_off
+ action: media_player.turn_off
data:
- entity_id: media_player.front_room_hub
\ No newline at end of file
+ entity_id: media_player.front_room_hub
diff --git a/automations/rooms/front_room/baby_monitor_off_tv.yaml b/automations/rooms/front_room/baby_monitor_off_tv.yaml
index 8d0f755..8a1c815 100644
--- a/automations/rooms/front_room/baby_monitor_off_tv.yaml
+++ b/automations/rooms/front_room/baby_monitor_off_tv.yaml
@@ -2,30 +2,30 @@ alias: Baby Monitor off Front Room TV
id: automation_baby_monitor_off_front_room_tv
trigger:
-- platform: event
- event_type: timer.finished
- event_data:
- entity_id: timer.nursery_camera_on_tv
+ - platform: event
+ event_type: timer.finished
+ event_data:
+ entity_id: timer.nursery_camera_on_tv
-- platform: state
- entity_id: media_player.front_room_tv
- attribute: source
- from: 'IP Camera Viewer - Pro'
+ - platform: state
+ entity_id: media_player.front_room_tv
+ attribute: source
+ from: "IP Camera Viewer - Pro"
action:
-- choose:
- - conditions:
- - condition: not
- conditions:
- - condition: state
- entity_id: media_player.front_room_tv
- attribute: source
- state: 'IP Camera Viewer - Pro'
- sequence:
- - service: timer.cancel
+ - choose:
+ - conditions:
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: media_player.front_room_tv
+ attribute: source
+ state: "IP Camera Viewer - Pro"
+ sequence:
+ - action: timer.cancel
+ data:
+ entity_id: timer.nursery_camera_on_tv
+ default:
+ action: media_player.turn_off
data:
- entity_id: timer.nursery_camera_on_tv
- default:
- service: media_player.turn_off
- data:
- entity_id: media_player.front_room_tv
\ No newline at end of file
+ entity_id: media_player.front_room_tv
diff --git a/automations/rooms/front_room/baby_monitor_on_front_room_hub.yaml b/automations/rooms/front_room/baby_monitor_on_front_room_hub.yaml
index 3d7620f..1e542a8 100644
--- a/automations/rooms/front_room/baby_monitor_on_front_room_hub.yaml
+++ b/automations/rooms/front_room/baby_monitor_on_front_room_hub.yaml
@@ -41,12 +41,12 @@ action:
entity_id: timer.nursery_camera_on_hub
state: "idle"
sequence:
- - service: media_player.volume_set
+ - action: media_player.volume_set
data:
entity_id: media_player.front_room_hub
volume_level: 0.1
- - service: media_player.play_media
+ - action: media_player.play_media
target:
entity_id: media_player.front_room_hub
data:
@@ -64,6 +64,6 @@ action:
- media_content_type: lovelace
media_content_id: camera-casting-yml
- - service: timer.start
+ - action: timer.start
data:
entity_id: timer.nursery_camera_on_hub
diff --git a/automations/rooms/front_room/baby_monitor_on_tv.yaml b/automations/rooms/front_room/baby_monitor_on_tv.yaml
index 575a37d..aa6af42 100644
--- a/automations/rooms/front_room/baby_monitor_on_tv.yaml
+++ b/automations/rooms/front_room/baby_monitor_on_tv.yaml
@@ -87,8 +87,8 @@ action:
entity_id: timer.nursery_camera_on_hub
state: "idle"
sequence:
- - service: rest_command.nursery_on_roku_1
+ - action: rest_command.nursery_on_roku_1
- - service: timer.start
+ - action: timer.start
data:
entity_id: timer.nursery_camera_on_tv
diff --git a/automations/rooms/front_room/front_room_light_cycle.yaml b/automations/rooms/front_room/front_room_light_cycle.yaml
index d25efd0..0eb2b86 100644
--- a/automations/rooms/front_room/front_room_light_cycle.yaml
+++ b/automations/rooms/front_room/front_room_light_cycle.yaml
@@ -4,8 +4,8 @@ trigger:
- id: light_cycle_on
platform: state
entity_id: input_boolean.front_room_light_cycle
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
- id: setting_change
platform: state
@@ -18,152 +18,151 @@ condition: "{{ is_state('input_boolean.front_room_light_cycle','on') }}"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.front_room_light_cycle
- state: 'on'
- sequence:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.front_room_light_cycle
+ state: "on"
+ sequence:
+ - repeat:
+ sequence:
+ - choose:
+ - conditions: # If all lights should be the same color and the projector is off, reference the Hue group for all the lights
+ - condition: state
+ entity_id: input_boolean.front_room_cycle_same
+ state: "on"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.front_room_hue
+ data:
+ brightness: '{{ states("input_number.front_room_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.front_room_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.front_room_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.front_room_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.front_room_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.front_room_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.front_room_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.front_room_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.front_room_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.front_room_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.front_room_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.front_room_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.front_room_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.front_room_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.front_room_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.front_room_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.front_room_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
- - repeat:
- sequence:
- - choose:
- - conditions: # If all lights should be the same color and the projector is off, reference the Hue group for all the lights
+ - conditions: # If all lights should be different colors, start referencing the individual lights that don't obscure the TV
+ - condition: state
+ entity_id: input_boolean.front_room_cycle_same
+ state: "off"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.front_room_splash_left
+ data:
+ brightness: '{{ states("input_number.front_room_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.front_room_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.front_room_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.front_room_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.front_room_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.front_room_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.front_room_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.front_room_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.front_room_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.front_room_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.front_room_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.front_room_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.front_room_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.front_room_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.front_room_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.front_room_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.front_room_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+
+ - action: light.turn_on
+ target:
+ entity_id: light.front_room_splash_left
+ data:
+ brightness: '{{ states("input_number.front_room_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.front_room_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.front_room_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.front_room_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.front_room_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.front_room_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.front_room_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.front_room_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.front_room_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.front_room_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.front_room_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.front_room_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.front_room_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.front_room_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.front_room_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.front_room_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.front_room_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+
+ - delay:
+ seconds: '{{ states("input_number.front_room_light_cycle_transition") | int }}'
+
+ until:
- condition: state
- entity_id: input_boolean.front_room_cycle_same
- state: 'on'
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.front_room_hue
- data:
- brightness: '{{ states("input_number.front_room_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.front_room_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.front_room_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.front_room_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.front_room_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.front_room_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.front_room_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.front_room_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.front_room_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.front_room_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.front_room_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.front_room_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.front_room_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.front_room_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.front_room_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.front_room_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.front_room_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
+ entity_id: input_boolean.front_room_light_cycle
+ state: "off"
- - conditions: # If all lights should be different colors, start referencing the individual lights that don't obscure the TV
- - condition: state
- entity_id: input_boolean.front_room_cycle_same
- state: 'off'
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.front_room_splash_left
- data:
- brightness: '{{ states("input_number.front_room_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.front_room_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.front_room_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.front_room_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.front_room_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.front_room_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.front_room_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.front_room_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.front_room_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.front_room_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.front_room_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.front_room_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.front_room_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.front_room_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.front_room_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.front_room_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.front_room_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - service: light.turn_on
- target:
- entity_id: light.front_room_splash_left
- data:
- brightness: '{{ states("input_number.front_room_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.front_room_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.front_room_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.front_room_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.front_room_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.front_room_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.front_room_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.front_room_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.front_room_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.front_room_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.front_room_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.front_room_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.front_room_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.front_room_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.front_room_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.front_room_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.front_room_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - delay:
- seconds: '{{ states("input_number.front_room_light_cycle_transition") | int }}'
-
- until:
- - condition: state
- entity_id: input_boolean.front_room_light_cycle
- state: 'off'
-
- - service: automation.trigger
+ - action: automation.trigger
entity_id: automation.front_room_lights_to_on
diff --git a/automations/rooms/front_room/front_room_lights_to_off.yaml b/automations/rooms/front_room/front_room_lights_to_off.yaml
index 6ed37bd..9f44143 100644
--- a/automations/rooms/front_room/front_room_lights_to_off.yaml
+++ b/automations/rooms/front_room/front_room_lights_to_off.yaml
@@ -8,18 +8,17 @@ trigger:
- platform: state
entity_id: input_boolean.front_room_occupied
- to: 'off'
+ to: "off"
- platform: state
entity_id: binary_sensor.front_room_naturally_lit
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
#- platform: time_pattern
# minutes: "/5"
condition:
-
- alias: "Front room light cycle not on"
condition: state
entity_id: input_boolean.front_room_light_cycle
@@ -29,49 +28,49 @@ condition:
conditions:
- condition: state
entity_id: input_select.front_room_mode
- state: 'Off'
+ state: "Off"
- condition: state
entity_id: input_boolean.front_room_occupied
- state: 'off'
+ state: "off"
- "{{ is_state('binary_sensor.front_room_naturally_lit','on') }}"
action:
- choose:
- - conditions:
- - condition: or
- conditions:
- - condition: and
+ - conditions:
+ - condition: or
conditions:
- - condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
- - condition: or
+ - condition: and
conditions:
- condition: state
- entity_id: input_select.front_room_mode
- state: 'Off'
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.front_room_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.front_room_occupied
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.front_room_mode
+ state: "Manual"
+ - "{{ is_state('binary_sensor.front_room_naturally_lit','on') }}"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: 5
+ target:
+ entity_id: scene.front_room_hue_off
+ - choose:
+ - conditions:
- condition: state
- entity_id: input_boolean.front_room_occupied
- state: 'off'
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.front_room_mode
- state: 'Manual'
- - "{{ is_state('binary_sensor.front_room_naturally_lit','on') }}"
- sequence:
- - service: scene.turn_on
- data:
- transition: 5
- target:
- entity_id: scene.front_room_hue_off
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.guest_mode
- state: 'on'
- sequence:
- - alias: "Turn off z-wave switch since all lights are off"
- service: homeassistant.turn_off
- target:
- entity_id: switch.front_room_motion_switch
+ entity_id: input_boolean.guest_mode
+ state: "on"
+ sequence:
+ - alias: "Turn off z-wave switch since all lights are off"
+ action: homeassistant.turn_off
+ target:
+ entity_id: switch.front_room_motion_switch
diff --git a/automations/rooms/front_room/front_room_lights_to_on.yaml b/automations/rooms/front_room/front_room_lights_to_on.yaml
index 52a575f..283b4f5 100644
--- a/automations/rooms/front_room/front_room_lights_to_on.yaml
+++ b/automations/rooms/front_room/front_room_lights_to_on.yaml
@@ -26,8 +26,8 @@ trigger:
- platform: state
id: light_level
entity_id: binary_sensor.front_room_naturally_lit
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
condition:
- alias: "Home is occupied"
@@ -43,7 +43,6 @@ condition:
- alias: "Check if light should turn on"
condition: or
conditions:
-
- alias: "Guest mode is on"
condition: state
entity_id: input_boolean.guest_mode
@@ -55,7 +54,7 @@ condition:
- alias: "Light level below trigger amount"
condition: state
entity_id: binary_sensor.front_room_naturally_lit
- state: 'off'
+ state: "off"
- alias: "Motion or occupancy were detected"
condition: or
@@ -83,10 +82,10 @@ condition:
id: light_level
- condition: state
entity_id: input_boolean.front_room_occupied
- state: 'on'
+ state: "on"
- condition: state
entity_id: light.front_room_hue
- state: 'off'
+ state: "off"
variables:
switch_name: switch.front_room_motion_switch
@@ -95,79 +94,79 @@ variables:
action:
- alias: "Make sure Z-Wave switch is turned on"
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
target:
entity_id: "{{ switch_name }}"
- choose:
- - alias: "If the room is set to manual, just turn the lights on"
- conditions:
- - alias: "Room set to manual"
- condition: state
- entity_id: input_select.front_room_mode
- state: Manual
- sequence:
- - service: light.turn_on
- target:
+ - alias: "If the room is set to manual, just turn the lights on"
+ conditions:
+ - alias: "Room set to manual"
+ condition: state
+ entity_id: input_select.front_room_mode
+ state: Manual
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.front_room_hue
+
+ - alias: "If the room is set to auto, the lights are already on, and the room is dim, change to the Automatic Light Profile scene with a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.front_room_mode
+ state: Auto
+ - alias: "Lights are on"
+ condition: state
entity_id: light.front_room_hue
+ state: "on"
+ - "{{ states('sensor.front_room_light_level') | float(default=0) < states('input_number.front_room_light_level_trigger') | float(default=0) }}"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- - alias: "If the room is set to auto, the lights are already on, and the room is dim, change to the Automatic Light Profile scene with a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.front_room_mode
- state: Auto
- - alias: "Lights are on"
- condition: state
- entity_id: light.front_room_hue
- state: 'on'
- - "{{ states('sensor.front_room_light_level') | float(default=0) < states('input_number.front_room_light_level_trigger') | float(default=0) }}"
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+ - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.front_room_mode
+ state: Auto
+ - alias: "Lights are off"
+ condition: state
+ entity_id: light.front_room_hue
+ state: "off"
+ - "{{ states('sensor.front_room_light_level') | float(default=0) < states('input_number.front_room_light_level_trigger') | float(default=0) }}"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.front_room_mode
- state: Auto
- - alias: "Lights are off"
- condition: state
- entity_id: light.front_room_hue
- state: 'off'
- - "{{ states('sensor.front_room_light_level') | float(default=0) < states('input_number.front_room_light_level_trigger') | float(default=0) }}"
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+ - alias: "If the room is not set to auto and the lights are on, change to the Front Room Mode scene with a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are on"
+ condition: state
+ entity_id: light.front_room_hue
+ state: "on"
+ - "{{ states('sensor.front_room_light_level') | float(default=0) < states('input_number.front_room_light_level_trigger') | float(default=0) }}"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- - alias: "If the room is not set to auto and the lights are on, change to the Front Room Mode scene with a transition"
- conditions:
- - alias: "Room not manual or auto and lights are on"
- condition: state
- entity_id: light.front_room_hue
- state: 'on'
- - "{{ states('sensor.front_room_light_level') | float(default=0) < states('input_number.front_room_light_level_trigger') | float(default=0) }}"
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+ - alias: "If the room is not set to auto and the lights are on, change to the Front Room Mode scene without a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are off"
+ condition: state
+ entity_id: light.front_room_hue
+ state: "off"
+ - "{{ states('sensor.front_room_light_level') | float(default=0) < states('input_number.front_room_light_level_trigger') | float(default=0) }}"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- - alias: "If the room is not set to auto and the lights are on, change to the Front Room Mode scene without a transition"
- conditions:
- - alias: "Room not manual or auto and lights are off"
- condition: state
- entity_id: light.front_room_hue
- state: 'off'
- - "{{ states('sensor.front_room_light_level') | float(default=0) < states('input_number.front_room_light_level_trigger') | float(default=0) }}"
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
-
- - delay: 1
\ No newline at end of file
+ - delay: 1
diff --git a/automations/rooms/front_room/front_room_not_occupied.yaml b/automations/rooms/front_room/front_room_not_occupied.yaml
index be29402..ce076ce 100644
--- a/automations/rooms/front_room/front_room_not_occupied.yaml
+++ b/automations/rooms/front_room/front_room_not_occupied.yaml
@@ -1,19 +1,19 @@
-alias: 'Front Room Not Occupied'
+alias: "Front Room Not Occupied"
id: automation_front_room_not_occupied
mode: restart
trigger:
- platform: state
entity_id: input_boolean.home_occupied
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
entity_id:
- input_boolean.home_occupied
- binary_sensor.front_room_occupied
- to: 'off'
- for: '00:15:00'
+ to: "off"
+ for: "00:15:00"
# - platform: time_pattern
# minutes: "/5"
@@ -21,45 +21,45 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.front_room_occupied
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_boolean.lights_off_manually
- state: 'off'
+ state: "off"
- condition: or
conditions:
- condition: state
entity_id: input_boolean.home_occupied
- state: 'off'
+ state: "off"
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.front_room_person_occupancy
- state: 'off'
+ state: "off"
for:
minutes: 5
- condition: state
entity_id: binary_sensor.front_room_occupied
- state: 'off'
+ state: "off"
for:
minutes: 5
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.front_room_occupied
- - conditions:
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Manual'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.front_room_occupied
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.front_room_occupied
+ - conditions:
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Manual"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.front_room_occupied
diff --git a/automations/rooms/front_room/front_room_occupied.yaml b/automations/rooms/front_room/front_room_occupied.yaml
index 643a69d..6d5017e 100644
--- a/automations/rooms/front_room/front_room_occupied.yaml
+++ b/automations/rooms/front_room/front_room_occupied.yaml
@@ -1,4 +1,4 @@
-alias: 'Front Room Occupied'
+alias: "Front Room Occupied"
id: automation_front_room_occupied
mode: restart
@@ -6,13 +6,13 @@ trigger:
- platform: state
entity_id:
- binary_sensor.front_room_occupied
- to: 'on'
+ to: "on"
condition:
# Computer area was not already occupied
- condition: state
entity_id: input_boolean.front_room_occupied
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.front_room_occupied
diff --git a/automations/rooms/front_room/front_room_tv_paused.yaml b/automations/rooms/front_room/front_room_tv_paused.yaml
index 5f9d1b6..1b07217 100644
--- a/automations/rooms/front_room/front_room_tv_paused.yaml
+++ b/automations/rooms/front_room/front_room_tv_paused.yaml
@@ -3,22 +3,22 @@ id: automation_front_room_tv_paused
trigger:
- platform: state
entity_id: media_player.front_room_tv
- from: 'playing'
+ from: "playing"
condition:
-- condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
-
-- condition: state
- entity_id: sun.sun
- state: 'below_horizon'
+ - condition: state
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+
+ - condition: state
+ entity_id: sun.sun
+ state: "below_horizon"
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data_template:
entity_id: input_select.front_room_mode
option: "{{ states('input_text.front_room_mode') }}"
- - service: automation.trigger
+ - action: automation.trigger
entity_id: automation.front_room_lights_to_on
diff --git a/automations/rooms/front_room/front_room_tv_playing.yaml b/automations/rooms/front_room/front_room_tv_playing.yaml
index fea73c6..99044e1 100644
--- a/automations/rooms/front_room/front_room_tv_playing.yaml
+++ b/automations/rooms/front_room/front_room_tv_playing.yaml
@@ -3,40 +3,39 @@ id: automation_front_room_tv_playing
trigger:
- platform: state
entity_id: media_player.front_room_tv
- to: 'playing'
+ to: "playing"
condition:
-- condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
-- condition: state
- entity_id: light.front_room_hue
- state: 'on'
-- condition: state
- entity_id: sun.sun
- state: 'below_horizon'
+ - condition: state
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: state
+ entity_id: light.front_room_hue
+ state: "on"
+ - condition: state
+ entity_id: sun.sun
+ state: "below_horizon"
-- condition: not
- conditions:
- - condition: state
- entity_id: media_player.front_room_tv
- attribute: 'source'
- state: 'PBS KIDS'
- - condition: state
- entity_id: media_player.front_room_tv
- attribute: 'source'
- state: 'YouTube'
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: media_player.front_room_tv
+ attribute: "source"
+ state: "PBS KIDS"
+ - condition: state
+ entity_id: media_player.front_room_tv
+ attribute: "source"
+ state: "YouTube"
action:
- - service: input_text.set_value
+ - action: input_text.set_value
data_template:
entity_id: input_text.front_room_mode
value: "{{ states('input_select.front_room_mode') }}"
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.front_room_mode
option: Dimmed
- - service: automation.trigger
+ - action: automation.trigger
entity_id: automation.front_room_lights_to_on
-
diff --git a/automations/rooms/front_room/front_room_tv_standby.yaml b/automations/rooms/front_room/front_room_tv_standby.yaml
index 54e00a3..6d00a13 100644
--- a/automations/rooms/front_room/front_room_tv_standby.yaml
+++ b/automations/rooms/front_room/front_room_tv_standby.yaml
@@ -3,18 +3,18 @@ id: automation_front_room_tv_standby
trigger:
- platform: state
entity_id: media_player.front_room_tv
- to: 'standby'
- for: '00:05:00'
+ to: "standby"
+ for: "00:05:00"
condition:
-- condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.lighting_automations
+ state: "on"
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data_template:
entity_id: input_select.front_room_mode
option: "{{ states('input_text.front_room_mode') }}"
- - service: automation.trigger
+ - action: automation.trigger
entity_id: automation.front_room_lights_to_on
diff --git a/automations/rooms/furnace_room/furnace_room_water_sensor_on.yaml b/automations/rooms/furnace_room/furnace_room_water_sensor_on.yaml
index bb0019c..6a36f5b 100644
--- a/automations/rooms/furnace_room/furnace_room_water_sensor_on.yaml
+++ b/automations/rooms/furnace_room/furnace_room_water_sensor_on.yaml
@@ -15,6 +15,6 @@ action:
media_player_entity_id: media_player.front_room_hub, media_player.bathroom_mini, media_player.kitchen, media_player.master_bedroom_clock
message: Attention! A water leak has been detected on the furnace room floor!
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
message: Attention! A water leak has been detected on the furnace room floor!
diff --git a/automations/rooms/garage/garage_lights_to_off.yaml b/automations/rooms/garage/garage_lights_to_off.yaml
index 3aa58f1..0cac8bb 100644
--- a/automations/rooms/garage/garage_lights_to_off.yaml
+++ b/automations/rooms/garage/garage_lights_to_off.yaml
@@ -5,7 +5,7 @@ mode: restart
trigger:
- platform: state
entity_id: input_boolean.garage_occupied
- to: 'off'
+ to: "off"
- platform: state
entity_id:
@@ -14,22 +14,22 @@ trigger:
- binary_sensor.garage_door
- binary_sensor.outer_garage_door_contact
- binary_sensor.inner_garage_door_contact
- to: 'off'
- for: '00:10:00'
+ to: "off"
+ for: "00:10:00"
- platform: state
entity_id: binary_sensor.garage_naturally_lit
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.lighting_automations
- state: 'on'
+ state: "on"
- condition: state
entity_id: light.garage_overhead
- state: 'on'
+ state: "on"
- condition: state
entity_id:
@@ -38,9 +38,9 @@ condition:
# - binary_sensor.outer_garage_door
#- binary_sensor.garage_door
- input_boolean.garage_occupied
- state: 'off'
+ state: "off"
action:
- - service: light.turn_off
+ - action: light.turn_off
data:
- entity_id: light.garage_overhead
\ No newline at end of file
+ entity_id: light.garage_overhead
diff --git a/automations/rooms/garage/garage_lights_to_on.yaml b/automations/rooms/garage/garage_lights_to_on.yaml
index 7650d50..d2b563a 100644
--- a/automations/rooms/garage/garage_lights_to_on.yaml
+++ b/automations/rooms/garage/garage_lights_to_on.yaml
@@ -72,7 +72,6 @@ condition:
- alias: Check if the light should turn on when the home is occupied
condition: and
conditions:
-
- alias: "Home is occupied"
condition: state
entity_id: input_boolean.home_occupied
@@ -81,7 +80,6 @@ condition:
- alias: "Check if light should turn on"
condition: or
conditions:
-
- alias: "Guest mode is on"
condition: state
entity_id: input_boolean.guest_mode
@@ -90,15 +88,13 @@ condition:
- alias: "Motion in dark garage, or workshop regardless of light level"
condition: or
conditions:
-
- alias: "Motion or occupancy were detected in a dim room"
condition: and
conditions:
-
- alias: "Room not naturally lit"
condition: state
entity_id: binary_sensor.garage_naturally_lit
- state: 'off'
+ state: "off"
- alias: "Motion, occupancy, or door opening were detected"
condition: or
@@ -129,8 +125,8 @@ condition:
action:
- alias: "Make sure Z-Wave switch is turned on"
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
target:
entity_id: switch.garage_switch
- - delay: 1
\ No newline at end of file
+ - delay: 1
diff --git a/automations/rooms/garage/garage_not_occupied.yaml b/automations/rooms/garage/garage_not_occupied.yaml
index 46c0543..14abfb9 100644
--- a/automations/rooms/garage/garage_not_occupied.yaml
+++ b/automations/rooms/garage/garage_not_occupied.yaml
@@ -1,4 +1,4 @@
-alias: 'Garage Not Occupied'
+alias: "Garage Not Occupied"
id: automation_garage_not_occupied
mode: restart
@@ -8,66 +8,65 @@ trigger:
- binary_sensor.garage_occupied
- binary_sensor.walkway_person_occupancy
- binary_sensor.workshop_person_occupancy
- to: 'off'
- for: '00:05:00'
+ to: "off"
+ for: "00:05:00"
condition:
-
- condition: state
entity_id: input_boolean.lights_off_manually
- state: 'off'
+ state: "off"
- condition: state
entity_id: input_boolean.garage_occupied
- state: 'on'
+ state: "on"
- condition: state
entity_id: binary_sensor.garage_occupied
- state: 'off'
+ state: "off"
action:
- repeat:
sequence:
- choose:
- - conditions:
- - condition: state
- entity_id: binary_sensor.garage_occupied
- state: 'off'
- for: '00:01:00'
- - condition: or
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Bachelor'
- - condition: state
- entity_id: input_boolean.kids_asleep
- state: 'on'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.garage_occupied
- - conditions:
- - condition: state
- entity_id: binary_sensor.garage_occupied
- state: 'off'
- for: '00:05:00'
- - condition: or
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Auto'
- - condition: state
- entity_id: input_select.house
- state: 'Dad'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.garage_occupied
- - conditions:
- - condition: state
- entity_id: binary_sensor.garage_naturally_lit
- state: 'on'
- for: '00:00:10'
+ - conditions:
+ - condition: state
+ entity_id: binary_sensor.garage_occupied
+ state: "off"
+ for: "00:01:00"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Bachelor"
+ - condition: state
+ entity_id: input_boolean.kids_asleep
+ state: "on"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.garage_occupied
+ - conditions:
+ - condition: state
+ entity_id: binary_sensor.garage_occupied
+ state: "off"
+ for: "00:05:00"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Auto"
+ - condition: state
+ entity_id: input_select.house
+ state: "Dad"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.garage_occupied
+ - conditions:
+ - condition: state
+ entity_id: binary_sensor.garage_naturally_lit
+ state: "on"
+ for: "00:00:10"
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.garage_occupied
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.garage_occupied
- delay:
minutes: 5
@@ -75,4 +74,4 @@ action:
until:
- condition: state
entity_id: input_boolean.garage_occupied
- state: 'off'
+ state: "off"
diff --git a/automations/rooms/garage/garage_occupied.yaml b/automations/rooms/garage/garage_occupied.yaml
index 1de2e26..fd7dfad 100644
--- a/automations/rooms/garage/garage_occupied.yaml
+++ b/automations/rooms/garage/garage_occupied.yaml
@@ -1,17 +1,16 @@
-alias: 'Garage Occupied'
+alias: "Garage Occupied"
id: automation_garage_occupied
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.garage_occupied
- to: 'on'
+ to: "on"
condition:
# Computer area was not already occupied
- condition: state
entity_id: input_boolean.garage_occupied
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.garage_occupied
-
diff --git a/automations/rooms/garage/garage_open_nobody_home.yaml b/automations/rooms/garage/garage_open_nobody_home.yaml
index 3a3bcdb..d82190a 100644
--- a/automations/rooms/garage/garage_open_nobody_home.yaml
+++ b/automations/rooms/garage/garage_open_nobody_home.yaml
@@ -1,22 +1,22 @@
-alias: 'Garage open nobody home'
+alias: "Garage open nobody home"
id: automation_garage_open_nobody_home
-initial_state: 'on'
+initial_state: "on"
trigger:
- platform: state
entity_id: binary_sensor.garage_open_nobody_home
- to: 'on'
+ to: "on"
condition:
- condition: and
conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- - condition: state
- entity_id: cover.garage_door
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ - condition: state
+ entity_id: cover.garage_door
+ state: "on"
action:
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
- message: The garage is open, but nobody is home
\ No newline at end of file
+ message: The garage is open, but nobody is home
diff --git a/automations/rooms/nursery/nursery_awake_button.yaml b/automations/rooms/girls_room/girls_room_awake_button.yaml
similarity index 66%
rename from automations/rooms/nursery/nursery_awake_button.yaml
rename to automations/rooms/girls_room/girls_room_awake_button.yaml
index b6ebbbf..d905541 100644
--- a/automations/rooms/nursery/nursery_awake_button.yaml
+++ b/automations/rooms/girls_room/girls_room_awake_button.yaml
@@ -8,24 +8,24 @@ trigger:
condition: []
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
option: Auto
target:
entity_id: input_select.nursery_mode
- - service: input_select.select_option
+ - action: input_select.select_option
data:
- option: 'Off'
+ option: "Off"
target:
entity_id: input_select.nursery_wled
- - service: switch.turn_off
+ - action: switch.turn_off
target:
entity_id:
- switch.black_bed_force_occupancy
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data: {}
target:
- entity_id: input_boolean.nursery_asleep
\ No newline at end of file
+ entity_id: input_boolean.nursery_asleep
diff --git a/automations/rooms/nursery/nursery_bedtime_button.yaml b/automations/rooms/girls_room/girls_room_bedtime_button.yaml
similarity index 71%
rename from automations/rooms/nursery/nursery_bedtime_button.yaml
rename to automations/rooms/girls_room/girls_room_bedtime_button.yaml
index 45836bd..004228b 100644
--- a/automations/rooms/nursery/nursery_bedtime_button.yaml
+++ b/automations/rooms/girls_room/girls_room_bedtime_button.yaml
@@ -8,19 +8,19 @@ trigger:
condition: []
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
option: Nightlight
target:
entity_id: input_select.nursery_mode
- # - service: input_select.select_option
+ # - action: input_select.select_option
# data:
# option: Running Rainbow
# target:
# entity_id: input_select.nursery_wled
- # - service: automation.trigger
+ # - action: automation.trigger
# target:
# entity_id: automation.nursery_wled_changed
@@ -31,27 +31,27 @@ action:
condition: and
conditions:
- condition: state
- entity_id: media_player.ma_nursery_hub
+ entity_id: media_player.ma_girls_room_hub
state: "playing"
- action: media_player.volume_set
data:
volume_level: 0.4
target:
- entity_id: media_player.ma_nursery_hub
+ entity_id: media_player.ma_girls_room_hub
- #- service: script.goodnight_kids_youtube_music
+ #- action: script.goodnight_kids_youtube_music
- action: media_player.shuffle_set
data:
shuffle: false
target:
- entity_id: media_player.ma_nursery_hub
+ entity_id: media_player.ma_girls_room_hub
- action: media_player.repeat_set
data:
repeat: all
target:
- entity_id: media_player.ma_nursery_hub
+ entity_id: media_player.ma_girls_room_hub
- action: music_assistant.play_media
data:
@@ -59,4 +59,4 @@ action:
media_type: playlist
enqueue: replace
target:
- entity_id: media_player.ma_nursery_hub
\ No newline at end of file
+ entity_id: media_player.ma_girls_room_hub
diff --git a/automations/rooms/nursery/continue_nursery_white_noise.yaml b/automations/rooms/girls_room/girls_room_continue_white_noise.yaml
similarity index 59%
rename from automations/rooms/nursery/continue_nursery_white_noise.yaml
rename to automations/rooms/girls_room/girls_room_continue_white_noise.yaml
index 959cf12..f697ce3 100644
--- a/automations/rooms/nursery/continue_nursery_white_noise.yaml
+++ b/automations/rooms/girls_room/girls_room_continue_white_noise.yaml
@@ -3,33 +3,33 @@ id: automation_continue_nursery_white_noise
trigger:
- platform: state
- entity_id: media_player.nursery_hub
+ entity_id: media_player.girls_room_hub
to: "off"
for: "00:00:02"
- platform: state
- entity_id: media_player.nursery_hub
+ entity_id: media_player.girls_room_hub
to: "idle"
for: "00:00:02"
condition:
- condition: state
entity_id: input_boolean.nursery_asleep
- state: 'on'
+ state: "on"
action:
- #- service: input_select.select_option
+ #- action: input_select.select_option
# data:
# entity_id: input_select.master_bedroom_mode
# option: 'Off'
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.google_home
- option: 'Nursery'
- - service: input_select.select_option
+ option: "Nursery"
+ - action: input_select.select_option
data:
entity_id: input_select.ambient_sound
- option: 'Thunderstorm'
- - service: input_number.set_value
+ option: "Thunderstorm"
+ - action: input_number.set_value
data:
entity_id: input_number.volume_ambientsounds
- value: '0.6'
- - service: script.ambientsounds
+ value: "0.6"
+ - action: script.ambientsounds
diff --git a/automations/rooms/girls_room/girls_room_dimmer_leds.yaml b/automations/rooms/girls_room/girls_room_dimmer_leds.yaml
new file mode 100644
index 0000000..958ca2b
--- /dev/null
+++ b/automations/rooms/girls_room/girls_room_dimmer_leds.yaml
@@ -0,0 +1,200 @@
+alias: Nursery Dimmer LEDs
+id: automation_nursery_dimmer_leds
+mode: single
+# Hide warnings when triggered while in delay.
+max_exceeded: silent
+
+trigger:
+ - platform: state
+ entity_id: light.nursery_hue
+ attribute: brightness
+
+ - platform: state
+ entity_id: light.nursery_hue
+
+ - platform: homeassistant
+ event: start
+
+# condition:
+# - "{{ is_state('sensor.nursery_dimmer_node_status','alive') }}"
+
+action:
+ - choose:
+ - conditions:
+ - alias: "Light off"
+ condition: state
+ entity_id: light.nursery_hue
+ state: "off"
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "3"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "3"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+
+ - conditions:
+ - alias: "Light brightness below 78"
+ condition: numeric_state
+ entity_id: light.nursery_hue
+ attribute: brightness
+ below: 78
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "3"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "3"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+
+ - conditions:
+ - alias: "Light brightness below 104"
+ condition: numeric_state
+ entity_id: light.nursery_hue
+ attribute: brightness
+ below: 104
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "4"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "4"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+
+ - conditions:
+ - alias: "Light brightness below 130"
+ condition: numeric_state
+ entity_id: light.nursery_hue
+ attribute: brightness
+ below: 130
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "5"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "5"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+
+ - conditions:
+ - alias: "Light brightness below 156"
+ condition: numeric_state
+ entity_id: light.nursery_hue
+ attribute: brightness
+ below: 156
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "6"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "6"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+
+ - conditions:
+ - alias: "Light brightness below 182"
+ condition: numeric_state
+ entity_id: light.nursery_hue
+ attribute: brightness
+ below: 182
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "7"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "7"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+
+ - conditions:
+ - alias: "Light brightness below 208"
+ condition: numeric_state
+ entity_id: light.nursery_hue
+ attribute: brightness
+ below: 208
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "8"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "8"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+
+ - conditions:
+ - alias: "Light brightness below 234"
+ condition: numeric_state
+ entity_id: light.nursery_hue
+ attribute: brightness
+ below: 234
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "9"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "9"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+
+ default:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "10"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "10"
+ target:
+ device_id: 89e0dee60d7bdf2aeb22b3438914aba4
+
+ - delay:
+ hours: 0
+ minutes: 0
+ seconds: 1
+ milliseconds: 0
diff --git a/automations/rooms/nursery/nursery_into_bed.yaml b/automations/rooms/girls_room/girls_room_into_bed.yaml
similarity index 97%
rename from automations/rooms/nursery/nursery_into_bed.yaml
rename to automations/rooms/girls_room/girls_room_into_bed.yaml
index 12b56dd..6747858 100644
--- a/automations/rooms/nursery/nursery_into_bed.yaml
+++ b/automations/rooms/girls_room/girls_room_into_bed.yaml
@@ -37,7 +37,7 @@ condition:
state: "on"
action:
- - service: light.turn_on
+ - action: light.turn_on
data:
entity_id:
- light.black_bed_wled
diff --git a/automations/rooms/girls_room/girls_room_light_cycle.yaml b/automations/rooms/girls_room/girls_room_light_cycle.yaml
new file mode 100644
index 0000000..7071362
--- /dev/null
+++ b/automations/rooms/girls_room/girls_room_light_cycle.yaml
@@ -0,0 +1,168 @@
+alias: Nursery Light Cycle
+id: automation_nursery_light_cycle
+trigger:
+ - id: light_cycle_on
+ platform: state
+ entity_id: input_boolean.nursery_light_cycle
+ from: "off"
+ to: "on"
+
+ - id: setting_change
+ platform: state
+ entity_id:
+ - input_number.nursery_light_cycle_transition
+ - input_select.nursery_color_set
+ - input_boolean.nursery_cycle_same
+
+condition: "{{ is_state('input_boolean.nursery_light_cycle','on') }}"
+
+action:
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.nursery_light_cycle
+ state: "on"
+ sequence:
+ - repeat:
+ sequence:
+ - choose:
+ - conditions: # If all lights should be the same color and the projector is off, reference the Hue group for all the lights
+ - condition: state
+ entity_id: input_boolean.nursery_cycle_same
+ state: "on"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.nursery_hue
+ data:
+ brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.nursery_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.nursery_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.nursery_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.nursery_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.nursery_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.nursery_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.nursery_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.nursery_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.nursery_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.nursery_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.nursery_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.nursery_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.nursery_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.nursery_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.nursery_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+
+ - conditions: # If all lights should be different colors, start referencing the individual lights that don't obscure the TV
+ - condition: state
+ entity_id: input_boolean.nursery_cycle_same
+ state: "off"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.nursery_color_1
+ data:
+ brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.nursery_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.nursery_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.nursery_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.nursery_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.nursery_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.nursery_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.nursery_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.nursery_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.nursery_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.nursery_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.nursery_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.nursery_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.nursery_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.nursery_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.nursery_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+
+ - action: light.turn_on
+ target:
+ entity_id: light.nursery_color_2
+ data:
+ brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.nursery_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.nursery_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.nursery_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.nursery_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.nursery_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.nursery_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.nursery_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.nursery_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.nursery_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.nursery_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.nursery_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.nursery_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.nursery_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.nursery_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.nursery_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+
+ - delay:
+ seconds: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
+
+ until:
+ - condition: state
+ entity_id: input_boolean.nursery_light_cycle
+ state: "off"
+
+ - action: automation.trigger
+ entity_id: automation.nursery_lights_to_on
diff --git a/automations/rooms/girls_room/girls_room_lights_to_off.yaml b/automations/rooms/girls_room/girls_room_lights_to_off.yaml
new file mode 100644
index 0000000..6338901
--- /dev/null
+++ b/automations/rooms/girls_room/girls_room_lights_to_off.yaml
@@ -0,0 +1,75 @@
+alias: Nursery Lights to Off
+id: automation_nursery_lights_to_off
+mode: restart
+
+trigger:
+ - platform: state
+ entity_id: input_select.nursery_mode
+
+ - platform: state
+ entity_id: input_boolean.nursery_occupied
+ to: "off"
+
+ - platform: state
+ id: light_level
+ entity_id: binary_sensor.nursery_naturally_lit
+ from: "off"
+ to: "on"
+
+ #- platform: time_pattern
+ # minutes: "/5"
+
+condition:
+ - condition: state
+ entity_id: light.nursery_hue
+ state: "on"
+
+ - alias: "Nursery light cycle not on"
+ condition: state
+ entity_id: input_boolean.nursery_light_cycle
+ state: "off"
+
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.nursery_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.nursery_occupied
+ state: "off"
+
+action:
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.nursery_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.nursery_occupied
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.nursery_mode
+ state: "Manual"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: 5
+ target:
+ entity_id: scene.nursery_hue_off
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.guest_mode
+ state: "on"
+ sequence:
+ - alias: "Turn off z-wave switch since all lights are off"
+ action: homeassistant.turn_off
+ target:
+ entity_id: light.nursery_color_1, light.nursery_color_2
diff --git a/automations/rooms/girls_room/girls_room_lights_to_on.yaml b/automations/rooms/girls_room/girls_room_lights_to_on.yaml
new file mode 100644
index 0000000..a8e6e46
--- /dev/null
+++ b/automations/rooms/girls_room/girls_room_lights_to_on.yaml
@@ -0,0 +1,195 @@
+alias: Nursery Lights to On
+id: automation_nursery_lights_to_on
+mode: single
+# Hide warnings when triggered while in delay.
+max_exceeded: silent
+
+trigger:
+ - platform: state
+ id: mode_change
+ entity_id:
+ - input_select.nursery_mode
+ - input_select.automatic_light_profile
+
+ - platform: state
+ id: light_level
+ entity_id: binary_sensor.nursery_naturally_lit
+ from: "on"
+ to: "off"
+
+ - platform: state
+ entity_id: input_boolean.nursery_occupied
+ to: "on"
+
+ - platform: state
+ id: occupied
+ entity_id: binary_sensor.nursery_occupied
+ to: "on"
+
+ # - platform: state
+ # id: motion
+ # entity_id: group.nursery_motion
+ # to: "on"
+
+condition:
+ - alias: "Home is occupied"
+ condition: state
+ entity_id: input_boolean.home_occupied
+ state: "on"
+
+ - alias: "Nursery light cycle not on"
+ condition: state
+ entity_id: input_boolean.nursery_light_cycle
+ state: "off"
+
+ - alias: "Check if light should turn on"
+ condition: or
+ conditions:
+ - alias: "Guest mode is on"
+ condition: state
+ entity_id: input_boolean.guest_mode
+ state: "on"
+
+ - alias: "Motion or occupancy were detected in a dim room"
+ condition: and
+ conditions:
+ - alias: "Light level below trigger amount"
+ condition: state
+ entity_id: binary_sensor.nursery_naturally_lit
+ state: "off"
+
+ - alias: "Motion or occupancy were detected"
+ condition: or
+ conditions:
+ - alias: "Motion was detected"
+ condition: trigger
+ id: "motion"
+ - alias: "Occupancy was detected"
+ condition: trigger
+ id: "occupied"
+ - alias: "A scene changed and the lights are already on"
+ condition: and
+ conditions:
+ - condition: trigger
+ id: "mode_change"
+ - condition: state
+ entity_id: input_boolean.nursery_occupied
+ state: "on"
+
+variables:
+ switch_name: light.nursery_dimmer_light
+ light_name: nursery_hue
+ mode_name: input_select.nursery_mode
+ automatic_profile: input_select.automatic_light_profile
+action:
+ - alias: "Make sure Z-Wave switch is turned on"
+ action: homeassistant.turn_on
+ target:
+ entity_id: "{{ switch_name }}"
+ - choose:
+ - alias: "If the room is set to manual, just turn the lights on"
+ conditions:
+ - alias: "Room set to manual"
+ condition: state
+ entity_id: input_select.nursery_mode
+ state: Manual
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.nursery_hue
+
+ - alias: "If the room is set to auto, the lights are on, and the automatic profile is set to Nightlight, change to the Automatic Light Profile scene with a short transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.nursery_mode
+ state: Auto
+ - alias: "Lights are on"
+ condition: state
+ entity_id: light.nursery_hue
+ state: "on"
+ - alias: "Automatic light profile set to Nightlight"
+ condition: state
+ entity_id: input_select.automatic_light_profile
+ state: Nightlight
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: 10
+ target:
+ entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
+
+ - alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.nursery_mode
+ state: Auto
+ - alias: "Lights are on"
+ condition: state
+ entity_id: light.nursery_hue
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
+
+ - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.nursery_mode
+ state: Auto
+ - alias: "Lights are off"
+ condition: state
+ entity_id: light.nursery_hue
+ state: "off"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
+
+ - alias: "If the room is not set to auto, the lights are on, and the room is set to Nightlight change to the Nursery Mode scene with a short transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are on"
+ condition: state
+ entity_id: light.nursery_hue
+ state: "on"
+ - alias: "Room set to Nightlight"
+ condition: state
+ entity_id: input_select.nursery_mode
+ state: Nightlight
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: 10
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+
+ - alias: "If the room is not set to auto and the lights are on, change to the Nursery Mode scene with a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are on"
+ condition: state
+ entity_id: light.nursery_hue
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+
+ - alias: "If the room is not set to auto and the lights are on, change to the Nursery Mode scene without a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are off"
+ condition: state
+ entity_id: light.nursery_hue
+ state: "off"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+
+ - delay: 1
diff --git a/automations/rooms/nursery/nursery_not_occupied.yaml b/automations/rooms/girls_room/girls_room_not_occupied.yaml
similarity index 95%
rename from automations/rooms/nursery/nursery_not_occupied.yaml
rename to automations/rooms/girls_room/girls_room_not_occupied.yaml
index a7df309..a371dd0 100644
--- a/automations/rooms/nursery/nursery_not_occupied.yaml
+++ b/automations/rooms/girls_room/girls_room_not_occupied.yaml
@@ -59,7 +59,7 @@ action:
entity_id: input_boolean.home_occupied
state: "off"
sequence:
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
entity_id: input_boolean.nursery_occupied
- conditions:
- condition: not
@@ -68,5 +68,5 @@ action:
entity_id: input_select.house
state: "Manual"
sequence:
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
entity_id: input_boolean.nursery_occupied
diff --git a/automations/rooms/nursery/nursery_occupied.yaml b/automations/rooms/girls_room/girls_room_occupied.yaml
similarity index 81%
rename from automations/rooms/nursery/nursery_occupied.yaml
rename to automations/rooms/girls_room/girls_room_occupied.yaml
index 95c58cd..23998ad 100644
--- a/automations/rooms/nursery/nursery_occupied.yaml
+++ b/automations/rooms/girls_room/girls_room_occupied.yaml
@@ -6,13 +6,13 @@ trigger:
- platform: state
entity_id:
- binary_sensor.nursery_occupied
- to: 'on'
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.nursery_occupied
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.nursery_occupied
diff --git a/automations/rooms/nursery/nursery_out_of_bed.yaml b/automations/rooms/girls_room/girls_room_out_of_bed.yaml
similarity index 96%
rename from automations/rooms/nursery/nursery_out_of_bed.yaml
rename to automations/rooms/girls_room/girls_room_out_of_bed.yaml
index cab4562..1336975 100644
--- a/automations/rooms/nursery/nursery_out_of_bed.yaml
+++ b/automations/rooms/girls_room/girls_room_out_of_bed.yaml
@@ -132,7 +132,7 @@ action:
# count: 6
# sequence:
# - delay: 1
- # - service: light.toggle
+ # - action: light.toggle
# target:
# entity_id:
# - light.entryway_hue
@@ -141,21 +141,21 @@ action:
#- delay: '00:00:02'
# - alias: "Fix computer area lights"
- # service: automation.trigger
+ # action: automation.trigger
# target:
# entity_id: "automation.computer_area_lights_to_{{ computer_area }}"
# data:
# skip_condition: true
# - alias: "Fix front room lights"
- # service: automation.trigger
+ # action: automation.trigger
# target:
# entity_id: "automation.front_room_lights_to_{{ front_room }}"
# data:
# skip_condition: true
# - alias: "Fix entryway lights"
- # service: automation.trigger
+ # action: automation.trigger
# target:
# entity_id: "automation.entryway_lights_to_{{ entryway }}"
# data:
diff --git a/automations/rooms/nursery/nursery_white_noise_off.yaml b/automations/rooms/girls_room/girls_room_white_noise_off.yaml
similarity index 67%
rename from automations/rooms/nursery/nursery_white_noise_off.yaml
rename to automations/rooms/girls_room/girls_room_white_noise_off.yaml
index 8d0d871..c97136a 100644
--- a/automations/rooms/nursery/nursery_white_noise_off.yaml
+++ b/automations/rooms/girls_room/girls_room_white_noise_off.yaml
@@ -7,6 +7,5 @@ trigger:
to: "off"
action:
- - service: media_player.turn_off
- entity_id: media_player.ma_nursery_hub
-
+ - action: media_player.turn_off
+ entity_id: media_player.ma_girls_room_hub
diff --git a/automations/rooms/nursery/nursery_white_noise_on.yaml b/automations/rooms/girls_room/girls_room_white_noise_on.yaml
similarity index 64%
rename from automations/rooms/nursery/nursery_white_noise_on.yaml
rename to automations/rooms/girls_room/girls_room_white_noise_on.yaml
index 21a501a..b4adc78 100644
--- a/automations/rooms/nursery/nursery_white_noise_on.yaml
+++ b/automations/rooms/girls_room/girls_room_white_noise_on.yaml
@@ -10,34 +10,33 @@ action:
- choose:
- conditions:
- condition: state
- entity_id: media_player.ma_nursery_hub
+ entity_id: media_player.ma_girls_room_hub
state: "playing"
sequence:
- - service: media_player.media_stop
+ - action: media_player.media_stop
target:
- entity_id: media_player.ma_nursery_hub
+ entity_id: media_player.ma_girls_room_hub
- action: media_player.volume_set
data:
volume_level: 0.25
target:
- entity_id: media_player.ma_nursery_hub
+ entity_id: media_player.ma_girls_room_hub
-
- #- service: script.goodnight_kids_youtube_music
+ #- action: script.goodnight_kids_youtube_music
- action: media_player.shuffle_set
metadata: {}
data:
shuffle: false
target:
- entity_id: media_player.ma_nursery_hub
+ entity_id: media_player.ma_girls_room_hub
- action: media_player.repeat_set
metadata: {}
data:
repeat: "all"
target:
- entity_id: media_player.ma_nursery_hub
+ entity_id: media_player.ma_girls_room_hub
- action: music_assistant.play_media
metadata: {}
data:
@@ -45,5 +44,4 @@ action:
media_type: track
enqueue: replace
target:
- entity_id: media_player.ma_nursery_hub
-
+ entity_id: media_player.ma_girls_room_hub
diff --git a/automations/rooms/great_room/great_room_light_cycle.yaml b/automations/rooms/great_room/great_room_light_cycle.yaml
index a6a51d0..dafd9a5 100644
--- a/automations/rooms/great_room/great_room_light_cycle.yaml
+++ b/automations/rooms/great_room/great_room_light_cycle.yaml
@@ -6,14 +6,14 @@ trigger:
- id: light_cycle_on
platform: state
entity_id: input_boolean.great_room_light_cycle
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
- id: light_cycle_off
platform: state
entity_id: input_boolean.great_room_light_cycle
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- id: setting_change
platform: state
@@ -26,254 +26,35 @@ condition: "{{ is_state('input_boolean.great_room_light_cycle','on') }}"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: media_player.downstairs_roku
- state: 'playing'
- sequence:
- - service: light.turn_off
- target:
- entity_id: light.basement_2, light.basement_4
+ - conditions:
+ - condition: state
+ entity_id: media_player.downstairs_roku
+ state: "playing"
+ sequence:
+ - action: light.turn_off
+ target:
+ entity_id: light.basement_2, light.basement_4
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.great_room_light_cycle
- state: 'on'
- sequence:
-
- - repeat:
- sequence:
- - choose:
- - conditions: # If all lights should be the same color and the projector is off, reference the Hue group for all the lights
- - condition: state
- entity_id: input_boolean.great_room_cycle_same
- state: 'on'
- - condition: state
- entity_id: media_player.downstairs_roku
- state: 'idle'
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.downstairs
- data:
- brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.great_room_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.great_room_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.great_room_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.great_room_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.great_room_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.great_room_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.great_room_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.great_room_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.great_room_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.great_room_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.great_room_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.great_room_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.great_room_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.great_room_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.great_room_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - conditions: # If all lights should be the same color and the projector is on, reference the specific lights that don't obscure the tv
- - condition: state
- entity_id: input_boolean.great_room_cycle_same
- state: 'on'
- - condition: state
- entity_id: media_player.downstairs_roku
- state: 'playing'
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.basement_1, light.basement_3, light.basement_5
- data:
- brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.great_room_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.great_room_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.great_room_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.great_room_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.great_room_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.great_room_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.great_room_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.great_room_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.great_room_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.great_room_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.great_room_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.great_room_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.great_room_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.great_room_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.great_room_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - conditions: # If all lights should be different colors, start referencing the individual lights that don't obscure the TV
- - condition: state
- entity_id: input_boolean.great_room_cycle_same
- state: 'off'
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.basement_1
- data:
- brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.great_room_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.great_room_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.great_room_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.great_room_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.great_room_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.great_room_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.great_room_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.great_room_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.great_room_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.great_room_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.great_room_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.great_room_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.great_room_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.great_room_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.great_room_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - service: light.turn_on
- target:
- entity_id: light.basement_3
- data:
- brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.great_room_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.great_room_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.great_room_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.great_room_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.great_room_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.great_room_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.great_room_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.great_room_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.great_room_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.great_room_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.great_room_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.great_room_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.great_room_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.great_room_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.great_room_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - service: light.turn_on
- target:
- entity_id: light.basement_5
- data:
- brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.great_room_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.great_room_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.great_room_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.great_room_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.great_room_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.great_room_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.great_room_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.great_room_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.great_room_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.great_room_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.great_room_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.great_room_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.great_room_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.great_room_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.great_room_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - choose: # If the projector is off, go ahead and reference all the lights
- - conditions:
- - condition: state
- entity_id: media_player.downstairs_roku
- state: 'idle'
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.great_room_light_cycle
+ state: "on"
+ sequence:
+ - repeat:
+ sequence:
+ - choose:
+ - conditions: # If all lights should be the same color and the projector is off, reference the Hue group for all the lights
+ - condition: state
+ entity_id: input_boolean.great_room_cycle_same
+ state: "on"
+ - condition: state
+ entity_id: media_player.downstairs_roku
+ state: "idle"
sequence:
- - service: light.turn_on
- data_template:
- entity_id: light.basement_2
+ - action: light.turn_on
+ target:
+ entity_id: light.downstairs
+ data:
brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
profile: >
@@ -310,9 +91,18 @@ action:
{% endif %}
{{ colors|random }}
- - service: light.turn_on
- data_template:
- entity_id: light.basement_4
+ - conditions: # If all lights should be the same color and the projector is on, reference the specific lights that don't obscure the tv
+ - condition: state
+ entity_id: input_boolean.great_room_cycle_same
+ state: "on"
+ - condition: state
+ entity_id: media_player.downstairs_roku
+ state: "playing"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.basement_1, light.basement_3, light.basement_5
+ data:
brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
profile: >
@@ -349,45 +139,253 @@ action:
{% endif %}
{{ colors|random }}
- - delay:
- seconds: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
+ - conditions: # If all lights should be different colors, start referencing the individual lights that don't obscure the TV
+ - condition: state
+ entity_id: input_boolean.great_room_cycle_same
+ state: "off"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.basement_1
+ data:
+ brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.great_room_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.great_room_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.great_room_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.great_room_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.great_room_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.great_room_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.great_room_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.great_room_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.great_room_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.great_room_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.great_room_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.great_room_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.great_room_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.great_room_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.great_room_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
- until:
- - condition: state
- entity_id: input_boolean.great_room_light_cycle
- state: 'off'
+ - action: light.turn_on
+ target:
+ entity_id: light.basement_3
+ data:
+ brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.great_room_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.great_room_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.great_room_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.great_room_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.great_room_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.great_room_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.great_room_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.great_room_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.great_room_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.great_room_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.great_room_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.great_room_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.great_room_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.great_room_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.great_room_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+ - action: light.turn_on
+ target:
+ entity_id: light.basement_5
+ data:
+ brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.great_room_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.great_room_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.great_room_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.great_room_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.great_room_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.great_room_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.great_room_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.great_room_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.great_room_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.great_room_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.great_room_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.great_room_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.great_room_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.great_room_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.great_room_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+
+ - choose: # If the projector is off, go ahead and reference all the lights
+ - conditions:
+ - condition: state
+ entity_id: media_player.downstairs_roku
+ state: "idle"
+ sequence:
+ - action: light.turn_on
+ data_template:
+ entity_id: light.basement_2
+ brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.great_room_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.great_room_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.great_room_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.great_room_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.great_room_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.great_room_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.great_room_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.great_room_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.great_room_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.great_room_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.great_room_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.great_room_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.great_room_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.great_room_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.great_room_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+
+ - action: light.turn_on
+ data_template:
+ entity_id: light.basement_4
+ brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.great_room_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.great_room_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.great_room_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.great_room_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.great_room_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.great_room_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.great_room_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.great_room_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.great_room_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.great_room_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.great_room_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.great_room_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.great_room_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.great_room_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.great_room_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+
+ - delay:
+ seconds: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
+
+ until:
+ - condition: state
+ entity_id: input_boolean.great_room_light_cycle
+ state: "off"
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.great_room_occupied
- state: 'on'
- sequence:
- - service: automation.trigger
- entity_id: automation.great_room_lights_to_on
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.great_room_occupied
+ state: "on"
+ sequence:
+ - action: automation.trigger
+ entity_id: automation.great_room_lights_to_on
- - conditions:
- - condition: state
- entity_id: input_boolean.great_room_occupied
- state: 'off'
- sequence:
- - service: automation.trigger
- entity_id: automation.great_room_lights_to_off
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.great_room_occupied
+ state: "off"
+ sequence:
+ - action: automation.trigger
+ entity_id: automation.great_room_lights_to_off
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.computer_area_occupied
- state: 'on'
- sequence:
- - service: automation.trigger
- entity_id: automation.computer_area_lights_to_on
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.computer_area_occupied
+ state: "on"
+ sequence:
+ - action: automation.trigger
+ entity_id: automation.computer_area_lights_to_on
- - conditions:
- - condition: state
- entity_id: input_boolean.computer_area_occupied
- state: 'off'
- sequence:
- - service: automation.trigger
- entity_id: automation.computer_area_lights_to_off
\ No newline at end of file
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.computer_area_occupied
+ state: "off"
+ sequence:
+ - action: automation.trigger
+ entity_id: automation.computer_area_lights_to_off
diff --git a/automations/rooms/great_room/great_room_light_switch.yaml b/automations/rooms/great_room/great_room_light_switch.yaml
index 089ac6d..ac04735 100644
--- a/automations/rooms/great_room/great_room_light_switch.yaml
+++ b/automations/rooms/great_room/great_room_light_switch.yaml
@@ -1,5 +1,5 @@
alias: Great Room Light Switch
-description: 'Handles button presses for the Great Room Motion Switch'
+description: "Handles button presses for the Great Room Motion Switch"
id: automation.great_room_light_switch
mode: single
trigger:
@@ -18,43 +18,43 @@ trigger:
condition: []
action:
- choose:
- - conditions:
- - condition: trigger
- id: turned_off
- - condition: state
- entity_id: switch.great_room_motion_switch
- state: 'off'
- sequence:
- - service: input_select.select_option
- data:
- option: Manual
- target:
- entity_id: input_select.great_room_mode
- - conditions:
- - condition: trigger
- id: turned_on
- - condition: state
- entity_id: switch.great_room_motion_switch
- state: 'on'
- sequence:
- - choose:
- - conditions:
- - condition: state
+ - conditions:
+ - condition: trigger
+ id: turned_off
+ - condition: state
+ entity_id: switch.great_room_motion_switch
+ state: "off"
+ sequence:
+ - action: input_select.select_option
+ data:
+ option: Manual
+ target:
entity_id: input_select.great_room_mode
- state: Manual
- sequence:
- - service: input_select.select_option
- data:
- option: Auto
- target:
- entity_id: input_select.great_room_mode
- - conditions:
- - condition: state
- entity_id: input_select.great_room_mode
- state: Auto
- sequence:
- - service: input_select.select_option
- data:
- option: Bright
- target:
- entity_id: input_select.great_room_mode
\ No newline at end of file
+ - conditions:
+ - condition: trigger
+ id: turned_on
+ - condition: state
+ entity_id: switch.great_room_motion_switch
+ state: "on"
+ sequence:
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: input_select.great_room_mode
+ state: Manual
+ sequence:
+ - action: input_select.select_option
+ data:
+ option: Auto
+ target:
+ entity_id: input_select.great_room_mode
+ - conditions:
+ - condition: state
+ entity_id: input_select.great_room_mode
+ state: Auto
+ sequence:
+ - action: input_select.select_option
+ data:
+ option: Bright
+ target:
+ entity_id: input_select.great_room_mode
diff --git a/automations/rooms/great_room/great_room_lights_to_off.yaml b/automations/rooms/great_room/great_room_lights_to_off.yaml
index f1e7ffa..f5bcba0 100644
--- a/automations/rooms/great_room/great_room_lights_to_off.yaml
+++ b/automations/rooms/great_room/great_room_lights_to_off.yaml
@@ -8,13 +8,13 @@ trigger:
- platform: state
entity_id: input_boolean.great_room_occupied
- to: 'off'
+ to: "off"
- platform: state
id: light_level
entity_id: binary_sensor.great_room_naturally_lit
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
#- platform: time_pattern
# minutes: "/5"
@@ -24,56 +24,56 @@ condition:
conditions:
- condition: state
entity_id: input_select.great_room_mode
- state: 'Off'
+ state: "Off"
- condition: state
entity_id: input_boolean.great_room_occupied
- state: 'off'
+ state: "off"
- condition: state
entity_id: input_boolean.great_room_light_cycle
- state: 'off'
+ state: "off"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
- - condition: or
- conditions:
+ - conditions:
- condition: state
- entity_id: input_select.great_room_mode
- state: 'Off'
- - condition: state
- entity_id: input_boolean.great_room_occupied
- state: 'off'
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.great_room_mode
- state: 'Manual'
- sequence:
- - service: scene.turn_on
- data:
- transition: 5
- target:
- entity_id: scene.great_room_hue_off
- # - service: light.turn_off
- # target:
- # entity_id: light.basement_2, light.basement_3, light.basement_4, light.basement_5
- - choose:
- - conditions:
- - condition: state
- entity_id: light.computer_area_hue
- state: 'off'
- - condition: state
- entity_id: input_boolean.guest_mode
- state: 'on'
- sequence:
- - alias: "Turn off z-wave switch since all lights are off"
- service: homeassistant.turn_off
- target:
- entity_id: switch.great_room_motion_switch
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.great_room_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.great_room_occupied
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.great_room_mode
+ state: "Manual"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: 5
+ target:
+ entity_id: scene.great_room_hue_off
+ # - action: light.turn_off
+ # target:
+ # entity_id: light.basement_2, light.basement_3, light.basement_4, light.basement_5
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: light.computer_area_hue
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.guest_mode
+ state: "on"
+ sequence:
+ - alias: "Turn off z-wave switch since all lights are off"
+ action: homeassistant.turn_off
+ target:
+ entity_id: switch.great_room_motion_switch
default:
- - service: light.turn_off
+ - action: light.turn_off
target:
entity_id: light.great_room_hue
diff --git a/automations/rooms/great_room/great_room_lights_to_on.yaml b/automations/rooms/great_room/great_room_lights_to_on.yaml
index 3604ebf..f2bcf3f 100644
--- a/automations/rooms/great_room/great_room_lights_to_on.yaml
+++ b/automations/rooms/great_room/great_room_lights_to_on.yaml
@@ -14,8 +14,8 @@ trigger:
- platform: state
id: light_level
entity_id: binary_sensor.great_room_naturally_lit
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
id: occupied
@@ -48,7 +48,6 @@ condition:
- alias: "Check if light should turn on"
condition: or
conditions:
-
- alias: "Guest mode is on"
condition: state
entity_id: input_boolean.guest_mode
@@ -57,11 +56,10 @@ condition:
- alias: "Motion or occupancy were detected in a dim room"
condition: and
conditions:
-
- alias: "Light level below trigger amount"
condition: state
entity_id: binary_sensor.great_room_naturally_lit
- state: 'off'
+ state: "off"
- alias: "Motion or occupancy were detected"
condition: or
@@ -90,75 +88,75 @@ variables:
action:
- alias: "Make sure Z-Wave switch is turned on"
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
target:
entity_id: "{{ switch_name }}"
- choose:
- - alias: "If the room is set to manual, just turn the lights on"
- conditions:
- - alias: "Room set to manual"
- condition: state
- entity_id: input_select.great_room_mode
- state: Manual
- sequence:
- - service: light.turn_on
- target:
+ - alias: "If the room is set to manual, just turn the lights on"
+ conditions:
+ - alias: "Room set to manual"
+ condition: state
+ entity_id: input_select.great_room_mode
+ state: Manual
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.great_room_hue
+
+ - alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.great_room_mode
+ state: Auto
+ - alias: "Lights are on"
+ condition: state
entity_id: light.great_room_hue
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- - alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.great_room_mode
- state: Auto
- - alias: "Lights are on"
- condition: state
- entity_id: light.great_room_hue
- state: 'on'
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+ - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.great_room_mode
+ state: Auto
+ - alias: "Lights are off"
+ condition: state
+ entity_id: light.great_room_hue
+ state: "off"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.great_room_mode
- state: Auto
- - alias: "Lights are off"
- condition: state
- entity_id: light.great_room_hue
- state: 'off'
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+ - alias: "If the room is not set to auto and the lights are on, change to the Great Room Mode scene with a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are on"
+ condition: state
+ entity_id: light.great_room_hue
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- - alias: "If the room is not set to auto and the lights are on, change to the Great Room Mode scene with a transition"
- conditions:
- - alias: "Room not manual or auto and lights are on"
- condition: state
- entity_id: light.great_room_hue
- state: 'on'
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+ - alias: "If the room is not set to auto and the lights are on, change to the Great Room Mode scene without a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are off"
+ condition: state
+ entity_id: light.great_room_hue
+ state: "off"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- - alias: "If the room is not set to auto and the lights are on, change to the Great Room Mode scene without a transition"
- conditions:
- - alias: "Room not manual or auto and lights are off"
- condition: state
- entity_id: light.great_room_hue
- state: 'off'
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
-
- - delay: 1
\ No newline at end of file
+ - delay: 1
diff --git a/automations/rooms/great_room/great_room_not_occupied.yaml b/automations/rooms/great_room/great_room_not_occupied.yaml
index 48d9e49..2db0771 100644
--- a/automations/rooms/great_room/great_room_not_occupied.yaml
+++ b/automations/rooms/great_room/great_room_not_occupied.yaml
@@ -1,65 +1,64 @@
-alias: 'Great Room Not Occupied'
+alias: "Great Room Not Occupied"
id: automation_great_room_not_occupied
mode: restart
trigger:
- platform: state
entity_id: input_boolean.home_occupied
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
entity_id:
- input_boolean.home_occupied
- binary_sensor.great_room_occupied
- to: 'off'
- for: '00:15:00'
+ to: "off"
+ for: "00:15:00"
# - platform: time_pattern
# minutes: "/5"
condition:
-
- condition: state
entity_id: input_boolean.lights_off_manually
- state: 'off'
+ state: "off"
- condition: state
entity_id: input_boolean.great_room_occupied
- state: 'on'
+ state: "on"
- condition: or
conditions:
- condition: state
entity_id: input_boolean.home_occupied
- state: 'off'
+ state: "off"
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.great_room_person_occupancy
- state: 'off'
+ state: "off"
for:
minutes: 15
- condition: state
entity_id: binary_sensor.great_room_occupied
- state: 'off'
+ state: "off"
for:
minutes: 15
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.great_room_occupied
- - conditions:
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Manual'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.great_room_occupied
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.great_room_occupied
+ - conditions:
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Manual"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.great_room_occupied
diff --git a/automations/rooms/great_room/great_room_occupied.yaml b/automations/rooms/great_room/great_room_occupied.yaml
index 21a9534..60c16d8 100644
--- a/automations/rooms/great_room/great_room_occupied.yaml
+++ b/automations/rooms/great_room/great_room_occupied.yaml
@@ -1,4 +1,4 @@
-alias: 'Great Room Occupied'
+alias: "Great Room Occupied"
id: automation_great_room_occupied
mode: restart
@@ -6,13 +6,13 @@ trigger:
- platform: state
entity_id:
- binary_sensor.great_room_occupied
- to: 'on'
+ to: "on"
condition:
# Computer area was not already occupied
- condition: state
entity_id: input_boolean.great_room_occupied
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.great_room_occupied
diff --git a/automations/rooms/great_room/great_room_projector.yaml b/automations/rooms/great_room/great_room_projector.yaml
index b90aaab..1fecbfd 100644
--- a/automations/rooms/great_room/great_room_projector.yaml
+++ b/automations/rooms/great_room/great_room_projector.yaml
@@ -5,24 +5,24 @@ trigger:
- platform: state
id: idle_five_min
entity_id: media_player.downstairs_roku
- not_from: 'unavailable'
- to: 'idle'
- for: '00:05:00'
+ not_from: "unavailable"
+ to: "idle"
+ for: "00:05:00"
- platform: state
id: home_fifteen_min
entity_id: media_player.downstairs_roku
- not_from: 'unavailable'
- to: 'home'
- for: '00:15:00'
+ not_from: "unavailable"
+ to: "home"
+ for: "00:15:00"
- platform: state
id: playing_fifteen_min
entity_id: media_player.downstairs_roku
- from: 'playing'
- for: '00:15:00'
+ from: "playing"
+ for: "00:15:00"
- platform: state
id: from_idle
entity_id: media_player.downstairs_roku
- from: 'idle'
+ from: "idle"
condition:
alias: "Roku not unavailable"
@@ -44,7 +44,7 @@ action:
# entity_id: switch.shelly_projector
# state: 'off'
# sequence:
- # - service: switch.turn_on
+ # - action: switch.turn_on
# data:
# entity_id: switch.shelly_projector
- alias: "Roku idle or unused, turn off projector"
@@ -59,10 +59,10 @@ action:
- condition: trigger
id: home_fifteen_min
sequence:
- # - service: switch.turn_off
+ # - action: switch.turn_off
# target:
# entity_id: switch.shelly_projector
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.great_room_light_cycle
diff --git a/automations/rooms/great_room/great_room_tv_off.yaml b/automations/rooms/great_room/great_room_tv_off.yaml
index 9c754a3..97349cd 100644
--- a/automations/rooms/great_room/great_room_tv_off.yaml
+++ b/automations/rooms/great_room/great_room_tv_off.yaml
@@ -3,56 +3,55 @@ id: automation_great_room_tv_off
trigger:
- platform: state
entity_id: media_player.downstairs_roku
- from: 'playing'
- to: 'idle'
- for: '00:00:30'
+ from: "playing"
+ to: "idle"
+ for: "00:00:30"
- platform: state
entity_id: media_player.downstairs_roku
- from: 'playing'
- to: 'on'
- for: '00:00:30'
+ from: "playing"
+ to: "on"
+ for: "00:00:30"
- platform: state
entity_id: media_player.downstairs_roku
- from: 'playing'
- to: 'home'
- for: '00:00:30'
+ from: "playing"
+ to: "home"
+ for: "00:00:30"
- platform: state
entity_id: media_player.downstairs_roku
- from: 'paused'
- to: 'idle'
- for: '00:00:30'
+ from: "paused"
+ to: "idle"
+ for: "00:00:30"
- platform: state
entity_id: media_player.downstairs_roku
- from: 'paused'
- to: 'home'
- for: '00:00:30'
+ from: "paused"
+ to: "home"
+ for: "00:00:30"
condition:
-- condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
-- condition: state
- entity_id: input_boolean.great_room_light_cycle
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.great_room_light_cycle
+ state: "on"
action:
- choose:
- - conditions: "{{is_state('input_boolean.great_room_light_cycle','on')}}"
- sequence:
- - service: input_boolean.turn_off
- data: {}
- target:
- entity_id: input_boolean.great_room_light_cycle
+ - conditions: "{{is_state('input_boolean.great_room_light_cycle','on')}}"
+ sequence:
+ - action: input_boolean.turn_off
+ data: {}
+ target:
+ entity_id: input_boolean.great_room_light_cycle
- choose:
- - conditions: "{{is_state('input_boolean.computer_area_light_cycle','on')}}"
- sequence:
- - service: input_boolean.turn_off
- data: {}
- target:
- entity_id: input_boolean.computer_area_light_cycle
+ - conditions: "{{is_state('input_boolean.computer_area_light_cycle','on')}}"
+ sequence:
+ - action: input_boolean.turn_off
+ data: {}
+ target:
+ entity_id: input_boolean.computer_area_light_cycle
- # - service: input_select.select_option
+ # - action: input_select.select_option
# target:
# entity_id: input_select.nursery_mode
# data:
# option: "Nightlight"
-
diff --git a/automations/rooms/great_room/great_room_tv_paused.yaml b/automations/rooms/great_room/great_room_tv_paused.yaml
index ab3c7a6..1f4e70c 100644
--- a/automations/rooms/great_room/great_room_tv_paused.yaml
+++ b/automations/rooms/great_room/great_room_tv_paused.yaml
@@ -3,30 +3,30 @@ id: automation_great_room_tv_paused
trigger:
- platform: state
entity_id: media_player.downstairs_roku
- from: 'playing'
- to: 'idle'
+ from: "playing"
+ to: "idle"
- platform: state
entity_id: media_player.downstairs_roku
- from: 'playing'
- to: 'home'
+ from: "playing"
+ to: "home"
- platform: state
entity_id: media_player.downstairs_roku
- from: 'paused'
- to: 'idle'
+ from: "paused"
+ to: "idle"
- platform: state
entity_id: media_player.downstairs_roku
- from: 'paused'
- to: 'home'
+ from: "paused"
+ to: "home"
condition:
-- condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
-- condition: state
- entity_id: input_boolean.great_room_light_cycle
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.great_room_light_cycle
+ state: "on"
action:
- - service: input_number.set_value
+ - action: input_number.set_value
data:
value: 30
target:
diff --git a/automations/rooms/great_room/great_room_tv_playing.yaml b/automations/rooms/great_room/great_room_tv_playing.yaml
index 0ca74db..47e42e6 100644
--- a/automations/rooms/great_room/great_room_tv_playing.yaml
+++ b/automations/rooms/great_room/great_room_tv_playing.yaml
@@ -3,7 +3,7 @@ id: automation_great_room_tv_playing
trigger:
- platform: state
entity_id: media_player.downstairs_roku
- to: 'playing'
+ to: "playing"
- platform: state
entity_id: input_select.time_of_day
@@ -15,102 +15,101 @@ trigger:
event_type: automation_reloaded
condition:
-- alias: Something besides YouTube is playing
- condition: and
- conditions:
- - condition: not
- conditions:
- - alias: "The kids aren't watching YouTube"
- condition: state
- entity_id: media_player.downstairs_roku
- attribute: source
- state: 'YouTube'
- - condition: state
- entity_id: media_player.downstairs_roku
- state: 'playing'
-- condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
-- condition: state
- entity_id: light.great_room_hue
- state: 'on'
-- alias: It is later in the day/evening
- condition: template
- value_template: "{{ is_state('binary_sensor.early_evening','on') or is_state('binary_sensor.evening','on') or is_state('binary_sensor.late_evening','on') or is_state('binary_sensor.night','on') or is_state('binary_sensor.early_morning','on') or is_state('binary_sensor.late_afternoon','on')}}"
+ - alias: Something besides YouTube is playing
+ condition: and
+ conditions:
+ - condition: not
+ conditions:
+ - alias: "The kids aren't watching YouTube"
+ condition: state
+ entity_id: media_player.downstairs_roku
+ attribute: source
+ state: "YouTube"
+ - condition: state
+ entity_id: media_player.downstairs_roku
+ state: "playing"
+ - condition: state
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: state
+ entity_id: light.great_room_hue
+ state: "on"
+ - alias: It is later in the day/evening
+ condition: template
+ value_template: "{{ is_state('binary_sensor.early_evening','on') or is_state('binary_sensor.evening','on') or is_state('binary_sensor.late_evening','on') or is_state('binary_sensor.night','on') or is_state('binary_sensor.early_morning','on') or is_state('binary_sensor.late_afternoon','on')}}"
-- condition: or
- conditions:
- - alias: "Kids home and awake"
- condition: and
+ - condition: or
conditions:
- - condition: state
- entity_id: input_boolean.kids_away
- state: 'off'
- - condition: state
- entity_id: input_boolean.kids_asleep
- state: 'off'
- - alias: "Kids home and asleep"
- condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.kids_away
- state: 'off'
- - condition: state
- entity_id: input_boolean.kids_asleep
- state: 'on'
- - alias: "Kids away"
- condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.kids_away
- state: 'on'
+ - alias: "Kids home and awake"
+ condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.kids_away
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.kids_asleep
+ state: "off"
+ - alias: "Kids home and asleep"
+ condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.kids_away
+ state: "off"
+ - condition: state
+ entity_id: input_boolean.kids_asleep
+ state: "on"
+ - alias: "Kids away"
+ condition: and
+ conditions:
+ - condition: state
+ entity_id: input_boolean.kids_away
+ state: "on"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Late Afternoon'
- sequence:
- - service: input_number.set_value
- data:
- value: 100
- target:
- entity_id: input_number.great_room_light_cycle_brightness
- - conditions:
- - condition: state
- entity_id: input_select.time_of_day
- state: 'Early Evening'
- sequence:
- - service: input_number.set_value
- data:
- value: 75
- target:
- entity_id: input_number.great_room_light_cycle_brightness
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Late Afternoon"
+ sequence:
+ - action: input_number.set_value
+ data:
+ value: 100
+ target:
+ entity_id: input_number.great_room_light_cycle_brightness
+ - conditions:
+ - condition: state
+ entity_id: input_select.time_of_day
+ state: "Early Evening"
+ sequence:
+ - action: input_number.set_value
+ data:
+ value: 75
+ target:
+ entity_id: input_number.great_room_light_cycle_brightness
default:
- - service: input_number.set_value
+ - action: input_number.set_value
data:
value: 55
target:
entity_id: input_number.great_room_light_cycle_brightness
- - service: input_number.set_value
+ - action: input_number.set_value
data:
value: 30
target:
entity_id: input_number.great_room_light_cycle_transition
- - service: input_select.select_option
+ - action: input_select.select_option
data:
option: Silver Swirl
target:
entity_id: input_select.great_room_color_set
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.great_room_cycle_same
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.great_room_light_cycle
-
#b 15
#t 30
#Silver Swirl
diff --git a/automations/rooms/kitchen/kitchen_lights_to_off.yaml b/automations/rooms/kitchen/kitchen_lights_to_off.yaml
index 775fd50..f9c4181 100644
--- a/automations/rooms/kitchen/kitchen_lights_to_off.yaml
+++ b/automations/rooms/kitchen/kitchen_lights_to_off.yaml
@@ -8,75 +8,74 @@ trigger:
- platform: state
entity_id: input_boolean.kitchen_occupied
- to: 'off'
+ to: "off"
- platform: state
id: light_level
entity_id: binary_sensor.kitchen_naturally_lit
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
#- platform: time_pattern
# minutes: "/5"
condition:
-
- condition: state
entity_id: input_boolean.lights_off_manually
- state: 'off'
+ state: "off"
- condition: state
entity_id: input_boolean.lighting_automations
- state: 'on'
+ state: "on"
- condition: or
conditions:
- condition: state
entity_id: input_select.kitchen_mode
- state: 'Off'
+ state: "Off"
- condition: state
entity_id: input_boolean.kitchen_occupied
- state: 'off'
+ state: "off"
- condition: state
entity_id: binary_sensor.kitchen_naturally_lit
- state: 'on'
+ state: "on"
action:
- choose:
- - conditions:
- - condition: or
- conditions:
- - condition: and
+ - conditions:
+ - condition: or
conditions:
- - condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
- - condition: or
+ - condition: and
conditions:
- condition: state
- entity_id: input_select.kitchen_mode
- state: 'Off'
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.kitchen_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.kitchen_occupied
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.kitchen_mode
+ state: "Manual"
+ - "{{ states('sensor.bar_light_level') | float(default=0) >= states('input_number.kitchen_light_level_trigger') | float(default=0) }}"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: 5
+ target:
+ entity_id: scene.kitchen_hue_off
+ - choose:
+ - conditions:
- condition: state
- entity_id: input_boolean.kitchen_occupied
- state: 'off'
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.kitchen_mode
- state: 'Manual'
- - "{{ states('sensor.bar_light_level') | float(default=0) >= states('input_number.kitchen_light_level_trigger') | float(default=0) }}"
- sequence:
- - service: scene.turn_on
- data:
- transition: 5
- target:
- entity_id: scene.kitchen_hue_off
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.guest_mode
- state: 'on'
- sequence:
- - alias: "Turn off z-wave switch since all lights are off"
- service: homeassistant.turn_off
- target:
- entity_id: switch.kitchen_switch
\ No newline at end of file
+ entity_id: input_boolean.guest_mode
+ state: "on"
+ sequence:
+ - alias: "Turn off z-wave switch since all lights are off"
+ action: homeassistant.turn_off
+ target:
+ entity_id: switch.kitchen_switch
diff --git a/automations/rooms/kitchen/kitchen_lights_to_on.yaml b/automations/rooms/kitchen/kitchen_lights_to_on.yaml
index 296affd..6957f98 100644
--- a/automations/rooms/kitchen/kitchen_lights_to_on.yaml
+++ b/automations/rooms/kitchen/kitchen_lights_to_on.yaml
@@ -14,12 +14,12 @@ trigger:
- platform: state
id: light_level
entity_id: binary_sensor.kitchen_naturally_lit
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
id: occupied
- entity_id:
+ entity_id:
- binary_sensor.kitchen_occupied
- input_boolean.kitchen_occupied
to: "on"
@@ -43,7 +43,6 @@ condition:
- alias: "Check if light should turn on"
condition: or
conditions:
-
- alias: "Guest mode is on"
condition: state
entity_id: input_boolean.guest_mode
@@ -52,11 +51,10 @@ condition:
- alias: "Motion or occupancy were detected in a dim room"
condition: and
conditions:
-
- alias: "Light level below trigger amount"
condition: state
entity_id: binary_sensor.kitchen_naturally_lit
- state: 'off'
+ state: "off"
- alias: "Motion or occupancy were detected"
condition: or
@@ -85,75 +83,75 @@ variables:
action:
- alias: "Make sure Z-Wave switch is turned on"
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
target:
entity_id: "{{ switch_name }}"
- choose:
- - alias: "If the room is set to manual, just turn the lights on"
- conditions:
- - alias: "Room set to manual"
- condition: state
- entity_id: input_select.kitchen_mode
- state: Manual
- sequence:
- - service: light.turn_on
- target:
+ - alias: "If the room is set to manual, just turn the lights on"
+ conditions:
+ - alias: "Room set to manual"
+ condition: state
+ entity_id: input_select.kitchen_mode
+ state: Manual
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.kitchen_hue
+
+ - alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.kitchen_mode
+ state: Auto
+ - alias: "Lights are on"
+ condition: state
entity_id: light.kitchen_hue
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- - alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.kitchen_mode
- state: Auto
- - alias: "Lights are on"
- condition: state
- entity_id: light.kitchen_hue
- state: 'on'
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+ - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.kitchen_mode
+ state: Auto
+ - alias: "Lights are off"
+ condition: state
+ entity_id: light.kitchen_hue
+ state: "off"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.kitchen_mode
- state: Auto
- - alias: "Lights are off"
- condition: state
- entity_id: light.kitchen_hue
- state: 'off'
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+ - alias: "If the room is not set to auto and the lights are on, change to the Kitchen Mode scene with a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are on"
+ condition: state
+ entity_id: light.kitchen_hue
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- - alias: "If the room is not set to auto and the lights are on, change to the Kitchen Mode scene with a transition"
- conditions:
- - alias: "Room not manual or auto and lights are on"
- condition: state
- entity_id: light.kitchen_hue
- state: 'on'
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+ - alias: "If the room is not set to auto and the lights are on, change to the Kitchen Mode scene without a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are off"
+ condition: state
+ entity_id: light.kitchen_hue
+ state: "off"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- - alias: "If the room is not set to auto and the lights are on, change to the Kitchen Mode scene without a transition"
- conditions:
- - alias: "Room not manual or auto and lights are off"
- condition: state
- entity_id: light.kitchen_hue
- state: 'off'
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
-
- - delay: 1
\ No newline at end of file
+ - delay: 1
diff --git a/automations/rooms/kitchen/kitchen_not_occupied.yaml b/automations/rooms/kitchen/kitchen_not_occupied.yaml
index dece640..e52286c 100644
--- a/automations/rooms/kitchen/kitchen_not_occupied.yaml
+++ b/automations/rooms/kitchen/kitchen_not_occupied.yaml
@@ -1,19 +1,19 @@
-alias: 'Kitchen Not Occupied'
+alias: "Kitchen Not Occupied"
id: automation_kitchen_not_occupied
mode: restart
trigger:
- platform: state
entity_id: input_boolean.home_occupied
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
entity_id:
- input_boolean.home_occupied
- binary_sensor.kitchen_occupied
- to: 'off'
- for: '00:15:00'
+ to: "off"
+ for: "00:15:00"
# - platform: time_pattern
# minutes: "/5"
@@ -21,41 +21,41 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.kitchen_occupied
- state: 'on'
+ state: "on"
- condition: or
conditions:
- condition: state
entity_id: input_boolean.home_occupied
- state: 'off'
+ state: "off"
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.kitchen_person_occupancy
- state: 'off'
+ state: "off"
for:
minutes: 5
- condition: state
entity_id: binary_sensor.kitchen_occupied
- state: 'off'
+ state: "off"
for:
minutes: 5
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.kitchen_occupied
- - conditions:
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Manual'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.kitchen_occupied
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.kitchen_occupied
+ - conditions:
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Manual"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.kitchen_occupied
diff --git a/automations/rooms/kitchen/kitchen_occupied.yaml b/automations/rooms/kitchen/kitchen_occupied.yaml
index c4388ba..487920e 100644
--- a/automations/rooms/kitchen/kitchen_occupied.yaml
+++ b/automations/rooms/kitchen/kitchen_occupied.yaml
@@ -1,4 +1,4 @@
-alias: 'Kitchen Occupied'
+alias: "Kitchen Occupied"
id: automation_kitchen_occupied
mode: restart
@@ -6,14 +6,13 @@ trigger:
- platform: state
entity_id:
- binary_sensor.kitchen_occupied
- to: 'on'
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.kitchen_occupied
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.kitchen_occupied
-
diff --git a/automations/rooms/mancave_lights.yaml b/automations/rooms/mancave_lights.yaml
index af09b30..5d77248 100644
--- a/automations/rooms/mancave_lights.yaml
+++ b/automations/rooms/mancave_lights.yaml
@@ -24,26 +24,26 @@ triggers:
action:
- choose:
- - conditions:
- - condition: trigger
- id: "door_open"
- - condition: state
- entity_id: light.mancave
- state: 'off'
- sequence:
- - service: light.turn_on
- target:
+ - conditions:
+ - condition: trigger
+ id: "door_open"
+ - condition: state
entity_id: light.mancave
- - conditions:
- - condition: trigger
- id: "door_closed"
- - condition: state
- entity_id: binary_sensor.mancave_motion_switch_home_security_motion_detection
- state: "off"
- - condition: state
- entity_id: light.mancave
- state: 'on'
- sequence:
- - service: light.turn_off
- target:
- entity_id: light.mancave
\ No newline at end of file
+ state: "off"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.mancave
+ - conditions:
+ - condition: trigger
+ id: "door_closed"
+ - condition: state
+ entity_id: binary_sensor.mancave_motion_switch_home_security_motion_detection
+ state: "off"
+ - condition: state
+ entity_id: light.mancave
+ state: "on"
+ sequence:
+ - action: light.turn_off
+ target:
+ entity_id: light.mancave
diff --git a/automations/rooms/master_bathroom/master_bathroom_lights_to_off.yaml b/automations/rooms/master_bathroom/master_bathroom_lights_to_off.yaml
index bc31882..441d234 100644
--- a/automations/rooms/master_bathroom/master_bathroom_lights_to_off.yaml
+++ b/automations/rooms/master_bathroom/master_bathroom_lights_to_off.yaml
@@ -14,10 +14,9 @@ trigger:
# minutes: "/5"
condition:
-
- condition: state
entity_id: input_boolean.lights_off_manually
- state: 'off'
+ state: "off"
- condition: state
entity_id: light.master_bathroom_hue
state: "on"
@@ -31,36 +30,36 @@ condition:
state: "off"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.lighting_automations
- state: "on"
- - condition: or
- conditions:
- - condition: state
- entity_id: input_select.master_bathroom_mode
- state: 'Off'
- - condition: state
- entity_id: input_boolean.master_bathroom_occupied
- state: 'off'
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.master_bathroom_mode
- state: "Manual"
- sequence:
- - service: scene.turn_on
- data:
- transition: 5
- target:
- entity_id: scene.master_bathroom_hue_off
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.guest_mode
- state: 'on'
- sequence:
- - alias: "Turn off z-wave switch since all lights are off"
- service: homeassistant.turn_off
- target:
- entity_id: switch.master_bathroom_motion_switch, switch.shower_switch
\ No newline at end of file
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.master_bathroom_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.master_bathroom_occupied
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.master_bathroom_mode
+ state: "Manual"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: 5
+ target:
+ entity_id: scene.master_bathroom_hue_off
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.guest_mode
+ state: "on"
+ sequence:
+ - alias: "Turn off z-wave switch since all lights are off"
+ action: homeassistant.turn_off
+ target:
+ entity_id: switch.master_bathroom_motion_switch, switch.shower_switch
diff --git a/automations/rooms/master_bathroom/master_bathroom_lights_to_on.yaml b/automations/rooms/master_bathroom/master_bathroom_lights_to_on.yaml
index d0a6399..9704b73 100644
--- a/automations/rooms/master_bathroom/master_bathroom_lights_to_on.yaml
+++ b/automations/rooms/master_bathroom/master_bathroom_lights_to_on.yaml
@@ -40,77 +40,77 @@ variables:
action:
- alias: "Make sure Z-Wave switch is turned on"
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
target:
entity_id:
- switch.master_bathroom_motion_switch
- switch.shower_switch
- choose:
- - alias: "If the room is set to manual, just turn the lights on"
- conditions:
- - alias: "Room set to manual"
- condition: state
- entity_id: input_select.master_bathroom_mode
- state: Manual
- sequence:
- - service: light.turn_on
- target:
+ - alias: "If the room is set to manual, just turn the lights on"
+ conditions:
+ - alias: "Room set to manual"
+ condition: state
+ entity_id: input_select.master_bathroom_mode
+ state: Manual
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.master_bathroom_hue
+
+ - alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.master_bathroom_mode
+ state: Auto
+ - alias: "Lights are on"
+ condition: state
entity_id: light.master_bathroom_hue
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- - alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.master_bathroom_mode
- state: Auto
- - alias: "Lights are on"
- condition: state
- entity_id: light.master_bathroom_hue
- state: 'on'
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+ - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
+ conditions:
+ - alias: "Room set to auto"
+ condition: state
+ entity_id: input_select.master_bathroom_mode
+ state: Auto
+ - alias: "Lights are off"
+ condition: state
+ entity_id: light.master_bathroom_hue
+ state: "off"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.master_bathroom_mode
- state: Auto
- - alias: "Lights are off"
- condition: state
- entity_id: light.master_bathroom_hue
- state: 'off'
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+ - alias: "If the room is not set to auto and the lights are on, change to the Master Bathroom Mode scene with a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are on"
+ condition: state
+ entity_id: light.master_bathroom_hue
+ state: "on"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states('input_number.light_scene_transition') }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- - alias: "If the room is not set to auto and the lights are on, change to the Master Bathroom Mode scene with a transition"
- conditions:
- - alias: "Room not manual or auto and lights are on"
- condition: state
- entity_id: light.master_bathroom_hue
- state: 'on'
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+ - alias: "If the room is not set to auto and the lights are on, change to the Master Bathroom Mode scene without a transition"
+ conditions:
+ - alias: "Room not manual or auto and lights are off"
+ condition: state
+ entity_id: light.master_bathroom_hue
+ state: "off"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- - alias: "If the room is not set to auto and the lights are on, change to the Master Bathroom Mode scene without a transition"
- conditions:
- - alias: "Room not manual or auto and lights are off"
- condition: state
- entity_id: light.master_bathroom_hue
- state: 'off'
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
-
- - delay: 1
\ No newline at end of file
+ - delay: 1
diff --git a/automations/rooms/master_bathroom/master_bathroom_not_occupied.yaml b/automations/rooms/master_bathroom/master_bathroom_not_occupied.yaml
index 396d4fb..02c095a 100644
--- a/automations/rooms/master_bathroom/master_bathroom_not_occupied.yaml
+++ b/automations/rooms/master_bathroom/master_bathroom_not_occupied.yaml
@@ -1,18 +1,18 @@
-alias: 'Master Bathroom Not Occupied'
+alias: "Master Bathroom Not Occupied"
id: automation_master_bathroom_not_occupied
mode: restart
trigger:
- platform: state
entity_id: input_boolean.home_occupied
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
entity_id:
- input_boolean.home_occupied
- binary_sensor.master_bathroom_occupied
- to: 'off'
- for: '00:10:00'
+ to: "off"
+ for: "00:10:00"
# - platform: time_pattern
# minutes: "/5"
@@ -22,32 +22,32 @@ condition:
conditions:
- condition: state
entity_id: input_boolean.home_occupied
- state: 'off'
+ state: "off"
- condition: and
conditions:
- condition: state
entity_id: input_boolean.master_bathroom_occupied
- state: 'on'
+ state: "on"
- condition: state
entity_id: binary_sensor.master_bathroom_occupied
- state: 'off'
- for: '00:10:00'
+ state: "off"
+ for: "00:10:00"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.master_bathroom_occupied
- - conditions:
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Manual'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.master_bathroom_occupied
\ No newline at end of file
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.master_bathroom_occupied
+ - conditions:
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Manual"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.master_bathroom_occupied
diff --git a/automations/rooms/master_bathroom/master_bathroom_occupied.yaml b/automations/rooms/master_bathroom/master_bathroom_occupied.yaml
index b62b7a4..c519d75 100644
--- a/automations/rooms/master_bathroom/master_bathroom_occupied.yaml
+++ b/automations/rooms/master_bathroom/master_bathroom_occupied.yaml
@@ -6,13 +6,13 @@ trigger:
- platform: state
entity_id:
- binary_sensor.master_bathroom_occupied
- to: 'on'
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.master_bathroom_occupied
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.master_bathroom_occupied
diff --git a/automations/rooms/master_bedroom/continue_white_noise.yaml b/automations/rooms/master_bedroom/continue_white_noise.yaml
index 6e97ba8..c30d0eb 100644
--- a/automations/rooms/master_bedroom/continue_white_noise.yaml
+++ b/automations/rooms/master_bedroom/continue_white_noise.yaml
@@ -13,23 +13,23 @@ trigger:
condition:
- condition: state
entity_id: input_boolean.master_bedroom_asleep
- state: 'on'
+ state: "on"
action:
- #- service: input_select.select_option
+ #- action: input_select.select_option
# data:
# entity_id: input_select.master_bedroom_mode
# option: 'Off'
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.google_home
- option: 'Master Bedroom'
- - service: input_select.select_option
+ option: "Master Bedroom"
+ - action: input_select.select_option
data:
entity_id: input_select.ambient_sound
- option: 'Thunderstorm'
- - service: input_number.set_value
+ option: "Thunderstorm"
+ - action: input_number.set_value
data:
entity_id: input_number.volume_ambientsounds
- value: '0.3'
- - service: script.ambientsounds
+ value: "0.3"
+ - action: script.ambientsounds
diff --git a/automations/rooms/master_bedroom/master_bedroom_asleep.yaml b/automations/rooms/master_bedroom/master_bedroom_asleep.yaml
index 97f8e18..cc5c1da 100644
--- a/automations/rooms/master_bedroom/master_bedroom_asleep.yaml
+++ b/automations/rooms/master_bedroom/master_bedroom_asleep.yaml
@@ -1,6 +1,6 @@
alias: Master Bedroom Asleep
id: automation_master_bedroom_asleep
-initial_state: 'off'
+initial_state: "off"
trigger:
- platform: state
@@ -9,47 +9,45 @@ trigger:
- platform: state
entity_id: binary_sensor.master_bedroom_person_occupancy
- to: 'on'
- for: '00:00:30'
+ to: "on"
+ for: "00:00:30"
- platform: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
- to: 'on'
- for: '00:00:05'
+ to: "on"
+ for: "00:00:05"
condition:
- alias: "Adult Home"
condition: or
conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "on"
- alias: "After 9:00PM and before 4:00AM"
condition: time
- after: '21:00:00'
- before: '04:00:00'
+ after: "21:00:00"
+ before: "04:00:00"
- alias: "Clint's phone charging or someone on master bed"
condition: or
conditions:
- - condition: state
- entity_id: sensor.pixel_7_charger_type
- state: 'wireless'
- - condition: state
- entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
- state: 'on'
-
+ - condition: state
+ entity_id: sensor.pixel_7_charger_type
+ state: "wireless"
+ - condition: state
+ entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
+ state: "on"
- alias: "The room is currently awake"
condition: state
entity_id: input_boolean.master_bedroom_asleep
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.master_bedroom_asleep
-
diff --git a/automations/rooms/master_bedroom/master_bedroom_awake.yaml b/automations/rooms/master_bedroom/master_bedroom_awake.yaml
index 2c9250a..f0d1dc2 100644
--- a/automations/rooms/master_bedroom/master_bedroom_awake.yaml
+++ b/automations/rooms/master_bedroom/master_bedroom_awake.yaml
@@ -4,49 +4,49 @@ id: automation_master_bedroom_awake
trigger:
- platform: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
- to: 'off'
- for: '00:10:00'
+ to: "off"
+ for: "00:10:00"
condition:
- alias: "Adult Home"
condition: or
conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "on"
- alias: "Before 9:00PM and after 4:00AM"
condition: time
- before: '21:00:00'
- after: '04:00:00'
+ before: "21:00:00"
+ after: "04:00:00"
- alias: "No one on master bed"
condition: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
- state: 'off'
+ state: "off"
- alias: "The boolean is currently on"
condition: state
entity_id: input_boolean.master_bedroom_asleep
- state: 'on'
+ state: "on"
action:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.master_bedroom_asleep
- choose:
- - conditions:
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.master_bedroom_mode
- state: 'Manual'
- sequence:
- - service: input_select.select_option
- data:
- option: Auto
- target:
- entity_id: input_select.master_bedroom_mode
+ - conditions:
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.master_bedroom_mode
+ state: "Manual"
+ sequence:
+ - action: input_select.select_option
+ data:
+ option: Auto
+ target:
+ entity_id: input_select.master_bedroom_mode
diff --git a/automations/rooms/master_bedroom/master_bedroom_dimmer_leds.yaml b/automations/rooms/master_bedroom/master_bedroom_dimmer_leds.yaml
index c645d2c..9b7b0d5 100644
--- a/automations/rooms/master_bedroom/master_bedroom_dimmer_leds.yaml
+++ b/automations/rooms/master_bedroom/master_bedroom_dimmer_leds.yaml
@@ -17,182 +17,181 @@ trigger:
action:
- choose:
- - conditions:
- - alias: "Light off"
- condition: state
- entity_id: light.master_bedroom_hue
- state: 'off'
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '3'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '3'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
+ - conditions:
+ - alias: "Light off"
+ condition: state
+ entity_id: light.master_bedroom_hue
+ state: "off"
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "3"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "3"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
- - conditions:
- - alias: "Light brightness below 78"
- condition: numeric_state
- entity_id: light.master_bedroom_hue
- attribute: brightness
- below: 78
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '3'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '3'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
+ - conditions:
+ - alias: "Light brightness below 78"
+ condition: numeric_state
+ entity_id: light.master_bedroom_hue
+ attribute: brightness
+ below: 78
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "3"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "3"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
- - conditions:
- - alias: "Light brightness below 104"
- condition: numeric_state
- entity_id: light.master_bedroom_hue
- attribute: brightness
- below: 104
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '4'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '4'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
+ - conditions:
+ - alias: "Light brightness below 104"
+ condition: numeric_state
+ entity_id: light.master_bedroom_hue
+ attribute: brightness
+ below: 104
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "4"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "4"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
- - conditions:
- - alias: "Light brightness below 130"
- condition: numeric_state
- entity_id: light.master_bedroom_hue
- attribute: brightness
- below: 130
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '5'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '5'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
+ - conditions:
+ - alias: "Light brightness below 130"
+ condition: numeric_state
+ entity_id: light.master_bedroom_hue
+ attribute: brightness
+ below: 130
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "5"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "5"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
- - conditions:
- - alias: "Light brightness below 156"
- condition: numeric_state
- entity_id: light.master_bedroom_hue
- attribute: brightness
- below: 156
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '6'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '6'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
+ - conditions:
+ - alias: "Light brightness below 156"
+ condition: numeric_state
+ entity_id: light.master_bedroom_hue
+ attribute: brightness
+ below: 156
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "6"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "6"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
- - conditions:
- - alias: "Light brightness below 182"
- condition: numeric_state
- entity_id: light.master_bedroom_hue
- attribute: brightness
- below: 182
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '7'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '7'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
+ - conditions:
+ - alias: "Light brightness below 182"
+ condition: numeric_state
+ entity_id: light.master_bedroom_hue
+ attribute: brightness
+ below: 182
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "7"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "7"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
- - conditions:
- - alias: "Light brightness below 208"
- condition: numeric_state
- entity_id: light.master_bedroom_hue
- attribute: brightness
- below: 208
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '8'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '8'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
+ - conditions:
+ - alias: "Light brightness below 208"
+ condition: numeric_state
+ entity_id: light.master_bedroom_hue
+ attribute: brightness
+ below: 208
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "8"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "8"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
- - conditions:
- - alias: "Light brightness below 234"
- condition: numeric_state
- entity_id: light.master_bedroom_hue
- attribute: brightness
- below: 234
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '9'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '9'
- target:
- device_id: 201b960a4203135c454f9acb3f035021
+ - conditions:
+ - alias: "Light brightness below 234"
+ condition: numeric_state
+ entity_id: light.master_bedroom_hue
+ attribute: brightness
+ below: 234
+ sequence:
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "19"
+ value: "9"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
+ - action: zwave_js.set_config_parameter
+ data:
+ parameter: "21"
+ value: "9"
+ target:
+ device_id: 201b960a4203135c454f9acb3f035021
default:
- - service: zwave_js.set_config_parameter
+ - action: zwave_js.set_config_parameter
data:
- parameter: '19'
- value: '10'
+ parameter: "19"
+ value: "10"
target:
device_id: 201b960a4203135c454f9acb3f035021
- - service: zwave_js.set_config_parameter
+ - action: zwave_js.set_config_parameter
data:
- parameter: '21'
- value: '10'
+ parameter: "21"
+ value: "10"
target:
device_id: 201b960a4203135c454f9acb3f035021
-
- delay:
hours: 0
minutes: 0
seconds: 1
- milliseconds: 0
\ No newline at end of file
+ milliseconds: 0
diff --git a/automations/rooms/master_bedroom/master_bedroom_humidifier.yaml b/automations/rooms/master_bedroom/master_bedroom_humidifier.yaml
index f9b89a7..dbec49c 100644
--- a/automations/rooms/master_bedroom/master_bedroom_humidifier.yaml
+++ b/automations/rooms/master_bedroom/master_bedroom_humidifier.yaml
@@ -14,46 +14,44 @@ trigger:
action:
- choose:
- - alias: "Humidity too high via trigger"
- conditions:
- - condition: trigger
- id: high_humidity
- sequence:
- - service: fan.turn_off
- target:
- entity_id: fan.master_bedroom
+ - alias: "Humidity too high via trigger"
+ conditions:
+ - condition: trigger
+ id: high_humidity
+ sequence:
+ - action: fan.turn_off
+ target:
+ entity_id: fan.master_bedroom
- - alias: "Humidity too high via manual run"
- conditions:
- - condition: numeric_state
- entity_id: sensor.master_bedroom_multisensor_humidity
- above: input_number.master_bedroom_humidifier_off
- sequence:
- - service: fan.turn_off
- target:
- entity_id: fan.master_bedroom
+ - alias: "Humidity too high via manual run"
+ conditions:
+ - condition: numeric_state
+ entity_id: sensor.master_bedroom_multisensor_humidity
+ above: input_number.master_bedroom_humidifier_off
+ sequence:
+ - action: fan.turn_off
+ target:
+ entity_id: fan.master_bedroom
- - alias: "Humidity too low via trigger"
- conditions:
- - condition: trigger
- id: low_humidity
- sequence:
+ - alias: "Humidity too low via trigger"
+ conditions:
+ - condition: trigger
+ id: low_humidity
+ sequence:
+ - action: fan.turn_on
+ data:
+ percentage: 33
+ target:
+ entity_id: fan.master_bedroom
- - service: fan.turn_on
- data:
- percentage: 33
- target:
- entity_id: fan.master_bedroom
-
- - alias: "Humidity too low via manual run"
- conditions:
- - condition: numeric_state
- entity_id: sensor.master_bedroom_multisensor_humidity
- below: input_number.master_bedroom_humidifier_on
- sequence:
-
- - service: fan.turn_on
- data:
- percentage: 33
- target:
- entity_id: fan.master_bedroom
+ - alias: "Humidity too low via manual run"
+ conditions:
+ - condition: numeric_state
+ entity_id: sensor.master_bedroom_multisensor_humidity
+ below: input_number.master_bedroom_humidifier_on
+ sequence:
+ - action: fan.turn_on
+ data:
+ percentage: 33
+ target:
+ entity_id: fan.master_bedroom
diff --git a/automations/rooms/master_bedroom/master_bedroom_light_cycle.yaml b/automations/rooms/master_bedroom/master_bedroom_light_cycle.yaml
index e9de225..fffbe5c 100644
--- a/automations/rooms/master_bedroom/master_bedroom_light_cycle.yaml
+++ b/automations/rooms/master_bedroom/master_bedroom_light_cycle.yaml
@@ -4,8 +4,8 @@ trigger:
- id: light_cycle_on
platform: state
entity_id: input_boolean.master_bedroom_light_cycle
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
- id: setting_change
platform: state
@@ -18,192 +18,191 @@ condition: "{{ is_state('input_boolean.master_bedroom_light_cycle','on') }}"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.master_bedroom_light_cycle
- state: 'on'
- sequence:
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.master_bedroom_light_cycle
+ state: "on"
+ sequence:
+ - repeat:
+ sequence:
+ - choose:
+ - conditions: # If all lights should be the same color and the projector is off, reference the Hue group for all the lights
+ - condition: state
+ entity_id: input_boolean.master_bedroom_cycle_same
+ state: "on"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.master_bedroom_hue
+ data:
+ brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.master_bedroom_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
- - repeat:
- sequence:
- - choose:
- - conditions: # If all lights should be the same color and the projector is off, reference the Hue group for all the lights
+ - conditions: # If all lights should be different colors, start referencing the individual lights that don't obscure the TV
+ - condition: state
+ entity_id: input_boolean.master_bedroom_cycle_same
+ state: "off"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.master_bedroom_1
+ data:
+ brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.master_bedroom_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+
+ - action: light.turn_on
+ target:
+ entity_id: light.master_bedroom_2
+ data:
+ brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.master_bedroom_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+
+ - action: light.turn_on
+ target:
+ entity_id: light.master_bedroom_3
+ data:
+ brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.master_bedroom_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
+
+ - delay:
+ seconds: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
+
+ until:
- condition: state
- entity_id: input_boolean.master_bedroom_cycle_same
- state: 'on'
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.master_bedroom_hue
- data:
- brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.master_bedroom_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
+ entity_id: input_boolean.master_bedroom_light_cycle
+ state: "off"
- - conditions: # If all lights should be different colors, start referencing the individual lights that don't obscure the TV
- - condition: state
- entity_id: input_boolean.master_bedroom_cycle_same
- state: 'off'
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.master_bedroom_1
- data:
- brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.master_bedroom_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - service: light.turn_on
- target:
- entity_id: light.master_bedroom_2
- data:
- brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.master_bedroom_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - service: light.turn_on
- target:
- entity_id: light.master_bedroom_3
- data:
- brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.master_bedroom_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - delay:
- seconds: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
-
- until:
- - condition: state
- entity_id: input_boolean.master_bedroom_light_cycle
- state: 'off'
-
- - service: automation.trigger
+ - action: automation.trigger
entity_id: automation.master_bedroom_lights_to_on
diff --git a/automations/rooms/master_bedroom/master_bedroom_lights_to_off.yaml b/automations/rooms/master_bedroom/master_bedroom_lights_to_off.yaml
index e750f9b..bb5b2a0 100644
--- a/automations/rooms/master_bedroom/master_bedroom_lights_to_off.yaml
+++ b/automations/rooms/master_bedroom/master_bedroom_lights_to_off.yaml
@@ -10,13 +10,13 @@ trigger:
- platform: state
entity_id: input_boolean.master_bedroom_occupied
- to: 'off'
+ to: "off"
- platform: state
id: light_level
entity_id: binary_sensor.entryway_naturally_lit
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
#- platform: time_pattern
# minutes: "/5"
@@ -24,8 +24,7 @@ trigger:
condition:
- condition: state
entity_id: light.master_bedroom_hue
- state: 'on'
-
+ state: "on"
- alias: "Master Bedroom light cycle not on"
condition: state
@@ -36,52 +35,52 @@ condition:
conditions:
- condition: state
entity_id: light.master_bedroom_1
- state: 'on'
+ state: "on"
- condition: state
entity_id: light.master_bedroom_2
- state: 'on'
+ state: "on"
- condition: state
entity_id: light.master_bedroom_3
- state: 'on'
+ state: "on"
- condition: or
conditions:
- condition: state
entity_id: input_select.master_bedroom_mode
- state: 'Off'
+ state: "Off"
- condition: state
entity_id: input_boolean.master_bedroom_occupied
- state: 'off'
+ state: "off"
- condition: state
entity_id: input_select.master_bedroom_mode
- state: 'Nightlight'
+ state: "Nightlight"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
- - condition: or
- conditions:
+ - conditions:
- condition: state
- entity_id: input_select.master_bedroom_mode
- state: 'Off'
- - condition: state
- entity_id: input_boolean.master_bedroom_occupied
- state: 'off'
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.master_bedroom_mode
- state: 'Manual'
- sequence:
- - service: scene.turn_on
- data:
- transition: 5
- target:
- entity_id: scene.master_bedroom_hue_off
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.master_bedroom_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.master_bedroom_occupied
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.master_bedroom_mode
+ state: "Manual"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: 5
+ target:
+ entity_id: scene.master_bedroom_hue_off
default:
- - service: light.turn_off
+ - action: light.turn_off
target:
entity_id:
- light.master_bedroom_1
@@ -89,4 +88,3 @@ action:
- light.master_bedroom_3
- light.accent
- light.master_bedroom_accent
-
diff --git a/automations/rooms/master_bedroom/master_bedroom_lights_to_on.yaml b/automations/rooms/master_bedroom/master_bedroom_lights_to_on.yaml
index d2068b5..94a8e8b 100644
--- a/automations/rooms/master_bedroom/master_bedroom_lights_to_on.yaml
+++ b/automations/rooms/master_bedroom/master_bedroom_lights_to_on.yaml
@@ -85,7 +85,7 @@ variables:
action:
- alias: "Make sure Z-Wave switch is turned on"
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
target:
entity_id: "{{ switch_name }}"
- choose:
@@ -96,7 +96,7 @@ action:
entity_id: input_select.master_bedroom_mode
state: Manual
sequence:
- - service: light.turn_on
+ - action: light.turn_on
target:
entity_id: light.master_bedroom_hue
@@ -115,7 +115,7 @@ action:
entity_id: input_select.automatic_light_profile
state: Nightlight
sequence:
- - service: scene.turn_on
+ - action: scene.turn_on
data:
transition: 10
target:
@@ -132,7 +132,7 @@ action:
entity_id: light.master_bedroom_hue
state: 'on'
sequence:
- - service: scene.turn_on
+ - action: scene.turn_on
data:
transition: "{{ states('input_number.light_scene_transition') }}"
target:
@@ -149,7 +149,7 @@ action:
entity_id: light.master_bedroom_hue
state: 'off'
sequence:
- - service: scene.turn_on
+ - action: scene.turn_on
target:
entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
@@ -164,7 +164,7 @@ action:
entity_id: input_select.master_bedroom_mode
state: Nightlight
sequence:
- - service: scene.turn_on
+ - action: scene.turn_on
data:
transition: 10
target:
@@ -177,7 +177,7 @@ action:
entity_id: light.master_bedroom_hue
state: 'on'
sequence:
- - service: scene.turn_on
+ - action: scene.turn_on
data:
transition: "{{ states('input_number.light_scene_transition') }}"
target:
@@ -190,7 +190,7 @@ action:
entity_id: light.master_bedroom_hue
state: 'off'
sequence:
- - service: scene.turn_on
+ - action: scene.turn_on
target:
entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
diff --git a/automations/rooms/master_bedroom/master_bedroom_not_occupied.yaml b/automations/rooms/master_bedroom/master_bedroom_not_occupied.yaml
index e011116..b9a9d4c 100644
--- a/automations/rooms/master_bedroom/master_bedroom_not_occupied.yaml
+++ b/automations/rooms/master_bedroom/master_bedroom_not_occupied.yaml
@@ -1,70 +1,69 @@
-alias: 'Master Bedroom Not Occupied'
+alias: "Master Bedroom Not Occupied"
id: automation_master_bedroom_not_occupied
mode: restart
trigger:
- platform: state
entity_id: input_boolean.home_occupied
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
entity_id:
- input_boolean.home_occupied
- binary_sensor.master_bedroom_occupied
- to: 'off'
- for: '00:05:00'
+ to: "off"
+ for: "00:05:00"
# - platform: time_pattern
# minutes: "/5"
condition:
-
- condition: state
entity_id: input_boolean.lights_off_manually
- state: 'off'
+ state: "off"
- condition: state
entity_id:
- binary_sensor.bed_presence_c175a4_bed_occupied_either
state:
- - 'off'
- - 'unavailable'
+ - "off"
+ - "unavailable"
- condition: state
entity_id: input_boolean.master_bedroom_occupied
- state: 'on'
+ state: "on"
- condition: or
conditions:
- condition: state
entity_id: input_boolean.home_occupied
- state: 'off'
+ state: "off"
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.master_bedroom_person_occupancy
- state: 'off'
+ state: "off"
for:
minutes: 5
- condition: state
entity_id: binary_sensor.master_bedroom_occupied
- state: 'off'
+ state: "off"
for:
minutes: 5
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.master_bedroom_occupied
- - conditions:
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Manual'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.master_bedroom_occupied
\ No newline at end of file
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.master_bedroom_occupied
+ - conditions:
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Manual"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.master_bedroom_occupied
diff --git a/automations/rooms/master_bedroom/master_bedroom_occupied.yaml b/automations/rooms/master_bedroom/master_bedroom_occupied.yaml
index 87b8014..d009862 100644
--- a/automations/rooms/master_bedroom/master_bedroom_occupied.yaml
+++ b/automations/rooms/master_bedroom/master_bedroom_occupied.yaml
@@ -1,4 +1,4 @@
-alias: 'Master Bedroom Occupied'
+alias: "Master Bedroom Occupied"
id: automation_master_bedroom_occupied
mode: restart
@@ -6,13 +6,13 @@ trigger:
- platform: state
entity_id:
- binary_sensor.master_bedroom_occupied
- to: 'on'
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.master_bedroom_occupied
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.master_bedroom_occupied
diff --git a/automations/rooms/master_bedroom/master_bedroom_status.yaml b/automations/rooms/master_bedroom/master_bedroom_status.yaml
index 56fa6d5..3c5c80f 100644
--- a/automations/rooms/master_bedroom/master_bedroom_status.yaml
+++ b/automations/rooms/master_bedroom/master_bedroom_status.yaml
@@ -5,8 +5,8 @@ trigger:
- id: master_bed_not_occupied
platform: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
- to: 'off'
- for: '00:10:00'
+ to: "off"
+ for: "00:10:00"
- id: phone_charging
platform: state
@@ -16,8 +16,8 @@ trigger:
- id: master_bed_right_occupied
platform: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
- to: 'on'
- for: '00:00:05'
+ to: "on"
+ for: "00:00:05"
condition:
- alias: Okay to turn off or on
@@ -29,27 +29,27 @@ condition:
- alias: "The room is currently asleep"
condition: state
entity_id: input_boolean.master_bedroom_asleep
- state: 'on'
+ state: "on"
- alias: "An adult is home"
condition: or
conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "on"
- alias: "It is before 10:00PM and after 4:00AM"
condition: time
- before: '22:00:00'
- after: '04:00:00'
+ before: "22:00:00"
+ after: "04:00:00"
- alias: "No one on master bed"
condition: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
- state: 'off'
+ state: "off"
- alias: "Is the room asleep?"
condition: and
@@ -57,27 +57,27 @@ condition:
- alias: "The room is currently awake"
condition: state
entity_id: input_boolean.master_bedroom_asleep
- state: 'off'
+ state: "off"
- alias: "Adult Home"
condition: or
conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "on"
- alias: "After 10:00PM and before 4:00AM"
condition: time
- after: '21:00:00'
- before: '04:00:00'
+ after: "21:00:00"
+ before: "04:00:00"
- alias: "Someone on master bed"
condition: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
- state: 'on'
+ state: "on"
action:
- choose:
@@ -85,71 +85,71 @@ action:
- alias: "The room is currently asleep"
condition: state
entity_id: input_boolean.master_bedroom_asleep
- state: 'on'
+ state: "on"
- alias: "An adult is home"
condition: or
conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "on"
- alias: "It is before 10:00PM and after 4:00AM"
condition: time
- before: '21:00:00'
- after: '04:00:00'
+ before: "21:00:00"
+ after: "04:00:00"
- alias: "No one on master bed"
condition: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
- state: 'off'
+ state: "off"
sequence:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
entity_id: input_boolean.master_bedroom_asleep
- conditions:
- alias: "The room is currently awake"
condition: state
entity_id: input_boolean.master_bedroom_asleep
- state: 'off'
+ state: "off"
- alias: "Adult Home"
condition: or
conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.kristy_home
- state: 'on'
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.kristy_home
+ state: "on"
- alias: "After 10:00PM and before 4:00AM"
condition: time
- after: '21:00:00'
- before: '04:00:00'
+ after: "21:00:00"
+ before: "04:00:00"
- alias: "Someone on master bed"
condition: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
- state: 'on'
+ state: "on"
sequence:
- choose:
- - conditions:
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.master_bedroom_mode
- state: 'Manual'
- sequence:
- - service: input_select.select_option
- data:
- option: Auto
- target:
- entity_id: input_select.master_bedroom_mode
+ - conditions:
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.master_bedroom_mode
+ state: "Manual"
+ sequence:
+ - action: input_select.select_option
+ data:
+ option: Auto
+ target:
+ entity_id: input_select.master_bedroom_mode
- # From Master Bedroom Asleep
- - service: input_boolean.turn_on
- entity_id: input_boolean.master_bedroom_asleep
+ # From Master Bedroom Asleep
+ - action: input_boolean.turn_on
+ entity_id: input_boolean.master_bedroom_asleep
diff --git a/automations/rooms/master_bedroom/master_bedroom_white_noise_on.yaml b/automations/rooms/master_bedroom/master_bedroom_white_noise_on.yaml
index c43b014..e7b144f 100644
--- a/automations/rooms/master_bedroom/master_bedroom_white_noise_on.yaml
+++ b/automations/rooms/master_bedroom/master_bedroom_white_noise_on.yaml
@@ -7,7 +7,7 @@ trigger:
to: "on"
action:
- #- service: input_select.select_option
+ #- action: input_select.select_option
# data:
# entity_id: input_select.master_bedroom_mode
# option: 'Off'
@@ -17,8 +17,7 @@ action:
target:
entity_id: media_player.ma_master_bedroom_clock
-
- #- service: script.goodnight_kids_youtube_music
+ #- action: script.goodnight_kids_youtube_music
- action: media_player.shuffle_set
metadata: {}
@@ -40,4 +39,3 @@ action:
enqueue: replace
target:
entity_id: media_player.ma_master_bedroom_clock
-
diff --git a/automations/rooms/master_bedroom/random_master_bed_strip.yaml b/automations/rooms/master_bedroom/random_master_bed_strip.yaml
index dc4fc4a..7c17f73 100644
--- a/automations/rooms/master_bedroom/random_master_bed_strip.yaml
+++ b/automations/rooms/master_bedroom/random_master_bed_strip.yaml
@@ -3,27 +3,27 @@ id: automation_random_master_bed_strip
trigger:
- platform: template
value_template: "{{ is_state('light.master_bedroom_hue', 'on') and is_state('input_select.master_bedroom_mode', 'Nightlight') }}"
- id: 'master_bedroom_nightlight'
+ id: "master_bedroom_nightlight"
- platform: template
value_template: "{{ is_state('light.master_bedroom_hue', 'on') and is_state('input_select.master_bedroom_mode', 'Auto') and is_state('input_select.automatic_light_profile', 'Nightlight') }}"
- id: 'automatic_light_profile_nightlight'
+ id: "automatic_light_profile_nightlight"
action:
- choose:
- - conditions:
- - condition: or
- conditions:
- - condition: trigger
- id: master_bedroom_nightlight
- - condition: trigger
- id: automatic_light_profile_nightlight
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.master_bedroom_accent
- data:
- effect: candle
- brightness_pct: 50
+ - conditions:
+ - condition: or
+ conditions:
+ - condition: trigger
+ id: master_bedroom_nightlight
+ - condition: trigger
+ id: automatic_light_profile_nightlight
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.master_bedroom_accent
+ data:
+ effect: candle
+ brightness_pct: 50
default:
- - service: light.turn_off
+ - action: light.turn_off
target:
entity_id: light.master_bedroom_accent
diff --git a/automations/rooms/nursery/nursery_dimmer_leds.yaml b/automations/rooms/nursery/nursery_dimmer_leds.yaml
deleted file mode 100644
index 710ac3e..0000000
--- a/automations/rooms/nursery/nursery_dimmer_leds.yaml
+++ /dev/null
@@ -1,202 +0,0 @@
-alias: Nursery Dimmer LEDs
-id: automation_nursery_dimmer_leds
-mode: single
-# Hide warnings when triggered while in delay.
-max_exceeded: silent
-
-trigger:
- - platform: state
- entity_id: light.nursery_hue
- attribute: brightness
-
- - platform: state
- entity_id: light.nursery_hue
-
- - platform: homeassistant
- event: start
-
-# condition:
-# - "{{ is_state('sensor.nursery_dimmer_node_status','alive') }}"
-
-action:
- - choose:
- - conditions:
- - alias: "Light off"
- condition: state
- entity_id: light.nursery_hue
- state: 'off'
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '3'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '3'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
-
- - conditions:
- - alias: "Light brightness below 78"
- condition: numeric_state
- entity_id: light.nursery_hue
- attribute: brightness
- below: 78
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '3'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '3'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
-
- - conditions:
- - alias: "Light brightness below 104"
- condition: numeric_state
- entity_id: light.nursery_hue
- attribute: brightness
- below: 104
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '4'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '4'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
-
- - conditions:
- - alias: "Light brightness below 130"
- condition: numeric_state
- entity_id: light.nursery_hue
- attribute: brightness
- below: 130
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '5'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '5'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
-
- - conditions:
- - alias: "Light brightness below 156"
- condition: numeric_state
- entity_id: light.nursery_hue
- attribute: brightness
- below: 156
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '6'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '6'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
-
- - conditions:
- - alias: "Light brightness below 182"
- condition: numeric_state
- entity_id: light.nursery_hue
- attribute: brightness
- below: 182
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '7'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '7'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
-
- - conditions:
- - alias: "Light brightness below 208"
- condition: numeric_state
- entity_id: light.nursery_hue
- attribute: brightness
- below: 208
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '8'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '8'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
-
- - conditions:
- - alias: "Light brightness below 234"
- condition: numeric_state
- entity_id: light.nursery_hue
- attribute: brightness
- below: 234
- sequence:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '9'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '9'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
-
-
- default:
- - service: zwave_js.set_config_parameter
- data:
- parameter: '19'
- value: '10'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
- - service: zwave_js.set_config_parameter
- data:
- parameter: '21'
- value: '10'
- target:
- device_id: 89e0dee60d7bdf2aeb22b3438914aba4
-
-
- - delay:
- hours: 0
- minutes: 0
- seconds: 1
- milliseconds: 0
\ No newline at end of file
diff --git a/automations/rooms/nursery/nursery_light_cycle.yaml b/automations/rooms/nursery/nursery_light_cycle.yaml
deleted file mode 100644
index 17a7d53..0000000
--- a/automations/rooms/nursery/nursery_light_cycle.yaml
+++ /dev/null
@@ -1,169 +0,0 @@
-alias: Nursery Light Cycle
-id: automation_nursery_light_cycle
-trigger:
- - id: light_cycle_on
- platform: state
- entity_id: input_boolean.nursery_light_cycle
- from: 'off'
- to: 'on'
-
- - id: setting_change
- platform: state
- entity_id:
- - input_number.nursery_light_cycle_transition
- - input_select.nursery_color_set
- - input_boolean.nursery_cycle_same
-
-condition: "{{ is_state('input_boolean.nursery_light_cycle','on') }}"
-
-action:
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.nursery_light_cycle
- state: 'on'
- sequence:
-
- - repeat:
- sequence:
- - choose:
- - conditions: # If all lights should be the same color and the projector is off, reference the Hue group for all the lights
- - condition: state
- entity_id: input_boolean.nursery_cycle_same
- state: 'on'
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.nursery_hue
- data:
- brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.nursery_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.nursery_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.nursery_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.nursery_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.nursery_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.nursery_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.nursery_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.nursery_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.nursery_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.nursery_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.nursery_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.nursery_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.nursery_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.nursery_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.nursery_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - conditions: # If all lights should be different colors, start referencing the individual lights that don't obscure the TV
- - condition: state
- entity_id: input_boolean.nursery_cycle_same
- state: 'off'
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.nursery_color_1
- data:
- brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.nursery_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.nursery_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.nursery_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.nursery_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.nursery_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.nursery_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.nursery_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.nursery_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.nursery_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.nursery_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.nursery_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.nursery_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.nursery_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.nursery_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.nursery_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - service: light.turn_on
- target:
- entity_id: light.nursery_color_2
- data:
- brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.nursery_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.nursery_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.nursery_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.nursery_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.nursery_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.nursery_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.nursery_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.nursery_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.nursery_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.nursery_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.nursery_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.nursery_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.nursery_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.nursery_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.nursery_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
-
- - delay:
- seconds: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
-
- until:
- - condition: state
- entity_id: input_boolean.nursery_light_cycle
- state: 'off'
-
- - service: automation.trigger
- entity_id: automation.nursery_lights_to_on
diff --git a/automations/rooms/nursery/nursery_lights_to_off.yaml b/automations/rooms/nursery/nursery_lights_to_off.yaml
deleted file mode 100644
index 3f9f92b..0000000
--- a/automations/rooms/nursery/nursery_lights_to_off.yaml
+++ /dev/null
@@ -1,75 +0,0 @@
-alias: Nursery Lights to Off
-id: automation_nursery_lights_to_off
-mode: restart
-
-trigger:
- - platform: state
- entity_id: input_select.nursery_mode
-
- - platform: state
- entity_id: input_boolean.nursery_occupied
- to: 'off'
-
- - platform: state
- id: light_level
- entity_id: binary_sensor.nursery_naturally_lit
- from: 'off'
- to: 'on'
-
- #- platform: time_pattern
- # minutes: "/5"
-
-condition:
- - condition: state
- entity_id: light.nursery_hue
- state: 'on'
-
- - alias: "Nursery light cycle not on"
- condition: state
- entity_id: input_boolean.nursery_light_cycle
- state: "off"
-
- - condition: or
- conditions:
- - condition: state
- entity_id: input_select.nursery_mode
- state: 'Off'
- - condition: state
- entity_id: input_boolean.nursery_occupied
- state: 'off'
-
-action:
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
- - condition: or
- conditions:
- - condition: state
- entity_id: input_select.nursery_mode
- state: 'Off'
- - condition: state
- entity_id: input_boolean.nursery_occupied
- state: 'off'
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.nursery_mode
- state: 'Manual'
- sequence:
- - service: scene.turn_on
- data:
- transition: 5
- target:
- entity_id: scene.nursery_hue_off
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.guest_mode
- state: 'on'
- sequence:
- - alias: "Turn off z-wave switch since all lights are off"
- service: homeassistant.turn_off
- target:
- entity_id: light.nursery_color_1, light.nursery_color_2
diff --git a/automations/rooms/nursery/nursery_lights_to_on.yaml b/automations/rooms/nursery/nursery_lights_to_on.yaml
deleted file mode 100644
index efca27d..0000000
--- a/automations/rooms/nursery/nursery_lights_to_on.yaml
+++ /dev/null
@@ -1,196 +0,0 @@
-alias: Nursery Lights to On
-id: automation_nursery_lights_to_on
-mode: single
-# Hide warnings when triggered while in delay.
-max_exceeded: silent
-
-trigger:
- - platform: state
- id: mode_change
- entity_id:
- - input_select.nursery_mode
- - input_select.automatic_light_profile
-
- - platform: state
- id: light_level
- entity_id: binary_sensor.nursery_naturally_lit
- from: 'on'
- to: 'off'
-
- - platform: state
- entity_id: input_boolean.nursery_occupied
- to: "on"
-
- - platform: state
- id: occupied
- entity_id: binary_sensor.nursery_occupied
- to: "on"
-
- # - platform: state
- # id: motion
- # entity_id: group.nursery_motion
- # to: "on"
-
-condition:
- - alias: "Home is occupied"
- condition: state
- entity_id: input_boolean.home_occupied
- state: "on"
-
- - alias: "Nursery light cycle not on"
- condition: state
- entity_id: input_boolean.nursery_light_cycle
- state: "off"
-
- - alias: "Check if light should turn on"
- condition: or
- conditions:
-
- - alias: "Guest mode is on"
- condition: state
- entity_id: input_boolean.guest_mode
- state: "on"
-
- - alias: "Motion or occupancy were detected in a dim room"
- condition: and
- conditions:
- - alias: "Light level below trigger amount"
- condition: state
- entity_id: binary_sensor.nursery_naturally_lit
- state: 'off'
-
- - alias: "Motion or occupancy were detected"
- condition: or
- conditions:
- - alias: "Motion was detected"
- condition: trigger
- id: "motion"
- - alias: "Occupancy was detected"
- condition: trigger
- id: "occupied"
- - alias: "A scene changed and the lights are already on"
- condition: and
- conditions:
- - condition: trigger
- id: "mode_change"
- - condition: state
- entity_id: input_boolean.nursery_occupied
- state: "on"
-
-variables:
- switch_name: light.nursery_dimmer_light
- light_name: nursery_hue
- mode_name: input_select.nursery_mode
- automatic_profile: input_select.automatic_light_profile
-action:
- - alias: "Make sure Z-Wave switch is turned on"
- service: homeassistant.turn_on
- target:
- entity_id: "{{ switch_name }}"
- - choose:
- - alias: "If the room is set to manual, just turn the lights on"
- conditions:
- - alias: "Room set to manual"
- condition: state
- entity_id: input_select.nursery_mode
- state: Manual
- sequence:
- - service: light.turn_on
- target:
- entity_id: light.nursery_hue
-
- - alias: "If the room is set to auto, the lights are on, and the automatic profile is set to Nightlight, change to the Automatic Light Profile scene with a short transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.nursery_mode
- state: Auto
- - alias: "Lights are on"
- condition: state
- entity_id: light.nursery_hue
- state: 'on'
- - alias: "Automatic light profile set to Nightlight"
- condition: state
- entity_id: input_select.automatic_light_profile
- state: Nightlight
- sequence:
- - service: scene.turn_on
- data:
- transition: 10
- target:
- entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
-
- - alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.nursery_mode
- state: Auto
- - alias: "Lights are on"
- condition: state
- entity_id: light.nursery_hue
- state: 'on'
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
-
- - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
- conditions:
- - alias: "Room set to auto"
- condition: state
- entity_id: input_select.nursery_mode
- state: Auto
- - alias: "Lights are off"
- condition: state
- entity_id: light.nursery_hue
- state: 'off'
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
-
- - alias: "If the room is not set to auto, the lights are on, and the room is set to Nightlight change to the Nursery Mode scene with a short transition"
- conditions:
- - alias: "Room not manual or auto and lights are on"
- condition: state
- entity_id: light.nursery_hue
- state: 'on'
- - alias: "Room set to Nightlight"
- condition: state
- entity_id: input_select.nursery_mode
- state: Nightlight
- sequence:
- - service: scene.turn_on
- data:
- transition: 10
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
-
- - alias: "If the room is not set to auto and the lights are on, change to the Nursery Mode scene with a transition"
- conditions:
- - alias: "Room not manual or auto and lights are on"
- condition: state
- entity_id: light.nursery_hue
- state: 'on'
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states('input_number.light_scene_transition') }}"
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
-
- - alias: "If the room is not set to auto and the lights are on, change to the Nursery Mode scene without a transition"
- conditions:
- - alias: "Room not manual or auto and lights are off"
- condition: state
- entity_id: light.nursery_hue
- state: 'off'
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
-
- - delay: 1
\ No newline at end of file
diff --git a/automations/rooms/storage_room_lights.yaml b/automations/rooms/storage_room_lights.yaml
index 780caff..49e4022 100644
--- a/automations/rooms/storage_room_lights.yaml
+++ b/automations/rooms/storage_room_lights.yaml
@@ -6,7 +6,7 @@ trigger:
- platform: state
id: door_open
entity_id: binary_sensor.storage_room_door_contact
- from: 'off'
+ from: "off"
to: "on"
- platform: state
@@ -17,23 +17,23 @@ trigger:
action:
- choose:
- - conditions:
- - condition: trigger
- id: "door_open"
- - condition: state
- entity_id: light.storage_room
- state: 'off'
- sequence:
- - service: light.turn_on
- target:
+ - conditions:
+ - condition: trigger
+ id: "door_open"
+ - condition: state
entity_id: light.storage_room
- - conditions:
- - condition: trigger
- id: "door_closed"
- - condition: state
- entity_id: light.storage_room
- state: 'on'
- sequence:
- - service: light.turn_off
- target:
- entity_id: light.storage_room
\ No newline at end of file
+ state: "off"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: light.storage_room
+ - conditions:
+ - condition: trigger
+ id: "door_closed"
+ - condition: state
+ entity_id: light.storage_room
+ state: "on"
+ sequence:
+ - action: light.turn_off
+ target:
+ entity_id: light.storage_room
diff --git a/automations/rooms/utility_room/utility_room_lights_to_off.yaml b/automations/rooms/utility_room/utility_room_lights_to_off.yaml
index 32c74f1..57c7412 100644
--- a/automations/rooms/utility_room/utility_room_lights_to_off.yaml
+++ b/automations/rooms/utility_room/utility_room_lights_to_off.yaml
@@ -8,7 +8,7 @@ trigger:
- platform: state
entity_id: input_boolean.utility_room_occupied
- to: 'off'
+ to: "off"
#- platform: time_pattern
# minutes: "/5"
@@ -16,44 +16,44 @@ trigger:
condition:
- condition: state
entity_id: light.utility_room_hue
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_boolean.lights_off_manually
- state: 'off'
+ state: "off"
- condition: or
conditions:
- condition: state
entity_id: input_select.utility_room_mode
- state: 'Off'
+ state: "Off"
- condition: state
entity_id: input_boolean.utility_room_occupied
- state: 'off'
+ state: "off"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.lighting_automations
- state: 'on'
- - condition: or
- conditions:
+ - conditions:
- condition: state
- entity_id: input_select.utility_room_mode
- state: 'Off'
- - condition: state
- entity_id: input_boolean.utility_room_occupied
- state: 'off'
- - condition: not
- conditions:
- - condition: state
- entity_id: input_select.utility_room_mode
- state: 'Manual'
- sequence:
- - service: light.turn_off
- data:
- entity_id:
- - light.utility_room_vanity
- - service: light.turn_off
- target:
- entity_id: light.laundry
+ entity_id: input_boolean.lighting_automations
+ state: "on"
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.utility_room_mode
+ state: "Off"
+ - condition: state
+ entity_id: input_boolean.utility_room_occupied
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: input_select.utility_room_mode
+ state: "Manual"
+ sequence:
+ - action: light.turn_off
+ data:
+ entity_id:
+ - light.utility_room_vanity
+ - action: light.turn_off
+ target:
+ entity_id: light.laundry
diff --git a/automations/rooms/utility_room/utility_room_lights_to_on.yaml b/automations/rooms/utility_room/utility_room_lights_to_on.yaml
index c12ab5d..d8ba06a 100644
--- a/automations/rooms/utility_room/utility_room_lights_to_on.yaml
+++ b/automations/rooms/utility_room/utility_room_lights_to_on.yaml
@@ -35,22 +35,22 @@ condition:
action:
- alias: "Make sure Z-Wave switch is turned on"
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
target:
entity_id: switch.utility_room_motion_switch
- choose:
- - conditions:
- - condition: state
- entity_id: input_select.utility_room_mode
- state: Auto
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.utility_room_hue_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
+ - conditions:
+ - condition: state
+ entity_id: input_select.utility_room_mode
+ state: Auto
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.utility_room_hue_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
default:
- - service: scene.turn_on
+ - action: scene.turn_on
target:
entity_id: "scene.utility_room_hue_{{states('input_select.utility_room_mode').lower().replace(' ','_')}}"
- - delay: 1
\ No newline at end of file
+ - delay: 1
diff --git a/automations/rooms/utility_room/utility_room_not_occupied.yaml b/automations/rooms/utility_room/utility_room_not_occupied.yaml
index 78b9f47..20a06ba 100644
--- a/automations/rooms/utility_room/utility_room_not_occupied.yaml
+++ b/automations/rooms/utility_room/utility_room_not_occupied.yaml
@@ -1,18 +1,18 @@
-alias: 'Utility Room Not Occupied'
+alias: "Utility Room Not Occupied"
id: automation_utility_room_not_occupied
mode: restart
trigger:
- platform: state
entity_id: input_boolean.home_occupied
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
entity_id:
- input_boolean.home_occupied
- binary_sensor.utility_room_occupied
- to: 'off'
- for: '00:10:00'
+ to: "off"
+ for: "00:10:00"
# - platform: time_pattern
# minutes: "/5"
@@ -22,38 +22,38 @@ condition:
conditions:
- condition: state
entity_id: input_boolean.home_occupied
- state: 'off'
+ state: "off"
- condition: and
conditions:
- condition: state
entity_id: input_boolean.utility_room_occupied
- state: 'on'
+ state: "on"
- condition: state
entity_id: binary_sensor.utility_room_occupied
- state: 'off'
- for: '00:10:00'
+ state: "off"
+ for: "00:10:00"
action:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.home_occupied
- state: 'off'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.utility_room_occupied
- - conditions:
- - condition: or
- conditions:
- - condition: state
- entity_id: input_select.house
- state: 'Auto'
- - condition: state
- entity_id: input_select.house
- state: 'Dad'
- - condition: state
- entity_id: input_select.house
- state: 'Bachelor'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.utility_room_occupied
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.home_occupied
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.utility_room_occupied
+ - conditions:
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: input_select.house
+ state: "Auto"
+ - condition: state
+ entity_id: input_select.house
+ state: "Dad"
+ - condition: state
+ entity_id: input_select.house
+ state: "Bachelor"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.utility_room_occupied
diff --git a/automations/rooms/utility_room/utility_room_occupied.yaml b/automations/rooms/utility_room/utility_room_occupied.yaml
index 09e3a12..6f42f5c 100644
--- a/automations/rooms/utility_room/utility_room_occupied.yaml
+++ b/automations/rooms/utility_room/utility_room_occupied.yaml
@@ -6,18 +6,18 @@ trigger:
- platform: state
entity_id:
- binary_sensor.utility_room_occupied
- to: 'on'
+ to: "on"
condition:
- condition: state
entity_id: input_boolean.utility_room_occupied
- state: 'off'
+ state: "off"
action:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
entity_id: input_boolean.utility_room_occupied
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Utility Room Occupied
entity_id: automation.utility_room_occupied
diff --git a/automations/season/season_is_autumn.yaml b/automations/season/season_is_autumn.yaml
index 452caf1..422af3f 100644
--- a/automations/season/season_is_autumn.yaml
+++ b/automations/season/season_is_autumn.yaml
@@ -1,16 +1,16 @@
-alias: 'Season is autumn'
-initial_state: 'on'
+alias: "Season is autumn"
+initial_state: "on"
id: automation_season_is_autumn
trigger:
- platform: homeassistant
event: start
- platform: time
- at: '03:00:00'
+ at: "03:00:00"
condition:
- condition: template
- value_template: '{{ 12 > now().month > 8 }}'
+ value_template: "{{ 12 > now().month > 8 }}"
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.season
option: Autumn
diff --git a/automations/season/season_is_christmas.yaml b/automations/season/season_is_christmas.yaml
index df4e9d5..8b7e107 100644
--- a/automations/season/season_is_christmas.yaml
+++ b/automations/season/season_is_christmas.yaml
@@ -1,18 +1,18 @@
-alias: 'Season is Christmas'
+alias: "Season is Christmas"
id: automation_season_is_christmas
-initial_state: 'on'
+initial_state: "on"
trigger:
- platform: homeassistant
event: start
- platform: time
- at: '02:00:00'
+ at: "02:00:00"
condition:
- condition: template
#value_template: '{{ ( now().month == 12 and now().day >= 1 ) and ( now().month == 12 and now().day < 31 ) }}'
#value_template: "{{ state_attr('calendar.holidays_in_united_states','message') == 'Christmas Eve' or state_attr('calendar.holidays_in_united_states','message') == 'Christmas Day' or state_attr('calendar.holidays_in_united_states','message') == 'New Year''s Eve'}}"
value_template: "{{ state_attr('calendar.holidays_in_united_states', 'message') in 'Christmas Eve' 'Christmas Day' 'New Year''s Eve' }}"
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.season
option: Christmas
diff --git a/automations/season/season_is_easter.yaml b/automations/season/season_is_easter.yaml
index 8401c3f..9ed6fb5 100644
--- a/automations/season/season_is_easter.yaml
+++ b/automations/season/season_is_easter.yaml
@@ -1,19 +1,19 @@
-alias: 'Season is Easter'
+alias: "Season is Easter"
id: automation_season_is_easter
-initial_state: 'on'
+initial_state: "on"
trigger:
- platform: homeassistant
event: start
- platform: time
- at: '02:00:00'
+ at: "02:00:00"
- platform: state
entity_id: calendar.holidays_in_united_states
- to: 'on'
+ to: "on"
condition:
- condition: template
value_template: '{{ states.calendar.holidays_in_united_states.attributes.message in "Good Friday" "Easter Sunday" "Easter Monday" }}'
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.season
option: Easter
diff --git a/automations/season/season_is_spring.yaml b/automations/season/season_is_spring.yaml
index 8793fc7..3070304 100644
--- a/automations/season/season_is_spring.yaml
+++ b/automations/season/season_is_spring.yaml
@@ -1,21 +1,21 @@
-alias: 'Season is Spring'
+alias: "Season is Spring"
id: automation_season_is_spring
-initial_state: 'on'
+initial_state: "on"
trigger:
- platform: homeassistant
event: start
- platform: time
- at: '03:00:00'
+ at: "03:00:00"
condition:
- condition: and
conditions:
- - condition: template
- value_template: '{{ 6 > now().month > 2 }}'
- - condition: template
- value_template: '{{ states.calendar.holidays_in_united_states.attributes.message not in "Good Friday" "Easter Sunday" "Easter Monday" }}'
+ - condition: template
+ value_template: "{{ 6 > now().month > 2 }}"
+ - condition: template
+ value_template: '{{ states.calendar.holidays_in_united_states.attributes.message not in "Good Friday" "Easter Sunday" "Easter Monday" }}'
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.season
option: Spring
diff --git a/automations/season/season_is_summer.yaml b/automations/season/season_is_summer.yaml
index 21791fc..377fae8 100644
--- a/automations/season/season_is_summer.yaml
+++ b/automations/season/season_is_summer.yaml
@@ -1,16 +1,16 @@
-alias: 'Season is Summer'
+alias: "Season is Summer"
id: automation_season_is_summer
-initial_state: 'on'
+initial_state: "on"
trigger:
- platform: homeassistant
event: start
- platform: time
- at: '03:00:00'
+ at: "03:00:00"
condition:
- condition: template
- value_template: '{{ 9 > now().month > 5 }}'
+ value_template: "{{ 9 > now().month > 5 }}"
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.season
option: Summer
diff --git a/automations/season/season_is_winter.yaml b/automations/season/season_is_winter.yaml
index b3ce95e..352bf7c 100644
--- a/automations/season/season_is_winter.yaml
+++ b/automations/season/season_is_winter.yaml
@@ -1,30 +1,30 @@
-alias: 'Season is Winter'
+alias: "Season is Winter"
id: automation_season_is_winter
-initial_state: 'on'
+initial_state: "on"
trigger:
- platform: homeassistant
event: start
- platform: time
- at: '03:00:00'
+ at: "03:00:00"
condition:
- condition: and
conditions:
- - condition: template
- value_template: '{{ ( now().month == 12 ) or ( now().month < 3 ) }}'
- - condition: or
- conditions:
- # Either after the 1st of January
- condition: template
- value_template: '{{ now().month == 1 and now().day >= 1 }}'
- - condition: and
+ value_template: "{{ ( now().month == 12 ) or ( now().month < 3 ) }}"
+ - condition: or
conditions:
- # or before the 12th of December and we've not turned it on early
- - condition: template
- value_template: '{{ now().month == 12 and now().day < 12 }}'
- - condition: template
- value_template: '{{ states("input_select.season") != "Christmas" }}'
+ # Either after the 1st of January
+ - condition: template
+ value_template: "{{ now().month == 1 and now().day >= 1 }}"
+ - condition: and
+ conditions:
+ # or before the 12th of December and we've not turned it on early
+ - condition: template
+ value_template: "{{ now().month == 12 and now().day < 12 }}"
+ - condition: template
+ value_template: '{{ states("input_select.season") != "Christmas" }}'
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.season
option: Winter
diff --git a/automations/things/androidtv_tag_watch.yaml b/automations/things/androidtv_tag_watch.yaml
index 33bd1f7..6afe89c 100644
--- a/automations/things/androidtv_tag_watch.yaml
+++ b/automations/things/androidtv_tag_watch.yaml
@@ -47,7 +47,7 @@
# - https://www.paramountplus.com/shows/paw-patrol/
# condition: []
# action:
-# - service: androidtv.adb_command
+# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: am start -a android.intent.action.VIEW -d {{trigger.event.data.tag_id}}
@@ -56,7 +56,7 @@
# - condition: trigger
# id: disney
# sequence:
-# - service: androidtv.adb_command
+# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: >-
@@ -67,7 +67,7 @@
# minutes: 0
# seconds: 5
# milliseconds: 0
-# - service: androidtv.adb_command
+# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: >-
@@ -77,7 +77,7 @@
# - condition: trigger
# id: paramount
# sequence:
-# - service: androidtv.adb_command
+# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: >-
@@ -88,7 +88,7 @@
# minutes: 0
# seconds: 10
# milliseconds: 0
-# - service: androidtv.adb_command
+# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: input keyevent 19 && input keyevent 19 && input keyevent 23
@@ -96,7 +96,7 @@
# - condition: trigger
# id: pbs
# sequence:
-# - service: androidtv.adb_command
+# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: >-
@@ -107,12 +107,12 @@
# minutes: 0
# seconds: 5
# milliseconds: 0
-# - service: androidtv.adb_command
+# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: ls /
# default:
-# - service: androidtv.adb_command
+# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: >-
@@ -120,7 +120,6 @@
# {{trigger.event.data.tag_id}}
# mode: single
-
# # Got my kid setup with an NFC card system for their favorite shows!
# # https://imgur.com/a/akZZYjk
@@ -151,4 +150,4 @@
# # https://github.com/adonno/tagreader
-# # Figured I'd share this little project, as it lets us better control what is watched (no going through the menu and getting distracted) and is WAY easier to find the show quickly.
\ No newline at end of file
+# # Figured I'd share this little project, as it lets us better control what is watched (no going through the menu and getting distracted) and is WAY easier to find the show quickly.
diff --git a/automations/things/automatic_fan_speeds.yaml b/automations/things/automatic_fan_speeds.yaml
index 408c960..66416f4 100644
--- a/automations/things/automatic_fan_speeds.yaml
+++ b/automations/things/automatic_fan_speeds.yaml
@@ -77,7 +77,7 @@ action:
nursery_fan_speed: "{{((states('sensor.nursery_multisensor_air_temperature') | float(default=0) - states('input_number.nursery_fan_min_temp') | float(default=0))/(states('input_number.nursery_fan_high_temp') | float(default=1) - states('input_number.nursery_fan_min_temp') | float(default=0)) * 100)|int(default=0) }}"
master_bedroom_fan_speed: "{{((states('sensor.master_bedroom_multisensor_air_temperature') | float(default=0) - states('input_number.master_bedroom_fan_min_temp') | float(default=0))/(states('input_number.master_bedroom_fan_high_temp') | float(default=1) - states('input_number.master_bedroom_fan_min_temp') | float(default=0)) * 100)|int(default=0) }}"
- # - service: logbook.log
+ # - action: logbook.log
# data_template:
# name: Automatic Fan Speeds
# entity_id: automation.automatic_fan_speeds
@@ -105,7 +105,7 @@ action:
state: "on"
sequence:
- alias: "Turn nursery fan off because it is too cold outside"
- service: fan.turn_off
+ action: fan.turn_off
target:
entity_id: fan.nursery
- conditions:
@@ -127,7 +127,7 @@ action:
state: "off"
sequence:
- alias: "Turn nursery fan off because room isn't occupied"
- service: fan.turn_off
+ action: fan.turn_off
target:
entity_id: fan.nursery
- conditions:
@@ -141,7 +141,7 @@ action:
state: "on"
sequence:
- alias: "Turn nursery fan off because the room is too cool"
- service: fan.turn_off
+ action: fan.turn_off
target:
entity_id: fan.nursery
- conditions:
@@ -155,7 +155,7 @@ action:
sequence:
- alias: "Turn nursery fan on to percentage speed"
- service: fan.set_percentage
+ action: fan.set_percentage
target:
entity_id: fan.nursery
data:
@@ -172,7 +172,7 @@ action:
sequence:
- alias: "Turn nursery fan on to percentage speed"
- service: fan.set_percentage
+ action: fan.set_percentage
target:
entity_id: fan.nursery
data:
@@ -189,7 +189,7 @@ action:
sequence:
- alias: "Turn nursery fan on to percentage speed"
- service: fan.set_percentage
+ action: fan.set_percentage
target:
entity_id: fan.nursery
data:
@@ -204,7 +204,7 @@ action:
below: input_number.master_bedroom_fan_min_temp
sequence:
- alias: "Turn master bedroom fan off because it is too cold outside"
- service: fan.turn_off
+ action: fan.turn_off
target:
entity_id: fan.master_bedroom
- conditions:
@@ -226,7 +226,7 @@ action:
state: "off"
sequence:
- alias: "Turn master bedroom fan off because room isn't occupied"
- service: fan.turn_off
+ action: fan.turn_off
target:
entity_id: fan.master_bedroom
@@ -241,7 +241,7 @@ action:
state: "on"
sequence:
- alias: "Turn master bedroom fan off because the room is too cool"
- service: fan.turn_off
+ action: fan.turn_off
target:
entity_id: fan.master_bedroom
@@ -256,7 +256,7 @@ action:
sequence:
- alias: "Turn master bedroom fan on to percentage speed"
- service: fan.set_percentage
+ action: fan.set_percentage
target:
entity_id: fan.master_bedroom
data:
@@ -273,7 +273,7 @@ action:
sequence:
- alias: "Turn master bedroom fan on to percentage speed"
- service: fan.set_percentage
+ action: fan.set_percentage
target:
entity_id: fan.master_bedroom
data:
@@ -290,7 +290,7 @@ action:
sequence:
- alias: "Turn master bedroom fan on to percentage speed"
- service: fan.set_percentage
+ action: fan.set_percentage
target:
entity_id: fan.master_bedroom
data:
diff --git a/automations/things/bridget_wled_changed.yaml b/automations/things/bridget_wled_changed.yaml
index 243a16e..e6a228c 100644
--- a/automations/things/bridget_wled_changed.yaml
+++ b/automations/things/bridget_wled_changed.yaml
@@ -10,13 +10,13 @@ trigger:
action:
#- alias: "Clear segment first"
- # service: rest_command.bridget_clear
+ # action: rest_command.bridget_clear
#- alias: "Call new WLED segment settings"
- # service: "rest_command.bridget_{{states('input_select.bridget_wled') | string | lower | replace(' ','_') }}"
+ # action: "rest_command.bridget_{{states('input_select.bridget_wled') | string | lower | replace(' ','_') }}"
- alias: "Update select.white_bed_wled_preset"
- service: select.select_option
+ action: select.select_option
data:
option: "{{states('input_select.bridget_wled')}}"
target:
- entity_id: select.white_bed_wled_preset
\ No newline at end of file
+ entity_id: select.white_bed_wled_preset
diff --git a/automations/things/car/car_away.yaml b/automations/things/car/car_away.yaml
index 5c6683d..aee48a3 100644
--- a/automations/things/car/car_away.yaml
+++ b/automations/things/car/car_away.yaml
@@ -1,4 +1,4 @@
-initial_state: 'on'
+initial_state: "on"
id: automation_car_away
alias: Car Away
trigger:
@@ -6,24 +6,24 @@ trigger:
entity_id:
- binary_sensor.gray_suv_east_side
- binary_sensor.gray_suv_west_side
- to: 'off'
- for: '00:00:30'
+ to: "off"
+ for: "00:00:30"
- platform: homeassistant
event: start
condition:
- condition: state
entity_id: input_boolean.car_home
- state: 'on'
+ state: "on"
- condition: and
conditions:
- - condition: state
- entity_id: binary_sensor.gray_suv_east_side
- state: 'off'
- - condition: state
- entity_id: binary_sensor.gray_suv_west_side
- state: 'off'
+ - condition: state
+ entity_id: binary_sensor.gray_suv_east_side
+ state: "off"
+ - condition: state
+ entity_id: binary_sensor.gray_suv_west_side
+ state: "off"
action:
- - service: input_boolean.turn_off
- entity_id: input_boolean.car_home
\ No newline at end of file
+ - action: input_boolean.turn_off
+ entity_id: input_boolean.car_home
diff --git a/automations/things/car/car_home.yaml b/automations/things/car/car_home.yaml
index 980c599..d42dea4 100644
--- a/automations/things/car/car_home.yaml
+++ b/automations/things/car/car_home.yaml
@@ -1,4 +1,4 @@
-initial_state: 'on'
+initial_state: "on"
id: automation_car_home
alias: Car Home
trigger:
@@ -6,29 +6,29 @@ trigger:
entity_id:
- binary_sensor.gray_suv_east_side
- binary_sensor.gray_suv_west_side
- to: 'on'
+ to: "on"
- platform: homeassistant
event: start
condition:
- condition: state
entity_id: input_boolean.car_home
- state: 'off'
+ state: "off"
- condition: or
conditions:
- - condition: state
- entity_id: binary_sensor.gray_suv_east_side
- state: 'on'
- - condition: state
- entity_id: binary_sensor.gray_suv_west_side
- state: 'on'
- - condition: state
- entity_id: binary_sensor.east_side_vehicle_occupancy
- state: 'on'
- - condition: state
- entity_id: binary_sensor.west_side_vehicle_occupancy
- state: 'on'
+ - condition: state
+ entity_id: binary_sensor.gray_suv_east_side
+ state: "on"
+ - condition: state
+ entity_id: binary_sensor.gray_suv_west_side
+ state: "on"
+ - condition: state
+ entity_id: binary_sensor.east_side_vehicle_occupancy
+ state: "on"
+ - condition: state
+ entity_id: binary_sensor.west_side_vehicle_occupancy
+ state: "on"
action:
- - service: input_boolean.turn_on
- entity_id: input_boolean.car_home
\ No newline at end of file
+ - action: input_boolean.turn_on
+ entity_id: input_boolean.car_home
diff --git a/automations/things/dishwasher_done.yaml b/automations/things/dishwasher_done.yaml
index bebd3b8..c53f3d2 100644
--- a/automations/things/dishwasher_done.yaml
+++ b/automations/things/dishwasher_done.yaml
@@ -47,12 +47,12 @@ action:
# state: 'on'
sequence:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data: {}
target:
entity_id:
- input_boolean.announce_dishwasher_done
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
data: {}
target:
entity_id:
@@ -60,20 +60,20 @@ action:
# - input_boolean.announcement_pending
- choose:
- - conditions:
- - "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
+ - conditions:
+ - "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
- sequence:
- - service: notify.dreambox
- data:
- message: The dishwasher is done
+ sequence:
+ - action: notify.dreambox
+ data:
+ message: The dishwasher is done
- choose:
- conditions:
- - "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
+ - "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
sequence:
- - service: notify.dreamsurface
+ - action: notify.dreamsurface
data:
message: The dishwasher is done
@@ -84,7 +84,7 @@ action:
state: "off"
sequence:
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
message: The dishwasher is done
data:
@@ -95,7 +95,7 @@ action:
- delay:
minutes: 30
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data: {}
target:
entity_id:
diff --git a/automations/things/emmett_wled_changed.yaml b/automations/things/emmett_wled_changed.yaml
index cae1698..5432250 100644
--- a/automations/things/emmett_wled_changed.yaml
+++ b/automations/things/emmett_wled_changed.yaml
@@ -10,13 +10,13 @@ trigger:
action:
#- alias: "Clear segment first"
- # service: rest_command.emmett_clear
+ # action: rest_command.emmett_clear
#- alias: "Call new WLED segment settings"
- # service: "rest_command.emmett_{{states('input_select.emmett_wled') | string | lower | replace(' ','_') }}"
+ # action: "rest_command.emmett_{{states('input_select.emmett_wled') | string | lower | replace(' ','_') }}"
- alias: "Update select.black_bed_wled_preset"
- service: select.select_option
+ action: select.select_option
data:
option: "{{states('input_select.emmett_wled')}}"
target:
- entity_id: select.black_bed_wled_preset
\ No newline at end of file
+ entity_id: select.black_bed_wled_preset
diff --git a/automations/things/handle_clints_meds.yaml b/automations/things/handle_clints_meds.yaml
index 0138f30..ca8e1b7 100644
--- a/automations/things/handle_clints_meds.yaml
+++ b/automations/things/handle_clints_meds.yaml
@@ -1,6 +1,6 @@
alias: Handle Clints Meds
id: automation_handle_clints_meds
-description: 'Manage the booleans associated with Clints meds'
+description: "Manage the booleans associated with Clints meds"
trigger:
- id: homeassistant_start
platform: homeassistant
@@ -14,21 +14,21 @@ trigger:
action:
- choose:
- - conditions:
- - condition: state
- entity_id:
- - input_boolean.clint_needs_am_meds
- - input_boolean.clint_needs_pm_meds
- state: 'off'
+ - conditions:
+ - condition: state
+ entity_id:
+ - input_boolean.clint_needs_am_meds
+ - input_boolean.clint_needs_pm_meds
+ state: "off"
- sequence:
- - service: input_boolean.turn_off
- data: {}
- target:
- entity_id: input_boolean.clint_needs_meds
+ sequence:
+ - action: input_boolean.turn_off
+ data: {}
+ target:
+ entity_id: input_boolean.clint_needs_meds
default:
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
data: {}
target:
- entity_id: input_boolean.clint_needs_meds
\ No newline at end of file
+ entity_id: input_boolean.clint_needs_meds
diff --git a/automations/things/handle_dreamsurface_brightness.yaml b/automations/things/handle_dreamsurface_brightness.yaml
index b594def..239869b 100644
--- a/automations/things/handle_dreamsurface_brightness.yaml
+++ b/automations/things/handle_dreamsurface_brightness.yaml
@@ -32,7 +32,7 @@ action:
id: going_to_bed
sequence:
- - service: button.press
+ - action: button.press
data: {}
target:
entity_id: button.dreamsurface_low_brightness
@@ -42,7 +42,7 @@ action:
id: waking_up
sequence:
- - service: button.press
+ - action: button.press
data: {}
target:
- entity_id: button.dreamsurface_normal_brightness
\ No newline at end of file
+ entity_id: button.dreamsurface_normal_brightness
diff --git a/automations/things/handle_jasco_buttons.yaml b/automations/things/handle_jasco_buttons.yaml
index 69f5e90..58f0728 100644
--- a/automations/things/handle_jasco_buttons.yaml
+++ b/automations/things/handle_jasco_buttons.yaml
@@ -1,13 +1,13 @@
alias: Handle Jasco Buttons
id: automation_handle_jasco_buttons
-description: 'Tries to catch all of the buttons pressed on any of the Jasco switches.'
+description: "Tries to catch all of the buttons pressed on any of the Jasco switches."
mode: queued
variables:
# Map scanner device ID to media player entity ID
sources:
9975a90a307974388d6655c5a1bbba75: entryway_motion_switch
ac9942c01ebc59124e6ca3bb0597dc50: bathroom_vent_switch
- 5b2a9ae622deb2c1276f4bb772f709bf: blue_room_motion_switch
+ 5b2a9ae622deb2c1276f4bb772f709bf: boys_room_motion_switch
ae49ef7725fa7ca095f8bcd6bcce355e: dining_room_motion_switch
d3e866b0495a5793d8bc7d0e1530d44b: driveway_switch
64aefd7592f9792796f2b15a033b0c26: front_room_motion_switch
@@ -25,7 +25,6 @@ variables:
8d77dcb0ee41302d5de67b4c333f5099: utility_room_motion_switch
b3f9869ae389ab96de294152b43f40a3: utility_room_vent_switch
-
trigger:
- platform: event
event_type: zwave_js_value_notification
@@ -41,7 +40,7 @@ action:
value_raw: "{{ trigger.event.data.value_raw }}"
#value: "{{ tags[trigger.event.data.tag_id].light_command }}"
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Handle Jasco Buttons
entity_id: automation.handle_jasco_buttons
@@ -50,4 +49,4 @@ action:
Command Class: {{ command_class }}
Command Class Name: {{ command_class_name }}
Value: {{ value }}
- Value Raw: {{ value_raw }}
\ No newline at end of file
+ Value Raw: {{ value_raw }}
diff --git a/automations/things/handle_light_tag_scan.yaml b/automations/things/handle_light_tag_scan.yaml
index a17427a..4597443 100644
--- a/automations/things/handle_light_tag_scan.yaml
+++ b/automations/things/handle_light_tag_scan.yaml
@@ -15,7 +15,7 @@ variables:
04-AE-91-3A-B4-6D-80:
input_select: nursery_wled
select_option: Read
- light_command: 'No change'
+ light_command: "No change"
#preset: 6
#lights: light.black_bed_wled, light.white_bed_wled
@@ -23,7 +23,7 @@ variables:
04-8F-50-3A-B4-6D-80:
input_select: nursery_wled
select_option: Bedtime
- light_command: 'No change'
+ light_command: "No change"
#preset: 3
#lights: light.black_bed_wled, light.white_bed_wled
@@ -31,7 +31,7 @@ variables:
04-16-E1-3A-B4-6D-81:
input_select: bridget_wled
select_option: Bouncing Balls
- light_command: 'No change'
+ light_command: "No change"
#preset: 13
#lights: light.white_bed_wled
@@ -39,7 +39,7 @@ variables:
04-32-FB-3A-B4-6D-81:
input_select: emmett_wled
select_option: Bouncing Balls
- light_command: 'No change'
+ light_command: "No change"
#preset: 13
#lights: light.black_bed_wled
@@ -47,7 +47,7 @@ variables:
04-09-F8-3A-B4-6D-81:
input_select: bridget_wled
select_option: Fireworks
- light_command: 'No change'
+ light_command: "No change"
#preset: 4
#lights: light.white_bed_wled
@@ -55,7 +55,7 @@ variables:
04-F0-E1-3A-B4-6D-80:
input_select: emmett_wled
select_option: Fireworks
- light_command: 'No change'
+ light_command: "No change"
#preset: 4
#lights: light.black_bed_wled
@@ -63,31 +63,31 @@ variables:
04-7C-B8-3A-B4-6D-80:
input_select: nursery_wled
select_option: Twinkle
- light_command: 'No change'
+ light_command: "No change"
#preset: 2
#lights: light.black_bed_wled, light.white_bed_wled
# Lights:Dim
04-98-2F-3A-B4-6D-80:
input_select: nursery_wled
- select_option: 'Off'
- light_command: 'Dimmed'
+ select_option: "Off"
+ light_command: "Dimmed"
#preset: -2
#lights: light.black_bed_wled, light.white_bed_wled
# Lights: Normal
04-0C-22-3A-B4-6D-81:
input_select: nursery_wled
- select_option: 'Off'
- light_command: 'Auto'
+ select_option: "Off"
+ light_command: "Auto"
#preset: -1
#lights: light.black_bed_wled, light.white_bed_wled
# Lights: Off
04-6D-46-3A-B4-6D-81:
input_select: nursery_wled
- select_option: 'Off'
- light_command: 'Off'
+ select_option: "Off"
+ light_command: "Off"
#preset: 0
#lights: light.black_bed_wled, light.white_bed_wled
trigger:
@@ -106,7 +106,7 @@ action:
select_option: "{{ tags[trigger.event.data.tag_id].select_option }}"
light_command: "{{ tags[trigger.event.data.tag_id].light_command }}"
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Handle Light Tag Scan
entity_id: automation.handle_light_tag_scan
@@ -114,47 +114,46 @@ action:
Tag {{ trigger.event.data.tag_id }} scanned on device {{ trigger.event.data.device_id }}. input_select: {{ input_select }} - select_option: {{ select_option }}
- choose:
- - conditions:
- - condition: template
- value_template: "{{ light_command | string != 'No change'}}"
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.nursery_mode
- option: "{{ light_command }}"
+ - conditions:
+ - condition: template
+ value_template: "{{ light_command | string != 'No change'}}"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.nursery_mode
+ option: "{{ light_command }}"
- - conditions:
- - condition: template
- value_template: "{{ input_select | string == 'nursery_wled'}}"
- sequence:
- - service: input_select.select_option
- data:
- entity_id: input_select.nursery_wled
- option: "{{ select_option }}"
+ - conditions:
+ - condition: template
+ value_template: "{{ input_select | string == 'nursery_wled'}}"
+ sequence:
+ - action: input_select.select_option
+ data:
+ entity_id: input_select.nursery_wled
+ option: "{{ select_option }}"
- - conditions:
- - condition: template
- value_template: "{{ input_select | string == 'bridget_wled'}}"
- sequence:
- - service: select.select_option
- data:
- entity_id: select.white_bed_wled_preset
- option: "{{ select_option }}"
+ - conditions:
+ - condition: template
+ value_template: "{{ input_select | string == 'bridget_wled'}}"
+ sequence:
+ - action: select.select_option
+ data:
+ entity_id: select.white_bed_wled_preset
+ option: "{{ select_option }}"
- - conditions:
- - condition: template
- value_template: "{{ input_select | string == 'emmett_wled'}}"
- sequence:
- - service: select.select_option
- data:
- entity_id: select.black_bed_wled_preset
- option: "{{ select_option }}"
+ - conditions:
+ - condition: template
+ value_template: "{{ input_select | string == 'emmett_wled'}}"
+ sequence:
+ - action: select.select_option
+ data:
+ entity_id: select.black_bed_wled_preset
+ option: "{{ select_option }}"
- # - service: input_select.select_option
+ # - action: input_select.select_option
# data:
# option: "{{ select_option }}"
# target:
# entity_id: "input_select.{{ input_select }}"
-
- - delay: 2 # timeout before we allow processing next scan
\ No newline at end of file
+ - delay: 2 # timeout before we allow processing next scan
diff --git a/automations/things/handle_music_tag_scan.yaml b/automations/things/handle_music_tag_scan.yaml
index dc0b734..3f71a3f 100644
--- a/automations/things/handle_music_tag_scan.yaml
+++ b/automations/things/handle_music_tag_scan.yaml
@@ -7,7 +7,7 @@ max_exceeded: silent
variables:
# Map scanner device ID to media player entity ID
sources:
- 299e280bcc3579ca9b3ef714677dbf9b: nursery_hub
+ 299e280bcc3579ca9b3ef714677dbf9b: girls_room_hub
75060fd1afdd90be: upstairs_speakers
# Map tag ID to content
tags:
@@ -15,105 +15,105 @@ variables:
04-59-32-3A-B4-6D-81:
media_content_id: hL1m4__BUPs
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Three Little Birds
04-1D-6D-3A-B4-6D-80:
media_content_id: g3U6YQiIHc0
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Don't Worry Be Happy
04-D4-9A-3A-B4-6D-80:
media_content_id: qTuntvl6oLQ
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Lollipop
04-AD-10-3A-B4-6D-84:
media_content_id: Yw0qIyZMtH8
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Life is a Highway
04-F6-5D-3A-B4-6D-80:
media_content_id: 8v9V6oNGAvw
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Gummy Bear
04-6C-29-3A-B4-6D-80:
media_content_id: n-PzpfWclIE
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Yellow Submarine
04-CE-D2-3A-B4-6D-80:
media_content_id: j_JaDDcyIIU
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Day-O
04-A2-41-3A-B4-6D-80:
media_content_id: DYYkJ0kwNss
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: We Are Family
04-2B-23-3A-B4-6D-81:
media_content_id: jdsqht1m1rE
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: The Cat Came Back
04-63-CB-3A-B4-6D-81:
media_content_id: LjMffHG1V_Q
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Ooga Chaka
04-7A-CC-3A-B4-6D-81:
media_content_id: 7q0UTFq-o-o
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Big Girls Don't Cry
04-6F-2D-3A-B4-6D-80:
media_content_id: HV-9NaF4KXE
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Walk the Dinosaur
04-A3-A9-3A-B4-6D-80:
media_content_id: 3CA9prE6pKs
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Room: Master Bathroom
04-57-86-8A-21-6E-81:
media_content_id: MPREb_iNWH4dO6PQO
media_content_type: album
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Kids Playlist
04-69-CA-3A-B4-6D-80:
media_content_id: PLtfKVM9o2_5ag5qC9nHxl7tKBvGRnh2HM
media_content_type: playlist
- shuffle: 'off'
- repeat: 'all'
+ shuffle: "off"
+ repeat: "all"
trigger:
platform: event
event_type: tag_scanned
@@ -129,31 +129,31 @@ action:
shuffle: "{{ tags[trigger.event.data.tag_id].shuffle }}"
repeat: "{{ tags[trigger.event.data.tag_id].repeat }}"
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Handle Music Tag Scan
entity_id: automation.handle_music_tag_scan
message: >
Tag {{ trigger.event.data.tag_id }} scanned on device {{ trigger.event.data.device_id }}
- - service: media_player.select_source
+ - action: media_player.select_source
data:
source: "{{ source }}"
entity_id: media_player.ytube_music_player
- - service: media_player.shuffle_set
+ - action: media_player.shuffle_set
data:
shuffle: "{{ shuffle }}"
entity_id: media_player.ytube_music_player
- - service: media_player.repeat_set
+ - action: media_player.repeat_set
data:
repeat: "{{ repeat }}"
entity_id: media_player.ytube_music_player
- - service: media_player.play_media
+ - action: media_player.play_media
data:
entity_id: media_player.ytube_music_player
media_content_id: "{{ media_content_id }}"
media_content_type: "{{ media_content_type }}"
- - delay: 2 # timeout before we allow processing next scan
\ No newline at end of file
+ - delay: 2 # timeout before we allow processing next scan
diff --git a/automations/things/handle_tag_scan_example.yaml b/automations/things/handle_tag_scan_example.yaml
index 662861d..73ef879 100644
--- a/automations/things/handle_tag_scan_example.yaml
+++ b/automations/things/handle_tag_scan_example.yaml
@@ -8,7 +8,7 @@ max_exceeded: silent
variables:
# Map scanner device ID to media player entity ID
sources:
- 299e280bcc3579ca9b3ef714677dbf9b: nursery_hub
+ 299e280bcc3579ca9b3ef714677dbf9b: girls_room_hub
75060fd1afdd90be: front_room_hub
# Map tag ID to content
tags:
@@ -16,26 +16,26 @@ variables:
04-59-32-3A-B4-6D-81:
media_content_id: hL1m4__BUPs
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Three Little Birds
04-1D-6D-3A-B4-6D-80:
media_content_id: g3U6YQiIHc0
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Song: Don't Worry Be Happy
04-D4-9A-3A-B4-6D-80:
media_content_id: qTuntvl6oLQ
media_content_type: track
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
# Room: Master Bathroom
04-57-86-8A-21-6E-81:
media_content_id: MPREb_iNWH4dO6PQO
media_content_type: album
- shuffle: 'off'
- repeat: 'off'
+ shuffle: "off"
+ repeat: "off"
trigger:
platform: event
event_type: tag_scanned
@@ -51,31 +51,31 @@ action:
shuffle: "{{ tags[trigger.event.data.tag_id].shuffle }}"
repeat: "{{ tags[trigger.event.data.tag_id].repeat }}"
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Handle Tag Scan Example
entity_id: automation.handle_tag_scan_example
message: >
Tag {{ trigger.event.data.tag_id }} scanned on device {{ trigger.event.data.device_id }}
- - service: media_player.select_source
+ - action: media_player.select_source
data:
source: "{{ source }}"
entity_id: media_player.ytube_music_player
- - service: media_player.shuffle_set
+ - action: media_player.shuffle_set
data:
shuffle: "{{ shuffle }}"
entity_id: media_player.ytube_music_player
- - service: media_player.repeat_set
+ - action: media_player.repeat_set
data:
repeat: "{{ repeat }}"
entity_id: media_player.ytube_music_player
- - service: media_player.play_media
+ - action: media_player.play_media
data:
entity_id: media_player.ytube_music_player
media_content_id: "{{ media_content_id }}"
media_content_type: "{{ media_content_type }}"
- - delay: 2 # timeout before we allow processing next scan
\ No newline at end of file
+ - delay: 2 # timeout before we allow processing next scan
diff --git a/automations/things/handle_video_tag_scan.yaml b/automations/things/handle_video_tag_scan.yaml
index 191aa3d..9d3a71f 100644
--- a/automations/things/handle_video_tag_scan.yaml
+++ b/automations/things/handle_video_tag_scan.yaml
@@ -7,7 +7,7 @@ max_exceeded: silent
variables:
# Map scanner device ID to media player entity ID
devices:
- 299e280bcc3579ca9b3ef714677dbf9b: media_player.nursery_hub
+ 299e280bcc3579ca9b3ef714677dbf9b: media_player.girls_room_hub
# Map tag ID to content
tags:
@@ -54,21 +54,21 @@ action:
video_id: "{{ tags[trigger.event.data.tag_id].video_id }}"
playlist_id: "{{ tags[trigger.event.data.tag_id].playlist_id }}"
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Handle Video Tag Scan
entity_id: automation.handle_video_tag_scan
message: >
Tag {{ trigger.event.data.tag_id }} scanned on device {{ trigger.event.data.device_id }}
- - service: media_player.play_media
+ - action: media_player.play_media
data:
entity_id: "{{ device }}"
media_content_id: '
{
- "app_name": "{{ app_name }}",
- "media_id": "{{ video_id }}",
- "playlist_id": "{{ playlist_id }}"
+ "app_name": "{{ app_name }}",
+ "media_id": "{{ video_id }}",
+ "playlist_id": "{{ playlist_id }}"
}'
media_content_type: cast
- - delay: 2 # timeout before we allow processing next scan
\ No newline at end of file
+ - delay: 2 # timeout before we allow processing next scan
diff --git a/automations/things/keurig_done.yaml b/automations/things/keurig_done.yaml
index 11986f3..6eb68d1 100644
--- a/automations/things/keurig_done.yaml
+++ b/automations/things/keurig_done.yaml
@@ -52,6 +52,6 @@ action:
state: "playing"
sequence:
- alias: "Announce that the coffee is ready"
- service: script.make_clever_announcement
+ action: script.make_clever_announcement
data:
media_content_id: media-source://media_source/tts/coffee_ready.mp3
diff --git a/automations/things/kitchen_fridge_door.yaml b/automations/things/kitchen_fridge_door.yaml
index f490e06..7af7665 100644
--- a/automations/things/kitchen_fridge_door.yaml
+++ b/automations/things/kitchen_fridge_door.yaml
@@ -44,7 +44,7 @@ action:
state: "on"
sequence:
- - service: script.make_clever_announcement
+ - action: script.make_clever_announcement
data:
media_content_id: media-source://media_source/tts/kitchen_fridge_open_too_long.mp3
@@ -55,7 +55,7 @@ action:
state: "off"
sequence:
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
message: The kitchen fridge has been open for too long!
diff --git a/automations/things/master_bedroom_dimmer_on.yaml b/automations/things/master_bedroom_dimmer_on.yaml
index 10f4c94..6c350b8 100644
--- a/automations/things/master_bedroom_dimmer_on.yaml
+++ b/automations/things/master_bedroom_dimmer_on.yaml
@@ -17,8 +17,8 @@ condition:
action:
- alias: "Set Master Bedroom Dimmer to 255"
- service: light.turn_on
+ action: light.turn_on
target:
entity_id: light.master_bedroom_dimmer_main
data:
- brightness: 255
\ No newline at end of file
+ brightness: 255
diff --git a/automations/things/new_mail.yaml b/automations/things/new_mail.yaml
index 378102c..8bcbb92 100644
--- a/automations/things/new_mail.yaml
+++ b/automations/things/new_mail.yaml
@@ -22,24 +22,22 @@ trigger:
action:
- choose:
- - conditions:
- - condition: numeric_state
- entity_id: sensor.mail_usps_mail
- above: 0
+ - conditions:
+ - condition: numeric_state
+ entity_id: sensor.mail_usps_mail
+ above: 0
- sequence:
- - service: input_boolean.turn_on
- target:
- entity_id: input_boolean.incoming_mail
-
- - conditions:
- - condition: numeric_state
- entity_id: sensor.mail_usps_mail
- below: 1
-
- sequence:
- - service: input_boolean.turn_off
- target:
- entity_id: input_boolean.incoming_mail
+ sequence:
+ - action: input_boolean.turn_on
+ target:
+ entity_id: input_boolean.incoming_mail
+ - conditions:
+ - condition: numeric_state
+ entity_id: sensor.mail_usps_mail
+ below: 1
+ sequence:
+ - action: input_boolean.turn_off
+ target:
+ entity_id: input_boolean.incoming_mail
diff --git a/automations/things/nursery_dimmer_on.yaml b/automations/things/nursery_dimmer_on.yaml
index bd3ed07..84dc279 100644
--- a/automations/things/nursery_dimmer_on.yaml
+++ b/automations/things/nursery_dimmer_on.yaml
@@ -17,8 +17,8 @@ condition:
action:
- alias: "Set Nursery Dimmer to 255"
- service: light.turn_on
+ action: light.turn_on
target:
entity_id: light.nursery_dimmer_main
data:
- brightness: 255
\ No newline at end of file
+ brightness: 255
diff --git a/automations/things/nursery_wled_changed.yaml b/automations/things/nursery_wled_changed.yaml
index 230a043..b4c0161 100644
--- a/automations/things/nursery_wled_changed.yaml
+++ b/automations/things/nursery_wled_changed.yaml
@@ -10,15 +10,15 @@ trigger:
action:
#- alias: "Clear segment first"
- # service: rest_command.bridget_clear
+ # action: rest_command.bridget_clear
#- alias: "Call new WLED segment settings"
- # service: "rest_command.bridget_{{states('input_select.bridget_wled') | string | lower | replace(' ','_') }}"
+ # action: "rest_command.bridget_{{states('input_select.bridget_wled') | string | lower | replace(' ','_') }}"
- alias: "Update wled presets for both beds"
- service: select.select_option
+ action: select.select_option
data:
option: "{{states('input_select.nursery_wled')}}"
target:
entity_id:
- select.black_bed_wled_preset
- - select.white_bed_wled_preset
\ No newline at end of file
+ - select.white_bed_wled_preset
diff --git a/automations/things/reset_climate.yaml b/automations/things/reset_climate.yaml
index c5af5e6..eb7f793 100644
--- a/automations/things/reset_climate.yaml
+++ b/automations/things/reset_climate.yaml
@@ -4,24 +4,24 @@ id: automation_reset_climate
trigger:
- platform: state
entity_id: group.my_hvac_affecting_openings
- to: 'off'
- for: '00:00:03'
+ to: "off"
+ for: "00:00:03"
condition:
- condition: state
entity_id: group.my_hvac_affecting_openings
- state: 'off'
+ state: "off"
- condition: state
entity_id: climate.thermostat
- state: 'off'
+ state: "off"
action:
- - service: climate.turn_on
+ - action: climate.turn_on
target:
entity_id: climate.thermostat
- - service: climate.set_preset_mode
+ - action: climate.set_preset_mode
target:
entity_id: climate.thermostat
data:
- preset_mode: 'auto'
\ No newline at end of file
+ preset_mode: "auto"
diff --git a/automations/things/restart_modem.yaml b/automations/things/restart_modem.yaml
index 71525a5..40641fc 100644
--- a/automations/things/restart_modem.yaml
+++ b/automations/things/restart_modem.yaml
@@ -12,42 +12,42 @@ trigger:
- id: boolean_turned_on
platform: state
entity_id: input_boolean.restart_modem
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
action:
- choose:
- - conditions:
- - condition: trigger
- id: button_pressed
- sequence:
- - alias: Create a persistent notification for testing
- service: persistent_notification.create
- data:
- message: "The modem would have restarted at {{now()}}"
- title: "Modem restarting"
+ - conditions:
+ - condition: trigger
+ id: button_pressed
+ sequence:
+ - alias: Create a persistent notification for testing
+ action: persistent_notification.create
+ data:
+ message: "The modem would have restarted at {{now()}}"
+ title: "Modem restarting"
- - conditions:
- - condition: trigger
- id: boolean_turned_on
- sequence:
- - alias: Turn off switch controlling modem
- service: switch.turn_off
- data: {}
- target:
- entity_id: switch.furnace_room_plug
+ - conditions:
+ - condition: trigger
+ id: boolean_turned_on
+ sequence:
+ - alias: Turn off switch controlling modem
+ action: switch.turn_off
+ data: {}
+ target:
+ entity_id: switch.furnace_room_plug
- - alias: Wait for 10 seconds
- delay: '00:00:10'
+ - alias: Wait for 10 seconds
+ delay: "00:00:10"
- - alias: Turn on switch controlling modem
- service: switch.turn_on
- data: {}
- target:
- entity_id: switch.furnace_room_plug
+ - alias: Turn on switch controlling modem
+ action: switch.turn_on
+ data: {}
+ target:
+ entity_id: switch.furnace_room_plug
- - alias: Turn of input_boolean controlling the restart
- service: input_boolean.turn_off
- data: {}
- target:
- entity_id: input_boolean.restart_modem
\ No newline at end of file
+ - alias: Turn of input_boolean controlling the restart
+ action: input_boolean.turn_off
+ data: {}
+ target:
+ entity_id: input_boolean.restart_modem
diff --git a/automations/things/restart_network.yaml b/automations/things/restart_network.yaml
index 4b66531..31471e7 100644
--- a/automations/things/restart_network.yaml
+++ b/automations/things/restart_network.yaml
@@ -12,58 +12,57 @@ trigger:
- id: boolean_turned_on
platform: state
entity_id: input_boolean.restart_network
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
action:
- choose:
- - conditions:
- - condition: trigger
- id: button_pressed
- sequence:
- - alias: Create a persistent notification for testing
- service: persistent_notification.create
- data:
- message: "The network would have restarted at {{now()}}"
- title: "Network restarting"
+ - conditions:
+ - condition: trigger
+ id: button_pressed
+ sequence:
+ - alias: Create a persistent notification for testing
+ action: persistent_notification.create
+ data:
+ message: "The network would have restarted at {{now()}}"
+ title: "Network restarting"
- - conditions:
- - condition: trigger
- id: boolean_turned_on
- sequence:
- - alias: Turn off switch controlling router
- service: switch.turn_off
- data: {}
- target:
- entity_id: switch.computer_area_double_power_plug_router
+ - conditions:
+ - condition: trigger
+ id: boolean_turned_on
+ sequence:
+ - alias: Turn off switch controlling router
+ action: switch.turn_off
+ data: {}
+ target:
+ entity_id: switch.computer_area_double_power_plug_router
- - alias: Turn off switch controlling modem
- service: switch.turn_off
- data: {}
- target:
- entity_id: switch.computer_area_double_power_plug_modem
+ - alias: Turn off switch controlling modem
+ action: switch.turn_off
+ data: {}
+ target:
+ entity_id: switch.computer_area_double_power_plug_modem
- - alias: Waiting for 10 seconds
- delay: '00:00:10'
+ - alias: Waiting for 10 seconds
+ delay: "00:00:10"
- - alias: Turn on switch controlling modem
- service: switch.turn_on
- data: {}
- target:
- entity_id: switch.computer_area_double_power_plug_modem
+ - alias: Turn on switch controlling modem
+ action: switch.turn_on
+ data: {}
+ target:
+ entity_id: switch.computer_area_double_power_plug_modem
- - alias: Waiting for 10 seconds
- delay: '00:00:10'
+ - alias: Waiting for 10 seconds
+ delay: "00:00:10"
- - alias: Turn on switch controlling router
- service: switch.turn_on
- data: {}
- target:
- entity_id: switch.computer_area_double_power_plug_router
-
- - alias: Turn of input_boolean controlling the restart
- service: input_boolean.turn_off
- data: {}
- target:
- entity_id: input_boolean.restart_network
+ - alias: Turn on switch controlling router
+ action: switch.turn_on
+ data: {}
+ target:
+ entity_id: switch.computer_area_double_power_plug_router
+ - alias: Turn of input_boolean controlling the restart
+ action: input_boolean.turn_off
+ data: {}
+ target:
+ entity_id: input_boolean.restart_network
diff --git a/automations/things/restart_router.yaml b/automations/things/restart_router.yaml
index 823b0d2..945e48e 100644
--- a/automations/things/restart_router.yaml
+++ b/automations/things/restart_router.yaml
@@ -12,44 +12,41 @@ trigger:
- id: boolean_turned_on
platform: state
entity_id: input_boolean.restart_router
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
action:
- choose:
- - conditions:
- - condition: trigger
- id: button_pressed
- sequence:
- - alias: Create a persistent notification for testing
- service: persistent_notification.create
- data:
- message: "The router would have restarted at {{now()}}"
- title: "Router restarting"
- - conditions:
- - condition: trigger
- id: boolean_turned_on
- sequence:
- - alias: Turn off switch controlling router
- service: switch.turn_off
- data: {}
- target:
- entity_id: switch.computer_area_double_power_plug_router
-
- - alias: Wait for 10 seconds
- delay: '00:00:10'
-
- - alias: Turn on switch controlling router
- service: switch.turn_on
- data: {}
- target:
- entity_id: switch.computer_area_double_power_plug_router
-
- - alias: Turn of input_boolean controlling the restart
- service: input_boolean.turn_off
- data: {}
- target:
- entity_id: input_boolean.restart_router
+ - conditions:
+ - condition: trigger
+ id: button_pressed
+ sequence:
+ - alias: Create a persistent notification for testing
+ action: persistent_notification.create
+ data:
+ message: "The router would have restarted at {{now()}}"
+ title: "Router restarting"
+ - conditions:
+ - condition: trigger
+ id: boolean_turned_on
+ sequence:
+ - alias: Turn off switch controlling router
+ action: switch.turn_off
+ data: {}
+ target:
+ entity_id: switch.computer_area_double_power_plug_router
+ - alias: Wait for 10 seconds
+ delay: "00:00:10"
+ - alias: Turn on switch controlling router
+ action: switch.turn_on
+ data: {}
+ target:
+ entity_id: switch.computer_area_double_power_plug_router
+ - alias: Turn of input_boolean controlling the restart
+ action: input_boolean.turn_off
+ data: {}
+ target:
+ entity_id: input_boolean.restart_router
diff --git a/automations/things/steam_vr_off copy.yaml b/automations/things/steam_vr_off copy.yaml
index 3585e9b..8a3490c 100644
--- a/automations/things/steam_vr_off copy.yaml
+++ b/automations/things/steam_vr_off copy.yaml
@@ -13,10 +13,10 @@ condition:
- alias: "VR switch is powered off"
condition: state
entity_id: switch.virtual_reality
- state: 'off'
+ state: "off"
action:
- alias: "Turn on the VR Headset plug"
- service: switch.turn_on
+ action: switch.turn_on
target:
entity_id: switch.virtual_reality
diff --git a/automations/things/steam_vr_off.yaml b/automations/things/steam_vr_off.yaml
index d04cec6..2f846e2 100644
--- a/automations/things/steam_vr_off.yaml
+++ b/automations/things/steam_vr_off.yaml
@@ -15,10 +15,10 @@ condition:
- alias: "VR switch is powered on"
condition: state
entity_id: switch.virtual_reality
- state: 'on'
+ state: "on"
action:
- alias: "Turn off the VR Headset plug"
- service: switch.turn_off
+ action: switch.turn_off
target:
entity_id: switch.virtual_reality
diff --git a/automations/things/trash_can/take_trash_out.yaml b/automations/things/trash_can/take_trash_out.yaml
index 2f219e9..8b79a62 100644
--- a/automations/things/trash_can/take_trash_out.yaml
+++ b/automations/things/trash_can/take_trash_out.yaml
@@ -27,10 +27,10 @@ trigger:
# state: 'today'
action:
-- choose:
- - conditions:
- - condition: trigger
- id: trash-day-end
- sequence:
- - service: input_boolean.turn_off
- entity_id: input_boolean.trash_out
+ - choose:
+ - conditions:
+ - condition: trigger
+ id: trash-day-end
+ sequence:
+ - action: input_boolean.turn_off
+ entity_id: input_boolean.trash_out
diff --git a/automations/things/tumble_dryer_done.yaml b/automations/things/tumble_dryer_done.yaml
index 8d1af37..cb7315f 100644
--- a/automations/things/tumble_dryer_done.yaml
+++ b/automations/things/tumble_dryer_done.yaml
@@ -56,12 +56,12 @@ action:
# state: 'on'
sequence:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data: {}
target:
entity_id:
- input_boolean.announce_dryer_done
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
data: {}
target:
entity_id:
@@ -69,20 +69,20 @@ action:
# - input_boolean.announcement_pending
- choose:
- - conditions:
- - "{{ is_state('binary_sensor.dreambox_recently_active','on') }}"
+ - conditions:
+ - "{{ is_state('binary_sensor.dreambox_recently_active','on') }}"
- sequence:
- - service: notify.dreambox
- data:
- message: The dryer is done
+ sequence:
+ - action: notify.dreambox
+ data:
+ message: The dryer is done
- choose:
- conditions:
- - "{{ is_state('binary_sensor.dreamsurface_recently_active','on') }}"
+ - "{{ is_state('binary_sensor.dreamsurface_recently_active','on') }}"
sequence:
- - service: notify.dreamsurface
+ - action: notify.dreamsurface
data:
message: The dryer is done
@@ -93,7 +93,7 @@ action:
state: "off"
sequence:
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
message: The dryer is done
data:
@@ -104,7 +104,7 @@ action:
- delay:
minutes: 15
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data: {}
target:
entity_id:
diff --git a/automations/things/washing_machine_done.yaml b/automations/things/washing_machine_done.yaml
index 9cef890..ba85122 100644
--- a/automations/things/washing_machine_done.yaml
+++ b/automations/things/washing_machine_done.yaml
@@ -56,12 +56,12 @@ action:
# state: 'on'
sequence:
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data: {}
target:
entity_id:
- input_boolean.announce_washing_machine_done
- - service: input_boolean.turn_on
+ - action: input_boolean.turn_on
data: {}
target:
entity_id:
@@ -69,20 +69,20 @@ action:
# - input_boolean.announcement_pending
- choose:
- - conditions:
- - "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
+ - conditions:
+ - "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
- sequence:
- - service: notify.dreambox
- data:
- message: The washing machine is done
+ sequence:
+ - action: notify.dreambox
+ data:
+ message: The washing machine is done
- choose:
- conditions:
- - "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
+ - "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
sequence:
- - service: notify.dreamsurface
+ - action: notify.dreamsurface
data:
message: The washing machine is done
@@ -93,7 +93,7 @@ action:
state: "off"
sequence:
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
message: The washing machine is done
data:
@@ -104,7 +104,7 @@ action:
- delay:
minutes: 15
- - service: input_boolean.turn_off
+ - action: input_boolean.turn_off
data: {}
target:
entity_id:
diff --git a/automations/time_of_day/early_afternoon_on.yaml b/automations/time_of_day/early_afternoon_on.yaml
index 0e6f01d..e19d74d 100644
--- a/automations/time_of_day/early_afternoon_on.yaml
+++ b/automations/time_of_day/early_afternoon_on.yaml
@@ -6,26 +6,26 @@ mode: single
trigger:
- platform: state
entity_id: binary_sensor.early_afternoon
- to: 'on'
+ to: "on"
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.early_afternoon
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_select.time_of_day
- state: Early Afternoon
+ state: Early Afternoon
action:
- # - service: homeassistant.turn_on
+ # - action: homeassistant.turn_on
# entity_id:
# - input_boolean.clint_needs_pm_meds
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.time_of_day
option: Early Afternoon
- - delay: '00:00:30'
\ No newline at end of file
+ - delay: "00:00:30"
diff --git a/automations/time_of_day/early_evening_on.yaml b/automations/time_of_day/early_evening_on.yaml
index cc8a4e3..cc8689b 100644
--- a/automations/time_of_day/early_evening_on.yaml
+++ b/automations/time_of_day/early_evening_on.yaml
@@ -5,22 +5,22 @@ mode: single
trigger:
- platform: state
entity_id: binary_sensor.early_evening
- to: 'on'
+ to: "on"
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.early_evening
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_select.time_of_day
- state: Early Evening
+ state: Early Evening
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.time_of_day
option: Early Evening
- - delay: '00:00:30'
\ No newline at end of file
+ - delay: "00:00:30"
diff --git a/automations/time_of_day/early_morning_on.yaml b/automations/time_of_day/early_morning_on.yaml
index 911dd23..4635d8f 100644
--- a/automations/time_of_day/early_morning_on.yaml
+++ b/automations/time_of_day/early_morning_on.yaml
@@ -5,29 +5,29 @@ mode: single
trigger:
- platform: state
entity_id: binary_sensor.early_morning
- to: 'on'
+ to: "on"
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.early_morning
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_select.time_of_day
- state: Early Morning
+ state: Early Morning
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.time_of_day
option: Early Morning
- - service: homeassistant.turn_on
+ - action: homeassistant.turn_on
entity_id:
- input_boolean.clint_needs_am_meds
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
data:
entity_id:
- input_boolean.mail_checked
- - delay: '00:00:30'
\ No newline at end of file
+ - delay: "00:00:30"
diff --git a/automations/time_of_day/evening_on.yaml b/automations/time_of_day/evening_on.yaml
index 094e016..a69d2f0 100644
--- a/automations/time_of_day/evening_on.yaml
+++ b/automations/time_of_day/evening_on.yaml
@@ -5,22 +5,22 @@ mode: single
trigger:
- platform: state
entity_id: binary_sensor.evening
- to: 'on'
+ to: "on"
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.evening
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_select.time_of_day
- state: Evening
+ state: Evening
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.time_of_day
option: Evening
- - delay: '00:00:30'
\ No newline at end of file
+ - delay: "00:00:30"
diff --git a/automations/time_of_day/late_afternoon_on.yaml b/automations/time_of_day/late_afternoon_on.yaml
index 12637b3..747e164 100644
--- a/automations/time_of_day/late_afternoon_on.yaml
+++ b/automations/time_of_day/late_afternoon_on.yaml
@@ -5,22 +5,22 @@ mode: single
trigger:
- platform: state
entity_id: binary_sensor.late_afternoon
- to: 'on'
+ to: "on"
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.late_afternoon
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_select.time_of_day
- state: Late Afternoon
+ state: Late Afternoon
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.time_of_day
option: Late Afternoon
- - delay: '00:00:30'
\ No newline at end of file
+ - delay: "00:00:30"
diff --git a/automations/time_of_day/late_evening_on.yaml b/automations/time_of_day/late_evening_on.yaml
index 452f460..da25106 100644
--- a/automations/time_of_day/late_evening_on.yaml
+++ b/automations/time_of_day/late_evening_on.yaml
@@ -5,72 +5,72 @@ mode: single
trigger:
- platform: state
entity_id: binary_sensor.late_evening
- to: 'on'
+ to: "on"
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.late_evening
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_select.time_of_day
- state: Late Evening
+ state: Late Evening
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.time_of_day
option: Late Evening
# The kids should be asleep by now...
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.emmett_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.emmett_in_bed
- state: 'off'
- sequence:
- - service: homeassistant.turn_on
- entity_id: input_boolean.emmett_in_bed
- - service: homeassistant.turn_off
- entity_id: input_boolean.emmett_is_awake
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.emmett_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.emmett_in_bed
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.emmett_in_bed
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.emmett_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.bridget_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.bridget_in_bed
- state: 'off'
- sequence:
- - service: homeassistant.turn_on
- entity_id: input_boolean.bridget_in_bed
- - service: homeassistant.turn_off
- entity_id: input_boolean.bridget_is_awake
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.bridget_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.bridget_in_bed
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.bridget_in_bed
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.bridget_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.ebin_in_bed
- state: 'on'
- - condition: state
- entity_id: input_boolean.ebin_in_bed
- state: 'off'
- sequence:
- - service: homeassistant.turn_on
- entity_id: input_boolean.ebin_in_bed
- - service: homeassistant.turn_off
- entity_id: input_boolean.ebin_is_awake
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.ebin_in_bed
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.ebin_in_bed
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.ebin_in_bed
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.ebin_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: media_player.nursery_hub
- state: 'playing'
- sequence:
- - service: media_player.turn_off
- entity_id: media_player.nursery_hub
+ - conditions:
+ - condition: state
+ entity_id: media_player.girls_room_hub
+ state: "playing"
+ sequence:
+ - action: media_player.turn_off
+ entity_id: media_player.girls_room_hub
- - delay: '00:00:30'
\ No newline at end of file
+ - delay: "00:00:30"
diff --git a/automations/time_of_day/late_morning_on.yaml b/automations/time_of_day/late_morning_on.yaml
index c206155..7418019 100644
--- a/automations/time_of_day/late_morning_on.yaml
+++ b/automations/time_of_day/late_morning_on.yaml
@@ -5,115 +5,115 @@ mode: single
trigger:
- platform: state
entity_id: binary_sensor.late_morning
- to: 'on'
+ to: "on"
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.late_morning
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_select.time_of_day
- state: Late Morning
+ state: Late Morning
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.time_of_day
option: Late Morning
# Everyone should be awake by now...
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.clint_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.clint_in_bed
- state: 'on'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.clint_in_bed
- - service: homeassistant.turn_on
- entity_id: input_boolean.clint_is_awake
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.clint_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.clint_in_bed
+ state: "on"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.clint_in_bed
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.clint_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.emmett_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.emmett_in_bed
- state: 'on'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.emmett_in_bed
- - service: homeassistant.turn_on
- entity_id: input_boolean.emmett_is_awake
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.emmett_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.emmett_in_bed
+ state: "on"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.emmett_in_bed
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.emmett_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.bridget_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.bridget_in_bed
- state: 'on'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.bridget_in_bed
- - service: homeassistant.turn_on
- entity_id: input_boolean.bridget_is_awake
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.bridget_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.bridget_in_bed
+ state: "on"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.bridget_in_bed
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.bridget_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.kristy_in_bed
- state: 'on'
- - condition: state
- entity_id: input_boolean.kristy_in_bed
- state: 'on'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.kristy_in_bed
- - service: homeassistant.turn_on
- entity_id: input_boolean.kristy_is_awake
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.kristy_in_bed
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.kristy_in_bed
+ state: "on"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.kristy_in_bed
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.kristy_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.marshall_in_bed
- state: 'on'
- - condition: state
- entity_id: input_boolean.marshall_in_bed
- state: 'on'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.marshall_in_bed
- - service: homeassistant.turn_on
- entity_id: input_boolean.marshall_is_awake
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.marshall_in_bed
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.marshall_in_bed
+ state: "on"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.marshall_in_bed
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.marshall_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.tess_in_bed
- state: 'on'
- - condition: state
- entity_id: input_boolean.tess_in_bed
- state: 'on'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.tess_in_bed
- - service: homeassistant.turn_on
- entity_id: input_boolean.tess_is_awake
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.tess_in_bed
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.tess_in_bed
+ state: "on"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.tess_in_bed
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.tess_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.ebin_in_bed
- state: 'on'
- - condition: state
- entity_id: input_boolean.ebin_in_bed
- state: 'on'
- sequence:
- - service: homeassistant.turn_off
- entity_id: input_boolean.ebin_in_bed
- - service: homeassistant.turn_on
- entity_id: input_boolean.ebin_is_awake
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.ebin_in_bed
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.ebin_in_bed
+ state: "on"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.ebin_in_bed
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.ebin_is_awake
- - delay: '00:00:30'
\ No newline at end of file
+ - delay: "00:00:30"
diff --git a/automations/time_of_day/morning_on.yaml b/automations/time_of_day/morning_on.yaml
index ac0808f..c81a9b1 100644
--- a/automations/time_of_day/morning_on.yaml
+++ b/automations/time_of_day/morning_on.yaml
@@ -5,26 +5,25 @@ mode: single
trigger:
- platform: state
entity_id: binary_sensor.morning
- to: 'on'
+ to: "on"
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.morning
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_select.time_of_day
- state: Morning
+ state: Morning
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.time_of_day
option: Morning
-
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
entity_id: input_boolean.nursery_asleep
- - delay: '00:00:30'
\ No newline at end of file
+ - delay: "00:00:30"
diff --git a/automations/time_of_day/night_on.yaml b/automations/time_of_day/night_on.yaml
index 19a0102..3435024 100644
--- a/automations/time_of_day/night_on.yaml
+++ b/automations/time_of_day/night_on.yaml
@@ -5,49 +5,49 @@ mode: single
trigger:
- platform: state
entity_id: binary_sensor.night
- to: 'on'
+ to: "on"
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.night
- state: 'on'
+ state: "on"
- condition: state
entity_id: input_select.time_of_day
- state: Night
+ state: Night
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.time_of_day
option: Night
- - delay: '00:00:30'
+ - delay: "00:00:30"
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.marshall_home
- state: 'on'
- - condition: state
- entity_id: input_boolean.marshall_in_bed
- state: 'off'
- sequence:
- - service: homeassistant.turn_on
- entity_id: input_boolean.marshall_in_bed
- - service: homeassistant.turn_off
- entity_id: input_boolean.marshall_is_awake
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.marshall_home
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.marshall_in_bed
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.marshall_in_bed
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.marshall_is_awake
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.tess_in_bed
- state: 'on'
- - condition: state
- entity_id: input_boolean.tess_in_bed
- state: 'off'
- sequence:
- - service: homeassistant.turn_on
- entity_id: input_boolean.tess_in_bed
- - service: homeassistant.turn_off
- entity_id: input_boolean.tess_is_awake
\ No newline at end of file
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.tess_in_bed
+ state: "on"
+ - condition: state
+ entity_id: input_boolean.tess_in_bed
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_on
+ entity_id: input_boolean.tess_in_bed
+ - action: homeassistant.turn_off
+ entity_id: input_boolean.tess_is_awake
diff --git a/automations/time_of_day/set_time_of_day.yaml b/automations/time_of_day/set_time_of_day.yaml
index 2637788..d85e471 100644
--- a/automations/time_of_day/set_time_of_day.yaml
+++ b/automations/time_of_day/set_time_of_day.yaml
@@ -4,7 +4,7 @@ trigger:
- platform: homeassistant
event: start
action:
- - service: input_select.select_option
+ - action: input_select.select_option
data_template:
entity_id: input_select.time_of_day
option: >-
@@ -26,4 +26,4 @@ action:
Late Evening
{% else %}
Night
- {% endif %}
\ No newline at end of file
+ {% endif %}
diff --git a/blueprints/automation/Ante987/speaker_volume.yaml b/blueprints/automation/Ante987/speaker_volume.yaml
index ca015cc..6c43a19 100644
--- a/blueprints/automation/Ante987/speaker_volume.yaml
+++ b/blueprints/automation/Ante987/speaker_volume.yaml
@@ -12,13 +12,13 @@ blueprint:
daytime_ends:
name: Time of night
description: Change level depending of time of day, Nighttime level
- default: '20:00:00'
+ default: "20:00:00"
selector:
time: {}
volume_day:
name: Set volume day
description: The volume you want your media player to be reset to
- default: '0.5'
+ default: "0.5"
selector:
number:
min: 0.0
@@ -28,7 +28,7 @@ blueprint:
volume_night:
name: Set volume night
description: The volume you want your media player to be reset to
- default: '0.1'
+ default: "0.1"
selector:
number:
min: 0.0
@@ -37,7 +37,8 @@ blueprint:
mode: slider
filter:
name: Filter players
- description: Players not to be reset or not. Only entities are supported, devices
+ description:
+ Players not to be reset or not. Only entities are supported, devices
must be expanded!
default:
entity_id: []
@@ -53,8 +54,9 @@ blueprint:
boolean: {}
source_url: https://gist.github.com/Ante987/80c376901fa5f2bd9d2197734ec49e80
variables:
- filter: !input 'filter'
- player: "{% set result = namespace(player=[]) %} {% for state in states.media_player\
+ filter: !input "filter"
+ player:
+ "{% set result = namespace(player=[]) %} {% for state in states.media_player\
\ %}\n {% if include_exclude == 'true' %}\n {% if not state.state == 'playing'\
\ and not state.entity_id in filter.entity_id %}\n {% set result.player =\
\ result.player + [state.entity_id] %}\n {% endif %}\n {% else %}\n {%\
@@ -62,24 +64,24 @@ variables:
\ {% set result.player = result.player + [state.entity_id] %}\n {% endif\
\ %}\n {% endif %}\n{% endfor %} {{result.player|join(',')}}\n"
trigger:
-- platform: time
- at: !input 'daytime_starts'
-- platform: time
- at: !input 'daytime_ends'
+ - platform: time
+ at: !input "daytime_starts"
+ - platform: time
+ at: !input "daytime_ends"
action:
-- choose:
- - conditions:
- - after: !input 'daytime_starts'
- before: !input 'daytime_ends'
- condition: time
- sequence:
- - service: media_player.volume_set
- data_template:
- entity_id: '{{ player }}'
- volume_level: !input 'volume_day'
- default:
- - service: media_player.volume_set
- data_template:
- entity_id: '{{ player }}'
- volume_level: !input 'volume_night'
+ - choose:
+ - conditions:
+ - after: !input "daytime_starts"
+ before: !input "daytime_ends"
+ condition: time
+ sequence:
+ - action: media_player.volume_set
+ data_template:
+ entity_id: "{{ player }}"
+ volume_level: !input "volume_day"
+ default:
+ - action: media_player.volume_set
+ data_template:
+ entity_id: "{{ player }}"
+ volume_level: !input "volume_night"
mode: single
diff --git a/blueprints/automation/SirGoodenough/Zigbee2MQTT-Xiaomi_Cube_Controller_MQTT_Triggered.yaml b/blueprints/automation/SirGoodenough/Zigbee2MQTT-Xiaomi_Cube_Controller_MQTT_Triggered.yaml
index 585735e..ceaddba 100644
--- a/blueprints/automation/SirGoodenough/Zigbee2MQTT-Xiaomi_Cube_Controller_MQTT_Triggered.yaml
+++ b/blueprints/automation/SirGoodenough/Zigbee2MQTT-Xiaomi_Cube_Controller_MQTT_Triggered.yaml
@@ -1,7 +1,8 @@
blueprint:
name: Aqara Magic Cube Zigbee2MQTT MQTT Triggered - 2024-06-02
author: SirGoodenough
- description: "This Blueprint uses a Zigbee2MQTT built sensor to sort out the 38(+54)
+ description:
+ "This Blueprint uses a Zigbee2MQTT built sensor to sort out the 38(+54)
unique commands available from the Xiaomi Magic Cube Remote. (Some unique commands
are available thru templating only. See the related document.)\nThe split out
of functions gives you the ability to assign local scripts or functions to do
@@ -54,7 +55,8 @@ blueprint:
name: "Required input \U0001F440"
icon: mdi:alert-box
collapsed: false
- description: "This blueprint has been known to freak out when there are spaces
+ description:
+ "This blueprint has been known to freak out when there are spaces
or odd characters\n in the MQTT Topic. Make sure there are no spaces, ONLY
a single word,\n and ONLY A thru Z, a thru z, and 0 thru 9 in the topic.\n
\ (``` / ``` is ok between device and topic)\n\n If there are other characters,
@@ -68,7 +70,8 @@ blueprint:
input:
topic:
name: Topic
- description: "The main MQTT Topic for your cube. \nDetails on finding the
+ description:
+ "The main MQTT Topic for your cube. \nDetails on finding the
correct topic can be found here: \n[Find my Cube Topic](https://github.com/SirGoodenough/HA_Blueprints/blob/master/Automations/Zigbee2MQTT%20-%20Xiaomi%20Cube%20Controller%20MQTT%20Triggered.md#-to-make-the-blueprint-work-it-will-need)\n"
default: zigbee2mqtt/?
selector:
@@ -79,7 +82,8 @@ blueprint:
name: "Optional conditions\U0001F913"
icon: mdi:alert-octagon-outline
collapsed: true
- description: "This input was added by user request. With it you can add your
+ description:
+ "This input was added by user request. With it you can add your
own condition.\n If you only want the cube to work like this in the morning,\n
\ then after 6pm you want it to do different actions, add a condition that\n
\ will only let this run from 6am until 6pm. Then have another copy of\n the
@@ -89,7 +93,8 @@ blueprint:
input:
additional_conditions:
name: Additional conditions
- description: "Extra conditions you may want to add to this automation \n(Example:
+ description:
+ "Extra conditions you may want to add to this automation \n(Example:
Home occupied, TV on, etc)\n"
default: []
selector:
@@ -98,7 +103,8 @@ blueprint:
name: "Side 0 Group 1 actions \U0001F34E"
icon: mdi:numeric-0-box
collapsed: true
- description: "These are Group 1 actions that happen with Face 0\n (the one
+ description:
+ "These are Group 1 actions that happen with Face 0\n (the one
with the 'Aqara' LOGO) of the cube up to start.\n"
input:
slide_face_0:
@@ -121,8 +127,9 @@ blueprint:
action: {}
flipped180_face_0:
name: "Group 1 actions \U0001F34E Flip the cube 180 degrees to face 0"
- description: '**NOTE:** This action is trick to master, and should be used
- sparingly... Face 0 is the one with the ''Aqara'' LOGO'
+ description:
+ "**NOTE:** This action is trick to master, and should be used
+ sparingly... Face 0 is the one with the 'Aqara' LOGO"
default: []
selector:
action: {}
@@ -139,7 +146,8 @@ blueprint:
selector:
action: {}
rotate_ccw_face_0:
- name: "Group 1 actions \U0001F34E Rotate cube counter clockwise with face
+ name:
+ "Group 1 actions \U0001F34E Rotate cube counter clockwise with face
0 up"
description: Face 0 is the one with the 'Aqara' LOGO
default: []
@@ -149,7 +157,8 @@ blueprint:
name: "Side 1 Group 1 actions \U0001F34E"
icon: mdi:numeric-1-box
collapsed: true
- description: "These are Group 1 actions that happen with Face 1\n of the cube
+ description:
+ "These are Group 1 actions that happen with Face 1\n of the cube
up to start.\n"
input:
slide_face_1:
@@ -169,8 +178,9 @@ blueprint:
action: {}
flipped180_face_1:
name: "Group 1 actions \U0001F34E Flip the cube 180 degrees to face 1"
- description: '**NOTE:** This action is trick to master, and should be used
- sparingly...'
+ description:
+ "**NOTE:** This action is trick to master, and should be used
+ sparingly..."
default: []
selector:
action: {}
@@ -186,7 +196,8 @@ blueprint:
selector:
action: {}
rotate_ccw_face_1:
- name: "Group 1 actions \U0001F34E Rotate cube counter clockwise with face
+ name:
+ "Group 1 actions \U0001F34E Rotate cube counter clockwise with face
1 up"
default: []
selector:
@@ -195,7 +206,8 @@ blueprint:
name: "Side 2 Group 1 actions \U0001F34E"
icon: mdi:numeric-2-box
collapsed: true
- description: "These are Group 1 actions that happen with Face 2\n of the cube
+ description:
+ "These are Group 1 actions that happen with Face 2\n of the cube
up to start.\n"
input:
slide_face_2:
@@ -215,8 +227,9 @@ blueprint:
action: {}
flipped180_face_2:
name: "Group 1 actions \U0001F34E Flip the cube 180 degrees to face 2"
- description: '**NOTE:** This action is trick to master, and should be used
- sparingly...'
+ description:
+ "**NOTE:** This action is trick to master, and should be used
+ sparingly..."
default: []
selector:
action: {}
@@ -232,7 +245,8 @@ blueprint:
selector:
action: {}
rotate_ccw_face_2:
- name: "Group 1 actions \U0001F34E Rotate cube counter clockwise with face
+ name:
+ "Group 1 actions \U0001F34E Rotate cube counter clockwise with face
2 up"
default: []
selector:
@@ -246,7 +260,8 @@ blueprint:
name: "Side 3 Group 1 actions \U0001F34E"
icon: mdi:numeric-3-box
collapsed: true
- description: "These are Group 1 actions that happen with Face 3\n of the cube
+ description:
+ "These are Group 1 actions that happen with Face 3\n of the cube
up to start.\n"
input:
doubletap_face_3:
@@ -261,8 +276,9 @@ blueprint:
action: {}
flipped180_face_3:
name: "Group 1 actions \U0001F34E Flip the cube 180 degrees to face 3"
- description: '**NOTE:** This action is trick to master, and should be used
- sparingly...'
+ description:
+ "**NOTE:** This action is trick to master, and should be used
+ sparingly..."
default: []
selector:
action: {}
@@ -278,7 +294,8 @@ blueprint:
selector:
action: {}
rotate_ccw_face_3:
- name: "Group 1 actions \U0001F34E Rotate cube counter clockwise with face
+ name:
+ "Group 1 actions \U0001F34E Rotate cube counter clockwise with face
3 up"
default: []
selector:
@@ -287,7 +304,8 @@ blueprint:
name: "Side 4 Group 1 actions \U0001F34E"
icon: mdi:numeric-4-box
collapsed: true
- description: "These are Group 1 actions that happen with Face 4\n of the cube
+ description:
+ "These are Group 1 actions that happen with Face 4\n of the cube
up to start.\n"
input:
slide_face_4:
@@ -307,8 +325,9 @@ blueprint:
action: {}
flipped180_face_4:
name: "Group 1 actions \U0001F34E Flip the cube 180 degrees to face 4"
- description: '**NOTE:** This action is trick to master, and should be used
- sparingly...'
+ description:
+ "**NOTE:** This action is trick to master, and should be used
+ sparingly..."
default: []
selector:
action: {}
@@ -324,7 +343,8 @@ blueprint:
selector:
action: {}
rotate_ccw_face_4:
- name: "Group 1 actions \U0001F34E Rotate cube counter clockwise with face
+ name:
+ "Group 1 actions \U0001F34E Rotate cube counter clockwise with face
4 up"
default: []
selector:
@@ -333,7 +353,8 @@ blueprint:
name: "Side 5 Group 1 actions \U0001F34E"
icon: mdi:numeric-5-box
collapsed: true
- description: "These are Group 1 actions that happen with Face 5\n of the cube
+ description:
+ "These are Group 1 actions that happen with Face 5\n of the cube
up to start.\n"
input:
slide_face_5:
@@ -353,8 +374,9 @@ blueprint:
action: {}
flipped180_face_5:
name: "Group 1 actions \U0001F34E Flip the cube 180 degrees to face 5"
- description: '**NOTE:** This action is trick to master, and should be used
- sparingly...'
+ description:
+ "**NOTE:** This action is trick to master, and should be used
+ sparingly..."
default: []
selector:
action: {}
@@ -370,7 +392,8 @@ blueprint:
selector:
action: {}
rotate_ccw_face_5:
- name: "Group 1 actions \U0001F34E Rotate cube counter clockwise with face
+ name:
+ "Group 1 actions \U0001F34E Rotate cube counter clockwise with face
5 up"
default: []
selector:
@@ -379,12 +402,14 @@ blueprint:
name: "Any side Group 2 actions \U0001F352"
icon: mdi:fruit-cherries
collapsed: true
- description: "\U0001F352 These are a set of 6 event functions that will trigger
+ description:
+ "\U0001F352 These are a set of 6 event functions that will trigger
on specific actions\n on *ANY* side. **Group 2 actions \U0001F352**\n"
input:
slide_any:
name: "Group 2 actions \U0001F352 Slide the cube with any side"
- description: "Side doesn't matter on this one.\n**!!Warning!!** The automations
+ description:
+ "Side doesn't matter on this one.\n**!!Warning!!** The automations
for the specific side will also trigger. \U0001F34E\U0001F350\nI suggest
using only one of the three groups of triggers, not multiple groups..."
default: []
@@ -392,7 +417,8 @@ blueprint:
action: {}
doubletap_any:
name: "Group 2 actions \U0001F352 Double tap the cube with any side"
- description: "Side doesn't matter on this one.\n**!!Warning!!** The automations
+ description:
+ "Side doesn't matter on this one.\n**!!Warning!!** The automations
for the specific side will also trigger. \U0001F34E\U0001F350\nI suggest
using only one of the three groups of triggers, not multiple groups..."
default: []
@@ -400,7 +426,8 @@ blueprint:
action: {}
flipped90_any:
name: "Group 2 actions \U0001F352 Flip the cube 90 degrees to any side"
- description: "Side doesn't matter on this one.\n**!!Warning!!** The automations
+ description:
+ "Side doesn't matter on this one.\n**!!Warning!!** The automations
for the specific side will also trigger. \U0001F34E\U0001F350\nI suggest
using only one of the three groups of triggers, not multiple groups..."
default: []
@@ -408,7 +435,8 @@ blueprint:
action: {}
flipped180_any:
name: "Group 2 actions \U0001F352 Flip the cube 180 degrees any side"
- description: "NOTE: This action is trick to master, and should be used sparingly...
+ description:
+ "NOTE: This action is trick to master, and should be used sparingly...
Side doesn't matter on this one.\n**!!Warning!!** The automations for
the specific side will also trigger. \U0001F34E\U0001F350\nI suggest using
only one of the three groups of triggers, not multiple groups..."
@@ -417,16 +445,19 @@ blueprint:
action: {}
rotate_cw_any:
name: "Group 2 actions \U0001F352 Rotate cube clockwise with any side"
- description: "Side doesn't matter on this one.\n**!!Warning!!** The automations
+ description:
+ "Side doesn't matter on this one.\n**!!Warning!!** The automations
for the specific side will also trigger. \U0001F34E\U0001F350\nI suggest
using only one of the three groups of triggers, not multiple groups..."
default: []
selector:
action: {}
rotate_ccw_any:
- name: "Group 2 actions \U0001F352 Rotate cube counter clockwise with any
+ name:
+ "Group 2 actions \U0001F352 Rotate cube counter clockwise with any
side"
- description: "Side doesn't matter on this one.\n**!!Warning!!** The automations
+ description:
+ "Side doesn't matter on this one.\n**!!Warning!!** The automations
for the specific side will also trigger. \U0001F34E\U0001F350\nI suggest
using only one of the three groups of triggers, not multiple groups..."
default: []
@@ -436,13 +467,15 @@ blueprint:
name: "Side 0 Group 3 actions \U0001F350"
icon: mdi:numeric-0-circle
collapsed: true
- description: "These are Group 3 actions that happen with Face 0 as the ending
+ description:
+ "These are Group 3 actions that happen with Face 0 as the ending
point.\n (the one with the 'Aqara' LOGO) of the cube up to start.\n All
are flips from another side to side 0.\n"
input:
0_from_1:
name: "Group 3 actions \U0001F350 Flip the cube to side 0 from side 1"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
0 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -450,7 +483,8 @@ blueprint:
action: {}
0_from_2:
name: "Group 3 actions \U0001F350 Flip the cube to side 0 from side 2"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
0 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -458,7 +492,8 @@ blueprint:
action: {}
0_from_3:
name: "Group 3 actions \U0001F350 Flip the cube to side 0 from side 3"
- description: "**!!Warning!!** The flip 180 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 180 automations \U0001F34E for side
0 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -466,7 +501,8 @@ blueprint:
action: {}
0_from_4:
name: "Group 3 actions \U0001F350 Flip the cube to side 0 from side 4"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
0 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -474,7 +510,8 @@ blueprint:
action: {}
0_from_5:
name: "Group 3 actions \U0001F350 Flip the cube to side 0 from side 5"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
0 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -484,12 +521,14 @@ blueprint:
name: "Side 1 Group 3 actions \U0001F350"
icon: mdi:numeric-1-circle
collapsed: true
- description: "These are Group 3 actions that happen with Face 1 as the ending
+ description:
+ "These are Group 3 actions that happen with Face 1 as the ending
point.\n All are flips from another side to side 1.\n"
input:
1_from_0:
name: "Group 3 actions \U0001F350 Flip the cube to side 1 from side 0"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
1 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -497,7 +536,8 @@ blueprint:
action: {}
1_from_2:
name: "Group 3 actions \U0001F350 Flip the cube to side 1 from side 2"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
1 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -505,7 +545,8 @@ blueprint:
action: {}
1_from_3:
name: "Group 3 actions \U0001F350 Flip the cube to side 1 from side 3"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
1 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -513,7 +554,8 @@ blueprint:
action: {}
1_from_4:
name: "Group 3 actions \U0001F350 Flip the cube to side 1 from side 4"
- description: "**!!Warning!!** The flip 180 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 180 automations \U0001F34E for side
1 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -521,7 +563,8 @@ blueprint:
action: {}
1_from_5:
name: "Group 3 actions \U0001F350 Flip the cube to side 1 from side 5"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
1 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -531,12 +574,14 @@ blueprint:
name: "Side 2 Group 3 actions \U0001F350"
icon: mdi:numeric-2-circle
collapsed: true
- description: "These are Group 3 actions that happen with Face 2 as the ending
+ description:
+ "These are Group 3 actions that happen with Face 2 as the ending
point.\n All are flips from another side to side 2.\n"
input:
2_from_0:
name: "Group 3 actions \U0001F350 Flip the cube to side 2 from side 0"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
2 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -544,7 +589,8 @@ blueprint:
action: {}
2_from_1:
name: "Group 3 actions \U0001F350 Flip the cube to side 2 from side 1"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
2 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -552,7 +598,8 @@ blueprint:
action: {}
2_from_3:
name: "Group 3 actions \U0001F350 Flip the cube to side 2 from side 3"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
2 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -560,7 +607,8 @@ blueprint:
action: {}
2_from_4:
name: "Group 3 actions \U0001F350 Flip the cube to side 2 from side 4"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
2 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -568,7 +616,8 @@ blueprint:
action: {}
2_from_5:
name: "Group 3 actions \U0001F350 Flip the cube to side 2 from side 5"
- description: "**!!Warning!!** The flip 180 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 180 automations \U0001F34E for side
2 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -578,12 +627,14 @@ blueprint:
name: "Side 3 Group 3 actions \U0001F350"
icon: mdi:numeric-3-circle
collapsed: true
- description: "These are Group 3 actions that happen with Face 3 as the ending
+ description:
+ "These are Group 3 actions that happen with Face 3 as the ending
point.\n All are flips from another side to side 3.\n"
input:
3_from_0:
name: "Group 3 actions \U0001F350 Flip the cube to side 3 from side 0"
- description: "**!!Warning!!** The flip 180 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 180 automations \U0001F34E for side
3 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -591,7 +642,8 @@ blueprint:
action: {}
3_from_1:
name: "Group 3 actions \U0001F350 Flip the cube to side 3 from side 1"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
3 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -599,7 +651,8 @@ blueprint:
action: {}
3_from_2:
name: "Group 3 actions \U0001F350 Flip the cube to side 3 from side 2"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
3 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -607,7 +660,8 @@ blueprint:
action: {}
3_from_4:
name: "Group 3 actions \U0001F350 Flip the cube to side 3 from side 4"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
3 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -615,7 +669,8 @@ blueprint:
action: {}
3_from_5:
name: "Group 3 actions \U0001F350 Flip the cube to side 3 from side 5"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
3 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -625,12 +680,14 @@ blueprint:
name: "Side 4 Group 3 actions \U0001F350"
icon: mdi:numeric-4-circle
collapsed: true
- description: "These are Group 3 actions that happen with Face 4 as the ending
+ description:
+ "These are Group 3 actions that happen with Face 4 as the ending
point.\n All are flips from another side to side 4.\n"
input:
4_from_0:
name: "Group 3 actions \U0001F350 Flip the cube to side 4 from side 0"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
4 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -638,7 +695,8 @@ blueprint:
action: {}
4_from_1:
name: "Group 3 actions \U0001F350 Flip the cube to side 4 from side 1"
- description: "**!!Warning!!** The flip 180 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 180 automations \U0001F34E for side
4 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -646,7 +704,8 @@ blueprint:
action: {}
4_from_2:
name: "Group 3 actions \U0001F350 Flip the cube to side 4 from side 2"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
4 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -654,7 +713,8 @@ blueprint:
action: {}
4_from_3:
name: "Group 3 actions \U0001F350 Flip the cube to side 4 from side 3"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
4 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -662,7 +722,8 @@ blueprint:
action: {}
4_from_5:
name: "Group 3 actions \U0001F350 Flip the cube to side 4 from side 5"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
4 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -670,7 +731,8 @@ blueprint:
action: {}
5_from_0:
name: "Group 3 actions \U0001F350 Flip the cube to side 5 from side 0"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
5 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -680,12 +742,14 @@ blueprint:
name: "Side 5 Group 3 actions \U0001F350"
icon: mdi:numeric-5-circle
collapsed: true
- description: "These are Group 3 actions that happen with Face 5 as the ending
+ description:
+ "These are Group 3 actions that happen with Face 5 as the ending
point.\n All are flips from another side to side 5.\n"
input:
5_from_1:
name: "Group 3 actions \U0001F350 Flip the cube to side 5 from side 1"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
5 and the ANY \U0001F352 automations will also trigger. \U0001F34E\U0001F350\nI
suggest using only one of the three groups of triggers, not multiple groups..."
default: []
@@ -693,7 +757,8 @@ blueprint:
action: {}
5_from_2:
name: "Group 3 actions \U0001F350 Flip the cube to side 5 from side 2"
- description: "**!!Warning!!** The flip 180 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 180 automations \U0001F34E for side
5 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -701,7 +766,8 @@ blueprint:
action: {}
5_from_3:
name: "Group 3 actions \U0001F350 Flip the cube to side 5 from side 3"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
5 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -709,7 +775,8 @@ blueprint:
action: {}
5_from_4:
name: "Group 3 actions \U0001F350 Flip the cube to side 5 from side 4"
- description: "**!!Warning!!** The flip 90 automations \U0001F34E for side
+ description:
+ "**!!Warning!!** The flip 90 automations \U0001F34E for side
5 and the ANY \U0001F352 automations will also trigger.\nI suggest using
only one of the three groups of triggers, not multiple groups..."
default: []
@@ -719,322 +786,335 @@ blueprint:
name: "Group 4 actions only used once (no side) \U0001F355"
icon: mdi:pizza
collapsed: true
- description: "These are Group 4 actions only used once (no side) \U0001F355\n
+ description:
+ "These are Group 4 actions only used once (no side) \U0001F355\n
\ they can be safely compined with any other command.\n"
input:
shake:
name: "Shake the cube \U0001F355 Group 4"
- description: 'This trigger only occurs once in the set-up.
+ description: "This trigger only occurs once in the set-up.
- It can be combined in any group.'
+ It can be combined in any group."
default: []
selector:
action: {}
fall:
name: "Drop the cube \U0001F355 Group 4"
- description: 'This trigger only occurs once in the set-up.
+ description: "This trigger only occurs once in the set-up.
- It can be combined in any group.'
+ It can be combined in any group."
default: []
selector:
action: {}
trigger:
-- platform: mqtt
- topic: !input topic
+ - platform: mqtt
+ topic: !input topic
variables:
- action: "{% if trigger.payload_json.action is defined %}\n {{ trigger.payload_json.action
+ action:
+ "{% if trigger.payload_json.action is defined %}\n {{ trigger.payload_json.action
}}\n{% else %}\n none\n{% endif %}\n"
- angle: "{% if trigger.payload_json.action_angle is number %}\n {{ trigger.payload_json.action_angle
+ angle:
+ "{% if trigger.payload_json.action_angle is number %}\n {{ trigger.payload_json.action_angle
| float(0.0) }}\n{% else %}\n 0.0\n{% endif %}\n"
- side: "{% if trigger.payload_json.side is number %}\n {{ trigger.payload_json.side
+ side:
+ "{% if trigger.payload_json.side is number %}\n {{ trigger.payload_json.side
| int(0) }}\n{% else %}\n 0\n{% endif %}\n"
- op_mode: "{% if trigger.payload_json.operation_mode is defined %}\n {{ trigger.payload_json.operation_mode
+ op_mode:
+ "{% if trigger.payload_json.operation_mode is defined %}\n {{ trigger.payload_json.operation_mode
}}\n{% else %}\n none\n{% endif %}\n"
topic_var: !input topic
- friendly_name: '{{ topic_var.split(''/'')[1] | regex_replace("[^A-Za-z0-9_/./-]",
+ friendly_name:
+ '{{ topic_var.split(''/'')[1] | regex_replace("[^A-Za-z0-9_/./-]",
"") }}'
- device_id: '{{ device_id( friendly_name ) }}'
- ieee_id_long: '{{(( device_attr( device_id, ''identifiers'') |list)[0][1]) }}'
- ieee_id: '{{ieee_id_long.split(''_'')[1] }}'
+ device_id: "{{ device_id( friendly_name ) }}"
+ ieee_id_long: "{{(( device_attr( device_id, 'identifiers') |list)[0][1]) }}"
+ ieee_id: "{{ieee_id_long.split('_')[1] }}"
num_name: last side
- num_ha_name: '{{ ''number.'' + friendly_name + ''_last_side'' }}'
- num_ha_val: '{{ states(num_ha_name) | default(0) | int(0) }}'
- last_side: "{# The first time it will not be there, so make sure its 0 instead of
+ num_ha_name: "{{ 'number.' + friendly_name + '_last_side' }}"
+ num_ha_val: "{{ states(num_ha_name) | default(0) | int(0) }}"
+ last_side:
+ "{# The first time it will not be there, so make sure its 0 instead of
undefined. #} {% if not num_ha_val in [\"undefined\", \"unknown\", \"unavailable\",
\"none\", \"null\", \"\"] %}\n {{ num_ha_val }}\n{% else %}\n 0\n{% endif %}\n"
mdl: Number Helper for Z2M Cube Integration
mf: SirGoodenough
sa: house
- sw: '2023-12-09'
- hw: https://github.com/SirGoodenough/HA_Blueprints/blob/master/Automations/Zigbee2MQTT
+ sw: "2023-12-09"
+ hw:
+ https://github.com/SirGoodenough/HA_Blueprints/blob/master/Automations/Zigbee2MQTT
- Xiaomi Cube Controller.yaml
cu: https://community.home-assistant.io/t/zigbee2mqtt-xiaomi-cube-controller/393203
- config_topic_2: '{{ ''homeassistant/number/'' + ieee_id + ''/last_side/config''
- }}'
- topic_2: '{{ ''homeassistant/number/'' + ieee_id + ''/last_side'' }}'
+ config_topic_2: "{{ 'homeassistant/number/' + ieee_id + '/last_side/config'
+ }}"
+ topic_2: "{{ 'homeassistant/number/' + ieee_id + '/last_side' }}"
condition:
-- condition: template
- value_template: "{{ trigger.payload_json is defined and\n trigger.payload_json.action
- is defined and\n trigger.payload_json.action in [\"rotate_right\", \"rotate_left\",\n
- \ \"flip90\", \"flip180\", \"slide\", \"tap\", \"shake\", \"fall\"] }}\n"
-- alias: User pick
- condition: !input additional_conditions
+ - condition: template
+ value_template:
+ "{{ trigger.payload_json is defined and\n trigger.payload_json.action
+ is defined and\n trigger.payload_json.action in [\"rotate_right\", \"rotate_left\",\n
+ \ \"flip90\", \"flip180\", \"slide\", \"tap\", \"shake\", \"fall\"] }}\n"
+ - alias: User pick
+ condition: !input additional_conditions
action:
-- alias: Make number helper to store last side
- service: mqtt.publish
- data:
- topic: '{{ config_topic_2 }}'
- retain: true
- payload: "{ \"name\": \"{{ num_name }}\",\n \"avty_t\": \"homeassistant/status\",\n
- \ \"uniq_id\": \"{{ friendly_name + '-' + device_id }}\",\n \"cmd_t\": \"{{
- topic_2 }}\",\n \"sta_t\": \"{{ topic_2 }}\",\n \"min\": \"0\",\n \"max\":
- \"6\",\n \"step\": \"1\",\n \"mode\": \"box\",\n \"ret\": true,\n \"dev\":
- {\n \"name\": \"{{ friendly_name }}\",\n \"mdl\": \"{{ mdl }}\",\n \"mf\":
- \"{{ mf }}\",\n \"sa\": \"{{ sa }}\",\n \"sw\": \"{{ sw }}\",\n \"hw\":
- \"{{ hw }}\",\n \"cu\": \"{{ cu }}\",\n \"ids\": [\n \"{{ ieee_id
- + '-' + num_name }}\"\n ]\n }\n}\n"
-- alias: Fire Last Action event. This is for optional troubleshooting data.
- event: cube_last_action
- event_data:
- action: '{{ action }}'
- side: '{{ side }}'
- last_side: '{{ last_side }}'
- friendly_name: '{{ friendly_name }}'
- device_id: '{{ device_id }}'
- ieee_id: '{{ ieee_id }}'
- angle: '{{ angle }}'
-- alias: Store the current_side as the last_side for the next trigger
- service: number.set_value
- target:
- entity_id: '{{ num_ha_name }}'
- data:
- value: '{{ side }}'
-- alias: "Group 2 \U0001F352 and No Group \U0001F369 These are action events for ANY
- Side"
- choose:
- - conditions: '{{ action == "slide" }}'
- sequence: !input slide_any
- - conditions: '{{ action == "tap" }}'
- sequence: !input doubletap_any
- - conditions: '{{ action == "rotate_right" }}'
- sequence: !input rotate_cw_any
- - conditions: '{{ action == "rotate_left" }}'
- sequence: !input rotate_ccw_any
- - conditions: '{{ action == "shake" }}'
- sequence: !input shake
- - conditions: '{{ action == "fall" }}'
- sequence: !input fall
- - conditions: '{{ action == "flip90" }}'
- sequence:
- - parallel:
- - !input flipped90_any
- - alias: These are flip to specific side from any side events
- choose: &id001
- - conditions: '{{ side == 0 }}'
- sequence: !input flip_from_any_to_face_0
- - conditions: '{{ side == 1 }}'
- sequence: !input flip_from_any_to_face_1
- - conditions: '{{ side == 2 }}'
- sequence: !input flip_from_any_to_face_2
- - conditions: '{{ side == 3 }}'
- sequence: !input flip_from_any_to_face_3
- - conditions: '{{ side == 4 }}'
- sequence: !input flip_from_any_to_face_4
- - conditions: '{{ side == 5 }}'
- sequence: !input flip_from_any_to_face_5
- - conditions: '{{ action == "flip180" }}'
- sequence:
- - parallel:
- - !input flipped180_any
- - alias: These are flip to specific side from any side events
- choose: *id001
-- alias: "Group 1 \U0001F34E These are action events based on the action broken down
- by side"
- choose:
- - conditions: '{{ action == "slide" }}'
- sequence:
- - alias: These are slide events
- choose:
- - conditions: '{{ side == 0 }}'
- sequence: !input slide_face_0
- - conditions: '{{ side == 1 }}'
- sequence: !input slide_face_1
- - conditions: '{{ side == 2 }}'
- sequence: !input slide_face_2
- - conditions: '{{ side == 3 }}'
- sequence: !input slide_face_3
- - conditions: '{{ side == 4 }}'
- sequence: !input slide_face_4
- - conditions: '{{ side == 5 }}'
- sequence: !input slide_face_5
- - conditions: '{{ action == "tap" }}'
- sequence:
- - alias: These are doubletap events
- choose:
- - conditions: '{{ side == 0 }}'
- sequence: !input doubletap_face_0
- - conditions: '{{ side == 1 }}'
- sequence: !input doubletap_face_1
- - conditions: '{{ side == 2 }}'
- sequence: !input doubletap_face_2
- - conditions: '{{ side == 3 }}'
- sequence: !input doubletap_face_3
- - conditions: '{{ side == 4 }}'
- sequence: !input doubletap_face_4
- - conditions: '{{ side == 5 }}'
- sequence: !input doubletap_face_5
- - conditions: '{{ action == "flip90" }}'
- sequence:
- - alias: These are flipped90 events
- choose:
- - conditions: '{{ side == 0 }}'
- sequence: !input flipped90_face_0
- - conditions: '{{ side == 1 }}'
- sequence: !input flipped90_face_1
- - conditions: '{{ side == 2 }}'
- sequence: !input flipped90_face_2
- - conditions: '{{ side == 3 }}'
- sequence: !input flipped90_face_3
- - conditions: '{{ side == 4 }}'
- sequence: !input flipped90_face_4
- - conditions: '{{ side == 5 }}'
- sequence: !input flipped90_face_5
- - conditions: '{{ action == "flip180" }}'
- sequence:
- - alias: These are flipped180 events
- choose:
- - conditions: '{{ side == 0 }}'
- sequence: !input flipped180_face_0
- - conditions: '{{ side == 1 }}'
- sequence: !input flipped180_face_1
- - conditions: '{{ side == 2 }}'
- sequence: !input flipped180_face_2
- - conditions: '{{ side == 3 }}'
- sequence: !input flipped180_face_3
- - conditions: '{{ side == 4 }}'
- sequence: !input flipped180_face_4
- - conditions: '{{ side == 5 }}'
- sequence: !input flipped180_face_5
- - conditions: '{{ action == "rotate_right" }}'
- sequence:
- - alias: These are rotate CW events
- choose:
- - conditions: '{{ side == 0 }}'
- sequence: !input rotate_cw_face_0
- - conditions: '{{ side == 1 }}'
- sequence: !input rotate_cw_face_1
- - conditions: '{{ side == 2 }}'
- sequence: !input rotate_cw_face_2
- - conditions: '{{ side == 3 }}'
- sequence: !input rotate_cw_face_3
- - conditions: '{{ side == 4 }}'
- sequence: !input rotate_cw_face_4
- - conditions: '{{ side == 5 }}'
- sequence: !input rotate_cw_face_5
- - conditions: '{{ action == "rotate_left" }}'
- sequence:
- - alias: These are rotate CCW events
- choose:
- - conditions: '{{ side == 0 }}'
- sequence: !input rotate_ccw_face_0
- - conditions: '{{ side == 1 }}'
- sequence: !input rotate_ccw_face_1
- - conditions: '{{ side == 2 }}'
- sequence: !input rotate_ccw_face_2
- - conditions: '{{ side == 3 }}'
- sequence: !input rotate_ccw_face_3
- - conditions: '{{ side == 4 }}'
- sequence: !input rotate_ccw_face_4
- - conditions: '{{ side == 5 }}'
- sequence: !input rotate_ccw_face_5
-- alias: "Group 3 \U0001F350 Side to side jump events"
- choose:
- - conditions: '{{ side == 0 }}'
- sequence:
- - alias: To side 0 from any events
- choose:
- - conditions: '{{ last_side == 1 }}'
- sequence: !input 0_from_1
- - conditions: '{{ last_side == 2 }}'
- sequence: !input 0_from_2
- - conditions: '{{ last_side == 3 }}'
- sequence: !input 0_from_3
- - conditions: '{{ last_side == 4 }}'
- sequence: !input 0_from_4
- - conditions: '{{ last_side == 5 }}'
- sequence: !input 0_from_5
- - conditions: '{{ side == 1 }}'
- sequence:
- - alias: To side 1 from any events
- choose:
- - conditions: '{{ last_side == 0 }}'
- sequence: !input 1_from_0
- - conditions: '{{ last_side == 2 }}'
- sequence: !input 1_from_2
- - conditions: '{{ last_side == 3 }}'
- sequence: !input 1_from_3
- - conditions: '{{ last_side == 4 }}'
- sequence: !input 1_from_4
- - conditions: '{{ last_side == 5 }}'
- sequence: !input 1_from_5
- - conditions: '{{ side == 2 }}'
- sequence:
- - alias: To side 2 from any events
- choose:
- - conditions: '{{ last_side == 0 }}'
- sequence: !input 2_from_0
- - conditions: '{{ last_side == 1 }}'
- sequence: !input 2_from_1
- - conditions: '{{ last_side == 3 }}'
- sequence: !input 2_from_3
- - conditions: '{{ last_side == 4 }}'
- sequence: !input 2_from_4
- - conditions: '{{ last_side == 5 }}'
- sequence: !input 2_from_5
- - conditions: '{{ side == 3 }}'
- sequence:
- - alias: To side 3 from any events
- choose:
- - conditions: '{{ last_side == 0 }}'
- sequence: !input 3_from_0
- - conditions: '{{ last_side == 1 }}'
- sequence: !input 3_from_1
- - conditions: '{{ last_side == 2 }}'
- sequence: !input 3_from_2
- - conditions: '{{ last_side == 4 }}'
- sequence: !input 3_from_4
- - conditions: '{{ last_side == 5 }}'
- sequence: !input 3_from_5
- - conditions: '{{ side == 4 }}'
- sequence:
- - alias: To side 4 from any events
- choose:
- - conditions: '{{ last_side == 0 }}'
- sequence: !input 4_from_0
- - conditions: '{{ last_side == 1 }}'
- sequence: !input 4_from_1
- - conditions: '{{ last_side == 2 }}'
- sequence: !input 4_from_2
- - conditions: '{{ last_side == 3 }}'
- sequence: !input 4_from_3
- - conditions: '{{ last_side == 5 }}'
- sequence: !input 4_from_5
- - conditions: '{{ side == 5 }}'
- sequence:
- - alias: To side 5 from any events
- choose:
- - conditions: '{{ last_side == 0 }}'
- sequence: !input 5_from_0
- - conditions: '{{ last_side == 1 }}'
- sequence: !input 5_from_1
- - conditions: '{{ last_side == 2 }}'
- sequence: !input 5_from_2
- - conditions: '{{ last_side == 3 }}'
- sequence: !input 5_from_3
- - conditions: '{{ last_side == 4 }}'
- sequence: !input 5_from_4
-- alias: Delay ⏱ for debounce so toggle functions work. Also blueprint is in single
- mode.
- delay: 00:00:01
+ - alias: Make number helper to store last side
+ action: mqtt.publish
+ data:
+ topic: "{{ config_topic_2 }}"
+ retain: true
+ payload:
+ "{ \"name\": \"{{ num_name }}\",\n \"avty_t\": \"homeassistant/status\",\n
+ \ \"uniq_id\": \"{{ friendly_name + '-' + device_id }}\",\n \"cmd_t\": \"{{
+ topic_2 }}\",\n \"sta_t\": \"{{ topic_2 }}\",\n \"min\": \"0\",\n \"max\":
+ \"6\",\n \"step\": \"1\",\n \"mode\": \"box\",\n \"ret\": true,\n \"dev\":
+ {\n \"name\": \"{{ friendly_name }}\",\n \"mdl\": \"{{ mdl }}\",\n \"mf\":
+ \"{{ mf }}\",\n \"sa\": \"{{ sa }}\",\n \"sw\": \"{{ sw }}\",\n \"hw\":
+ \"{{ hw }}\",\n \"cu\": \"{{ cu }}\",\n \"ids\": [\n \"{{ ieee_id
+ + '-' + num_name }}\"\n ]\n }\n}\n"
+ - alias: Fire Last Action event. This is for optional troubleshooting data.
+ event: cube_last_action
+ event_data:
+ action: "{{ action }}"
+ side: "{{ side }}"
+ last_side: "{{ last_side }}"
+ friendly_name: "{{ friendly_name }}"
+ device_id: "{{ device_id }}"
+ ieee_id: "{{ ieee_id }}"
+ angle: "{{ angle }}"
+ - alias: Store the current_side as the last_side for the next trigger
+ action: number.set_value
+ target:
+ entity_id: "{{ num_ha_name }}"
+ data:
+ value: "{{ side }}"
+ - alias:
+ "Group 2 \U0001F352 and No Group \U0001F369 These are action events for ANY
+ Side"
+ choose:
+ - conditions: '{{ action == "slide" }}'
+ sequence: !input slide_any
+ - conditions: '{{ action == "tap" }}'
+ sequence: !input doubletap_any
+ - conditions: '{{ action == "rotate_right" }}'
+ sequence: !input rotate_cw_any
+ - conditions: '{{ action == "rotate_left" }}'
+ sequence: !input rotate_ccw_any
+ - conditions: '{{ action == "shake" }}'
+ sequence: !input shake
+ - conditions: '{{ action == "fall" }}'
+ sequence: !input fall
+ - conditions: '{{ action == "flip90" }}'
+ sequence:
+ - parallel:
+ - !input flipped90_any
+ - alias: These are flip to specific side from any side events
+ choose: &id001
+ - conditions: "{{ side == 0 }}"
+ sequence: !input flip_from_any_to_face_0
+ - conditions: "{{ side == 1 }}"
+ sequence: !input flip_from_any_to_face_1
+ - conditions: "{{ side == 2 }}"
+ sequence: !input flip_from_any_to_face_2
+ - conditions: "{{ side == 3 }}"
+ sequence: !input flip_from_any_to_face_3
+ - conditions: "{{ side == 4 }}"
+ sequence: !input flip_from_any_to_face_4
+ - conditions: "{{ side == 5 }}"
+ sequence: !input flip_from_any_to_face_5
+ - conditions: '{{ action == "flip180" }}'
+ sequence:
+ - parallel:
+ - !input flipped180_any
+ - alias: These are flip to specific side from any side events
+ choose: *id001
+ - alias:
+ "Group 1 \U0001F34E These are action events based on the action broken down
+ by side"
+ choose:
+ - conditions: '{{ action == "slide" }}'
+ sequence:
+ - alias: These are slide events
+ choose:
+ - conditions: "{{ side == 0 }}"
+ sequence: !input slide_face_0
+ - conditions: "{{ side == 1 }}"
+ sequence: !input slide_face_1
+ - conditions: "{{ side == 2 }}"
+ sequence: !input slide_face_2
+ - conditions: "{{ side == 3 }}"
+ sequence: !input slide_face_3
+ - conditions: "{{ side == 4 }}"
+ sequence: !input slide_face_4
+ - conditions: "{{ side == 5 }}"
+ sequence: !input slide_face_5
+ - conditions: '{{ action == "tap" }}'
+ sequence:
+ - alias: These are doubletap events
+ choose:
+ - conditions: "{{ side == 0 }}"
+ sequence: !input doubletap_face_0
+ - conditions: "{{ side == 1 }}"
+ sequence: !input doubletap_face_1
+ - conditions: "{{ side == 2 }}"
+ sequence: !input doubletap_face_2
+ - conditions: "{{ side == 3 }}"
+ sequence: !input doubletap_face_3
+ - conditions: "{{ side == 4 }}"
+ sequence: !input doubletap_face_4
+ - conditions: "{{ side == 5 }}"
+ sequence: !input doubletap_face_5
+ - conditions: '{{ action == "flip90" }}'
+ sequence:
+ - alias: These are flipped90 events
+ choose:
+ - conditions: "{{ side == 0 }}"
+ sequence: !input flipped90_face_0
+ - conditions: "{{ side == 1 }}"
+ sequence: !input flipped90_face_1
+ - conditions: "{{ side == 2 }}"
+ sequence: !input flipped90_face_2
+ - conditions: "{{ side == 3 }}"
+ sequence: !input flipped90_face_3
+ - conditions: "{{ side == 4 }}"
+ sequence: !input flipped90_face_4
+ - conditions: "{{ side == 5 }}"
+ sequence: !input flipped90_face_5
+ - conditions: '{{ action == "flip180" }}'
+ sequence:
+ - alias: These are flipped180 events
+ choose:
+ - conditions: "{{ side == 0 }}"
+ sequence: !input flipped180_face_0
+ - conditions: "{{ side == 1 }}"
+ sequence: !input flipped180_face_1
+ - conditions: "{{ side == 2 }}"
+ sequence: !input flipped180_face_2
+ - conditions: "{{ side == 3 }}"
+ sequence: !input flipped180_face_3
+ - conditions: "{{ side == 4 }}"
+ sequence: !input flipped180_face_4
+ - conditions: "{{ side == 5 }}"
+ sequence: !input flipped180_face_5
+ - conditions: '{{ action == "rotate_right" }}'
+ sequence:
+ - alias: These are rotate CW events
+ choose:
+ - conditions: "{{ side == 0 }}"
+ sequence: !input rotate_cw_face_0
+ - conditions: "{{ side == 1 }}"
+ sequence: !input rotate_cw_face_1
+ - conditions: "{{ side == 2 }}"
+ sequence: !input rotate_cw_face_2
+ - conditions: "{{ side == 3 }}"
+ sequence: !input rotate_cw_face_3
+ - conditions: "{{ side == 4 }}"
+ sequence: !input rotate_cw_face_4
+ - conditions: "{{ side == 5 }}"
+ sequence: !input rotate_cw_face_5
+ - conditions: '{{ action == "rotate_left" }}'
+ sequence:
+ - alias: These are rotate CCW events
+ choose:
+ - conditions: "{{ side == 0 }}"
+ sequence: !input rotate_ccw_face_0
+ - conditions: "{{ side == 1 }}"
+ sequence: !input rotate_ccw_face_1
+ - conditions: "{{ side == 2 }}"
+ sequence: !input rotate_ccw_face_2
+ - conditions: "{{ side == 3 }}"
+ sequence: !input rotate_ccw_face_3
+ - conditions: "{{ side == 4 }}"
+ sequence: !input rotate_ccw_face_4
+ - conditions: "{{ side == 5 }}"
+ sequence: !input rotate_ccw_face_5
+ - alias: "Group 3 \U0001F350 Side to side jump events"
+ choose:
+ - conditions: "{{ side == 0 }}"
+ sequence:
+ - alias: To side 0 from any events
+ choose:
+ - conditions: "{{ last_side == 1 }}"
+ sequence: !input 0_from_1
+ - conditions: "{{ last_side == 2 }}"
+ sequence: !input 0_from_2
+ - conditions: "{{ last_side == 3 }}"
+ sequence: !input 0_from_3
+ - conditions: "{{ last_side == 4 }}"
+ sequence: !input 0_from_4
+ - conditions: "{{ last_side == 5 }}"
+ sequence: !input 0_from_5
+ - conditions: "{{ side == 1 }}"
+ sequence:
+ - alias: To side 1 from any events
+ choose:
+ - conditions: "{{ last_side == 0 }}"
+ sequence: !input 1_from_0
+ - conditions: "{{ last_side == 2 }}"
+ sequence: !input 1_from_2
+ - conditions: "{{ last_side == 3 }}"
+ sequence: !input 1_from_3
+ - conditions: "{{ last_side == 4 }}"
+ sequence: !input 1_from_4
+ - conditions: "{{ last_side == 5 }}"
+ sequence: !input 1_from_5
+ - conditions: "{{ side == 2 }}"
+ sequence:
+ - alias: To side 2 from any events
+ choose:
+ - conditions: "{{ last_side == 0 }}"
+ sequence: !input 2_from_0
+ - conditions: "{{ last_side == 1 }}"
+ sequence: !input 2_from_1
+ - conditions: "{{ last_side == 3 }}"
+ sequence: !input 2_from_3
+ - conditions: "{{ last_side == 4 }}"
+ sequence: !input 2_from_4
+ - conditions: "{{ last_side == 5 }}"
+ sequence: !input 2_from_5
+ - conditions: "{{ side == 3 }}"
+ sequence:
+ - alias: To side 3 from any events
+ choose:
+ - conditions: "{{ last_side == 0 }}"
+ sequence: !input 3_from_0
+ - conditions: "{{ last_side == 1 }}"
+ sequence: !input 3_from_1
+ - conditions: "{{ last_side == 2 }}"
+ sequence: !input 3_from_2
+ - conditions: "{{ last_side == 4 }}"
+ sequence: !input 3_from_4
+ - conditions: "{{ last_side == 5 }}"
+ sequence: !input 3_from_5
+ - conditions: "{{ side == 4 }}"
+ sequence:
+ - alias: To side 4 from any events
+ choose:
+ - conditions: "{{ last_side == 0 }}"
+ sequence: !input 4_from_0
+ - conditions: "{{ last_side == 1 }}"
+ sequence: !input 4_from_1
+ - conditions: "{{ last_side == 2 }}"
+ sequence: !input 4_from_2
+ - conditions: "{{ last_side == 3 }}"
+ sequence: !input 4_from_3
+ - conditions: "{{ last_side == 5 }}"
+ sequence: !input 4_from_5
+ - conditions: "{{ side == 5 }}"
+ sequence:
+ - alias: To side 5 from any events
+ choose:
+ - conditions: "{{ last_side == 0 }}"
+ sequence: !input 5_from_0
+ - conditions: "{{ last_side == 1 }}"
+ sequence: !input 5_from_1
+ - conditions: "{{ last_side == 2 }}"
+ sequence: !input 5_from_2
+ - conditions: "{{ last_side == 3 }}"
+ sequence: !input 5_from_3
+ - conditions: "{{ last_side == 4 }}"
+ sequence: !input 5_from_4
+ - alias:
+ Delay ⏱ for debounce so toggle functions work. Also blueprint is in single
+ mode.
+ delay: 00:00:01
mode: single
max_exceeded: silent
diff --git a/blueprints/automation/clevertwain/ge_jasco_46201.yaml b/blueprints/automation/clevertwain/ge_jasco_46201.yaml
index 0ba25fc..0a6e24f 100644
--- a/blueprints/automation/clevertwain/ge_jasco_46201.yaml
+++ b/blueprints/automation/clevertwain/ge_jasco_46201.yaml
@@ -75,39 +75,39 @@ blueprint:
mode: single
max_exceeded: silent
variables:
- device_id: !input 'ge_jasco'
+ device_id: !input "ge_jasco"
trigger:
-- platform: event
- event_type: zwave_js_value_notification
-condition: '{{ trigger.event.data.device_id == device_id }}'
+ - platform: event
+ event_type: zwave_js_value_notification
+condition: "{{ trigger.event.data.device_id == device_id }}"
action:
-- variables:
- property_key_name: '{{ trigger.event.data.property_key_name }}'
- label: '{{ trigger.event.data.label }}'
- command_class_name: '{{ trigger.event.data.command_class_name }}'
- value: '{{ trigger.event.data.value }}'
-- service: logbook.log
- data:
- name: 'Z-Wave JS'
- message: 'received event: {{ command_class_name }} - {{ value }} - {{ label }}'
-- choose:
- - conditions: '{{ property_key_name == ''001'' and value == ''KeyPressed'' }}'
- sequence: !input 'tap_1x_up'
- - conditions: '{{ property_key_name == ''002'' and value == ''KeyPressed'' }}'
- sequence: !input 'tap_1x_dn'
- - conditions: '{{ property_key_name == ''001'' and value == ''KeyPressed2x'' }}'
- sequence: !input 'tap_2x_up'
- - conditions: '{{ property_key_name == ''002'' and value == ''KeyPressed2x'' }}'
- sequence: !input 'tap_2x_dn'
- - conditions: '{{ property_key_name == ''001'' and value == ''KeyPressed3x'' }}'
- sequence: !input 'tap_3x_up'
- - conditions: '{{ property_key_name == ''002'' and value == ''KeyPressed3x'' }}'
- sequence: !input 'tap_3x_dn'
- - conditions: '{{ property_key_name == ''001'' and value == ''KeyHeldDown'' }}'
- sequence: !input 'up_btn_hld'
- - conditions: '{{ property_key_name == ''001'' and value == ''KeyReleased'' }}'
- sequence: !input 'up_btn_rel'
- - conditions: '{{ property_key_name == ''002'' and value == ''KeyHeldDown'' }}'
- sequence: !input 'dn_btn_hld'
- - conditions: '{{ property_key_name == ''002'' and value == ''KeyReleased'' }}'
- sequence: !input 'dn_btn_rel'
\ No newline at end of file
+ - variables:
+ property_key_name: "{{ trigger.event.data.property_key_name }}"
+ label: "{{ trigger.event.data.label }}"
+ command_class_name: "{{ trigger.event.data.command_class_name }}"
+ value: "{{ trigger.event.data.value }}"
+ - action: logbook.log
+ data:
+ name: "Z-Wave JS"
+ message: "received event: {{ command_class_name }} - {{ value }} - {{ label }}"
+ - choose:
+ - conditions: "{{ property_key_name == '001' and value == 'KeyPressed' }}"
+ sequence: !input "tap_1x_up"
+ - conditions: "{{ property_key_name == '002' and value == 'KeyPressed' }}"
+ sequence: !input "tap_1x_dn"
+ - conditions: "{{ property_key_name == '001' and value == 'KeyPressed2x' }}"
+ sequence: !input "tap_2x_up"
+ - conditions: "{{ property_key_name == '002' and value == 'KeyPressed2x' }}"
+ sequence: !input "tap_2x_dn"
+ - conditions: "{{ property_key_name == '001' and value == 'KeyPressed3x' }}"
+ sequence: !input "tap_3x_up"
+ - conditions: "{{ property_key_name == '002' and value == 'KeyPressed3x' }}"
+ sequence: !input "tap_3x_dn"
+ - conditions: "{{ property_key_name == '001' and value == 'KeyHeldDown' }}"
+ sequence: !input "up_btn_hld"
+ - conditions: "{{ property_key_name == '001' and value == 'KeyReleased' }}"
+ sequence: !input "up_btn_rel"
+ - conditions: "{{ property_key_name == '002' and value == 'KeyHeldDown' }}"
+ sequence: !input "dn_btn_hld"
+ - conditions: "{{ property_key_name == '002' and value == 'KeyReleased' }}"
+ sequence: !input "dn_btn_rel"
diff --git a/blueprints/automation/clevertwain/room_lights_to_off.yaml b/blueprints/automation/clevertwain/room_lights_to_off.yaml
index 5a7705a..e1d16a3 100644
--- a/blueprints/automation/clevertwain/room_lights_to_off.yaml
+++ b/blueprints/automation/clevertwain/room_lights_to_off.yaml
@@ -32,7 +32,7 @@ blueprint:
off_option:
name: Off Option
description: The Input_Select option that implies the room is forcefully Off.
- default: 'Off'
+ default: "Off"
selector:
text:
@@ -91,7 +91,7 @@ trigger:
- platform: state
entity_id: !input room_occupied
- to: 'off'
+ to: "off"
- platform: state
entity_id: !input light_level_sensor
@@ -107,45 +107,45 @@ condition:
state: !input off_option
- condition: state
entity_id: !input room_occupied
- state: 'off'
+ state: "off"
- "{{ states(light_level_sensor) | float(default=0) >= states(light_level_trigger) | float(default=0) }}"
action:
- choose:
- - conditions:
- - condition: or
- conditions:
- - condition: and
+ - conditions:
+ - condition: or
conditions:
- - condition: state
- entity_id: !input lighting_automations
- state: 'on'
- - condition: state
- entity_id: !input room_occupied
- state: 'off'
- - condition: not
+ - condition: and
conditions:
- - condition: state
- entity_id: !input room_mode
- state: !input manual_option
- - "{{ states(light_level_sensor) | float(default=0) >= states(light_level_trigger) | float(default=0) }}"
- sequence:
- - alias: Turn off lights
- service: light.turn_off
- target:
- entity_id: !input target_light
- - choose:
- - conditions:
- - "{{ manual_switch is defined }}"
- - "{{ guest_mode is defined }}"
- sequence:
- - choose:
- - conditions:
- condition: state
- entity_id: !input guest_mode
- state: 'on'
- sequence:
- - alias: "Turn off the switch since all lights are off"
- service: homeassistant.turn_off
- target:
- entity_id: !input manual_switch
\ No newline at end of file
+ entity_id: !input lighting_automations
+ state: "on"
+ - condition: state
+ entity_id: !input room_occupied
+ state: "off"
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: !input room_mode
+ state: !input manual_option
+ - "{{ states(light_level_sensor) | float(default=0) >= states(light_level_trigger) | float(default=0) }}"
+ sequence:
+ - alias: Turn off lights
+ action: light.turn_off
+ target:
+ entity_id: !input target_light
+ - choose:
+ - conditions:
+ - "{{ manual_switch is defined }}"
+ - "{{ guest_mode is defined }}"
+ sequence:
+ - choose:
+ - conditions:
+ - condition: state
+ entity_id: !input guest_mode
+ state: "on"
+ sequence:
+ - alias: "Turn off the switch since all lights are off"
+ action: homeassistant.turn_off
+ target:
+ entity_id: !input manual_switch
diff --git a/blueprints/automation/clevertwain/room_lights_to_on.yaml b/blueprints/automation/clevertwain/room_lights_to_on.yaml
index cf51895..ca4825b 100644
--- a/blueprints/automation/clevertwain/room_lights_to_on.yaml
+++ b/blueprints/automation/clevertwain/room_lights_to_on.yaml
@@ -31,7 +31,7 @@ blueprint:
off_option:
name: Off Option
description: The Input_Select option that implies the room is forcefully Off.
- default: 'Off'
+ default: "Off"
selector:
text:
@@ -175,7 +175,6 @@ condition:
- alias: "Check if light should turn on"
condition: or
conditions:
-
- alias: "Guest mode is on"
condition: state
entity_id: !input guest_mode
@@ -184,7 +183,6 @@ condition:
- alias: "Motion or occupancy were detected in a dim room"
condition: and
conditions:
-
- alias: "Light level below trigger amount"
condition: numeric_state
entity_id: !input light_level_sensor
@@ -212,54 +210,54 @@ condition:
action:
- alias: "Make sure the switch is turned on"
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
target:
entity_id: !input manual_switch
- choose:
- - alias: "If the room is set to manual, just turn the lights on"
- conditions:
- - "{{is_state(room_mode,manual_option)}}"
- sequence:
- - service: light.turn_on
- target:
- entity_id: "{{light_entity}}"
+ - alias: "If the room is set to manual, just turn the lights on"
+ conditions:
+ - "{{is_state(room_mode,manual_option)}}"
+ sequence:
+ - action: light.turn_on
+ target:
+ entity_id: "{{light_entity}}"
- - alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
- conditions:
- - "{{is_state(room_mode,auto_option)}}"
- - "{{is_state(light_entity,'on')}}"
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states(light_scene_transition) }}"
- target:
- entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
+ - alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
+ conditions:
+ - "{{is_state(room_mode,auto_option)}}"
+ - "{{is_state(light_entity,'on')}}"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states(light_scene_transition) }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
- - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
- conditions:
- - "{{is_state(room_mode,auto_option)}}"
- - "{{is_state(light_entity,'off')}}"
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
+ - alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
+ conditions:
+ - "{{is_state(room_mode,auto_option)}}"
+ - "{{is_state(light_entity,'off')}}"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
- - alias: "If the room is not set to auto and the lights are on, change to the room mode scene with a transition"
- conditions:
- - "{{is_state(light_entity,'on')}}"
- sequence:
- - service: scene.turn_on
- data:
- transition: "{{ states(light_scene_transition) }}"
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+ - alias: "If the room is not set to auto and the lights are on, change to the room mode scene with a transition"
+ conditions:
+ - "{{is_state(light_entity,'on')}}"
+ sequence:
+ - action: scene.turn_on
+ data:
+ transition: "{{ states(light_scene_transition) }}"
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- - alias: "If the room is not set to auto and the lights are on, change to the room scene without a transition"
- conditions:
- - "{{is_state(light_entity,'off')}}"
- sequence:
- - service: scene.turn_on
- target:
- entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+ - alias: "If the room is not set to auto and the lights are on, change to the room scene without a transition"
+ conditions:
+ - "{{is_state(light_entity,'off')}}"
+ sequence:
+ - action: scene.turn_on
+ target:
+ entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- - delay: 1
\ No newline at end of file
+ - delay: 1
diff --git a/blueprints/automation/clevertwain/room_occupancy.yaml b/blueprints/automation/clevertwain/room_occupancy.yaml
index 4944362..3d8e70f 100644
--- a/blueprints/automation/clevertwain/room_occupancy.yaml
+++ b/blueprints/automation/clevertwain/room_occupancy.yaml
@@ -59,26 +59,26 @@ mode: restart
trigger:
- platform: state
entity_id: !input home_occupied
- from: 'on'
- to: 'off'
+ from: "on"
+ to: "off"
- platform: state
id: room_occupied
entity_id: !input binary_sensor
- from: 'off'
- to: 'on'
+ from: "off"
+ to: "on"
- platform: state
- id: 'not_occupied'
+ id: "not_occupied"
entity_id:
- !input home_occupied
- !input binary_sensor
- to: 'off'
+ to: "off"
for:
seconds: !input delay_seconds
- platform: time_pattern
- id: 'time_pattern'
+ id: "time_pattern"
minutes: "/5"
condition:
@@ -87,7 +87,7 @@ condition:
- alias: "Home not occupied"
condition: state
entity_id: !input home_occupied
- state: 'off'
+ state: "off"
- alias: "Room just occupied"
condition: trigger
@@ -98,56 +98,56 @@ condition:
conditions:
- condition: state
entity_id: !input room_occupied
- state: 'on'
+ state: "on"
- condition: state
entity_id: !input binary_sensor
- state: 'off'
+ state: "off"
action:
- choose:
- - alias: "Home not occupied"
- conditions:
- - condition: state
- entity_id: !input home_occupied
- state: 'off'
- sequence:
- - service: homeassistant.turn_off
- entity_id: !input room_occupied
-
- - alias: "Room not occupied"
- conditions:
- - condition: trigger
- id: not_occupied
- - condition: not
+ - alias: "Home not occupied"
conditions:
- - condition: state
- entity_id: !input house_mode
- state: !input manual_option
- sequence:
- - service: homeassistant.turn_off
- entity_id: !input room_occupied
+ - condition: state
+ entity_id: !input home_occupied
+ state: "off"
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: !input room_occupied
- - alias: "Room occupied"
- conditions:
- - condition: trigger
- id: room_occupied
- sequence:
- - service: homeassistant.turn_on
- entity_id: !input room_occupied
+ - alias: "Room not occupied"
+ conditions:
+ - condition: trigger
+ id: not_occupied
+ - condition: not
+ conditions:
+ - condition: state
+ entity_id: !input house_mode
+ state: !input manual_option
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: !input room_occupied
- - alias: "Time pattern"
- conditions:
- - condition: trigger
- id: time_pattern
- - condition: state
- entity_id: !input room_occupied
- state: 'on'
- - condition: state
- entity_id: !input binary_sensor
- state: 'off'
- for:
- seconds: !input delay_seconds
- sequence:
- - service: homeassistant.turn_off
- entity_id: !input room_occupied
\ No newline at end of file
+ - alias: "Room occupied"
+ conditions:
+ - condition: trigger
+ id: room_occupied
+ sequence:
+ - action: homeassistant.turn_on
+ entity_id: !input room_occupied
+
+ - alias: "Time pattern"
+ conditions:
+ - condition: trigger
+ id: time_pattern
+ - condition: state
+ entity_id: !input room_occupied
+ state: "on"
+ - condition: state
+ entity_id: !input binary_sensor
+ state: "off"
+ for:
+ seconds: !input delay_seconds
+ sequence:
+ - action: homeassistant.turn_off
+ entity_id: !input room_occupied
diff --git a/blueprints/automation/cree8/zwave-js-inovelli-lzw36-fan-switch-dimmer.yaml b/blueprints/automation/cree8/zwave-js-inovelli-lzw36-fan-switch-dimmer.yaml
index 5f461c2..490f59a 100644
--- a/blueprints/automation/cree8/zwave-js-inovelli-lzw36-fan-switch-dimmer.yaml
+++ b/blueprints/automation/cree8/zwave-js-inovelli-lzw36-fan-switch-dimmer.yaml
@@ -111,54 +111,54 @@ blueprint:
mode: single
max_exceeded: silent
variables:
- device_id: !input 'inovelli_fan_switch'
+ device_id: !input "inovelli_fan_switch"
trigger:
-- platform: event
- event_type: zwave_js_value_notification
-condition: '{{ trigger.event.data.device_id == device_id }}'
+ - platform: event
+ event_type: zwave_js_value_notification
+condition: "{{ trigger.event.data.device_id == device_id }}"
action:
-- variables:
- button_id: '{{ trigger.event.data.property_key_name }}'
- press_count: '{{ trigger.event.data.value }}'
-- service: logbook.log
- data:
- name: Button Id
- message: '{{ button_id }}'
-- service: logbook.log
- data:
- name: Press Count
- message: '{{ press_count }}'
+ - variables:
+ button_id: "{{ trigger.event.data.property_key_name }}"
+ press_count: "{{ trigger.event.data.value }}"
+ - action: logbook.log
+ data:
+ name: Button Id
+ message: "{{ button_id }}"
+ - action: logbook.log
+ data:
+ name: Press Count
+ message: "{{ press_count }}"
-- choose:
- - conditions: '{{ button_id == "002" and press_count == "KeyPressed" }}'
- sequence: !input 'button_a'
- - conditions: '{{ button_id == "001" and press_count == "KeyPressed" }}'
- sequence: !input 'button_b'
- - conditions: '{{ button_id == "002" and press_count == "KeyHeldDown" }}'
- sequence: !input 'button_a_held'
- - conditions: '{{ button_id == "001" and press_count == "KeyHeldDown" }}'
- sequence: !input 'button_b_held'
- - conditions: '{{ button_id == "002" and press_count == "KeyPressed2x" }}'
- sequence: !input 'button_a2'
- - conditions: '{{ button_id == "001" and press_count == "KeyPressed2x" }}'
- sequence: !input 'button_b2'
- - conditions: '{{ button_id == "002" and press_count == "KeyPressed3x" }}'
- sequence: !input 'button_a3'
- - conditions: '{{ button_id == "001" and press_count == "KeyPressed3x" }}'
- sequence: !input 'button_b3'
- - conditions: '{{ button_id == "002" and press_count == "KeyPressed4x" }}'
- sequence: !input 'button_a4'
- - conditions: '{{ button_id == "001" and press_count == "KeyPressed4x" }}'
- sequence: !input 'button_b4'
- - conditions: '{{ button_id == "002" and press_count == "KeyPressed5x" }}'
- sequence: !input 'button_a5'
- - conditions: '{{ button_id == "001" and press_count == "KeyPressed5x" }}'
- sequence: !input 'button_b5'
- - conditions: '{{ button_id == "003" and press_count == "KeyPressed" }}'
- sequence: !input 'button_c1'
- - conditions: '{{ button_id == "004" and press_count == "KeyPressed" }}'
- sequence: !input 'button_c2'
- - conditions: '{{ button_id == "005" and press_count == "KeyPressed" }}'
- sequence: !input 'button_d1'
- - conditions: '{{ button_id == "006" and press_count == "KeyPressed" }}'
- sequence: !input 'button_d2'
+ - choose:
+ - conditions: '{{ button_id == "002" and press_count == "KeyPressed" }}'
+ sequence: !input "button_a"
+ - conditions: '{{ button_id == "001" and press_count == "KeyPressed" }}'
+ sequence: !input "button_b"
+ - conditions: '{{ button_id == "002" and press_count == "KeyHeldDown" }}'
+ sequence: !input "button_a_held"
+ - conditions: '{{ button_id == "001" and press_count == "KeyHeldDown" }}'
+ sequence: !input "button_b_held"
+ - conditions: '{{ button_id == "002" and press_count == "KeyPressed2x" }}'
+ sequence: !input "button_a2"
+ - conditions: '{{ button_id == "001" and press_count == "KeyPressed2x" }}'
+ sequence: !input "button_b2"
+ - conditions: '{{ button_id == "002" and press_count == "KeyPressed3x" }}'
+ sequence: !input "button_a3"
+ - conditions: '{{ button_id == "001" and press_count == "KeyPressed3x" }}'
+ sequence: !input "button_b3"
+ - conditions: '{{ button_id == "002" and press_count == "KeyPressed4x" }}'
+ sequence: !input "button_a4"
+ - conditions: '{{ button_id == "001" and press_count == "KeyPressed4x" }}'
+ sequence: !input "button_b4"
+ - conditions: '{{ button_id == "002" and press_count == "KeyPressed5x" }}'
+ sequence: !input "button_a5"
+ - conditions: '{{ button_id == "001" and press_count == "KeyPressed5x" }}'
+ sequence: !input "button_b5"
+ - conditions: '{{ button_id == "003" and press_count == "KeyPressed" }}'
+ sequence: !input "button_c1"
+ - conditions: '{{ button_id == "004" and press_count == "KeyPressed" }}'
+ sequence: !input "button_c2"
+ - conditions: '{{ button_id == "005" and press_count == "KeyPressed" }}'
+ sequence: !input "button_d1"
+ - conditions: '{{ button_id == "006" and press_count == "KeyPressed" }}'
+ sequence: !input "button_d2"
diff --git a/blueprints/automation/homeassistant/motion_light.yaml b/blueprints/automation/homeassistant/motion_light.yaml
index dc2d3ca..edc068c 100644
--- a/blueprints/automation/homeassistant/motion_light.yaml
+++ b/blueprints/automation/homeassistant/motion_light.yaml
@@ -46,13 +46,13 @@ max_exceeded: silent
trigger:
- platform: state
- id: 'motion_or_presence_on'
+ id: "motion_or_presence_on"
entity_id: !input motion_entity
from: "off"
to: "on"
- platform: state
- id: 'presence_off'
+ id: "presence_off"
entity_id: !input presence_boolean
from: "on"
to: "off"
@@ -61,9 +61,9 @@ action:
- choose:
- conditions:
- condition: trigger
- trigger: 'motion_or_presence_on'
+ trigger: "motion_or_presence_on"
sequence:
- - service: light.turn_on
+ - action: light.turn_on
target: !input light_target
- wait_for_trigger:
platform: state
@@ -71,13 +71,12 @@ action:
from: "on"
to: "off"
- delay: !input no_motion_wait
- - service: light.turn_off
+ - action: light.turn_off
target: !input light_target
- conditions:
- condition: trigger
- trigger: 'presence_off'
+ trigger: "presence_off"
sequence:
- - service: light.turn_off
+ - action: light.turn_off
target: !input light_target
-
diff --git a/components/binary_sensors/rooms/blue_room_occupied.yaml b/components/binary_sensors/rooms/boys_room_occupied.yaml
similarity index 76%
rename from components/binary_sensors/rooms/blue_room_occupied.yaml
rename to components/binary_sensors/rooms/boys_room_occupied.yaml
index ac9a031..818bf82 100644
--- a/components/binary_sensors/rooms/blue_room_occupied.yaml
+++ b/components/binary_sensors/rooms/boys_room_occupied.yaml
@@ -1,18 +1,18 @@
platform: bayesian
-unique_id: bayesianbinarysensor.blue_room_occupied
-name: Blue Room Occupied
+unique_id: bayesianbinarysensor.boys_room_occupied
+name: Boys Room Occupied
device_class: occupancy
prior: 0.25
probability_threshold: 0.7
observations:
- - entity_id: group.blue_room_motion
+ - entity_id: group.boys_room_motion
prob_given_true: .99
prob_given_false: .85
platform: state
to_state: 'on'
- - entity_id: binary_sensor.blue_room_person_occupancy
+ - entity_id: binary_sensor.boys_room_person_occupancy
prob_given_true: .99
prob_given_false: .85
platform: state
diff --git a/components/binary_sensors/template.yaml b/components/binary_sensors/template.yaml
index 087dc7b..b5590f6 100644
--- a/components/binary_sensors/template.yaml
+++ b/components/binary_sensors/template.yaml
@@ -574,10 +574,10 @@ sensors:
delay_on:
seconds: 30
- blue_room_light_left_on:
- unique_id: templatebinarysensor.blue_room_light_left_on
- friendly_name: Blue Room Light Left On
- value_template: "{{ is_state('light.blue_room_hue','on') }}"
+ boys_room_light_left_on:
+ unique_id: templatebinarysensor.boys_room_light_left_on
+ friendly_name: Boys Room Light Left On
+ value_template: "{{ is_state('light.boys_room_hue','on') }}"
delay_on:
seconds: 30
diff --git a/components/covers/garage_door.yaml b/components/covers/garage_door.yaml
index ab6475f..60209b4 100644
--- a/components/covers/garage_door.yaml
+++ b/components/covers/garage_door.yaml
@@ -6,14 +6,14 @@ covers:
device_class: garage
value_template: "{{is_state('binary_sensor.garage_door','on')}}"
open_cover:
- service: switch.turn_on
+ action: switch.turn_on
data:
entity_id: switch.shelly_garage_door
close_cover:
- service: switch.turn_on
+ action: switch.turn_on
data:
entity_id: switch.shelly_garage_door
stop_cover:
- service: switch.turn_on
+ action: switch.turn_on
data:
- entity_id: switch.shelly_garage_door
\ No newline at end of file
+ entity_id: switch.shelly_garage_door
diff --git a/components/fans/template_fans.yaml b/components/fans/template_fans.yaml
index c9b83b9..2ca36e6 100644
--- a/components/fans/template_fans.yaml
+++ b/components/fans/template_fans.yaml
@@ -5,10 +5,10 @@ fans:
friendly_name: "Utility Room Vent"
value_template: "{{ states('switch.utility_room_vent_switch') }}"
turn_on:
- service: switch.turn_on
+ action: switch.turn_on
entity_id: switch.utility_room_vent_switch
turn_off:
- service: switch.turn_off
+ action: switch.turn_off
entity_id: switch.utility_room_vent_switch
bathroom_vent:
@@ -16,8 +16,8 @@ fans:
friendly_name: "Bathroom Vent"
value_template: "{{ states('switch.bathroom_vent_switch') }}"
turn_on:
- service: switch.turn_on
+ action: switch.turn_on
entity_id: switch.bathroom_vent_switch
turn_off:
- service: switch.turn_off
- entity_id: switch.bathroom_vent_switch
\ No newline at end of file
+ action: switch.turn_off
+ entity_id: switch.bathroom_vent_switch
diff --git a/components/input_booleans/rooms/blue_room_automatic_lights.yaml b/components/input_booleans/rooms/blue_room_automatic_lights.yaml
deleted file mode 100644
index c8a0145..0000000
--- a/components/input_booleans/rooms/blue_room_automatic_lights.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-name: Blue Room Automatic Lights
-icon: mdi:lightbulb-auto
diff --git a/components/input_booleans/rooms/blue_room_occupied.yaml b/components/input_booleans/rooms/blue_room_occupied.yaml
deleted file mode 100644
index df9542d..0000000
--- a/components/input_booleans/rooms/blue_room_occupied.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-name: Blue Room
-icon: mdi:yoga
diff --git a/components/input_booleans/rooms/boys_room_automatic_lights.yaml b/components/input_booleans/rooms/boys_room_automatic_lights.yaml
new file mode 100644
index 0000000..33852fd
--- /dev/null
+++ b/components/input_booleans/rooms/boys_room_automatic_lights.yaml
@@ -0,0 +1,2 @@
+name: Boys Room Automatic Lights
+icon: mdi:lightbulb-auto
diff --git a/components/input_booleans/rooms/blue_room_lights.yaml b/components/input_booleans/rooms/boys_room_lights.yaml
similarity index 55%
rename from components/input_booleans/rooms/blue_room_lights.yaml
rename to components/input_booleans/rooms/boys_room_lights.yaml
index 114039b..c96bfb2 100644
--- a/components/input_booleans/rooms/blue_room_lights.yaml
+++ b/components/input_booleans/rooms/boys_room_lights.yaml
@@ -1,2 +1,2 @@
-name: Blue Room Lights
+name: Boys Room Lights
icon: mdi:lightbulb-multiple
diff --git a/components/input_booleans/rooms/boys_room_occupied.yaml b/components/input_booleans/rooms/boys_room_occupied.yaml
new file mode 100644
index 0000000..74c7a34
--- /dev/null
+++ b/components/input_booleans/rooms/boys_room_occupied.yaml
@@ -0,0 +1,2 @@
+name: Boys Room
+icon: mdi:earth
diff --git a/components/input_buttons/bedtimes.yaml b/components/input_buttons/bedtimes.yaml
index dd96c5b..092787d 100644
--- a/components/input_buttons/bedtimes.yaml
+++ b/components/input_buttons/bedtimes.yaml
@@ -14,10 +14,10 @@ master_bedroom_awake:
name: Master Bedroom Awake
icon: mdi:bed-king
-blue_room_bedtime:
- name: Blue Room Bedtime
+boys_room_bedtime:
+ name: Boys Room Bedtime
icon: mdi:bed
-blue_room_awake:
- name: Blue Room Awake
+boys_room_awake:
+ name: Boys Room Awake
icon: mdi:bed
\ No newline at end of file
diff --git a/components/input_datetime/room_occupied.yaml b/components/input_datetime/room_occupied.yaml
index 014c34e..2d7e699 100644
--- a/components/input_datetime/room_occupied.yaml
+++ b/components/input_datetime/room_occupied.yaml
@@ -3,8 +3,8 @@ back_yard_occupied:
has_date: true
has_time: true
-blue_room_occupied:
- name: Blue Room Occupied
+boys_room_occupied:
+ name: Boys Room Occupied
has_date: true
has_time: true
diff --git a/components/input_selects/cameras/indoor_camera_cycle.yaml b/components/input_selects/cameras/indoor_camera_cycle.yaml
index cddb48a..407e143 100644
--- a/components/input_selects/cameras/indoor_camera_cycle.yaml
+++ b/components/input_selects/cameras/indoor_camera_cycle.yaml
@@ -6,4 +6,4 @@ options:
- Computer Area
- Bedroom Left
- Bedroom Right
- - Blue Room
\ No newline at end of file
+ - Boys Room
diff --git a/components/input_selects/rooms/blue_room_light_off_delay.yaml b/components/input_selects/rooms/boys_room_light_off_delay.yaml
similarity index 58%
rename from components/input_selects/rooms/blue_room_light_off_delay.yaml
rename to components/input_selects/rooms/boys_room_light_off_delay.yaml
index b19da4f..a5bfbfa 100644
--- a/components/input_selects/rooms/blue_room_light_off_delay.yaml
+++ b/components/input_selects/rooms/boys_room_light_off_delay.yaml
@@ -1,4 +1,4 @@
-name: Blue Room Light Off Delay
+name: Boys Room Light Off Delay
options:
- 'Normal'
- 'Long'
diff --git a/components/input_selects/rooms/blue_room_mode.yaml b/components/input_selects/rooms/boys_room_mode.yaml
similarity index 88%
rename from components/input_selects/rooms/blue_room_mode.yaml
rename to components/input_selects/rooms/boys_room_mode.yaml
index 887b8f9..9e83cd1 100644
--- a/components/input_selects/rooms/blue_room_mode.yaml
+++ b/components/input_selects/rooms/boys_room_mode.yaml
@@ -1,4 +1,4 @@
-name: Blue Room Mode
+name: Boys Room Mode
options:
- 'Auto'
- 'Manual'
diff --git a/components/intent_scripts/setvolume.yaml b/components/intent_scripts/setvolume.yaml
index 5fc880b..f75438c 100644
--- a/components/intent_scripts/setvolume.yaml
+++ b/components/intent_scripts/setvolume.yaml
@@ -2,9 +2,9 @@
intent_script:
SetVolume:
action:
- service: "media_player.volume_set"
+ action: "media_player.volume_set"
data:
entity_id: "{{ media_player }}"
volume_level: "{{ volume / 100.0 }}"
speech:
- text: "Volume changed to {{ volume }}"
\ No newline at end of file
+ text: "Volume changed to {{ volume }}"
diff --git a/components/packages/ambientsounds.yaml b/components/packages/ambientsounds.yaml
index 30c310b..94a1feb 100644
--- a/components/packages/ambientsounds.yaml
+++ b/components/packages/ambientsounds.yaml
@@ -28,7 +28,7 @@ group:
- media_player.great_room
- media_player.kitchen
- media_player.front_room_hub
- - media_player.nursery_hub
+ - media_player.girls_room_hub
- media_player.bathroom_mini
- media_player.master_bedroom_clock
- media_player.computer_area_hub
@@ -92,28 +92,28 @@ script:
ambientsounds:
alias: Play Ambient Sounds
sequence:
- - service: media_player.volume_set
+ - action: media_player.volume_set
data_template:
entity_id: >
{% if is_state("input_select.google_home", "Front Room") %} media_player.front_room_hub
{% elif is_state("input_select.google_home", "Master Bedroom") %} media_player.master_bedroom_clock
{% elif is_state("input_select.google_home", "Master Bathroom") %} media_player.great_room
{% elif is_state("input_select.google_home", "Kitchen") %} media_player.kitchen
- {% elif is_state("input_select.google_home", "Nursery") %} media_player.nursery_hub
+ {% elif is_state("input_select.google_home", "Nursery") %} media_player.girls_room_hub
{% elif is_state("input_select.google_home", "Computer Area") %} media_player.computer_area_hub
{% elif is_state("input_select.google_home", "Downstairs") %} media_player.downstairs_public
{% elif is_state("input_select.google_home", "Everywhere") %} media_player.all_speakers
{% endif %}
volume_level: "0.0"
- delay: "00:00:02"
- - service: media_player.play_media
+ - action: media_player.play_media
data_template:
entity_id: >
{% if is_state("input_select.google_home", "Front Room") %} media_player.front_room_hub
{% elif is_state("input_select.google_home", "Master Bedroom") %} media_player.master_bedroom_clock
{% elif is_state("input_select.google_home", "Master Bathroom") %} media_player.great_room
{% elif is_state("input_select.google_home", "Kitchen") %} media_player.kitchen
- {% elif is_state("input_select.google_home", "Nursery") %} media_player.nursery_hub
+ {% elif is_state("input_select.google_home", "Nursery") %} media_player.girls_room_hub
{% elif is_state("input_select.google_home", "Computer Area") %} media_player.computer_area_hub
{% elif is_state("input_select.google_home", "Downstairs") %} media_player.downstairs_public
{% elif is_state("input_select.google_home", "Everywhere") %} media_player.all_speakers
@@ -154,14 +154,14 @@ script:
{% endif %}
media_content_type: "audio/mp4"
- delay: "00:00:01"
- - service: media_player.volume_set
+ - action: media_player.volume_set
data_template:
entity_id: >
{% if is_state("input_select.google_home", "Front Room") %} media_player.front_room_hub
{% elif is_state("input_select.google_home", "Master Bedroom") %} media_player.master_bedroom_clock
{% elif is_state("input_select.google_home", "Master Bathroom") %} media_player.great_room
{% elif is_state("input_select.google_home", "Kitchen") %} media_player.kitchen
- {% elif is_state("input_select.google_home", "Nursery") %} media_player.nursery_hub
+ {% elif is_state("input_select.google_home", "Nursery") %} media_player.girls_room_hub
{% elif is_state("input_select.google_home", "Computer Area") %} media_player.computer_area_hub
{% elif is_state("input_select.google_home", "Downstairs") %} media_player.downstairs_public
{% elif is_state("input_select.google_home", "Everywhere") %} media_player.all_speakers
@@ -179,14 +179,14 @@ automation:
platform: state
entity_id: input_number.volume_ambientsounds
action:
- service: media_player.volume_set
+ action: media_player.volume_set
data_template:
entity_id: >
{% if is_state("input_select.google_home", "Front Room") %} media_player.front_room_hub
{% elif is_state("input_select.google_home", "Master Bedroom") %} media_player.master_bedroom_clock
{% elif is_state("input_select.google_home", "Master Bathroom") %} media_player.great_room
{% elif is_state("input_select.google_home", "Kitchen") %} media_player.kitchen
- {% elif is_state("input_select.google_home", "Nursery") %} media_player.nursery_hub
+ {% elif is_state("input_select.google_home", "Nursery") %} media_player.girls_room_hub
{% elif is_state("input_select.google_home", "Computer Area") %} media_player.computer_area_hub
{% elif is_state("input_select.google_home", "Downstairs") %} media_player.downstairs_public
{% elif is_state("input_select.google_home", "Everywhere") %} media_player.all_speakers
diff --git a/components/packages/appliances/dishwasher.yaml b/components/packages/appliances/dishwasher.yaml
index 72af553..3e50ccd 100644
--- a/components/packages/appliances/dishwasher.yaml
+++ b/components/packages/appliances/dishwasher.yaml
@@ -117,13 +117,13 @@ automation:
state: "on"
sequence:
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Empty Dishwasher - Load Started
entity_id: automation.empty_dishwasher
message: Dishwasher just turned on. Turning off input_boolean in case it got left on
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
target:
entity_id: input_boolean.empty_dishwasher
@@ -137,13 +137,13 @@ automation:
state: "off"
sequence:
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Empty Dishwasher - Load finished
entity_id: automation.empty_dishwasher
message: Dishwasher just turned off while the door was shut. Assuming dishes need to be put away
- - service: homeassistant.turn_on
+ - action: homeassistant.turn_on
target:
entity_id: input_boolean.empty_dishwasher
@@ -157,13 +157,13 @@ automation:
state: "off"
sequence:
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Empty Dishwasher - Dishes put away
entity_id: automation.empty_dishwasher
message: Dishwasher door was opened while the dishwasher was off. Assuming dishes don't need to be put away.
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
target:
entity_id: input_boolean.empty_dishwasher
diff --git a/components/packages/appliances/tumble_dryer.yaml b/components/packages/appliances/tumble_dryer.yaml
index ba9a907..8e3d2cd 100644
--- a/components/packages/appliances/tumble_dryer.yaml
+++ b/components/packages/appliances/tumble_dryer.yaml
@@ -157,13 +157,13 @@ automation:
entity_id: input_boolean.fold_clothes
state: "on"
sequence:
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Fold Clothes - Load started
entity_id: automation.fold_clothes
message: Dryer turned on. No need to fold clothes yet. Turning off input_boolean in case it got left on
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
target:
entity_id: input_boolean.fold_clothes
@@ -177,13 +177,13 @@ automation:
state: "off"
sequence:
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Fold Clothes - Load finished
entity_id: automation.fold_clothes
message: Dryer just turned off. Assuming clothes need to be folded
- - service: homeassistant.turn_on
+ - action: homeassistant.turn_on
target:
entity_id: input_boolean.fold_clothes
@@ -201,13 +201,13 @@ automation:
state: "on"
sequence:
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Fold Clothes - Clothes folded
entity_id: automation.fold_clothes
message: Door was opened while dryer was off. Assuming clothes are now folded
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
target:
entity_id: input_boolean.fold_clothes
diff --git a/components/packages/appliances/washing_machine.yaml b/components/packages/appliances/washing_machine.yaml
index f218b58..6c71a41 100644
--- a/components/packages/appliances/washing_machine.yaml
+++ b/components/packages/appliances/washing_machine.yaml
@@ -116,13 +116,13 @@ automation:
entity_id: input_boolean.swap_laundry
state: "on"
sequence:
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Swap Laundry - Load started
entity_id: automation.swap_laundry
message: Washing machine is running. No need to swap laundry yet. Turning off input_boolean.swap_laundry, in case it was left on
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
target:
entity_id: input_boolean.swap_laundry
@@ -136,12 +136,12 @@ automation:
state: "off"
sequence:
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Swap Laundry - Load needs to be swapped
entity_id: automation.swap_laundry
message: Washing machine turned off while the door was shut. Assuming that a load needs to be swapped
- - service: homeassistant.turn_on
+ - action: homeassistant.turn_on
target:
entity_id: input_boolean.swap_laundry
@@ -159,13 +159,13 @@ automation:
state: "on"
sequence:
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Swap Laundry - Load swapped
entity_id: automation.swap_laundry
message: Door was opened while washing machine was off. Assuming a load just got swapped
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
target:
entity_id: input_boolean.swap_laundry
diff --git a/components/packages/automatic_sprinkler_system.yaml b/components/packages/automatic_sprinkler_system.yaml
index 9451b30..7bc6b81 100644
--- a/components/packages/automatic_sprinkler_system.yaml
+++ b/components/packages/automatic_sprinkler_system.yaml
@@ -429,7 +429,7 @@ automation:
entity_id: input_boolean.log_precipitation
state: "on"
action:
- - service: notify.send_message
+ - action: notify.send_message
target:
entity_id: notify.precipitation
data:
@@ -443,9 +443,9 @@ automation:
from: "on"
to: "off"
action:
- - service: script.sprinkler_reset_helper_values
+ - action: script.sprinkler_reset_helper_values
- - service: input_datetime.set_datetime
+ - action: input_datetime.set_datetime
target:
entity_id: input_datetime.sprinkler_last_run
data:
@@ -458,7 +458,7 @@ automation:
entity_id: sensor.sun_next_dawn
condition: "{{ states('sensor.sun_next_dawn') not in ['unknown', 'unavailable'] }}"
action:
- - service: input_datetime.set_datetime
+ - action: input_datetime.set_datetime
target:
entity_id: input_datetime.sprinkler_next_dawn
data:
@@ -474,7 +474,7 @@ automation:
entity_id: sensor.outdoor_temperature
above: input_number.sprinkler_maximum_temperature_measured
action:
- service: input_number.set_value
+ action: input_number.set_value
target:
entity_id: input_number.sprinkler_maximum_temperature_measured
data:
@@ -516,7 +516,7 @@ automation:
state: "on"
action:
- service: opensprinkler.stop
+ action: opensprinkler.stop
data:
entity_id: switch.opensprinkler_enabled
@@ -564,12 +564,12 @@ automation:
entity_id: sensor.sprinkler_total_rain_fallen_plus_expected
below: input_number.sprinkler_precipitation_below_high_run #20.1
sequence:
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.sprinkler_repeat_program_amount
data:
value: 1
- - service: opensprinkler.set_water_level
+ - action: opensprinkler.set_water_level
data:
entity_id: sensor.opensprinkler_water_level
water_level: "{{ states('input_number.sprinkler_high_water_level') | int }}"
@@ -587,12 +587,12 @@ automation:
entity_id: sensor.sprinkler_total_rain_fallen_plus_expected
below: input_number.sprinkler_precipitation_below_medium_run #15.1
sequence:
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.sprinkler_repeat_program_amount
data:
value: 1
- - service: opensprinkler.set_water_level
+ - action: opensprinkler.set_water_level
data:
entity_id: sensor.opensprinkler_water_level
water_level: "{{ states('input_number.sprinkler_medium_water_level') | int }}"
@@ -610,12 +610,12 @@ automation:
entity_id: sensor.sprinkler_total_rain_fallen_plus_expected
below: input_number.sprinkler_precipitation_below_low_run #10.1
sequence:
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.sprinkler_repeat_program_amount
data:
value: 1
- - service: opensprinkler.set_water_level
+ - action: opensprinkler.set_water_level
data:
entity_id: sensor.opensprinkler_water_level
water_level: "{{ states('input_number.sprinkler_low_water_level') | int }}"
@@ -626,16 +626,16 @@ automation:
entity_id: sensor.sprinkler_days_since_last_watering
above: input_number.sprinkler_days_before_reset #4
sequence:
- - service: script.sprinkler_reset_helper_values
+ - action: script.sprinkler_reset_helper_values
data: {}
default:
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.sprinkler_repeat_program_amount
data:
value: 0
- - service: opensprinkler.set_water_level
+ - action: opensprinkler.set_water_level
data:
entity_id: sensor.opensprinkler_water_level
water_level: 0
@@ -645,19 +645,19 @@ script:
alias: "Sprinkler: Reset Helper Values"
icon: mdi:refresh
sequence:
- - service: input_number.set_value
+ - action: input_number.set_value
target:
entity_id: input_number.sprinkler_maximum_temperature_measured
data:
value: "{{ states('sensor.outdoor_temperature') | float(default=50) }}"
- - service: input_datetime.set_datetime
+ - action: input_datetime.set_datetime
target:
entity_id: input_datetime.sprinkler_last_reset
data:
timestamp: "{{ as_timestamp(now()) }}"
- - service: utility_meter.reset
+ - action: utility_meter.reset
data: {}
target:
entity_id: select.sprinkler_recent_rain
@@ -670,7 +670,7 @@ script:
repeat:
count: "{{states('input_number.sprinkler_repeat_program_amount') | int }}"
sequence:
- - service: opensprinkler.run
+ - action: opensprinkler.run
data:
entity_id: switch.opensprinkler_enabled
run_seconds:
diff --git a/components/packages/batteries/zigbee_batteries.yaml b/components/packages/batteries/zigbee_batteries.yaml
index 3922077..deaf422 100644
--- a/components/packages/batteries/zigbee_batteries.yaml
+++ b/components/packages/batteries/zigbee_batteries.yaml
@@ -15,7 +15,7 @@ sensor:
name: Lowest Thermostat Battery
type: min
entity_ids:
- - sensor.blue_room_thermostat_battery
+ - sensor.boys_room_thermostat_battery
- sensor.front_room_thermostat_battery
- sensor.furnace_room_thermostat_battery
- sensor.mancave_thermostat_battery
@@ -28,7 +28,7 @@ sensor:
type: min
entity_ids:
- sensor.basement_door_battery
- - sensor.blue_room_door_battery
+ - sensor.boys_room_door_battery
- sensor.mancave_door_battery
- sensor.utility_room_door_battery
- sensor.front_door_battery
diff --git a/components/packages/batteries/zwave_batteries.yaml b/components/packages/batteries/zwave_batteries.yaml
index 1b897be..44edbcd 100644
--- a/components/packages/batteries/zwave_batteries.yaml
+++ b/components/packages/batteries/zwave_batteries.yaml
@@ -12,3 +12,7 @@ sensor:
- sensor.great_room_multisensor_battery_level
- sensor.garage_multisensor_battery_level
- sensor.kitchen_multisensor_battery_level
+ - sensor.boys_room_multisensor_battery_level
+ - sensor.dining_room_multisensor_battery_level
+ - sensor.furnace_room_water_sensor_battery_level
+ - sensor.zwave_remote_battery_level
diff --git a/components/packages/camera_casting.yaml b/components/packages/camera_casting.yaml
index 18d989a..78b1935 100644
--- a/components/packages/camera_casting.yaml
+++ b/components/packages/camera_casting.yaml
@@ -2,42 +2,42 @@ input_select:
camera_dropdown:
name: Cast Camera
options:
- - Blue Room
+ - Boys Room
- Kitchen
- Front Room
- Computer Area
- Garage
- - Nursery
+ - Girls Room
- Back Yard
- Front Yard
- Front Door
- Master Bedroom
- initial: Nursery
+ initial: Girls Room
icon: mdi:camera
cast_to_screen_dropdown:
name: To Screen
options:
- Front Room Display
- - Nursery Hub
+ - Girls Room Hub
- Computer Area Hub
script:
execute_cast_dropdown:
alias: Press to execute
sequence:
- # - service: media_player.play_media
+ # - action: media_player.play_media
# target:
# entity_id: >
# {% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
# media_player.front_room_hub
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Nursery Hub') %}
- # media_player.nursery_hub
+ # media_player.girls_room_hub
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
# media_player.computer_area_hub
# {% endif %}
# data:
# media_content_id: >
- # {% if is_state('input_select.camera_dropdown', 'Blue Room') %}
+ # {% if is_state('input_select.camera_dropdown', 'Boys Room') %}
# media-source://camera/camera.frigate_cam01
# {% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
# media-source://camera/camera.frigate_cam12
@@ -58,30 +58,30 @@ script:
# {% endif %}
# media_content_type: 'image/jpeg'
- - service: media_player.volume_set
+ - action: media_player.volume_set
data:
entity_id: >
{% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
media_player.front_room_hub
- {% elif is_state('input_select.cast_to_screen_dropdown', 'Nursery Hub') %}
- media_player.nursery_hub
+ {% elif is_state('input_select.cast_to_screen_dropdown', 'Girls Room Hub') %}
+ media_player.girls_room_hub
{% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
media_player.computer_area_hub
{% endif %}
volume_level: 0.100
- # - service: webrtc.dash_cast
+ # - action: webrtc.dash_cast
# data:
# entity_id: >
# {% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
# media_player.front_room_hub
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Nursery Hub') %}
- # media_player.nursery_hub
+ # media_player.girls_room_hub
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
# media_player.computer_area_hub
# {% endif %}
# url: >
- # {% if is_state('input_select.camera_dropdown', 'Blue Room') %}
+ # {% if is_state('input_select.camera_dropdown', 'Boys Room') %}
# rtsp://192.168.1.11:8554/rtsp_cam01_sub
# {% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
# rtsp://192.168.1.11:8554/rtsp_cam12_sub
@@ -106,21 +106,20 @@ script:
# extra:
# mode: webrtc
-
- action: cast.show_lovelace_view
data:
entity_id: >
{% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
media_player.front_room_hub
- {% elif is_state('input_select.cast_to_screen_dropdown', 'Nursery Hub') %}
- media_player.nursery_hub
+ {% elif is_state('input_select.cast_to_screen_dropdown', 'Girls Room Hub') %}
+ media_player.girls_room_hub
{% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
media_player.computer_area_hub
{% endif %}
dashboard_path: camera-casting-yml
view_path: >
- {% if is_state('input_select.camera_dropdown', 'Blue Room') %}
- blue-room-camera
+ {% if is_state('input_select.camera_dropdown', 'Boys Room') %}
+ boys-room-camera
{% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
kitchen-camera
{% elif is_state('input_select.camera_dropdown', 'Computer Area') %}
@@ -129,8 +128,8 @@ script:
garage-camera
{% elif is_state('input_select.camera_dropdown', 'Master Bedroom') %}
mbr-camera
- {% elif is_state('input_select.camera_dropdown', 'Nursery') %}
- nursery-camera
+ {% elif is_state('input_select.camera_dropdown', 'Girls Room') %}
+ girls-room-camera
{% elif is_state('input_select.camera_dropdown', 'Back Yard') %}
back-yard-camera
{% elif is_state('input_select.camera_dropdown', 'Front Yard') %}
@@ -139,4 +138,4 @@ script:
front-porch-camera
{% elif is_state('input_select.camera_dropdown', 'Front Room') %}
front-room-camera
- {% endif %}
\ No newline at end of file
+ {% endif %}
diff --git a/components/packages/cameras.yaml b/components/packages/cameras.yaml
index 9d20045..ee48a68 100644
--- a/components/packages/cameras.yaml
+++ b/components/packages/cameras.yaml
@@ -19,34 +19,33 @@
# password: !secret bi_password
# authentication: basic
+# - platform: local_file
+# name: Emmett
+# file_path: /config/image/4b8a4e30436d64121be7b0b59f857877/512x512
- # - platform: local_file
- # name: Emmett
- # file_path: /config/image/4b8a4e30436d64121be7b0b59f857877/512x512
+# - platform: local_file
+# name: Bridget
+# file_path: /config/image/4ce4447957c07525227b0574cbb1e40b/512x512
- # - platform: local_file
- # name: Bridget
- # file_path: /config/image/4ce4447957c07525227b0574cbb1e40b/512x512
+# - platform: local_file
+# name: Clint
+# file_path: /config/image/ca19fa93140bf891d9a871858d910c69/512x512
- # - platform: local_file
- # name: Clint
- # file_path: /config/image/ca19fa93140bf891d9a871858d910c69/512x512
+# - platform: local_file
+# name: Ebin
+# file_path: /config/image/80720d36ba13e7993b992ee2c8c76144/512x512
- # - platform: local_file
- # name: Ebin
- # file_path: /config/image/80720d36ba13e7993b992ee2c8c76144/512x512
+# - platform: local_file
+# name: Kristy
+# file_path: /config/image/7dde65b227b3d96cb4546c9c2447db5d/512x512
- # - platform: local_file
- # name: Kristy
- # file_path: /config/image/7dde65b227b3d96cb4546c9c2447db5d/512x512
+# - platform: local_file
+# name: Tess
+# file_path: /config/image/929bf1b71232216f9ed31d8dbdbd7a54/512x512
- # - platform: local_file
- # name: Tess
- # file_path: /config/image/929bf1b71232216f9ed31d8dbdbd7a54/512x512
-
- # - platform: local_file
- # name: Marshall
- # file_path: /config/image/29196e13641d83e1c54656d88b272c7c/512x512
+# - platform: local_file
+# name: Marshall
+# file_path: /config/image/29196e13641d83e1c54656d88b272c7c/512x512
# amcrest:
# - name: Back Yard
@@ -56,7 +55,7 @@
# resolution: low
# stream_source: rtsp
-# - name: Blue Room
+# - name: Boys Room
# host: !secret camera01ip
# username: !secret camerausername
# password: !secret camerapassword
@@ -117,4 +116,4 @@
# username: !secret camerausername
# password: !secret camerapassword
# resolution: low
-# stream_source: rtsp
\ No newline at end of file
+# stream_source: rtsp
diff --git a/components/packages/clever_announcements.yaml b/components/packages/clever_announcements.yaml
index e23a424..7e9f9c0 100644
--- a/components/packages/clever_announcements.yaml
+++ b/components/packages/clever_announcements.yaml
@@ -68,7 +68,7 @@ script:
conditions: "{{ ytube_in_use }}"
sequence:
- alias: "Interrupt ytube music player"
- service: ytube_music_player.call_method
+ action: ytube_music_player.call_method
entity_id: media_player.ytube_music_player
data:
command: interrupt_start
@@ -80,14 +80,14 @@ script:
seconds: 2
- alias: "Set the volume on the announcement speakers"
- service: media_player.volume_set
+ action: media_player.volume_set
target:
entity_id: "{{media_player}}"
data:
volume_level: "{{volume}}"
- alias: "Play the announcement"
- service: media_player.play_media
+ action: media_player.play_media
target:
entity_id: "{{media_player}}"
data:
@@ -111,20 +111,20 @@ script:
conditions: "{{ ytube_in_use }}"
sequence:
- alias: "Mute the remote speakers momentarily"
- service: media_player.volume_set
+ action: media_player.volume_set
target:
entity_id: "{{ remote_player }}"
data:
volume_level: 0
- alias: "Resume the ytube music player playlist"
- service: ytube_music_player.call_method
+ action: ytube_music_player.call_method
entity_id: media_player.ytube_music_player
data:
command: interrupt_resume
- alias: "Reset the volume of the remote speakers to the previous level"
- service: media_player.volume_set
+ action: media_player.volume_set
target:
entity_id: "{{ remote_player }}"
data:
@@ -132,7 +132,7 @@ script:
default:
- alias: "Since we're not resuming music, turn off the speakers used to make the announcement"
- service: media_player.turn_off
+ action: media_player.turn_off
data: {}
target:
entity_id: "{{ media_player }}"
diff --git a/components/packages/databases.yaml b/components/packages/databases.yaml
index 96deeef..c41d83f 100644
--- a/components/packages/databases.yaml
+++ b/components/packages/databases.yaml
@@ -4,7 +4,7 @@
# If Recorder is disable for a specific entity, the history and logbook become unavailable for that entity
# Example Purge
-# service: recorder.purge
+# action: recorder.purge
# data:
# apply_filter: true
# keep_days: 180
@@ -107,7 +107,6 @@ recorder:
# - script
# - input_number
-
# The history integration tracks everything going on in Home Assistant, and allows the user to visually browse through it.
# It relies on the Recorder integration. If something is blocked by the recorder integration, it won't show up in the history integration.
# I really need to go through the History section, and see if there is anything useful that is worth keeping around.
@@ -228,8 +227,6 @@ logbook:
domains:
- sun
- device_tracker
-
-
# InfluxDB is used for external storage of data and generating pretty charts and graphs that I really don't use anywhere right now...
# As of right now, about the only info I would use are the long-term stats that are already managed in the main database, so there really is no current
# need for influx.
@@ -288,4 +285,3 @@ logbook:
# where: '"database"=''homeassistant'' AND time > now() - 5m'
# field: diskBytes
-
diff --git a/components/packages/google_assistant.yaml b/components/packages/google_assistant.yaml
index 6806877..3c421d8 100644
--- a/components/packages/google_assistant.yaml
+++ b/components/packages/google_assistant.yaml
@@ -154,7 +154,7 @@ google_assistant:
input_boolean.marshall_in_bed:
name: Marshall In Bed
expose: true
- room: Blue Room
+ room: Boys Room
input_boolean.tess_in_bed:
name: Tess In Bed
@@ -257,16 +257,16 @@ google_assistant:
room: Master Bedroom
expose: true
- input_button.blue_room_bedtime:
- name: Teens Bedtime
- room: Blue Room
+ input_button.boys_room_bedtime:
+ name: Boys Room Bedtime
+ room: Boys Room
expose: true
aliases:
- - Blue Room Bedtime
+ - Boys Room Bedtime
- input_button.blue_room_awake:
- name: Teens Awake
- room: Blue Room
+ input_button.boys_room_awake:
+ name: Boys Room Awake
+ room: Boys Room
expose: true
aliases:
- - Blue Room Awake
+ - Boys Room Awake
diff --git a/components/packages/hvac_stats.yaml b/components/packages/hvac_stats.yaml
index 2fee764..0724ca0 100644
--- a/components/packages/hvac_stats.yaml
+++ b/components/packages/hvac_stats.yaml
@@ -68,7 +68,7 @@ sensor:
entity_ids:
- sensor.computer_area_multisensor_air_temperature
- sensor.mancave_thermostat_temperature
- - sensor.blue_room_thermostat_temperature
+ - sensor.boys_room_thermostat_temperature
- sensor.great_room_multisensor_air_temperature
- sensor.furnace_room_thermostat_temperature
@@ -78,7 +78,7 @@ sensor:
entity_ids:
- sensor.computer_area_multisensor_air_temperature
- sensor.mancave_thermostat_temperature
- - sensor.blue_room_thermostat_temperature
+ - sensor.boys_room_thermostat_temperature
- sensor.great_room_multisensor_air_temperature
# - platform: min_max
@@ -87,7 +87,7 @@ sensor:
# entity_ids:
# - sensor.computer_area_multisensor_air_temperature
# - sensor.mancave_thermostat_temperature
- # - sensor.blue_room_thermostat_temperature
+ # - sensor.boys_room_thermostat_temperature
# - sensor.great_room_multisensor_air_temperature
- platform: min_max
@@ -97,7 +97,7 @@ sensor:
- sensor.computer_area_multisensor_humidity
- sensor.great_room_multisensor_humidity
- sensor.mancave_thermostat_humidity
- - sensor.blue_room_thermostat_humidity
+ - sensor.boys_room_thermostat_humidity
- platform: min_max
name: Downstairs Min Humidity
@@ -106,7 +106,7 @@ sensor:
- sensor.computer_area_multisensor_humidity
- sensor.great_room_multisensor_humidity
- sensor.mancave_thermostat_humidity
- - sensor.blue_room_thermostat_humidity
+ - sensor.boys_room_thermostat_humidity
- platform: min_max
name: Downstairs Mean Humidity
@@ -115,7 +115,7 @@ sensor:
- sensor.computer_area_multisensor_humidity
- sensor.great_room_multisensor_humidity
- sensor.mancave_thermostat_humidity
- - sensor.blue_room_thermostat_humidity
+ - sensor.boys_room_thermostat_humidity
- platform: history_stats
name: AC Cooling Time Today
diff --git a/components/packages/light_cycle.yaml b/components/packages/light_cycle.yaml
index 103e3e8..29b42f2 100644
--- a/components/packages/light_cycle.yaml
+++ b/components/packages/light_cycle.yaml
@@ -1,7 +1,7 @@
script:
light_cycle:
sequence:
- - service: homeassistant.turn_on
+ - action: homeassistant.turn_on
entity_id: light.front_room_hue
data_template:
brightness: 250
@@ -10,16 +10,16 @@ script:
{{ colors|random }}
transition: 1
# Wait until the loop_lights script has finished running
- - delay: '00:00:02'
+ - delay: "00:00:02"
- wait_template: "{{ is_state('script.loop_lights', 'off') }}"
- - service: script.loop_lights
+ - action: script.loop_lights
loop_lights:
sequence:
- - delay: '00:00:02'
+ - delay: "00:00:02"
# Wait until the light_cycle script has finished running
- wait_template: "{{ is_state('script.light_cycle', 'off') }}"
- - service: script.light_cycle
+ - action: script.light_cycle
automation:
- alias: Light Cycle Start
@@ -27,43 +27,43 @@ automation:
trigger:
- platform: state
entity_id: input_boolean.front_room_light_cycle
- to: 'on'
+ to: "on"
action:
- - service: input_text.set_value
+ - action: input_text.set_value
# Again, note the use of 'data_template:' rather than the normal 'data:' if you weren't using an input variable.
data_template:
entity_id: input_text.front_room_mode
value: "{{ states('input_select.front_room_mode') }}"
- - service: input_select.select_option
+ - action: input_select.select_option
data:
entity_id: input_select.front_room_mode
- option: 'Off'
- - service: script.light_cycle
+ option: "Off"
+ - action: script.light_cycle
- alias: Light Cycle Stop
id: automation_light_cycle_stop
trigger:
- platform: state
entity_id: input_boolean.front_room_light_cycle
- to: 'off'
+ to: "off"
action:
- - service: homeassistant.turn_off
+ - action: homeassistant.turn_off
entity_id:
- script.light_cycle
- script.loop_lights
- - service: input_select.select_option
+ - action: input_select.select_option
data_template:
entity_id: input_select.front_room_mode
option: "{{ states('input_text.front_room_mode') }}"
- - service: input_boolean.toggle
+ - action: input_boolean.toggle
data:
entity_id: input_boolean.front_room_occupied
- - delay: '00:00:01'
+ - delay: "00:00:01"
- - service: input_boolean.toggle
+ - action: input_boolean.toggle
data:
- entity_id: input_boolean.front_room_occupied
\ No newline at end of file
+ entity_id: input_boolean.front_room_occupied
diff --git a/components/packages/meterologisk_templates.yaml b/components/packages/meterologisk_templates.yaml
index ece1d85..96fcf32 100644
--- a/components/packages/meterologisk_templates.yaml
+++ b/components/packages/meterologisk_templates.yaml
@@ -27,14 +27,14 @@ template:
event: start
action:
- - service: weather.get_forecasts
+ - action: weather.get_forecasts
data:
type: daily
target:
entity_id: weather.forecast_home
response_variable: daily
- - service: weather.get_forecasts
+ - action: weather.get_forecasts
data:
type: hourly
target:
diff --git a/components/packages/naturally_lit_rooms.yaml b/components/packages/naturally_lit_rooms.yaml
index b012ef9..4983974 100644
--- a/components/packages/naturally_lit_rooms.yaml
+++ b/components/packages/naturally_lit_rooms.yaml
@@ -4,29 +4,29 @@ template:
event: start
- platform: state
- entity_id: input_number.blue_room_light_level_trigger
+ entity_id: input_number.boys_room_light_level_trigger
- platform: state
- entity_id: sensor.blue_room_multisensor_illuminance
+ entity_id: sensor.boys_room_multisensor_illuminance
binary_sensor:
- - name: "Blue Room Naturally Lit"
+ - name: "Boys Room Naturally Lit"
unique_id: templatebinarysensor_blueroomnaturallylit
delay_on:
seconds: 3
delay_off:
seconds: 3
state: >
- {{ states('sensor.blue_room_multisensor_illuminance') | float(default=0) > states('input_number.blue_room_light_level_trigger') | float(default=0) }}
+ {{ states('sensor.boys_room_multisensor_illuminance') | float(default=0) > states('input_number.boys_room_light_level_trigger') | float(default=0) }}
icon: >
- {% if states('sensor.blue_room_multisensor_illuminance') | float(default=0) > states('input_number.blue_room_light_level_trigger') | float(default=0) %}
+ {% if states('sensor.boys_room_multisensor_illuminance') | float(default=0) > states('input_number.boys_room_light_level_trigger') | float(default=0) %}
mdi:weather-sunny
{% else %}
mdi:weather-sunny-off
{% endif %}
attributes:
- illuminance: "{{ states('sensor.blue_room_multisensor_illuminance') | float(default=0) }}"
- trigger: "{{ states('input_number.blue_room_light_level_trigger') | float(default=0) }}"
+ illuminance: "{{ states('sensor.boys_room_multisensor_illuminance') | float(default=0) }}"
+ trigger: "{{ states('input_number.boys_room_light_level_trigger') | float(default=0) }}"
- trigger:
- platform: homeassistant
@@ -351,8 +351,8 @@ template:
trigger: "{{ states('input_number.nursery_light_level_trigger') | float(default=0) }}"
input_number:
- blue_room_light_level_trigger:
- name: Blue Room Light Level Trigger
+ boys_room_light_level_trigger:
+ name: Boys Room Light Level Trigger
icon: mdi:brightness-auto
min: 0
max: 50000
diff --git a/components/packages/notify_clints_everything.yaml b/components/packages/notify_clints_everything.yaml
index 21d6c72..e8d3c11 100644
--- a/components/packages/notify_clints_everything.yaml
+++ b/components/packages/notify_clints_everything.yaml
@@ -2,7 +2,7 @@ notify:
- platform: group
name: "Clints Everything"
services:
- - service: dreambox
- - service: dreamtablet
- - service: dreamtablet02
- - service: mobile_app_pixel_7
\ No newline at end of file
+ - action: dreambox
+ - action: dreamtablet
+ - action: dreamtablet02
+ - action: mobile_app_pixel_7
diff --git a/components/packages/openweathermap_templates.yaml b/components/packages/openweathermap_templates.yaml
index 74d5021..bd67bea 100644
--- a/components/packages/openweathermap_templates.yaml
+++ b/components/packages/openweathermap_templates.yaml
@@ -28,14 +28,14 @@
# event: start
# action:
-# - service: weather.get_forecasts
+# - action: weather.get_forecasts
# data:
# type: daily
# target:
# entity_id: weather.openweathermap_daily
# response_variable: daily
-# - service: weather.get_forecasts
+# - action: weather.get_forecasts
# data:
# type: hourly
# target:
diff --git a/components/packages/patio_door_lock.yaml b/components/packages/patio_door_lock.yaml
index fa464c3..0ab6a37 100644
--- a/components/packages/patio_door_lock.yaml
+++ b/components/packages/patio_door_lock.yaml
@@ -4,10 +4,10 @@ lock:
name: Patio Door
value_template: "{{ is_state('switch.shelly_sliding_glass_door', 'on') }}"
lock:
- service: switch.turn_on
+ action: switch.turn_on
target:
entity_id: switch.shelly_sliding_glass_door
unlock:
- service: switch.turn_off
+ action: switch.turn_off
target:
- entity_id: switch.shelly_sliding_glass_door
\ No newline at end of file
+ entity_id: switch.shelly_sliding_glass_door
diff --git a/components/packages/pixel_7_coordinates.yaml b/components/packages/pixel_7_coordinates.yaml
index 7a581df..5b62c74 100644
--- a/components/packages/pixel_7_coordinates.yaml
+++ b/components/packages/pixel_7_coordinates.yaml
@@ -26,8 +26,8 @@ automation:
state: "on"
action:
- - service: notify.send_message
+ - action: notify.send_message
target:
entity_id: notify.pixel_7_coordinates
data:
- message: "{{now().strftime('%Y-%m-%d')}}T{{now().strftime('%H:%M:%S.%f')}},{{states('device_tracker.pixel_7')}},{{state_attr('device_tracker.pixel_7','latitude')}},{{state_attr('device_tracker.pixel_7','longitude')}}"
\ No newline at end of file
+ message: "{{now().strftime('%Y-%m-%d')}}T{{now().strftime('%H:%M:%S.%f')}},{{states('device_tracker.pixel_7')}},{{state_attr('device_tracker.pixel_7','latitude')}},{{state_attr('device_tracker.pixel_7','longitude')}}"
diff --git a/components/packages/utility_meter/update_tariff.yaml b/components/packages/utility_meter/update_tariff.yaml
index 6332cb0..33a6f38 100644
--- a/components/packages/utility_meter/update_tariff.yaml
+++ b/components/packages/utility_meter/update_tariff.yaml
@@ -1,114 +1,114 @@
automation:
-- id: automation_update_energy_tariff
- alias: Update Energy Tariff
- # Summer rates run from June 1st through September 30
- # Summer peak rate starts at 14:00 and ends at 19:00
- trigger:
- - platform: state
- entity_id: sensor.energy_tariff
- to:
- - Non-Summer
- - Summer Peak
- - Summer Non-Peak
+ - id: automation_update_energy_tariff
+ alias: Update Energy Tariff
+ # Summer rates run from June 1st through September 30
+ # Summer peak rate starts at 14:00 and ends at 19:00
+ trigger:
+ - platform: state
+ entity_id: sensor.energy_tariff
+ to:
+ - Non-Summer
+ - Summer Peak
+ - Summer Non-Peak
- - platform: homeassistant
- event: start
+ - platform: homeassistant
+ event: start
- - platform: event
- event_type: automation_reloaded
+ - platform: event
+ event_type: automation_reloaded
- action:
- - service: select.select_option
- target:
- entity_id:
- - select.hourly_energy
- - select.daily_energy
- - select.weekly_energy
- - select.monthly_energy
- # - select.basement_and_laundry_lights_and_plugs_hourly
- # - select.basement_and_laundry_lights_and_plugs_daily
- # - select.basement_and_laundry_lights_and_plugs_weekly
- # - select.basement_and_laundry_lights_and_plugs_monthly
- # - select.basement_bedroom_and_furnace_room_lights_hourly
- # - select.basement_bedroom_and_furnace_room_lights_daily
- # - select.basement_bedroom_and_furnace_room_lights_weekly
- # - select.basement_bedroom_and_furnace_room_lights_monthly
- # - select.basement_plugs_hourly
- # - select.basement_plugs_daily
- # - select.basement_plugs_weekly
- # - select.basement_plugs_monthly
- # - select.basement_stairs_and_lights_hourly
- # - select.basement_stairs_and_lights_daily
- # - select.basement_stairs_and_lights_weekly
- # - select.basement_stairs_and_lights_monthly
- # - select.bathroom_plug_hourly
- # - select.bathroom_plug_daily
- # - select.bathroom_plug_weekly
- # - select.bathroom_plug_monthly
- # - select.dishwasher_hourly
- # - select.dishwasher_daily
- # - select.dishwasher_weekly
- # - select.dishwasher_monthly
- # - select.dryer_hourly
- # - select.dryer_daily
- # - select.dryer_weekly
- # - select.dryer_monthly
- # - select.front_room_plugs_hourly
- # - select.front_room_plugs_daily
- # - select.front_room_plugs_weekly
- # - select.front_room_plugs_monthly
- # - select.furnace_hourly
- # - select.furnace_daily
- # - select.furnace_weekly
- # - select.furnace_monthly
- # - select.garage_and_outside_plugs_hourly
- # - select.garage_and_outside_plugs_daily
- # - select.garage_and_outside_plugs_weekly
- # - select.garage_and_outside_plugs_monthly
- # - select.garage_outside_and_front_garage_lights_hourly
- # - select.garage_outside_and_front_garage_lights_daily
- # - select.garage_outside_and_front_garage_lights_weekly
- # - select.garage_outside_and_front_garage_lights_monthly
- # - select.heat_pump_hourly
- # - select.heat_pump_daily
- # - select.heat_pump_weekly
- # - select.heat_pump_monthly
- # - select.kitchen_1_hourly
- # - select.kitchen_1_daily
- # - select.kitchen_1_weekly
- # - select.kitchen_1_monthly
- # - select.kitchen_2_hourly
- # - select.kitchen_2_daily
- # - select.kitchen_2_weekly
- # - select.kitchen_2_monthly
- # - select.laundry_plug_hourly
- # - select.laundry_plug_daily
- # - select.laundry_plug_weekly
- # - select.laundry_plug_monthly
- # - select.master_suite_hourly
- # - select.master_suite_daily
- # - select.master_suite_weekly
- # - select.master_suite_monthly
- # - select.microwave_plug_hourly
- # - select.microwave_plug_daily
- # - select.microwave_plug_weekly
- # - select.microwave_plug_monthly
- # - select.nursery_dining_kitchen_lights_hourly
- # - select.nursery_dining_kitchen_lights_daily
- # - select.nursery_dining_kitchen_lights_weekly
- # - select.nursery_dining_kitchen_lights_monthly
- # - select.stove_hourly
- # - select.stove_daily
- # - select.stove_weekly
- # - select.stove_monthly
- # - select.sump_pump_plug_hourly
- # - select.sump_pump_plug_daily
- # - select.sump_pump_plug_weekly
- # - select.sump_pump_plug_monthly
- # - select.well_hourly
- # - select.well_daily
- # - select.well_weekly
- # - select.well_monthly
+ action:
+ - action: select.select_option
+ target:
+ entity_id:
+ - select.hourly_energy
+ - select.daily_energy
+ - select.weekly_energy
+ - select.monthly_energy
+ # - select.basement_and_laundry_lights_and_plugs_hourly
+ # - select.basement_and_laundry_lights_and_plugs_daily
+ # - select.basement_and_laundry_lights_and_plugs_weekly
+ # - select.basement_and_laundry_lights_and_plugs_monthly
+ # - select.basement_bedroom_and_furnace_room_lights_hourly
+ # - select.basement_bedroom_and_furnace_room_lights_daily
+ # - select.basement_bedroom_and_furnace_room_lights_weekly
+ # - select.basement_bedroom_and_furnace_room_lights_monthly
+ # - select.basement_plugs_hourly
+ # - select.basement_plugs_daily
+ # - select.basement_plugs_weekly
+ # - select.basement_plugs_monthly
+ # - select.basement_stairs_and_lights_hourly
+ # - select.basement_stairs_and_lights_daily
+ # - select.basement_stairs_and_lights_weekly
+ # - select.basement_stairs_and_lights_monthly
+ # - select.bathroom_plug_hourly
+ # - select.bathroom_plug_daily
+ # - select.bathroom_plug_weekly
+ # - select.bathroom_plug_monthly
+ # - select.dishwasher_hourly
+ # - select.dishwasher_daily
+ # - select.dishwasher_weekly
+ # - select.dishwasher_monthly
+ # - select.dryer_hourly
+ # - select.dryer_daily
+ # - select.dryer_weekly
+ # - select.dryer_monthly
+ # - select.front_room_plugs_hourly
+ # - select.front_room_plugs_daily
+ # - select.front_room_plugs_weekly
+ # - select.front_room_plugs_monthly
+ # - select.furnace_hourly
+ # - select.furnace_daily
+ # - select.furnace_weekly
+ # - select.furnace_monthly
+ # - select.garage_and_outside_plugs_hourly
+ # - select.garage_and_outside_plugs_daily
+ # - select.garage_and_outside_plugs_weekly
+ # - select.garage_and_outside_plugs_monthly
+ # - select.garage_outside_and_front_garage_lights_hourly
+ # - select.garage_outside_and_front_garage_lights_daily
+ # - select.garage_outside_and_front_garage_lights_weekly
+ # - select.garage_outside_and_front_garage_lights_monthly
+ # - select.heat_pump_hourly
+ # - select.heat_pump_daily
+ # - select.heat_pump_weekly
+ # - select.heat_pump_monthly
+ # - select.kitchen_1_hourly
+ # - select.kitchen_1_daily
+ # - select.kitchen_1_weekly
+ # - select.kitchen_1_monthly
+ # - select.kitchen_2_hourly
+ # - select.kitchen_2_daily
+ # - select.kitchen_2_weekly
+ # - select.kitchen_2_monthly
+ # - select.laundry_plug_hourly
+ # - select.laundry_plug_daily
+ # - select.laundry_plug_weekly
+ # - select.laundry_plug_monthly
+ # - select.master_suite_hourly
+ # - select.master_suite_daily
+ # - select.master_suite_weekly
+ # - select.master_suite_monthly
+ # - select.microwave_plug_hourly
+ # - select.microwave_plug_daily
+ # - select.microwave_plug_weekly
+ # - select.microwave_plug_monthly
+ # - select.nursery_dining_kitchen_lights_hourly
+ # - select.nursery_dining_kitchen_lights_daily
+ # - select.nursery_dining_kitchen_lights_weekly
+ # - select.nursery_dining_kitchen_lights_monthly
+ # - select.stove_hourly
+ # - select.stove_daily
+ # - select.stove_weekly
+ # - select.stove_monthly
+ # - select.sump_pump_plug_hourly
+ # - select.sump_pump_plug_daily
+ # - select.sump_pump_plug_weekly
+ # - select.sump_pump_plug_monthly
+ # - select.well_hourly
+ # - select.well_daily
+ # - select.well_weekly
+ # - select.well_monthly
- data:
- option: "{{ states('sensor.energy_tariff') }}"
\ No newline at end of file
+ data:
+ option: "{{ states('sensor.energy_tariff') }}"
diff --git a/components/packages/zwave_nodes.yaml b/components/packages/zwave_nodes.yaml
index 12bc4a1..20620b5 100644
--- a/components/packages/zwave_nodes.yaml
+++ b/components/packages/zwave_nodes.yaml
@@ -19,35 +19,35 @@ template:
{% endif %}
automation:
-- id: automation_alert_failed_zwave_nodes
- alias: Ping Dead Zwave Nodes
- description: 'Iterates through a list of dead ZWave Nodes and calls a service to press the Ping button'
- mode: single
- max_exceeded: silent
- trigger:
- - platform: state
- entity_id: sensor.dead_zwave_devices
- condition:
- - condition: template
- value_template: '{{ states("sensor.dead_zwave_devices")|int(default=0) >0 }}'
- action:
- - repeat:
- while: '{{ states("sensor.dead_zwave_devices")|int(default=0) > 0 }}'
- sequence:
- - service: button.press
- target:
- entity_id: >-
- {% set list =
- expand(integration_entities('Z-Wave JS') )| selectattr('entity_id', 'search', 'node_status') |
- selectattr('state', 'in', ['dead', 'unavailable', 'unknown']) |
- map(attribute='entity_id')| list %}
+ - id: automation_alert_failed_zwave_nodes
+ alias: Ping Dead Zwave Nodes
+ description: "Iterates through a list of dead ZWave Nodes and calls a service to press the Ping button"
+ mode: single
+ max_exceeded: silent
+ trigger:
+ - platform: state
+ entity_id: sensor.dead_zwave_devices
+ condition:
+ - condition: template
+ value_template: '{{ states("sensor.dead_zwave_devices")|int(default=0) >0 }}'
+ action:
+ - repeat:
+ while: '{{ states("sensor.dead_zwave_devices")|int(default=0) > 0 }}'
+ sequence:
+ - action: button.press
+ target:
+ entity_id: >-
+ {% set list =
+ expand(integration_entities('Z-Wave JS') )| selectattr('entity_id', 'search', 'node_status') |
+ selectattr('state', 'in', ['dead', 'unavailable', 'unknown']) |
+ map(attribute='entity_id')| list %}
- {% set ns = namespace(buttons=[]) %}
- {% for d in list %}
- {% set ns.buttons = ns.buttons +
- ['button.' ~ (states[d].object_id.split('_node')[0]) ~ '_ping'] %}
+ {% set ns = namespace(buttons=[]) %}
+ {% for d in list %}
+ {% set ns.buttons = ns.buttons +
+ ['button.' ~ (states[d].object_id.split('_node')[0]) ~ '_ping'] %}
- {% endfor %}
- {{ns.buttons}}
- - delay:
- seconds: 1
\ No newline at end of file
+ {% endfor %}
+ {{ns.buttons}}
+ - delay:
+ seconds: 1
diff --git a/components/sensors/template.yaml b/components/sensors/template.yaml
index d6ebd16..7fba4bd 100644
--- a/components/sensors/template.yaml
+++ b/components/sensors/template.yaml
@@ -238,7 +238,7 @@ sensors:
unique_id: temlatesensor.frigate_person_count
friendly_name: Frigate Person Count
value_template: "{{
- states('sensor.blue_room_person_count')|int(default=0) +
+ states('sensor.boys_room_person_count')|int(default=0) +
states('sensor.computer_area_person_count')|int(default=0) +
states('sensor.dining_room_person_count')|int(default=0) +
states('sensor.entryway_person_count')|int(default=0) +
diff --git a/components/switches/template.yaml b/components/switches/template.yaml
index 161a1c7..78184c0 100644
--- a/components/switches/template.yaml
+++ b/components/switches/template.yaml
@@ -14,11 +14,11 @@ switches:
{{ 'true' }}
{% endif %}
turn_on:
- - service: ecobee.set_fan_min_on_time
+ - action: ecobee.set_fan_min_on_time
data:
fan_min_on_time: 60
turn_off:
- - service: ecobee.set_fan_min_on_time
+ - action: ecobee.set_fan_min_on_time
data:
fan_min_on_time: 0
@@ -27,11 +27,11 @@ switches:
friendly_name: "Master Bedroom Light Cycle"
value_template: "{{ is_state('input_boolean.master_bedroom_light_cycle', 'on') }}"
turn_on:
- service: input_boolean.turn_on
+ action: input_boolean.turn_on
data:
entity_id: input_boolean.master_bedroom_light_cycle
turn_off:
- service: input_boolean.turn_off
+ action: input_boolean.turn_off
data:
entity_id: input_boolean.master_bedroom_light_cycle
icon_template: >-
@@ -46,11 +46,11 @@ switches:
friendly_name: "Nursery Light Cycle"
value_template: "{{ is_state('input_boolean.nursery_light_cycle', 'on') }}"
turn_on:
- service: input_boolean.turn_on
+ action: input_boolean.turn_on
data:
entity_id: input_boolean.nursery_light_cycle
turn_off:
- service: input_boolean.turn_off
+ action: input_boolean.turn_off
data:
entity_id: input_boolean.nursery_light_cycle
icon_template: >-
@@ -65,11 +65,11 @@ switches:
friendly_name: "Front Room Light Cycle"
value_template: "{{ is_state('input_boolean.front_room_light_cycle', 'on') }}"
turn_on:
- service: input_boolean.turn_on
+ action: input_boolean.turn_on
data:
entity_id: input_boolean.front_room_light_cycle
turn_off:
- service: input_boolean.turn_off
+ action: input_boolean.turn_off
data:
entity_id: input_boolean.front_room_light_cycle
icon_template: >-
@@ -84,11 +84,11 @@ switches:
friendly_name: "Great Room Light Cycle"
value_template: "{{ is_state('input_boolean.great_room_light_cycle', 'on') }}"
turn_on:
- service: input_boolean.turn_on
+ action: input_boolean.turn_on
data:
entity_id: input_boolean.great_room_light_cycle
turn_off:
- service: input_boolean.turn_off
+ action: input_boolean.turn_off
data:
entity_id: input_boolean.great_room_light_cycle
icon_template: >-
@@ -103,11 +103,11 @@ switches:
friendly_name: "Computer Area Light Cycle"
value_template: "{{ is_state('input_boolean.computer_area_light_cycle', 'on') }}"
turn_on:
- service: input_boolean.turn_on
+ action: input_boolean.turn_on
data:
entity_id: input_boolean.computer_area_light_cycle
turn_off:
- service: input_boolean.turn_off
+ action: input_boolean.turn_off
data:
entity_id: input_boolean.computer_area_light_cycle
icon_template: >-
@@ -121,7 +121,7 @@ switches:
unique_id: templateswitch.nursery_bed_lights
value_template: "{{ is_state('light.black_bed_wled', 'on') or is_state('light.white_bed_wled', 'on') }}"
turn_on:
- service: select.select_option
+ action: select.select_option
target:
entity_id:
- select.black_bed_wled_preset
@@ -129,7 +129,7 @@ switches:
data:
option: Bouncing Balls
turn_off:
- service: select.select_option
+ action: select.select_option
target:
entity_id:
- select.black_bed_wled_preset
@@ -143,12 +143,12 @@ switches:
unique_id: templateswitch.virtual_reality
value_template: "{{ is_state('switch.vr_headset_plug', 'on') }}"
turn_on:
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
data:
entity_id:
- switch.vr_headset_plug
turn_off:
- service: homeassistant.turn_off
+ action: homeassistant.turn_off
data:
entity_id:
- switch.vr_headset_plug
@@ -159,40 +159,40 @@ switches:
# unique_id: templateswitch.all_chores
# value_template: "{{ is_state('input_boolean.grocy_next_chores', 'on')}}"
# turn_on:
- # service: homeassistant.turn_on
+ # action: homeassistant.turn_on
# data:
# entity_id:
# - input_boolean.grocy_next_chores
# turn_off:
- # service: homeassistant.turn_off
+ # action: homeassistant.turn_off
# data:
# entity_id:
# - input_boolean.grocy_next_chores
- # blue_room_chores:
- # unique_id: templateswitch.blue_room_chores
- # value_template: "{{ is_state('input_boolean.blue_room_next_chores', 'on')}}"
+ # boys_room_chores:
+ # unique_id: templateswitch.boys_room_chores
+ # value_template: "{{ is_state('input_boolean.boys_room_next_chores', 'on')}}"
# turn_on:
- # service: homeassistant.turn_on
+ # action: homeassistant.turn_on
# data:
# entity_id:
- # - input_boolean.blue_room_next_chores
+ # - input_boolean.boys_room_next_chores
# turn_off:
- # service: homeassistant.turn_off
+ # action: homeassistant.turn_off
# data:
# entity_id:
- # - input_boolean.blue_room_next_chores
+ # - input_boolean.boys_room_next_chores
# computer_area_chores:
# unique_id: templateswitch.computer_area_chores
# value_template: "{{ is_state('input_boolean.computer_area_next_chores', 'on')}}"
# turn_on:
- # service: homeassistant.turn_on
+ # action: homeassistant.turn_on
# data:
# entity_id:
# - input_boolean.computer_area_next_chores
# turn_off:
- # service: homeassistant.turn_off
+ # action: homeassistant.turn_off
# data:
# entity_id:
- # - input_boolean.computer_area_next_chores
\ No newline at end of file
+ # - input_boolean.computer_area_next_chores
diff --git a/components/timers/lights.yaml b/components/timers/lights.yaml
index d1a1166..b86ac7a 100644
--- a/components/timers/lights.yaml
+++ b/components/timers/lights.yaml
@@ -43,10 +43,10 @@
# mancave_lights:
# duration: '00:05:00'
-# blue_room_lights:
+# boys_room_lights:
# duration: '00:05:00'
-# blue_room_closet_lights:
+# boys_room_closet_lights:
# duration: '00:05:00'
# furnace_room_lights:
diff --git a/customizations/entities/lights.yaml b/customizations/entities/lights.yaml
index b9ea8b2..a3eddea 100644
--- a/customizations/entities/lights.yaml
+++ b/customizations/entities/lights.yaml
@@ -63,10 +63,10 @@ light.great_room_hue:
light.mancave:
icon: mdi:dome-light
-light.blue_room_hue:
+light.boys_room_hue:
icon: mdi:dome-light
-light.blue_room_closet:
+light.boys_room_closet:
icon: mdi:dome-light
light.furnace_room:
diff --git a/customizations/entities/media_players.yaml b/customizations/entities/media_players.yaml
index ca166b3..274def1 100644
--- a/customizations/entities/media_players.yaml
+++ b/customizations/entities/media_players.yaml
@@ -1,69 +1,68 @@
-media_player.all_downstairs_speakers:
- icon: mdi:speaker-multiple
+# media_player.all_downstairs_speakers:
+# icon: mdi:speaker-multiple
-media_player.all_public_speakers:
- icon: mdi:speaker-multiple
+# media_player.all_public_speakers:
+# icon: mdi:speaker-multiple
-media_player.all_speakers:
- icon: mdi:speaker-multiple
+# media_player.all_speakers:
+# icon: mdi:speaker-multiple
-media_player.all_upstairs_speakers:
- icon: mdi:speaker-multiple
+# media_player.all_upstairs_speakers:
+# icon: mdi:speaker-multiple
-media_player.announcements:
- icon: mdi:speaker-multiple
+# media_player.announcements:
+# icon: mdi:speaker-multiple
-media_player.bathroom_mini:
- icon: mdi:cast-audio
+# media_player.bathroom_mini:
+# icon: mdi:cast-audio
-media_player.blue_room_clock:
- icon: mdi:cast-audio
+# media_player.boys_room_clock:
+# icon: mdi:cast-audio
-media_player.deck:
- icon: mdi:cast-audio
+# media_player.deck:
+# icon: mdi:cast-audio
-media_player.downstairs_public:
- icon: mdi:speaker-multiple
+# media_player.downstairs_public:
+# icon: mdi:speaker-multiple
-media_player.front_room_hub:
- icon: mdi:cast-variant
-
-media_player.computer_area_hub:
- icon: mdi:cast-variant
-
-media_player.front_yard:
- icon: mdi:speaker-multiple
-
-media_player.garage:
- icon: mdi:cast-audio
-
-media_player.great_room:
- icon: mdi:cast-audio
-
-media_player.inside_and_outside:
- icon: mdi:speaker-multiple
-
-media_player.kitchen:
- icon: mdi:cast-audio
-
-media_player.master_bedroom_clock:
- icon: mdi:cast-audio
-
-# media_player.master_bedroom_tv:
+# media_player.front_room_hub:
# icon: mdi:cast-variant
-media_player.nursery_hub:
- icon: mdi:cast-variant
+# media_player.computer_area_hub:
+# icon: mdi:cast-variant
-media_player.outside:
- icon: mdi:speaker-multiple
+# media_player.front_yard:
+# icon: mdi:speaker-multiple
-media_player.upstairs_public:
- icon: mdi:speaker-multiple
+# media_player.garage:
+# icon: mdi:cast-audio
-media_player.downstairs_roku:
- icon: mdi:remote-tv
+# media_player.great_room:
+# icon: mdi:cast-audio
-media_player.front_room_tv:
- icon: mdi:remote-tv
+# media_player.inside_and_outside:
+# icon: mdi:speaker-multiple
+# media_player.kitchen:
+# icon: mdi:cast-audio
+
+# media_player.master_bedroom_clock:
+# icon: mdi:cast-audio
+
+# # media_player.master_bedroom_tv:
+# # icon: mdi:cast-variant
+
+# media_player.girls_room_hub:
+# icon: mdi:cast-variant
+
+# media_player.outside:
+# icon: mdi:speaker-multiple
+
+# media_player.upstairs_public:
+# icon: mdi:speaker-multiple
+
+# media_player.downstairs_roku:
+# icon: mdi:remote-tv
+
+# media_player.front_room_tv:
+# icon: mdi:remote-tv
diff --git a/esphome/nursery-tagreader.yaml b/esphome/nursery-tagreader.yaml
index bfcde34..8207aeb 100644
--- a/esphome/nursery-tagreader.yaml
+++ b/esphome/nursery-tagreader.yaml
@@ -129,21 +129,21 @@ logger:
# Enable Home Assistant API
api:
services:
- - service: rfidreader_tag_ok
+ - action: rfidreader_tag_ok
then:
- rtttl.play: "beep:d=16,o=5,b=100:b"
- - service: rfidreader_tag_ko
+ - action: rfidreader_tag_ko
then:
- rtttl.play: "beep:d=8,o=5,b=100:b"
- - service: play_rtttl
+ - action: play_rtttl
variables:
song_str: string
then:
- rtttl.play: !lambda 'return song_str;'
- - service: write_tag_id
+ - action: write_tag_id
variables:
tag_id: string
then:
@@ -167,7 +167,7 @@ api:
id: activity_led
- rtttl.play: "write:d=24,o=5,b=100:b,b"
- - service: write_music_tag
+ - action: write_music_tag
variables:
music_url: string
music_info: string
diff --git a/groups.yaml b/groups.yaml
index 2d41c36..f54b967 100644
--- a/groups.yaml
+++ b/groups.yaml
@@ -26,7 +26,7 @@ my_room_status:
- input_boolean.master_bedroom_occupied
- input_boolean.nursery_occupied
- input_boolean.master_bathroom_occupied
- - input_boolean.blue_room_occupied
+ - input_boolean.boys_room_occupied
- input_boolean.mancave_occupied
- input_boolean.computer_area_occupied
- input_boolean.entryway_occupied
@@ -44,12 +44,12 @@ furnace_room_motion:
entities:
- binary_sensor.furnace_room_motion_switch_home_security_motion_detection
-blue_room_motion:
- name: Blue Room Motion
+boys_room_motion:
+ name: Boys Room Motion
icon: mdi:motion-sensor
entities:
- - binary_sensor.blue_room_motion_switch_home_security_motion_detection
- - binary_sensor.blue_room_multisensor_motion_detection
+ - binary_sensor.boys_room_motion_switch_motion_detection
+ - binary_sensor.boys_room_multisensor_motion_detection
front_room_motion:
name: Front Room Motion
@@ -259,7 +259,7 @@ my_hvac_affecting_openings:
- binary_sensor.nursery_window_contact
- binary_sensor.master_bedroom_window_contact
- binary_sensor.computer_area_window_contact
- - binary_sensor.blue_room_window_contact
+ - binary_sensor.boys_room_window_contact
- binary_sensor.entryway_window_contact
my_garage_doors:
@@ -280,7 +280,7 @@ my_exterior_windows:
- binary_sensor.nursery_window_contact
- binary_sensor.master_bedroom_window_contact
- binary_sensor.computer_area_window_contact
- - binary_sensor.blue_room_window_contact
+ - binary_sensor.boys_room_window_contact
- binary_sensor.entryway_window_contact
my_lights:
@@ -391,7 +391,7 @@ downstairs_speakers:
entities:
- media_player.computer_area_hub
- media_player.great_room
- - media_player.blue_room_clock
+ - media_player.boys_room_clock
all_my_speakers:
name: All My Speakers
@@ -399,14 +399,14 @@ all_my_speakers:
entities:
- media_player.front_room_hub
- media_player.kitchen
- - media_player.nursery_hub
+ - media_player.girls_room_hub
- media_player.master_bedroom_clock
- media_player.bathroom_mini
- media_player.great_room
- media_player.computer_area_hub
- media_player.deck
- media_player.garage
- - media_player.blue_room_clock
+ - media_player.boys_room_clock
lights_left_on:
name: Lights Left On
@@ -425,7 +425,7 @@ lights_left_on:
- binary_sensor.garage_light_left_on
- binary_sensor.front_yard_light_left_on
- binary_sensor.mancave_light_left_on
- - binary_sensor.blue_room_light_left_on
+ - binary_sensor.boys_room_light_left_on
- binary_sensor.furnace_room_light_left_on
- binary_sensor.storage_room_light_left_on
- binary_sensor.back_yard_light_left_on
diff --git a/lovelace/cameras/view-camera-01.yaml b/lovelace/cameras/view-camera-01.yaml
index c1f81e9..8df6108 100644
--- a/lovelace/cameras/view-camera-01.yaml
+++ b/lovelace/cameras/view-camera-01.yaml
@@ -20,9 +20,9 @@ card:
modes:
- webrtc
stream: rtsp_cam01_sub
- icon: mdi:yoga
- title: Blue Room
- id: blue_room
+ icon: mdi:earth
+ title: Boys Room
+ id: boys_room
live:
preload: true
draggable: true
@@ -72,7 +72,7 @@ card:
opacity: 0%
- type: state-icon
- entity: group.blue_room_motion
+ entity: group.boys_room_motion
style:
left: 8%
top: 95%
@@ -89,25 +89,25 @@ card:
left: 50%
top: 95%
- type: state-icon
- entity: input_boolean.blue_room_occupied
+ entity: input_boolean.boys_room_occupied
tap_action:
action: toggle
style:
left: 70%
top: 95%
- type: state-icon
- entity: binary_sensor.blue_room_occupied
+ entity: binary_sensor.boys_room_occupied
style:
top: 95%
left: 92%
- type: conditional
conditions:
- - entity: binary_sensor.blue_room_person_occupancy
+ - entity: binary_sensor.boys_room_person_occupancy
state: "on"
elements:
- type: state-icon
- entity: binary_sensor.blue_room_person_occupancy
+ entity: binary_sensor.boys_room_person_occupancy
style:
top: 65%
left: 45%
@@ -124,11 +124,11 @@ card:
- type: conditional
conditions:
- - entity: light.blue_room_closet
+ - entity: light.boys_room_closet
state: "on"
elements:
- type: state-icon
- entity: light.blue_room_closet
+ entity: light.boys_room_closet
style:
top: 7%
left: 60%
@@ -137,11 +137,11 @@ card:
- type: conditional
conditions:
- - entity: light.blue_room_hue
+ - entity: light.boys_room_hue
state: "on"
elements:
- type: state-icon
- entity: light.blue_room_hue
+ entity: light.boys_room_hue
style:
top: 7%
left: 50%
@@ -173,7 +173,7 @@ card:
left: 40%
- type: state-icon
- entity: media_player.blue_room_clock
+ entity: media_player.boys_room_clock
style:
left: 38%
top: 22%
diff --git a/lovelace/details/view-batteries.yaml b/lovelace/details/view-batteries.yaml
index 243a16f..ac37845 100644
--- a/lovelace/details/view-batteries.yaml
+++ b/lovelace/details/view-batteries.yaml
@@ -20,7 +20,7 @@ cards:
title: BLE Batteries
entities:
- entity: sensor.plant_sensor_3eae_battery
- name: Blue Room - 3eae
+ name: Boys Room - 3eae
- entity: sensor.plant_sensor_3eb0_battery
name: Master Bedroom - 3eb0
- entity: sensor.plant_sensor_cea4_battery
@@ -49,7 +49,7 @@ cards:
- type: entities
title: Thermostat Batteries
entities:
- - sensor.blue_room_thermostat_battery
+ - sensor.boys_room_thermostat_battery
- sensor.front_room_thermostat_battery
- sensor.furnace_room_thermostat_battery
- sensor.mancave_thermostat_battery
@@ -59,7 +59,7 @@ cards:
title: Door Batteries
entities:
- sensor.basement_door_battery
- - sensor.blue_room_door_battery
+ - sensor.boys_room_door_battery
- sensor.mancave_door_battery
- sensor.utility_room_door_battery
- sensor.front_door_battery
diff --git a/lovelace/details/view-hvac.yaml b/lovelace/details/view-hvac.yaml
index f5f4d45..f92b79c 100644
--- a/lovelace/details/view-hvac.yaml
+++ b/lovelace/details/view-hvac.yaml
@@ -1218,166 +1218,166 @@ sections:
tap_action:
action: more-info
- type: heading
- icon: mdi:yoga
- heading: Blue Room
+ icon: mdi:earth
+ heading: Boys Room
heading_style: title
badges:
- type: entity
- entity: sensor.blue_room_multisensor_air_temperature
+ entity: sensor.boys_room_multisensor_air_temperature
tap_action:
action: more-info
- type: entity
- entity: sensor.blue_room_multisensor_humidity
+ entity: sensor.boys_room_multisensor_humidity
tap_action:
action: more-info
- type: custom:mushroom-template-card
- entity: sensor.blue_room_thermal_comfort_summer_simmer_perception
+ entity: sensor.boys_room_thermal_comfort_summer_simmer_perception
primary: >
{% if
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','cool')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','cool')
%} Cool {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','slightly_cool')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','slightly_cool')
%} Comfy {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','comfortable')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','comfortable')
%} Comfy {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','slightly_warm')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','slightly_warm')
%} Warm {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','increasing_discomfort')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','increasing_discomfort')
%} Warm {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','extremely_warm')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','extremely_warm')
%} Hot {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','danger_of_heatstroke')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','danger_of_heatstroke')
%} Hot {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','extreme_danger_of_heatstroke')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','extreme_danger_of_heatstroke')
%} Danger {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','circulatory_collapse_imminent')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','circulatory_collapse_imminent')
%} Danger {% else %} Unknown {% endif %}
secondary: Simmer
icon: tc:simmer-zone
icon_color: >
{% if
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','cool')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','cool')
%} indigo {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','slightly_cool')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','slightly_cool')
%} light-blue {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','comfortable')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','comfortable')
%} green {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','slightly_warm')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','slightly_warm')
%} light-green {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','increasing_discomfort')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','increasing_discomfort')
%} yellow {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','extremely_warm')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','extremely_warm')
%} amber {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','danger_of_heatstroke')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','danger_of_heatstroke')
%} orange {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','extreme_danger_of_heatstroke')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','extreme_danger_of_heatstroke')
%} deep-orange {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','circulatory_collapse_imminent')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','circulatory_collapse_imminent')
%} red {% else %} disabled {% endif %}
tap_action:
action: more-info
- type: custom:mushroom-template-card
- entity: sensor.blue_room_thermal_comfort_summer_simmer_index
+ entity: sensor.boys_room_thermal_comfort_summer_simmer_index
primary: >-
- {{states('sensor.blue_room_thermal_comfort_summer_simmer_index') |
+ {{states('sensor.boys_room_thermal_comfort_summer_simmer_index') |
round(2) }} °F
icon: tc:simmer-zone
icon_color: >
{% if
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','cool')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','cool')
%} indigo {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','slightly_cool')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','slightly_cool')
%} light-blue {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','comfortable')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','comfortable')
%} green {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','slightly_warm')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','slightly_warm')
%} light-green {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','increasing_discomfort')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','increasing_discomfort')
%} yellow {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','extremely_warm')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','extremely_warm')
%} amber {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','danger_of_heatstroke')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','danger_of_heatstroke')
%} orange {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','extreme_danger_of_heatstroke')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','extreme_danger_of_heatstroke')
%} deep-orange {% elif
- is_state('sensor.blue_room_thermal_comfort_summer_simmer_perception','circulatory_collapse_imminent')
+ is_state('sensor.boys_room_thermal_comfort_summer_simmer_perception','circulatory_collapse_imminent')
%} red {% else %} disabled {% endif %}
tap_action:
action: more-info
secondary: ""
- type: custom:mushroom-template-card
- entity: sensor.blue_room_thermal_comfort_dew_point_perception
+ entity: sensor.boys_room_thermal_comfort_dew_point_perception
primary: >
{% if
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','dry')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','dry')
%} Dry {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','very_comfortable')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','very_comfortable')
%} Very Comfy {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','comfortable')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','comfortable')
%} Comfortable {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','ok_but_humid')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','ok_but_humid')
%} Sticky {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','somewhat_uncomfortable')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','somewhat_uncomfortable')
%} Humid {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','quite_uncomfortable')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','quite_uncomfortable')
%} Uncomfortable {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','extremely_uncomfortable')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','extremely_uncomfortable')
%} Oppressive {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','severely_high')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','severely_high')
%} Miserable {% else %} Unknown {% endif %}
icon: tc:dew-point
icon_color: >
{% if
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','dry')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','dry')
%} blue-grey {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','very_comfortable')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','very_comfortable')
%} green {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','comfortable')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','comfortable')
%} light-green {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','ok_but_humid')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','ok_but_humid')
%} lime {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','somewhat_uncomfortable')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','somewhat_uncomfortable')
%} yellow {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','quite_uncomfortable')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','quite_uncomfortable')
%} amber {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','extremely_uncomfortable')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','extremely_uncomfortable')
%} deep-orange {% elif
- is_state('sensor.blue_room_thermal_comfort_dew_point_perception','severely_high')
+ is_state('sensor.boys_room_thermal_comfort_dew_point_perception','severely_high')
%} red {% else %} disabled {% endif %}
tap_action:
action: more-info
secondary: Dew Point
- type: custom:mushroom-template-card
- entity: sensor.blue_room_thermal_comfort_humidex_perception
+ entity: sensor.boys_room_thermal_comfort_humidex_perception
primary: >
{% if
- is_state('sensor.blue_room_thermal_comfort_humidex_perception','comfortable')
+ is_state('sensor.boys_room_thermal_comfort_humidex_perception','comfortable')
%} Comfortable {% elif
- is_state('sensor.blue_room_thermal_comfort_humidex_perception','noticable_discomfort')
+ is_state('sensor.boys_room_thermal_comfort_humidex_perception','noticable_discomfort')
%} Uncomfortable {% elif
- is_state('sensor.blue_room_thermal_comfort_humidex_perception','evident_discomfort')
+ is_state('sensor.boys_room_thermal_comfort_humidex_perception','evident_discomfort')
%} Unbearable {% elif
- is_state('sensor.blue_room_thermal_comfort_humidex_perception','great_discomfort')
+ is_state('sensor.boys_room_thermal_comfort_humidex_perception','great_discomfort')
%} Oppressive {% elif
- is_state('sensor.blue_room_thermal_comfort_humidex_perception','dangerous_discomfort')
+ is_state('sensor.boys_room_thermal_comfort_humidex_perception','dangerous_discomfort')
%} Dangerous {% elif
- is_state('sensor.blue_room_thermal_comfort_humidex_perception','heat_stroke')
+ is_state('sensor.boys_room_thermal_comfort_humidex_perception','heat_stroke')
%} Hazardous {% else %} disabled {% endif %}
secondary: Humidex
icon: tc:thermal-perception
icon_color: >
{% if
- is_state('sensor.blue_room_thermal_comfort_humidex_perception','comfortable')
+ is_state('sensor.boys_room_thermal_comfort_humidex_perception','comfortable')
%} green {% elif
- is_state('sensor.blue_room_thermal_comfort_humidex_perception','noticable_discomfort')
+ is_state('sensor.boys_room_thermal_comfort_humidex_perception','noticable_discomfort')
%} yellow {% elif
- is_state('sensor.blue_room_thermal_comfort_humidex_perception','evident_discomfort')
+ is_state('sensor.boys_room_thermal_comfort_humidex_perception','evident_discomfort')
%} amber {% elif
- is_state('sensor.blue_room_thermal_comfort_humidex_perception','great_discomfort')
+ is_state('sensor.boys_room_thermal_comfort_humidex_perception','great_discomfort')
%} orange {% elif
- is_state('sensor.blue_room_thermal_comfort_humidex_perception','dangerous_discomfort')
+ is_state('sensor.boys_room_thermal_comfort_humidex_perception','dangerous_discomfort')
%} deep-orange {% elif
- is_state('sensor.blue_room_thermal_comfort_humidex_perception','heat_stroke')
+ is_state('sensor.boys_room_thermal_comfort_humidex_perception','heat_stroke')
%} red {% else %} disabled {% endif %}
tap_action:
action: more-info
diff --git a/lovelace/details/view-people.yaml b/lovelace/details/view-people.yaml
index 0402375..d4c3f45 100644
--- a/lovelace/details/view-people.yaml
+++ b/lovelace/details/view-people.yaml
@@ -10,30 +10,30 @@ cards:
- binary_sensor.frigate_cam01_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: horizontal-stack
cards:
- type: entity-filter
entities:
- - binary_sensor.blue_room_person_occupancy
+ - binary_sensor.boys_room_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
- title: Blue Room
+ title: Boys Room
camera_view: auto
entities: []
image_entity: image.frigate_cam01_person
- entity: binary_sensor.blue_room_person_occupancy
+ entity: binary_sensor.boys_room_person_occupancy
- type: entity-filter
entities:
- binary_sensor.furnace_room_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Furnace Room
@@ -47,7 +47,7 @@ cards:
- binary_sensor.frigate_cam03_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: horizontal-stack
cards:
@@ -56,7 +56,7 @@ cards:
- binary_sensor.computer_area_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Computer Area
@@ -70,7 +70,7 @@ cards:
- binary_sensor.entryway_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Entryway
@@ -84,7 +84,7 @@ cards:
- binary_sensor.great_room_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Great Room
@@ -98,7 +98,7 @@ cards:
- binary_sensor.utility_room_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Utility Room
@@ -112,7 +112,7 @@ cards:
- binary_sensor.frigate_cam04_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: horizontal-stack
cards:
@@ -121,7 +121,7 @@ cards:
- binary_sensor.walkway_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Walkway
@@ -135,7 +135,7 @@ cards:
- binary_sensor.workshop_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Workshop
@@ -149,7 +149,7 @@ cards:
- binary_sensor.frigate_cam06_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: horizontal-stack
cards:
@@ -158,7 +158,7 @@ cards:
- binary_sensor.master_bedroom_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Master Bedroom
@@ -172,7 +172,7 @@ cards:
- binary_sensor.frigate_cam07_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: horizontal-stack
cards:
@@ -181,7 +181,7 @@ cards:
- binary_sensor.master_bedroom_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Master Bedroom
@@ -195,7 +195,7 @@ cards:
- binary_sensor.frigate_cam08_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: horizontal-stack
cards:
@@ -204,7 +204,7 @@ cards:
- binary_sensor.nursery_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Nursery
@@ -218,7 +218,7 @@ cards:
- binary_sensor.frigate_cam12_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: horizontal-stack
cards:
@@ -227,7 +227,7 @@ cards:
- binary_sensor.kitchen_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Kitchen
@@ -241,7 +241,7 @@ cards:
- binary_sensor.dining_room_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Dining Room
@@ -255,7 +255,7 @@ cards:
- binary_sensor.entryway_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Entryway
@@ -269,7 +269,7 @@ cards:
- binary_sensor.front_room_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Front Room
@@ -283,7 +283,7 @@ cards:
- binary_sensor.frigate_cam13_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: horizontal-stack
cards:
@@ -292,7 +292,7 @@ cards:
- binary_sensor.kitchen_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Kitchen
@@ -306,7 +306,7 @@ cards:
- binary_sensor.dining_room_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Dining Room
@@ -320,7 +320,7 @@ cards:
- binary_sensor.front_room_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Front Room
@@ -334,7 +334,7 @@ cards:
- binary_sensor.frigate_cam14_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: horizontal-stack
cards:
@@ -343,7 +343,7 @@ cards:
- binary_sensor.back_yard_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Back Yard
@@ -357,7 +357,7 @@ cards:
- binary_sensor.frigate_cam18_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: horizontal-stack
cards:
@@ -366,7 +366,7 @@ cards:
- binary_sensor.driveway_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Driveway
@@ -380,7 +380,7 @@ cards:
- binary_sensor.from_street_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: From Street
@@ -394,7 +394,7 @@ cards:
- binary_sensor.front_yard_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Front Yard
@@ -408,7 +408,7 @@ cards:
- binary_sensor.frigate_cam19_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: horizontal-stack
cards:
@@ -417,7 +417,7 @@ cards:
- binary_sensor.driveway_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Driveway
@@ -431,7 +431,7 @@ cards:
- binary_sensor.from_street_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: From Street
@@ -445,7 +445,7 @@ cards:
- binary_sensor.front_yard_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Front Yard
@@ -459,7 +459,7 @@ cards:
- binary_sensor.front_porch_person_occupancy
show_empty: false
state_filter:
- - 'on'
+ - "on"
card:
type: picture-glance
title: Front Porch
@@ -514,4 +514,4 @@ cards:
# entities:
# - entity: binary_sensor.frigate_cam03_person_occupancy
# - entity: binary_sensor.computer_area_person_occupancy
- # - entity: binary_sensor.great_room_person_occupancy
\ No newline at end of file
+ # - entity: binary_sensor.great_room_person_occupancy
diff --git a/lovelace/details/view-power-breaker.yaml b/lovelace/details/view-power-breaker.yaml
index de90609..83f0b01 100644
--- a/lovelace/details/view-power-breaker.yaml
+++ b/lovelace/details/view-power-breaker.yaml
@@ -38,14 +38,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_well_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_well_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_well_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_well_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_well_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_well_w
fill_container: true
@@ -59,14 +59,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_kitchen_1_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_kitchen_1_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_kitchen_1_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_kitchen_1_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_kitchen_1_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_kitchen_1_w
fill_container: true
@@ -80,14 +80,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_kitchen_2_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_kitchen_2_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_kitchen_2_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_kitchen_2_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_kitchen_2_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_kitchen_2_w
fill_container: true
@@ -101,14 +101,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_laundry_plug_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_laundry_plug_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_laundry_plug_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_laundry_plug_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_laundry_plug_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_laundry_plug_w
fill_container: true
@@ -122,14 +122,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_microwave_plug_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_microwave_plug_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_microwave_plug_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_microwave_plug_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_microwave_plug_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_microwave_plug_w
fill_container: true
@@ -143,14 +143,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_bathroom_plug_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_bathroom_plug_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_bathroom_plug_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_bathroom_plug_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_bathroom_plug_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_bathroom_plug_w
fill_container: true
@@ -164,14 +164,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_heat_pump_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_heat_pump_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_heat_pump_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_heat_pump_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_heat_pump_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_heat_pump_w
fill_container: true
@@ -181,18 +181,18 @@ cards:
cards:
- type: custom:mushroom-template-card
primary: Basement Bedroom and Furnace Room Lights
- icon: mdi:yoga
+ icon: mdi:earth
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_basement_bedroom_and_furnace_room_lights_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_basement_bedroom_and_furnace_room_lights_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_basement_bedroom_and_furnace_room_lights_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_basement_bedroom_and_furnace_room_lights_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_basement_bedroom_and_furnace_room_lights_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_basement_bedroom_and_furnace_room_lights_w
fill_container: true
@@ -206,14 +206,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_basement_plugs_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_basement_plugs_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_basement_plugs_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_basement_plugs_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_basement_plugs_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_basement_plugs_w
fill_container: true
@@ -227,14 +227,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_basement_and_laundry_lights_and_plugs_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_basement_and_laundry_lights_and_plugs_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_basement_and_laundry_lights_and_plugs_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_basement_and_laundry_lights_and_plugs_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_basement_and_laundry_lights_and_plugs_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_basement_and_laundry_lights_and_plugs_w
fill_container: true
@@ -248,14 +248,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_sump_pump_plug_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_sump_pump_plug_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_sump_pump_plug_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_sump_pump_plug_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_sump_pump_plug_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_sump_pump_plug_w
fill_container: true
@@ -269,14 +269,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_nursery_dining_kitchen_lights_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_nursery_dining_kitchen_lights_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_nursery_dining_kitchen_lights_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_nursery_dining_kitchen_lights_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_nursery_dining_kitchen_lights_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_nursery_dining_kitchen_lights_w
fill_container: true
@@ -290,14 +290,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_master_suite_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_master_suite_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_master_suite_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_master_suite_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_master_suite_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_master_suite_w
fill_container: true
@@ -311,14 +311,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_furnace_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_furnace_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_furnace_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_furnace_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_furnace_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_furnace_w
fill_container: true
@@ -332,14 +332,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_basement_stairs_and_lights_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_basement_stairs_and_lights_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_basement_stairs_and_lights_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_basement_stairs_and_lights_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_basement_stairs_and_lights_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_basement_stairs_and_lights_w
fill_container: true
@@ -353,14 +353,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_dishwasher_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_dishwasher_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_dishwasher_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_dishwasher_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_dishwasher_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_dishwasher_w
fill_container: true
@@ -374,14 +374,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_garage_outside_and_front_garage_lights_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_garage_outside_and_front_garage_lights_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_garage_outside_and_front_garage_lights_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_garage_outside_and_front_garage_lights_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_garage_outside_and_front_garage_lights_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_garage_outside_and_front_garage_lights_w
fill_container: true
@@ -395,14 +395,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_front_room_plugs_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_front_room_plugs_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_front_room_plugs_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_front_room_plugs_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_front_room_plugs_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_front_room_plugs_w
fill_container: true
@@ -416,14 +416,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_garage_and_outside_plugs_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_garage_and_outside_plugs_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_garage_and_outside_plugs_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_garage_and_outside_plugs_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_garage_and_outside_plugs_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_garage_and_outside_plugs_w
fill_container: true
@@ -437,14 +437,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_stove_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_stove_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_stove_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_stove_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_stove_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_stove_w
fill_container: true
@@ -458,14 +458,14 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_dryer_kwh''))|float(default=0)|round(2) }} kWh'
+ primary: "{{(states('sensor.pm_dryer_kwh'))|float(default=0)|round(2) }} kWh"
icon: mdi:flash
entity: sensor.pm_dryer_kwh
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-template-card
- primary: '{{(states(''sensor.pm_dryer_w''))|float(default=0)|round(2) }} W'
+ primary: "{{(states('sensor.pm_dryer_w'))|float(default=0)|round(2) }} W"
icon: mdi:flash
entity: sensor.pm_dryer_w
fill_container: true
diff --git a/lovelace/details/view-watchman.yaml b/lovelace/details/view-watchman.yaml
index 1a65571..7a39dc4 100644
--- a/lovelace/details/view-watchman.yaml
+++ b/lovelace/details/view-watchman.yaml
@@ -45,7 +45,7 @@ badges:
perform_action: watchman.report
target: {}
data:
- parse_config: false
+ parse_config: true
create_file: true
- type: entity
show_name: true
diff --git a/lovelace/frigate/view-ai-cam01.yaml b/lovelace/frigate/view-ai-cam01.yaml
index 0822a8c..e60fada 100644
--- a/lovelace/frigate/view-ai-cam01.yaml
+++ b/lovelace/frigate/view-ai-cam01.yaml
@@ -1,6 +1,6 @@
title: AI Cam01
path: ai-cam01
-icon: mdi:yoga
+icon: mdi:earth
type: sidebar
visible:
- user: 24a4bd075e7f41a497dd0390a1dd4a9f
@@ -13,7 +13,7 @@ cards:
position: sidebar
cards:
- type: glance
- title: Blue Room
+ title: Boys Room
entities: []
- type: glance
show_state: false
@@ -34,22 +34,22 @@ cards:
- name: Occupancy
entity: binary_sensor.frigate_cam01_all_occupancy
- type: entities
- title: Blue Room
+ title: Boys Room
show_header_toggle: false
entities:
- - name: Blue Room
+ - name: Boys Room
entity: sensor.frigate_cam01_person_count
- - name: Blue Room
+ - name: Boys Room
entity: binary_sensor.frigate_cam01_person_occupancy
- type: custom:advanced-camera-card
cameras:
- camera_entity: camera.frigate_cam01
- title: Blue Room
- icon: mdi:yoga
+ title: Boys Room
+ icon: mdi:earth
live_provider: ha
frigate:
camera_name: frigate_cam01
- zone: blue_room
+ zone: boys_room
label: person
url: http://192.168.1.11:5000
view:
diff --git a/lovelace/phone/blue-room.yaml b/lovelace/phone/boys-room.yaml
similarity index 77%
rename from lovelace/phone/blue-room.yaml
rename to lovelace/phone/boys-room.yaml
index fd106a6..51e62d9 100644
--- a/lovelace/phone/blue-room.yaml
+++ b/lovelace/phone/boys-room.yaml
@@ -1,7 +1,7 @@
subview: true
-title: Blue Room
-path: blue-room
-icon: mdi:yoga
+title: Boy's Room
+path: boys-room
+icon: mdi:earth
badges: []
cards:
- type: vertical-stack
@@ -14,14 +14,14 @@ cards:
- hours_to_show: 24
graph: line
type: sensor
- entity: sensor.blue_room_multisensor_air_temperature
+ entity: sensor.boys_room_multisensor_air_temperature
detail: 1
name: Temperature
- hours_to_show: 24
graph: line
type: sensor
detail: 1
- entity: sensor.blue_room_multisensor_humidity
+ entity: sensor.boys_room_multisensor_humidity
name: Humidity
- type: vertical-stack
cards:
@@ -30,7 +30,7 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-light-card
- entity: light.blue_room_hue
+ entity: light.boys_room_hue
name: Main
icon: mdi:dome-light
tap_action:
@@ -38,9 +38,9 @@ cards:
hide_state: true
layout: vertical
- type: custom:mushroom-light-card
- entity: light.blue_room_closet
+ entity: light.boys_room_closet
name: Closet
- icon: ''
+ icon: ""
tap_action:
action: toggle
hide_state: true
@@ -49,14 +49,14 @@ cards:
cards:
- type: custom:mushroom-entity-card
layout: vertical
- entity: sensor.blue_room_multisensor_illuminance
+ entity: sensor.boys_room_multisensor_illuminance
name: Light Level
- type: custom:mushroom-entity-card
- entity: input_number.blue_room_light_level_trigger
+ entity: input_number.boys_room_light_level_trigger
layout: vertical
name: Trigger
- type: custom:mushroom-entity-card
- entity: binary_sensor.blue_room_naturally_lit
+ entity: binary_sensor.boys_room_naturally_lit
name: Naturally Lit
layout: vertical
secondary_info: none
@@ -67,7 +67,7 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mini-media-player
- entity: media_player.blue_room_clock
+ entity: media_player.boys_room_clock
artwork: cover-fit
- type: vertical-stack
cards:
@@ -76,7 +76,7 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
- entity: binary_sensor.blue_room_door_contact
+ entity: binary_sensor.boys_room_door_contact
name: Door
layout: vertical
secondary_info: none
@@ -88,12 +88,12 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
- entity: group.blue_room_motion
+ entity: group.boys_room_motion
name: Motion
layout: vertical
secondary_info: none
- type: custom:mushroom-entity-card
- entity: binary_sensor.blue_room_window_contact
+ entity: binary_sensor.boys_room_window_contact
name: Window
layout: vertical
secondary_info: none
@@ -101,4 +101,4 @@ cards:
cards:
- type: custom:mushroom-title-card
subtitle: Cameras
- - !include /config/lovelace/cameras/view-camera-01.yaml
\ No newline at end of file
+ - !include /config/lovelace/cameras/view-camera-01.yaml
diff --git a/lovelace/phone/front-room.yaml b/lovelace/phone/front-room.yaml
index d64e434..bbba69d 100644
--- a/lovelace/phone/front-room.yaml
+++ b/lovelace/phone/front-room.yaml
@@ -65,7 +65,7 @@ sections:
layout: vertical
tap_action:
action: call-service
- service: homeassistant.toggle
+ action: homeassistant.toggle
service_data: {}
target:
entity_id: input_boolean.front_room_light_cycle
diff --git a/lovelace/phone/nursery.yaml b/lovelace/phone/girls-room.yaml
similarity index 97%
rename from lovelace/phone/nursery.yaml
rename to lovelace/phone/girls-room.yaml
index 729806b..87bb3ea 100644
--- a/lovelace/phone/nursery.yaml
+++ b/lovelace/phone/girls-room.yaml
@@ -1,6 +1,6 @@
subview: true
-title: Nursery
-path: nursery
+title: Girl's Room
+path: girls-room
icon: mdi:bunk-bed
badges: []
cards:
@@ -184,7 +184,7 @@ cards:
action: more-info
hold_action:
action: call-service
- service: homeassistant.toggle
+ action: homeassistant.toggle
service_data: {}
target:
entity_id: light.black_bed_wled
@@ -202,7 +202,7 @@ cards:
action: more-info
hold_action:
action: call-service
- service: homeassistant.toggle
+ action: homeassistant.toggle
service_data: {}
target:
entity_id: light.white_bed_wled
@@ -264,7 +264,7 @@ cards:
name: All Songs
tap_action:
action: call-service
- service: script.all_kids_youtube_music
+ action: script.all_kids_youtube_music
service_data: {}
target: {}
primary_info: name
@@ -276,7 +276,7 @@ cards:
name: Goodnight Songs
tap_action:
action: call-service
- service: script.goodnight_kids_youtube_music
+ action: script.goodnight_kids_youtube_music
service_data: {}
target: {}
primary_info: name
@@ -288,7 +288,7 @@ cards:
name: "Off"
tap_action:
action: call-service
- service: homeassistant.turn_off
+ action: homeassistant.turn_off
service_data: {}
target:
entity_id: media_player.ytube_music_player
@@ -299,7 +299,7 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mini-media-player
- entity: media_player.nursery_hub
+ entity: media_player.girls_room_hub
artwork: cover-fit
- type: vertical-stack
cards:
@@ -319,13 +319,13 @@ cards:
primary: Black Bed
double_tap_action:
action: call-service
- service: homeassistant.toggle
+ action: homeassistant.toggle
service_data: {}
target:
entity_id: switch.black_bed_force_occupancy
hold_action:
action: call-service
- service: button.press
+ action: button.press
service_data: {}
target:
entity_id: button.black_bed_manual_tare
diff --git a/lovelace/phone/home.yaml b/lovelace/phone/home.yaml
index d296b2d..cacc368 100644
--- a/lovelace/phone/home.yaml
+++ b/lovelace/phone/home.yaml
@@ -296,12 +296,12 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: Nursery
+ primary: Girl's Room
icon: mdi:bunk-bed
entity: light.nursery_hue
tap_action:
action: navigate
- navigation_path: nursery
+ navigation_path: girls-room
hold_action:
action: toggle
secondary: |-
@@ -541,18 +541,18 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
- primary: Blue Room
- icon: mdi:yoga
- entity: light.blue_room_hue
+ primary: Boy's Room
+ icon: mdi:earth
+ entity: light.boys_room_hue
tap_action:
action: navigate
- navigation_path: blue-room
+ navigation_path: boys-room
hold_action:
action: toggle
secondary: |-
- {{states('sensor.blue_room_multisensor_air_temperature')}}°F
- {{states('sensor.blue_room_multisensor_humidity')}}%
- icon_color: "{{iif(is_state('light.blue_room_hue','on'),'yellow')}}"
+ {{states('sensor.boys_room_multisensor_air_temperature')}}°F
+ {{states('sensor.boys_room_multisensor_humidity')}}%
+ icon_color: "{{iif(is_state('light.boys_room_hue','on'),'yellow')}}"
multiline_secondary: true
layout: vertical
- type: custom:mushroom-template-card
diff --git a/lovelace/phone/lights.yaml b/lovelace/phone/lights.yaml
index a9bdf97..11966ac 100644
--- a/lovelace/phone/lights.yaml
+++ b/lovelace/phone/lights.yaml
@@ -18,7 +18,7 @@ cards:
use_light_color: false
tap_action:
action: call-service
- service: homeassistant.toggle
+ action: homeassistant.toggle
service_data: {}
target:
entity_id: input_boolean.nursery_occupied
@@ -43,7 +43,7 @@ cards:
'yellow') }}
tap_action:
action: call-service
- service: homeassistant.toggle
+ action: homeassistant.toggle
service_data: {}
target:
entity_id: input_boolean.nursery_light_cycle
@@ -62,7 +62,7 @@ cards:
action: more-info
hold_action:
action: call-service
- service: homeassistant.toggle
+ action: homeassistant.toggle
service_data: {}
target:
entity_id: light.black_bed_wled
@@ -79,7 +79,7 @@ cards:
action: more-info
hold_action:
action: call-service
- service: homeassistant.toggle
+ action: homeassistant.toggle
service_data: {}
target:
entity_id: light.white_bed_wled
@@ -109,7 +109,7 @@ cards:
'yellow') }}
tap_action:
action: call-service
- service: homeassistant.toggle
+ action: homeassistant.toggle
service_data: {}
target:
entity_id: input_boolean.front_room_light_cycle
@@ -207,7 +207,7 @@ cards:
'on'), 'yellow') }}
tap_action:
action: call-service
- service: homeassistant.toggle
+ action: homeassistant.toggle
service_data: {}
target:
entity_id: input_boolean.computer_area_light_cycle
@@ -237,7 +237,7 @@ cards:
'yellow') }}
tap_action:
action: call-service
- service: homeassistant.toggle
+ action: homeassistant.toggle
service_data: {}
target:
entity_id: input_boolean.great_room_light_cycle
diff --git a/lovelace/phone/media.yaml b/lovelace/phone/media.yaml
index 27b808a..3335b08 100644
--- a/lovelace/phone/media.yaml
+++ b/lovelace/phone/media.yaml
@@ -150,7 +150,7 @@ sections:
value: false
tap_action:
action: call-service
- service: ytube_music_player.call_method
+ action: ytube_music_player.call_method
service_data:
entity_id: media_player.ytube_music_player
command: rate_track
diff --git a/lovelace/phone/plants.yaml b/lovelace/phone/plants.yaml
index 28d4eb8..6a58676 100644
--- a/lovelace/phone/plants.yaml
+++ b/lovelace/phone/plants.yaml
@@ -181,14 +181,14 @@ cards:
name: 5 Minute Test
tap_action:
action: call-service
- service: opensprinkler.run
+ action: opensprinkler.run
data:
entity_id: switch.5_minute_test_program_enabled
- entity: binary_sensor.full_run_program_running
name: Full Run
tap_action:
action: call-service
- service: opensprinkler.run
+ action: opensprinkler.run
data:
entity_id: switch.full_run_program_enabled
- entity: switch.morning_program_enabled
@@ -203,14 +203,14 @@ cards:
name: Front Yard Fun
tap_action:
action: call-service
- service: opensprinkler.run
+ action: opensprinkler.run
data:
entity_id: switch.front_yard_fun_program_enabled
- entity: binary_sensor.back_yard_fun_program_running
name: Back Yard Fun
tap_action:
action: call-service
- service: opensprinkler.run
+ action: opensprinkler.run
data:
entity_id: switch.back_yard_fun_program_enabled
columns: 2
diff --git a/lovelace/raw-cameras/blue-room-view.yaml b/lovelace/raw-cameras/blue-room-view.yaml
deleted file mode 100644
index 2d63057..0000000
--- a/lovelace/raw-cameras/blue-room-view.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-title: Blue Room Camera
-path: blue-room-camera
-icon: mdi:yoga
-type: panel
-cards:
- - !include /config/lovelace/raw-cameras/blue-room-card.yaml
\ No newline at end of file
diff --git a/lovelace/raw-cameras/blue-room-card.yaml b/lovelace/raw-cameras/boys-room-card.yaml
similarity index 100%
rename from lovelace/raw-cameras/blue-room-card.yaml
rename to lovelace/raw-cameras/boys-room-card.yaml
diff --git a/lovelace/raw-cameras/boys-room-view.yaml b/lovelace/raw-cameras/boys-room-view.yaml
new file mode 100644
index 0000000..b161813
--- /dev/null
+++ b/lovelace/raw-cameras/boys-room-view.yaml
@@ -0,0 +1,6 @@
+title: Boys Room Camera
+path: boys-room-camera
+icon: mdi:earth
+type: panel
+cards:
+ - !include /config/lovelace/raw-cameras/boys-room-card.yaml
diff --git a/lovelace/raw-cameras/indoor-camera-card.yaml b/lovelace/raw-cameras/indoor-camera-card.yaml
index 6027b47..8c4a551 100644
--- a/lovelace/raw-cameras/indoor-camera-card.yaml
+++ b/lovelace/raw-cameras/indoor-camera-card.yaml
@@ -14,7 +14,7 @@ cameras:
- group.nursery_motion
- binary_sensor.bridgets_bed
- camera_entity: camera.frigate_cam01
- title: Blue Room
+ title: Boys Room
live_provider: go2rtc
go2rtc:
modes:
@@ -24,7 +24,7 @@ cameras:
occupancy: false
motion: false
entities:
- - group.blue_room_motion
+ - group.boys_room_motion
- binary_sensor.emmetts_bed
- camera_entity: camera.frigate_cam13
title: Front Room
@@ -99,7 +99,7 @@ view:
untrigger_reset: true
default: live
camera_select: live
- dark_mode: 'on'
+ dark_mode: "on"
update_cycle_camera: true
update_seconds: 10
menu:
diff --git a/lovelace/room_cards/blue_room.yaml b/lovelace/room_cards/boys_room.yaml
similarity index 79%
rename from lovelace/room_cards/blue_room.yaml
rename to lovelace/room_cards/boys_room.yaml
index c9db60a..93576bb 100644
--- a/lovelace/room_cards/blue_room.yaml
+++ b/lovelace/room_cards/boys_room.yaml
@@ -3,17 +3,28 @@ type: picture-elements
image: /local/bg500x225.png
elements:
- type: custom:mushroom-template-card
- primary: "{{states('input_select.blue_room_mode')}}"
- entity: input_select.blue_room_mode
+ primary: "{{states('input_select.boys_room_mode')}}"
+ entity: input_select.boys_room_mode
tap_action:
action: more-info
style:
font-style: italic
left: 14%
top: 88%
+
+ - type: custom:mushroom-template-card
+ primary: "{{states('light.accent')}}"
+ entity: light.accent
+ tap_action:
+ action: more-info
+ style:
+ font-style: italic
+ left: 62%
+ top: 88%
+
- type: custom:mushroom-template-card
primary: Closet
- entity: light.blue_room_closet
+ entity: light.boys_room_closet
tap_action:
action: toggle
style:
@@ -21,13 +32,13 @@ elements:
top: 88%
- type: state-label
- entity: sensor.blue_room_multisensor_air_temperature
+ entity: sensor.boys_room_multisensor_air_temperature
style:
left: 15%
top: 35%
font-size: 180%
- type: state-label
- entity: sensor.blue_room_multisensor_humidity
+ entity: sensor.boys_room_multisensor_humidity
style:
left: 85%
top: 35%
@@ -43,17 +54,17 @@ elements:
transform: initial
#top left icon spot
- type: state-icon
- entity: binary_sensor.blue_room_occupied
+ entity: binary_sensor.boys_room_occupied
style:
left: 60%
top: 9%
# - type: state-icon
- # entity: group.blue_room_motion
+ # entity: group.boys_room_motion
# style:
# left: 60%
# top: 9%
- type: state-icon
- entity: binary_sensor.blue_room_window_contact
+ entity: binary_sensor.boys_room_window_contact
style:
left: 68%
top: 9%
@@ -66,13 +77,13 @@ elements:
tap_action:
action: more-info
- type: state-icon
- entity: binary_sensor.blue_room_door_contact
+ entity: binary_sensor.boys_room_door_contact
style:
left: 84%
top: 9%
#top icon spot #4
- type: state-icon
- entity: input_boolean.blue_room_occupied
+ entity: input_boolean.boys_room_occupied
style:
left: 92%
top: 9%
@@ -83,7 +94,7 @@ elements:
- type: "custom:button-card"
color: auto
- entity: light.blue_room_hue
+ entity: light.boys_room_hue
show_name: false
show_entity_picture: true
style:
@@ -144,7 +155,7 @@ elements:
- type: "custom:button-card"
color: auto
- entity: light.blue_room_closet
+ entity: light.boys_room_closet
show_name: false
show_entity_picture: true
style:
diff --git a/lovelace/room_cards/nursery.yaml b/lovelace/room_cards/girls_room.yaml
similarity index 90%
rename from lovelace/room_cards/nursery.yaml
rename to lovelace/room_cards/girls_room.yaml
index 7264548..0d3cdb8 100644
--- a/lovelace/room_cards/nursery.yaml
+++ b/lovelace/room_cards/girls_room.yaml
@@ -13,18 +13,8 @@ elements:
top: 88%
- type: custom:mushroom-template-card
- primary: "{{states('select.black_bed_wled_preset')}}"
- entity: select.black_bed_wled_preset
- tap_action:
- action: more-info
- style:
- font-style: italic
- left: 38%
- top: 88%
-
- - type: custom:mushroom-template-card
- primary: "{{states('select.white_bed_wled_preset')}}"
- entity: select.white_bed_wled_preset
+ primary: "{{states('input_select.nursery_wled')}}"
+ entity: input_select.nursery_wled
tap_action:
action: more-info
style:
@@ -174,7 +164,7 @@ elements:
#button #5
- type: "custom:button-card"
color: auto
- entity: media_player.nursery_hub
+ entity: media_player.girls_room_hub
show_name: false
show_entity_picture: true
style:
@@ -190,9 +180,8 @@ elements:
- height: 45px
tap_action:
action: more-info
-
# 12,31,50,69,88
# 14,38,62,86
# 25,50,75
# 33,66
-# 50
\ No newline at end of file
+# 50
diff --git a/lovelace/stretch-cameras/blue-room-view.yaml b/lovelace/stretch-cameras/blue-room-view.yaml
deleted file mode 100644
index 83d62f3..0000000
--- a/lovelace/stretch-cameras/blue-room-view.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-title: Blue Room Camera
-path: blue-room-camera
-icon: mdi:yoga
-type: panel
-cards:
- - !include /config/lovelace/stretch-cameras/blue-room-card.yaml
\ No newline at end of file
diff --git a/lovelace/stretch-cameras/blue-room-card.yaml b/lovelace/stretch-cameras/boys-room-card.yaml
similarity index 100%
rename from lovelace/stretch-cameras/blue-room-card.yaml
rename to lovelace/stretch-cameras/boys-room-card.yaml
diff --git a/lovelace/stretch-cameras/boys-room-view.yaml b/lovelace/stretch-cameras/boys-room-view.yaml
new file mode 100644
index 0000000..f138224
--- /dev/null
+++ b/lovelace/stretch-cameras/boys-room-view.yaml
@@ -0,0 +1,6 @@
+title: Boys Room Camera
+path: boys-room-camera
+icon: mdi:earth
+type: panel
+cards:
+ - !include /config/lovelace/stretch-cameras/boys-room-card.yaml
diff --git a/lovelace/stretch-cameras/nursery-card.yaml b/lovelace/stretch-cameras/girls-room-card.yaml
similarity index 100%
rename from lovelace/stretch-cameras/nursery-card.yaml
rename to lovelace/stretch-cameras/girls-room-card.yaml
diff --git a/lovelace/stretch-cameras/girls-room-view.yaml b/lovelace/stretch-cameras/girls-room-view.yaml
new file mode 100644
index 0000000..0218b3f
--- /dev/null
+++ b/lovelace/stretch-cameras/girls-room-view.yaml
@@ -0,0 +1,6 @@
+title: Girls Room Camera
+path: girls-room-camera
+icon: mdi:bunk-bed
+type: panel
+cards:
+ - !include /config/lovelace/stretch-cameras/girls-room-card.yaml
\ No newline at end of file
diff --git a/lovelace/stretch-cameras/nursery-view.yaml b/lovelace/stretch-cameras/nursery-view.yaml
deleted file mode 100644
index 5be7b34..0000000
--- a/lovelace/stretch-cameras/nursery-view.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-title: Nursery Camera
-path: nursery-camera
-icon: mdi:bunk-bed
-type: panel
-cards:
- - !include /config/lovelace/stretch-cameras/nursery-card.yaml
\ No newline at end of file
diff --git a/lovelace/templates/card-mini-media-player.yaml b/lovelace/templates/card-mini-media-player.yaml
index 7cceabc..83c7797 100644
--- a/lovelace/templates/card-mini-media-player.yaml
+++ b/lovelace/templates/card-mini-media-player.yaml
@@ -33,7 +33,7 @@ shortcuts:
icon: mdi:home-floor-b
- name: Nursery
type: source
- id: nursery_hub
+ id: girls_room_hub
icon: mdi:bunk-bed
- name: Timeless
type: playlist
diff --git a/lovelace/templates/indoor-camera-cycler.yaml b/lovelace/templates/indoor-camera-cycler.yaml
index 8528a0e..ed13be3 100644
--- a/lovelace/templates/indoor-camera-cycler.yaml
+++ b/lovelace/templates/indoor-camera-cycler.yaml
@@ -3,8 +3,8 @@ cards:
- type: conditional
conditions:
- entity: input_select.indoor_camera_cycle
- state: Blue Room
- card: !include /config/lovelace/raw-cameras/blue-room-card.yaml
+ state: Boys Room
+ card: !include /config/lovelace/raw-cameras/boys-room-card.yaml
- type: conditional
conditions:
- entity: input_select.indoor_camera_cycle
diff --git a/lovelace/view-automatic_lights.yaml b/lovelace/view-automatic_lights.yaml
index d56d0cc..143d34b 100644
--- a/lovelace/view-automatic_lights.yaml
+++ b/lovelace/view-automatic_lights.yaml
@@ -5,82 +5,82 @@ visible:
- user: 24a4bd075e7f41a497dd0390a1dd4a9f
- user: cad46dedf86f454ebbd7f697a58730f2
cards:
-- type: grid
- cards:
- - type: button
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- entity: input_boolean.front_room_automatic_lights
- name: Front Room
- - type: button
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- entity: input_boolean.kitchen_automatic_lights
- name: Kitchen
- - type: button
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- entity: input_boolean.dining_room_automatic_lights
- name: Dining Room
- - type: button
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- entity: input_boolean.master_bathroom_automatic_lights
- name: Bathroom
- - type: button
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- entity: input_boolean.nursery_automatic_lights
- name: Nursery
- - type: button
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- entity: input_boolean.master_bedroom_automatic_lights
- name: Master Bedroom
- - type: button
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- entity: input_boolean.entryway_automatic_lights
- name: Entryway
- - type: button
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- entity: input_boolean.computer_area_automatic_lights
- name: Computer Area
- - type: button
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- entity: input_boolean.great_room_automatic_lights
- name: Great Room
- - type: button
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- entity: input_boolean.utility_room_automatic_lights
- name: Utility Room
- - type: button
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- entity: input_boolean.blue_room_automatic_lights
- name: Blue Room
\ No newline at end of file
+ - type: grid
+ cards:
+ - type: button
+ tap_action:
+ action: toggle
+ hold_action:
+ action: more-info
+ entity: input_boolean.front_room_automatic_lights
+ name: Front Room
+ - type: button
+ tap_action:
+ action: toggle
+ hold_action:
+ action: more-info
+ entity: input_boolean.kitchen_automatic_lights
+ name: Kitchen
+ - type: button
+ tap_action:
+ action: toggle
+ hold_action:
+ action: more-info
+ entity: input_boolean.dining_room_automatic_lights
+ name: Dining Room
+ - type: button
+ tap_action:
+ action: toggle
+ hold_action:
+ action: more-info
+ entity: input_boolean.master_bathroom_automatic_lights
+ name: Bathroom
+ - type: button
+ tap_action:
+ action: toggle
+ hold_action:
+ action: more-info
+ entity: input_boolean.nursery_automatic_lights
+ name: Nursery
+ - type: button
+ tap_action:
+ action: toggle
+ hold_action:
+ action: more-info
+ entity: input_boolean.master_bedroom_automatic_lights
+ name: Master Bedroom
+ - type: button
+ tap_action:
+ action: toggle
+ hold_action:
+ action: more-info
+ entity: input_boolean.entryway_automatic_lights
+ name: Entryway
+ - type: button
+ tap_action:
+ action: toggle
+ hold_action:
+ action: more-info
+ entity: input_boolean.computer_area_automatic_lights
+ name: Computer Area
+ - type: button
+ tap_action:
+ action: toggle
+ hold_action:
+ action: more-info
+ entity: input_boolean.great_room_automatic_lights
+ name: Great Room
+ - type: button
+ tap_action:
+ action: toggle
+ hold_action:
+ action: more-info
+ entity: input_boolean.utility_room_automatic_lights
+ name: Utility Room
+ - type: button
+ tap_action:
+ action: toggle
+ hold_action:
+ action: more-info
+ entity: input_boolean.boys_room_automatic_lights
+ name: Boys Room
diff --git a/lovelace/view-charts.yaml b/lovelace/view-charts.yaml
index 93b01ed..5b598dd 100644
--- a/lovelace/view-charts.yaml
+++ b/lovelace/view-charts.yaml
@@ -6,129 +6,129 @@ cards:
cards:
- type: vertical-stack
cards:
- - type: glance
- entities:
- - entity: sensor.last_system_boot
- name: Last System Boot
- - entity: sensor.hassio_version
- name: Hassio Version
- - entity: update.home_assistant_supervisor_update
- name: Supervisor
- icon: mdi:home-assistant
+ - type: glance
+ entities:
+ - entity: sensor.last_system_boot
+ name: Last System Boot
+ - entity: sensor.hassio_version
+ name: Hassio Version
+ - entity: update.home_assistant_supervisor_update
+ name: Supervisor
+ icon: mdi:home-assistant
- - type: grid
- columns: 3
- square: false
- cards:
- - type: custom:mini-graph-card
- align_icon: left
- align_state: center
- entities:
- - sensor.processor_use
- font_size: 50
- icon: mdi:chip
- name: HA CPU
- hours_to_show: 4
- points_per_hour: 3
- show:
- fill: false
- - type: custom:mini-graph-card
- align_icon: left
- align_state: center
- entities:
- - sensor.memory_use_percent
- font_size: 50
- name: HA Mem
- hours_to_show: 4
- points_per_hour: 3
- show:
- fill: false
- - type: custom:mini-graph-card
- align_icon: left
- align_state: center
- entities:
- - sensor.disk_use_percent_home
- font_size: 50
- name: HA Disk
- hours_to_show: 4
- points_per_hour: 3
- show:
- fill: false
+ - type: grid
+ columns: 3
+ square: false
+ cards:
+ - type: custom:mini-graph-card
+ align_icon: left
+ align_state: center
+ entities:
+ - sensor.processor_use
+ font_size: 50
+ icon: mdi:chip
+ name: HA CPU
+ hours_to_show: 4
+ points_per_hour: 3
+ show:
+ fill: false
+ - type: custom:mini-graph-card
+ align_icon: left
+ align_state: center
+ entities:
+ - sensor.memory_use_percent
+ font_size: 50
+ name: HA Mem
+ hours_to_show: 4
+ points_per_hour: 3
+ show:
+ fill: false
+ - type: custom:mini-graph-card
+ align_icon: left
+ align_state: center
+ entities:
+ - sensor.disk_use_percent_home
+ font_size: 50
+ name: HA Disk
+ hours_to_show: 4
+ points_per_hour: 3
+ show:
+ fill: false
- - type: custom:mini-graph-card
- align_icon: left
- align_state: center
- entities:
- - sensor.dream_nas_cpu_utilization_total
- font_size: 50
- name: NAS CPU
- hours_to_show: 4
- points_per_hour: 3
- show:
- fill: false
- - type: custom:mini-graph-card
- align_icon: left
- align_state: center
- entities:
- - sensor.dream_nas_memory_usage_real
- font_size: 50
- name: NAS Mem
- hours_to_show: 4
- points_per_hour: 3
- show:
- fill: false
- - type: custom:mini-graph-card
- align_icon: left
- align_state: center
- entities:
- - sensor.dream_nas_volume_1_volume_used
- font_size: 50
- name: NAS Disk
- hours_to_show: 4
- points_per_hour: 3
- show:
- fill: false
+ - type: custom:mini-graph-card
+ align_icon: left
+ align_state: center
+ entities:
+ - sensor.dream_nas_cpu_utilization_total
+ font_size: 50
+ name: NAS CPU
+ hours_to_show: 4
+ points_per_hour: 3
+ show:
+ fill: false
+ - type: custom:mini-graph-card
+ align_icon: left
+ align_state: center
+ entities:
+ - sensor.dream_nas_memory_usage_real
+ font_size: 50
+ name: NAS Mem
+ hours_to_show: 4
+ points_per_hour: 3
+ show:
+ fill: false
+ - type: custom:mini-graph-card
+ align_icon: left
+ align_state: center
+ entities:
+ - sensor.dream_nas_volume_1_volume_used
+ font_size: 50
+ name: NAS Disk
+ hours_to_show: 4
+ points_per_hour: 3
+ show:
+ fill: false
- - type: custom:mini-graph-card
- align_icon: left
- align_state: center
+ - type: custom:mini-graph-card
+ align_icon: left
+ align_state: center
+ entities:
+ - sensor.local_mariadb_database_size
+ font_size: 50
+ icon: mdi:database
+ name: Database
+ hours_to_show: 96
+ points_per_hour: 3
+ show:
+ fill: false
+ - type: glance
+ show_icon: false
+ columns: 3
entities:
- - sensor.local_mariadb_database_size
- font_size: 50
- icon: mdi:database
- name: Database
- hours_to_show: 96
- points_per_hour: 3
- show:
- fill: false
- - type: glance
- show_icon: false
- columns: 3
- entities:
- - entity: sensor.count_binary_sensors
- name: Binary Sensors
- - entity: sensor.count_sensors
- name: Sensors
- - entity: sensor.count_switches
- name: Switches
- - entity: sensor.count_device_trackers
- name: Device Trackers
- - entity: sensor.count_automations
- name: Automations
- - entity: sensor.count_scripts
- name: Scripts
- - entity: sensor.count_input_booleans
- name: Bools
- - entity: sensor.count_input_numbers
- name: Numbers
- - entity: sensor.count_input_datetimes
- name: DateTimes
- - entity: sensor.count_input_selects
- name: Selects
- - entity: sensor.count_zones
- name: Zones
- - entity: sensor.count_input_texts
- name: Texts
+ - entity: sensor.count_binary_sensors
+ name: Binary Sensors
+ - entity: sensor.count_sensors
+ name: Sensors
+ - entity: sensor.count_switches
+ name: Switches
+ - entity: sensor.count_device_trackers
+ name: Device Trackers
+ - entity: sensor.count_automations
+ name: Automations
+ - entity: sensor.count_scripts
+ name: Scripts
+ - entity: sensor.count_input_booleans
+ name: Bools
+ - entity: sensor.count_input_numbers
+ name: Numbers
+ - entity: sensor.count_input_datetimes
+ name: DateTimes
+ - entity: sensor.count_input_selects
+ name: Selects
+ - entity: sensor.count_zones
+ name: Zones
+ - entity: sensor.count_input_texts
+ name: Texts
# - type: glance
# show_header_toggle: false
@@ -140,25 +140,25 @@ cards:
# name: Hassio
# tap_action:
# action: call-service
- # service: homeassistant.restart
+ # action: homeassistant.restart
# - entity: zone.home
# icon: mdi:cogs
# name: Automation
# tap_action:
# action: call-service
- # service: automation.reload
+ # action: automation.reload
# - entity: zone.home
# icon: mdi:script-text
# name: Script
# tap_action:
# action: call-service
- # service: script.reload
+ # action: script.reload
# - entity: zone.home
# icon: mdi:group
# name: Groups
# tap_action:
# action: call-service
- # service: group.reload
+ # action: group.reload
# - type: vertical-stack
# cards:
@@ -334,16 +334,16 @@ cards:
cards:
- type: custom:mushroom-entity-card
layout: vertical
- entity: sensor.blue_room_multisensor_illuminance
- name: Blue Room
+ entity: sensor.boys_room_multisensor_illuminance
+ name: Boys Room
icon_type: none
- type: custom:mushroom-entity-card
- entity: input_number.blue_room_light_level_trigger
+ entity: input_number.boys_room_light_level_trigger
layout: vertical
- name: Blue Room
+ name: Boys Room
icon_type: none
- type: custom:mushroom-entity-card
- entity: binary_sensor.blue_room_naturally_lit
+ entity: binary_sensor.boys_room_naturally_lit
name: Naturally Lit
layout: vertical
secondary_info: state
@@ -406,7 +406,6 @@ cards:
secondary_info: state
icon_type: none
-
- type: glance
entities:
- entity: input_number.is_dark
@@ -414,4 +413,4 @@ cards:
- entity: input_number.is_dim
name: Dim
- entity: input_number.is_daylight
- name: Daylight
\ No newline at end of file
+ name: Daylight
diff --git a/lovelace/view-floor-all.yaml b/lovelace/view-floor-all.yaml
index 4533e8c..904f393 100644
--- a/lovelace/view-floor-all.yaml
+++ b/lovelace/view-floor-all.yaml
@@ -5,7 +5,7 @@ cards:
- !include /config/lovelace/room_cards/front_room.yaml
- - !include /config/lovelace/room_cards/nursery.yaml
+ - !include /config/lovelace/room_cards/girls_room.yaml
- !include /config/lovelace/room_cards/kitchen.yaml
@@ -29,7 +29,7 @@ cards:
- !include /config/lovelace/room_cards/mancave.yaml
- - !include /config/lovelace/room_cards/blue_room.yaml
+ - !include /config/lovelace/room_cards/boys_room.yaml
- !include /config/lovelace/room_cards/furnace_room.yaml
diff --git a/lovelace/view-ha-floorplan.yaml b/lovelace/view-ha-floorplan.yaml
index a1518bf..77121a0 100644
--- a/lovelace/view-ha-floorplan.yaml
+++ b/lovelace/view-ha-floorplan.yaml
@@ -58,7 +58,7 @@ cards:
- input_boolean.garage_occupied
- input_boolean.computer_area_occupied
- input_boolean.great_room_occupied
- - input_boolean.blue_room_occupied
+ - input_boolean.boys_room_occupied
- input_boolean.mancave_occupied
- input_boolean.utility_room_occupied
- input_boolean.deck_occupied
@@ -72,7 +72,7 @@ cards:
class: room-empty
action:
domain: homeassistant
- service: homeassistant.toggle
+ action: homeassistant.toggle
- entities:
- sensor.general_waste
@@ -81,9 +81,9 @@ cards:
class: bin-today
- state: "tomorrow"
class: bin-tomorrow
- - state: 'future'
+ - state: "future"
class: bin-future
- - state: 'false'
+ - state: "false"
class: bin-false
- entities:
@@ -136,7 +136,7 @@ cards:
- binary_sensor.nursery_person_occupancy
- binary_sensor.utility_room_person_occupancy
- binary_sensor.utility_room_person_occupancy
- - binary_sensor.blue_room_person_occupancy
+ - binary_sensor.boys_room_person_occupancy
- binary_sensor.furnace_room_person_occupancy
- binary_sensor.driveway_vehicle_occupancy
states:
@@ -155,7 +155,7 @@ cards:
- sensor.front_room_thermal_comfort_dew_point_perception
- sensor.master_bathroom_thermal_comfort_dew_point_perception
- sensor.computer_area_thermal_comfort_dew_point_perception
- - sensor.blue_room_thermal_comfort_dew_point_perception
+ - sensor.boys_room_thermal_comfort_dew_point_perception
- sensor.utility_room_thermal_comfort_dew_point_perception
states:
- state: "dry"
@@ -185,7 +185,7 @@ cards:
- sensor.front_room_thermal_comfort_humidex_perception
- sensor.master_bathroom_thermal_comfort_humidex_perception
- sensor.computer_area_thermal_comfort_humidex_perception
- - sensor.blue_room_thermal_comfort_humidex_perception
+ - sensor.boys_room_thermal_comfort_humidex_perception
- sensor.utility_room_thermal_comfort_humidex_perception
states:
- state: "comfortable"
@@ -211,7 +211,7 @@ cards:
- sensor.front_room_thermal_comfort_summer_simmer_perception
- sensor.master_bathroom_thermal_comfort_summer_simmer_perception
- sensor.computer_area_thermal_comfort_summer_simmer_perception
- - sensor.blue_room_thermal_comfort_summer_simmer_perception
+ - sensor.boys_room_thermal_comfort_summer_simmer_perception
- sensor.utility_room_thermal_comfort_summer_simmer_perception
states:
- state: "unavailable"
@@ -289,8 +289,8 @@ cards:
- media_player.kitchen
- media_player.master_bedroom_clock
- media_player.front_room_hub
- - media_player.nursery_hub
- - media_player.blue_room_clock
+ - media_player.girls_room_hub
+ - media_player.boys_room_clock
states:
- state: "playing"
class: "squeezebox-on"
@@ -367,8 +367,8 @@ cards:
- sensor.downstairs_temperature
- sensor.computer_area_multisensor_air_temperature
- sensor.mancave_thermostat_temperature
- - sensor.blue_room_thermostat_temperature
- - sensor.blue_room_multisensor_air_temperature
+ - sensor.boys_room_thermostat_temperature
+ - sensor.boys_room_multisensor_air_temperature
- sensor.kitchen_multisensor_air_temperature
- sensor.great_room_multisensor_air_temperature
- sensor.dining_room_multisensor_air_temperature
@@ -479,11 +479,11 @@ cards:
- sensor.computer_area_multisensor_humidity
- sensor.great_room_multisensor_humidity
- sensor.mancave_thermostat_humidity
- - sensor.blue_room_thermostat_humidity
+ - sensor.boys_room_thermostat_humidity
- sensor.front_room_thermostat_humidity
- sensor.kitchen_multisensor_humidity
- sensor.furnace_room_thermostat_humidity
- - sensor.blue_room_multisensor_humidity
+ - sensor.boys_room_multisensor_humidity
- sensor.dining_room_multisensor_humidity
text_template: '${entity.state ? Math.ceil(entity.state) : "unknown"} %'
class_template: '
@@ -531,7 +531,7 @@ cards:
- sensor.garage_multisensor_illuminance
- sensor.front_room_light_level
- sensor.kitchen_multisensor_illuminance
- - sensor.blue_room_multisensor_illuminance
+ - sensor.boys_room_multisensor_illuminance
- sensor.dining_room_multisensor_illuminance
text_template: '${entity.state ? Math.ceil(entity.state) : "unknown"} lx'
class_template: '
@@ -589,7 +589,7 @@ cards:
# class: "light-unavailable"
# action:
# domain: homeassistant
- # service: homeassistant.toggle
+ # action: homeassistant.toggle
- entities:
- light.front_room_splash_left
@@ -615,8 +615,8 @@ cards:
- light.utility_room_hue
- light.mancave
- light.deck
- - light.blue_room_hue
- - light.blue_room_closet
+ - light.boys_room_hue
+ - light.boys_room_closet
- light.furnace_room
- light.storage_room
- switch.utility_room_vent_switch
@@ -630,10 +630,10 @@ cards:
class: "entity-unavailable"
action:
domain: homeassistant
- service: homeassistant.toggle
+ action: homeassistant.toggle
- entities:
- - binary_sensor.blue_room_naturally_lit
+ - binary_sensor.boys_room_naturally_lit
- binary_sensor.computer_area_naturally_lit
- binary_sensor.deck_naturally_lit
- binary_sensor.dining_room_naturally_lit
@@ -710,8 +710,8 @@ cards:
- binary_sensor.utility_room_motion_switch_home_security_motion_detection
- binary_sensor.mancave_motion_switch_home_security_motion_detection
- binary_sensor.dining_room_motion_switch_home_security_motion_detection
- - binary_sensor.blue_room_multisensor_motion_detection
- - binary_sensor.blue_room_motion_switch_home_security_motion_detection
+ - binary_sensor.boys_room_multisensor_motion_detection
+ - binary_sensor.boys_room_motion_switch_motion_detection
- binary_sensor.furnace_room_motion_switch_home_security_motion_detection
- binary_sensor.front_room_motion
@@ -741,7 +741,7 @@ cards:
- binary_sensor.pantry_door_contact
- binary_sensor.storage_room_door_contact
- binary_sensor.mancave_door_contact
- - binary_sensor.blue_room_door_contact
+ - binary_sensor.boys_room_door_contact
- binary_sensor.hvac_multisensor_door
#- binary_sensor.furnace_room_door_contact
- binary_sensor.utility_room_door_contact
@@ -778,7 +778,7 @@ cards:
- binary_sensor.nursery_window_contact
- binary_sensor.master_bedroom_window_contact
- binary_sensor.computer_area_window_contact
- - binary_sensor.blue_room_window_contact
+ - binary_sensor.boys_room_window_contact
- binary_sensor.entryway_window_contact
states:
- state: "off"
diff --git a/lovelace/view-information.yaml b/lovelace/view-information.yaml
index c9b495e..6d689f7 100644
--- a/lovelace/view-information.yaml
+++ b/lovelace/view-information.yaml
@@ -5,144 +5,144 @@ visible:
- user: 24a4bd075e7f41a497dd0390a1dd4a9f
- user: cad46dedf86f454ebbd7f697a58730f2
cards:
-- type: glance
- title: Public
- columns: 2
- show_icon: true
- entities:
- - entity: input_select.front_room_mode
- name: Front Room
- - entity: input_boolean.front_room_occupied
- name: Occupied
- tap_action:
- action: toggle
- - entity: input_select.kitchen_mode
- name: Kitchen
- - entity: input_boolean.kitchen_occupied
- name: Occupied
- tap_action:
- action: toggle
- - entity: input_select.dining_room_mode
- name: Dining Room
- - entity: input_boolean.dining_room_occupied
- name: Occupied
- tap_action:
- action: toggle
- - entity: input_select.great_room_mode
- name: Great Room
- - entity: input_boolean.great_room_occupied
- name: Occupied
- tap_action:
- action: toggle
- - entity: input_select.utility_room_mode
- name: Utility Room
- - entity: input_boolean.utility_room_occupied
- name: Occupied
- tap_action:
- action: toggle
+ - type: glance
+ title: Public
+ columns: 2
+ show_icon: true
+ entities:
+ - entity: input_select.front_room_mode
+ name: Front Room
+ - entity: input_boolean.front_room_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
+ - entity: input_select.kitchen_mode
+ name: Kitchen
+ - entity: input_boolean.kitchen_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
+ - entity: input_select.dining_room_mode
+ name: Dining Room
+ - entity: input_boolean.dining_room_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
+ - entity: input_select.great_room_mode
+ name: Great Room
+ - entity: input_boolean.great_room_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
+ - entity: input_select.utility_room_mode
+ name: Utility Room
+ - entity: input_boolean.utility_room_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
-- type: glance
- title: Private
- columns: 2
- show_icon: true
- entities:
- - entity: input_select.master_bedroom_mode
- name: Master Bedroom
- - entity: input_boolean.master_bedroom_occupied
- name: Occupied
- tap_action:
- action: toggle
- - entity: input_select.nursery_mode
- name: Nursery
- - entity: input_boolean.nursery_occupied
- name: Occupied
- tap_action:
- action: toggle
- - entity: input_select.master_bathroom_mode
- name: Master Bathroom
- - entity: input_boolean.master_bathroom_occupied
- name: Occupied
- tap_action:
- action: toggle
- - entity: input_select.blue_room_mode
- name: Blue Room
- - entity: input_boolean.blue_room_occupied
- name: Occupied
- tap_action:
- action: toggle
- - entity: input_select.mancave_mode
- name: Mancave
- - entity: input_boolean.mancave_occupied
- name: Occupied
- tap_action:
- action: toggle
+ - type: glance
+ title: Private
+ columns: 2
+ show_icon: true
+ entities:
+ - entity: input_select.master_bedroom_mode
+ name: Master Bedroom
+ - entity: input_boolean.master_bedroom_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
+ - entity: input_select.nursery_mode
+ name: Nursery
+ - entity: input_boolean.nursery_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
+ - entity: input_select.master_bathroom_mode
+ name: Master Bathroom
+ - entity: input_boolean.master_bathroom_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
+ - entity: input_select.boys_room_mode
+ name: Boys Room
+ - entity: input_boolean.boys_room_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
+ - entity: input_select.mancave_mode
+ name: Mancave
+ - entity: input_boolean.mancave_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
-- type: glance
- title: House
- columns: 2
- show_icon: true
- entities:
- - entity: input_select.house
- name: House
- - entity: input_boolean.home_occupied
- name: Occupied
- tap_action:
- action: toggle
- - entity: input_select.computer_area_mode
- name: Computer Area
- - entity: input_boolean.computer_area_occupied
- name: Occupied
- tap_action:
- action: toggle
- - entity: input_select.entryway_mode
- name: Entryway
- - entity: input_boolean.entryway_occupied
- name: Occupied
- tap_action:
- action: toggle
+ - type: glance
+ title: House
+ columns: 2
+ show_icon: true
+ entities:
+ - entity: input_select.house
+ name: House
+ - entity: input_boolean.home_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
+ - entity: input_select.computer_area_mode
+ name: Computer Area
+ - entity: input_boolean.computer_area_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
+ - entity: input_select.entryway_mode
+ name: Entryway
+ - entity: input_boolean.entryway_occupied
+ name: Occupied
+ tap_action:
+ action: toggle
-- type: glance
- columns: 2
- show_icon: false
- title: Time of Day
- entities:
- - entity: input_select.time_of_day
- name: Time of Day
- - entity: input_select.automatic_light_profile
- name: Automatic Light Profile
- - entity: input_select.early_morning_mode
- name: "4-6 Early AM"
- - entity: input_select.early_morning_kids_mode
- name: "4-6 Early AM Kids"
- - entity: input_select.morning_mode
- name: "6-9 AM"
- - entity: input_select.morning_kids_mode
- name: "6-9 AM Kids"
- - entity: input_select.late_morning_mode
- name: "9-12 Late AM"
- - entity: input_select.late_morning_kids_mode
- name: "9-12 Late AM Kids"
- - entity: input_select.early_afternoon_mode
- name: "12-15 Early Day"
- - entity: input_select.early_afternoon_kids_mode
- name: "12-15 Early Day Kids"
- - entity: input_select.late_afternoon_mode
- name: "15-17 Late Day"
- - entity: input_select.late_afternoon_kids_mode
- name: "15-17 Late Day Kids"
- - entity: input_select.early_evening_mode
- name: "17-19 Early PM"
- - entity: input_select.early_evening_kids_mode
- name: "17-19 Early PM Kids"
- - entity: input_select.evening_mode
- name: "19-22 PM"
- - entity: input_select.evening_kids_mode
- name: "19-22 PM Kids"
- - entity: input_select.late_evening_mode
- name: "22-00 Late PM"
- - entity: input_select.late_evening_kids_mode
- name: "22-00 Late PM Kids"
- - entity: input_select.night_mode
- name: "00-4 Night"
- - entity: input_select.night_kids_mode
- name: "00-4 Night Kids"
+ - type: glance
+ columns: 2
+ show_icon: false
+ title: Time of Day
+ entities:
+ - entity: input_select.time_of_day
+ name: Time of Day
+ - entity: input_select.automatic_light_profile
+ name: Automatic Light Profile
+ - entity: input_select.early_morning_mode
+ name: "4-6 Early AM"
+ - entity: input_select.early_morning_kids_mode
+ name: "4-6 Early AM Kids"
+ - entity: input_select.morning_mode
+ name: "6-9 AM"
+ - entity: input_select.morning_kids_mode
+ name: "6-9 AM Kids"
+ - entity: input_select.late_morning_mode
+ name: "9-12 Late AM"
+ - entity: input_select.late_morning_kids_mode
+ name: "9-12 Late AM Kids"
+ - entity: input_select.early_afternoon_mode
+ name: "12-15 Early Day"
+ - entity: input_select.early_afternoon_kids_mode
+ name: "12-15 Early Day Kids"
+ - entity: input_select.late_afternoon_mode
+ name: "15-17 Late Day"
+ - entity: input_select.late_afternoon_kids_mode
+ name: "15-17 Late Day Kids"
+ - entity: input_select.early_evening_mode
+ name: "17-19 Early PM"
+ - entity: input_select.early_evening_kids_mode
+ name: "17-19 Early PM Kids"
+ - entity: input_select.evening_mode
+ name: "19-22 PM"
+ - entity: input_select.evening_kids_mode
+ name: "19-22 PM Kids"
+ - entity: input_select.late_evening_mode
+ name: "22-00 Late PM"
+ - entity: input_select.late_evening_kids_mode
+ name: "22-00 Late PM Kids"
+ - entity: input_select.night_mode
+ name: "00-4 Night"
+ - entity: input_select.night_kids_mode
+ name: "00-4 Night Kids"
diff --git a/lovelace/view-media.yaml b/lovelace/view-media.yaml
index 163f9e9..2f48e0b 100644
--- a/lovelace/view-media.yaml
+++ b/lovelace/view-media.yaml
@@ -58,7 +58,7 @@ cards:
show_source: true
tts:
platform: google_translate
- - entity: media_player.nursery_hub
+ - entity: media_player.girls_room_hub
name: Nursery
#type: media-control
type: custom:mini-media-player
@@ -112,8 +112,8 @@ cards:
show_source: true
tts:
platform: google_translate
- - entity: media_player.blue_room_clock
- name: Blue Room
+ - entity: media_player.boys_room_clock
+ name: Boys Room
#type: media-control
type: custom:mini-media-player
group: true
@@ -318,7 +318,7 @@ cards:
# id: great_room
# - name: Nursery
# type: source
- # id: nursery_hub
+ # id: girls_room_hub
# - name: Master Bedroom
# type: source
# id: master_bedroom_clock
diff --git a/lovelace/view-more-charts.yaml b/lovelace/view-more-charts.yaml
index ce808fb..0d697c4 100644
--- a/lovelace/view-more-charts.yaml
+++ b/lovelace/view-more-charts.yaml
@@ -7,92 +7,92 @@ visible:
cards:
- type: vertical-stack
cards:
- - type: horizontal-stack
- cards:
- - entities:
- - entity: sensor.master_bedroom_multisensor_air_temperature
- name: Master Bedroom
- - entity: sensor.nursery_multisensor_air_temperature
- name: Nursery
- - entity: sensor.thermostat_temperature
- name: Thermostat
- - entity: sensor.dining_room_multisensor_air_temperature
- name: Dining Room
- - entity: sensor.front_room_thermostat_temperature
- name: Front Room
- - entity: sensor.kitchen_multisensor_air_temperature
- name: Kitchen
- hours_to_show: 12
- refresh_interval: 60
- title: Upstairs Temp
- type: history-graph
- - entities:
- - entity: sensor.master_bedroom_multisensor_humidity
- name: Master Bedroom
- - entity: sensor.nursery_multisensor_humidity
- name: Nursery
- - entity: sensor.thermostat_humidity
- name: Thermostat
- - entity: sensor.dining_room_multisensor_humidity
- name: Dining Room
- - entity: sensor.front_room_thermostat_humidity
- name: Front Room
- - entity: sensor.kitchen_multisensor_humidity
- name: Kitchen
- hours_to_show: 12
- refresh_interval: 60
- title: Upstairs Humidity
- type: history-graph
- - entities:
- - entity: sensor.master_bathroom_thermostat_temperature
- name: Master Bathroom
- - entity: sensor.utility_room_thermostat_temperature
- name: Utility Room
- hours_to_show: 12
- refresh_interval: 60
- title: Bathroom Temperature
- type: history-graph
- - type: horizontal-stack
- cards:
- - entities:
- - entity: sensor.computer_area_multisensor_air_temperature
- name: Computer Area
- - entity: sensor.great_room_multisensor_air_temperature
- name: Great Room
- - entity: sensor.mancave_thermostat_temperature
- name: Mancave
- - entity: sensor.blue_room_multisensor_air_temperature
- name: Blue Room
- - entity: sensor.furnace_room_thermostat_temperature
- name: Furnace Room
- hours_to_show: 12
- refresh_interval: 60
- title: Downstairs Temp
- type: history-graph
- - entities:
- - entity: sensor.computer_area_multisensor_humidity
- name: Computer Area
- - entity: sensor.great_room_multisensor_humidity
- name: Great Room
- - entity: sensor.mancave_thermostat_humidity
- name: Mancave
- - entity: sensor.blue_room_multisensor_humidity
- name: Blue Room
- - entity: sensor.furnace_room_thermostat_humidity
- name: Furnace Room
- hours_to_show: 12
- refresh_interval: 60
- title: Downstairs Humidity
- type: history-graph
- - entities:
- - entity: sensor.master_bathroom_thermostat_humidity
- name: Master Bathroom
- - entity: sensor.utility_room_thermostat_humidity
- name: Utility Room
- hours_to_show: 12
- refresh_interval: 60
- title: Bathroom Humidity
- type: history-graph
+ - type: horizontal-stack
+ cards:
+ - entities:
+ - entity: sensor.master_bedroom_multisensor_air_temperature
+ name: Master Bedroom
+ - entity: sensor.nursery_multisensor_air_temperature
+ name: Nursery
+ - entity: sensor.thermostat_temperature
+ name: Thermostat
+ - entity: sensor.dining_room_multisensor_air_temperature
+ name: Dining Room
+ - entity: sensor.front_room_thermostat_temperature
+ name: Front Room
+ - entity: sensor.kitchen_multisensor_air_temperature
+ name: Kitchen
+ hours_to_show: 12
+ refresh_interval: 60
+ title: Upstairs Temp
+ type: history-graph
+ - entities:
+ - entity: sensor.master_bedroom_multisensor_humidity
+ name: Master Bedroom
+ - entity: sensor.nursery_multisensor_humidity
+ name: Nursery
+ - entity: sensor.thermostat_humidity
+ name: Thermostat
+ - entity: sensor.dining_room_multisensor_humidity
+ name: Dining Room
+ - entity: sensor.front_room_thermostat_humidity
+ name: Front Room
+ - entity: sensor.kitchen_multisensor_humidity
+ name: Kitchen
+ hours_to_show: 12
+ refresh_interval: 60
+ title: Upstairs Humidity
+ type: history-graph
+ - entities:
+ - entity: sensor.master_bathroom_thermostat_temperature
+ name: Master Bathroom
+ - entity: sensor.utility_room_thermostat_temperature
+ name: Utility Room
+ hours_to_show: 12
+ refresh_interval: 60
+ title: Bathroom Temperature
+ type: history-graph
+ - type: horizontal-stack
+ cards:
+ - entities:
+ - entity: sensor.computer_area_multisensor_air_temperature
+ name: Computer Area
+ - entity: sensor.great_room_multisensor_air_temperature
+ name: Great Room
+ - entity: sensor.mancave_thermostat_temperature
+ name: Mancave
+ - entity: sensor.boys_room_multisensor_air_temperature
+ name: Boys Room
+ - entity: sensor.furnace_room_thermostat_temperature
+ name: Furnace Room
+ hours_to_show: 12
+ refresh_interval: 60
+ title: Downstairs Temp
+ type: history-graph
+ - entities:
+ - entity: sensor.computer_area_multisensor_humidity
+ name: Computer Area
+ - entity: sensor.great_room_multisensor_humidity
+ name: Great Room
+ - entity: sensor.mancave_thermostat_humidity
+ name: Mancave
+ - entity: sensor.boys_room_multisensor_humidity
+ name: Boys Room
+ - entity: sensor.furnace_room_thermostat_humidity
+ name: Furnace Room
+ hours_to_show: 12
+ refresh_interval: 60
+ title: Downstairs Humidity
+ type: history-graph
+ - entities:
+ - entity: sensor.master_bathroom_thermostat_humidity
+ name: Master Bathroom
+ - entity: sensor.utility_room_thermostat_humidity
+ name: Utility Room
+ hours_to_show: 12
+ refresh_interval: 60
+ title: Bathroom Humidity
+ type: history-graph
- type: vertical-stack
view_layout:
@@ -151,8 +151,8 @@ cards:
name: Computer Area
- entity: sensor.great_room_multisensor_illuminance
name: Great Room
- - entity: sensor.blue_room_multisensor_illuminance
- name: Blue Room
+ - entity: sensor.boys_room_multisensor_illuminance
+ name: Boys Room
hours_to_show: 12
refresh_interval: 60
title: Downstairs Light Level
diff --git a/lovelace/view-overview.yaml b/lovelace/view-overview.yaml
index 4ef84db..93f0af8 100644
--- a/lovelace/view-overview.yaml
+++ b/lovelace/view-overview.yaml
@@ -858,7 +858,7 @@ badges:
name: Mail
tap_action:
action: call-service
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
service_data:
entity_id: input_boolean.mail_checked
hold_action:
@@ -867,7 +867,7 @@ badges:
name: Trash
tap_action:
action: call-service
- service: homeassistant.turn_on
+ action: homeassistant.turn_on
service_data:
entity_id: input_boolean.trash_out
hold_action:
@@ -1134,16 +1134,16 @@ cards:
name: Bedroom
- entity: binary_sensor.computer_area_window_contact
name: Computer
- - entity: binary_sensor.blue_room_window_contact
- name: Blue Room
+ - entity: binary_sensor.boys_room_window_contact
+ name: Boys Room
- entity: binary_sensor.kitchen_fridge_door_contact
name: Fridge
- entity: binary_sensor.computer_chair_contact
name: Computer Chair
- entity: binary_sensor.basement_door_contact
name: Basement
- - entity: binary_sensor.blue_room_door_contact
- name: Blue Room
+ - entity: binary_sensor.boys_room_door_contact
+ name: Boys Room
- entity: binary_sensor.mancave_door_contact
name: Mancave
- entity: binary_sensor.utility_room_door_contact
@@ -1152,11 +1152,11 @@ cards:
- entity: sensor.bathroom_vent_switch_node_status
name: Bathroom Vent
- - entity: sensor.blue_room_closet_switch_node_status
- name: Blue Room Closet
+ - entity: sensor.boys_room_closet_switch_node_status
+ name: Boys Room Closet
- - entity: sensor.blue_room_motion_switch_node_status
- name: Blue Room Motion Switch
+ - entity: sensor.boys_room_motion_switch_node_status
+ name: Boys Room Motion Switch
- entity: sensor.computer_area_multisensor_node_status
name: Computer Area MultiSensor
@@ -1226,7 +1226,7 @@ cards:
name: Utility Room Vent
- entity: camera.frigate_cam01
- name: Blue Room
+ name: Boys Room
- entity: camera.frigate_cam03
name: Comp. Desk
- entity: camera.frigate_cam04
@@ -1256,14 +1256,14 @@ cards:
- entity: media_player.great_room
- entity: media_player.kitchen
- entity: media_player.master_bedroom_clock
- - entity: media_player.nursery_hub
+ - entity: media_player.girls_room_hub
- entity: device_tracker.amcrest_technologies_24_1f_27
name: MBR Left
icon: mdi:cctv
state_filter:
- "not_home"
- entity: device_tracker.amcrest_technologies_35_ad_6f
- name: Blue Room
+ name: Boys Room
icon: mdi:cctv
state_filter:
- "not_home"
diff --git a/lovelace/view-people.yaml b/lovelace/view-people.yaml
index d25b747..8faa7db 100644
--- a/lovelace/view-people.yaml
+++ b/lovelace/view-people.yaml
@@ -17,7 +17,7 @@ cards:
camera_image: camera.clint
tap_action:
action: call-service
- service: input_boolean.toggle
+ action: input_boolean.toggle
service_data:
entity_id: input_boolean.lovelace_clint_more
- type: conditional
@@ -58,7 +58,7 @@ cards:
camera_image: camera.emmett
tap_action:
action: call-service
- service: input_boolean.toggle
+ action: input_boolean.toggle
service_data:
entity_id: input_boolean.lovelace_emmett_more
- type: conditional
@@ -94,7 +94,7 @@ cards:
camera_image: camera.bridget
tap_action:
action: call-service
- service: input_boolean.toggle
+ action: input_boolean.toggle
service_data:
entity_id: input_boolean.lovelace_bridget_more
- type: conditional
diff --git a/lovelace/view-power.yaml b/lovelace/view-power.yaml
index 93cffa9..306645b 100644
--- a/lovelace/view-power.yaml
+++ b/lovelace/view-power.yaml
@@ -10,74 +10,74 @@ cards:
- type: energy-devices-graph
- type: vertical-stack
cards:
- - type: entities
- entities:
- - entity: sensor.pm_grid_total_w
- name: Grid [W]
- - entity: sensor.pm_grid_kwh
- name: Grid [kWh]
- - type: horizontal-stack
- cards:
- - type: vertical-stack
- cards:
- - type: entities
- entities:
- - entity: sensor.pm_grid_phase_a_w
- name: Phase A
- - type: divider
- - entity: sensor.pm_well_w
- name: Well
- - entity: sensor.pm_kitchen_1_w
- name: Kitchen 1
- - entity: sensor.pm_kitchen_2_w
- name: Kitchen 2
- - entity: sensor.pm_laundry_plug_w
- name: Laundry
- - entity: sensor.pm_microwave_plug_w
- name: Microwave
- - entity: sensor.pm_bathroom_plug_w
- name: Bathroom
- - entity: sensor.pm_heat_pump_w
- name: Heat Pump
- - entity: sensor.pm_basement_bedroom_and_furnace_room_lights_w
- name: Blue Room/Furnace Lights
- - entity: sensor.pm_basement_plugs_w
- name: Basement Plugs
- - entity: sensor.pm_basement_and_laundry_lights_and_plugs_w
- name: Basement 2
- - entity: sensor.pm_sump_pump_plug_w
- name: Sump Pump
- show_header_toggle: false
- header:
- type: graph
- entity: sensor.pm_grid_phase_a_w
- - type: vertical-stack
- cards:
- - type: entities
- entities:
- - entity: sensor.pm_grid_phase_b_w
- name: Phase B
- - type: divider
- - entity: sensor.pm_nursery_dining_kitchen_lights_w
- name: Nursery, Kitchen, Dining Lights
- - entity: sensor.pm_master_suite_w
- name: Master Suite
- - entity: sensor.pm_furnace_w
- name: Furnace
- - entity: sensor.pm_basement_stairs_and_lights_w
- name: Basement Stairs
- - entity: sensor.pm_dishwasher_w
- name: Dishwasher
- - entity: sensor.pm_garage_outside_and_front_garage_lights_w
- name: Garage & Outside Lights
- - entity: sensor.pm_front_room_plugs_w
- name: Front Room
- - entity: sensor.pm_garage_and_outside_plugs_w
- name: Garage & Outside plugs
- - entity: sensor.pm_stove_w
- name: Stove
- - entity: sensor.pm_dryer_w
- name: Dryer
- header:
- type: graph
- entity: sensor.pm_grid_phase_b_w
\ No newline at end of file
+ - type: entities
+ entities:
+ - entity: sensor.pm_grid_total_w
+ name: Grid [W]
+ - entity: sensor.pm_grid_kwh
+ name: Grid [kWh]
+ - type: horizontal-stack
+ cards:
+ - type: vertical-stack
+ cards:
+ - type: entities
+ entities:
+ - entity: sensor.pm_grid_phase_a_w
+ name: Phase A
+ - type: divider
+ - entity: sensor.pm_well_w
+ name: Well
+ - entity: sensor.pm_kitchen_1_w
+ name: Kitchen 1
+ - entity: sensor.pm_kitchen_2_w
+ name: Kitchen 2
+ - entity: sensor.pm_laundry_plug_w
+ name: Laundry
+ - entity: sensor.pm_microwave_plug_w
+ name: Microwave
+ - entity: sensor.pm_bathroom_plug_w
+ name: Bathroom
+ - entity: sensor.pm_heat_pump_w
+ name: Heat Pump
+ - entity: sensor.pm_basement_bedroom_and_furnace_room_lights_w
+ name: Boys Room/Furnace Lights
+ - entity: sensor.pm_basement_plugs_w
+ name: Basement Plugs
+ - entity: sensor.pm_basement_and_laundry_lights_and_plugs_w
+ name: Basement 2
+ - entity: sensor.pm_sump_pump_plug_w
+ name: Sump Pump
+ show_header_toggle: false
+ header:
+ type: graph
+ entity: sensor.pm_grid_phase_a_w
+ - type: vertical-stack
+ cards:
+ - type: entities
+ entities:
+ - entity: sensor.pm_grid_phase_b_w
+ name: Phase B
+ - type: divider
+ - entity: sensor.pm_nursery_dining_kitchen_lights_w
+ name: Nursery, Kitchen, Dining Lights
+ - entity: sensor.pm_master_suite_w
+ name: Master Suite
+ - entity: sensor.pm_furnace_w
+ name: Furnace
+ - entity: sensor.pm_basement_stairs_and_lights_w
+ name: Basement Stairs
+ - entity: sensor.pm_dishwasher_w
+ name: Dishwasher
+ - entity: sensor.pm_garage_outside_and_front_garage_lights_w
+ name: Garage & Outside Lights
+ - entity: sensor.pm_front_room_plugs_w
+ name: Front Room
+ - entity: sensor.pm_garage_and_outside_plugs_w
+ name: Garage & Outside plugs
+ - entity: sensor.pm_stove_w
+ name: Stove
+ - entity: sensor.pm_dryer_w
+ name: Dryer
+ header:
+ type: graph
+ entity: sensor.pm_grid_phase_b_w
diff --git a/scripts/cameras/cam03_computer_area.yaml b/scripts/cameras/cam03_computer_area.yaml
index 3f0cc27..a3758b9 100644
--- a/scripts/cameras/cam03_computer_area.yaml
+++ b/scripts/cameras/cam03_computer_area.yaml
@@ -1,9 +1,9 @@
alias: Cam03 on Computer Area Hub
sequence:
-- service: webrtc.dash_cast
- data:
- entity_id: media_player.computer_area_hub
- url: rtsp_cam03
- force: true
- extra:
- mode: webrtc
\ No newline at end of file
+ - action: webrtc.dash_cast
+ data:
+ entity_id: media_player.computer_area_hub
+ url: rtsp_cam03
+ force: true
+ extra:
+ mode: webrtc
diff --git a/scripts/cameras/cam03_sub_computer_area.yaml b/scripts/cameras/cam03_sub_computer_area.yaml
index d9d7947..35e583d 100644
--- a/scripts/cameras/cam03_sub_computer_area.yaml
+++ b/scripts/cameras/cam03_sub_computer_area.yaml
@@ -1,9 +1,9 @@
alias: Cam03_sub on Computer Area Hub
sequence:
-- service: webrtc.dash_cast
- data:
- entity_id: media_player.computer_area_hub
- url: rtsp_cam03_sub
- force: true
- extra:
- mode: webrtc
\ No newline at end of file
+ - action: webrtc.dash_cast
+ data:
+ entity_id: media_player.computer_area_hub
+ url: rtsp_cam03_sub
+ force: true
+ extra:
+ mode: webrtc
diff --git a/scripts/cameras/cam08_computer_area.yaml b/scripts/cameras/cam08_computer_area.yaml
index 38da7a5..ed6e0e7 100644
--- a/scripts/cameras/cam08_computer_area.yaml
+++ b/scripts/cameras/cam08_computer_area.yaml
@@ -1,8 +1,8 @@
alias: Cam08 on Computer Area Hub
sequence:
-- service: webrtc.dash_cast
- data:
- entity_id: media_player.computer_area_hub
- url: rtsp_cam08_sub
- extra:
- mode: webrtc
\ No newline at end of file
+ - action: webrtc.dash_cast
+ data:
+ entity_id: media_player.computer_area_hub
+ url: rtsp_cam08_sub
+ extra:
+ mode: webrtc
diff --git a/scripts/cameras/cam08_front_room.yaml b/scripts/cameras/cam08_front_room.yaml
index 68d78c1..fd01d6e 100644
--- a/scripts/cameras/cam08_front_room.yaml
+++ b/scripts/cameras/cam08_front_room.yaml
@@ -1,9 +1,9 @@
alias: Cam08 on Front Room Hub
sequence:
-- service: webrtc.dash_cast
- data:
- entity_id: media_player.front_room_hub
- url: rtsp_cam08_sub
- force: true
- extra:
- mode: webrtc
\ No newline at end of file
+ - action: webrtc.dash_cast
+ data:
+ entity_id: media_player.front_room_hub
+ url: rtsp_cam08_sub
+ force: true
+ extra:
+ mode: webrtc
diff --git a/scripts/cameras/cam13_computer_area.yaml b/scripts/cameras/cam13_computer_area.yaml
index 57cae7b..43bad05 100644
--- a/scripts/cameras/cam13_computer_area.yaml
+++ b/scripts/cameras/cam13_computer_area.yaml
@@ -1,9 +1,9 @@
alias: Cam13 on Computer Area Hub
sequence:
-- service: webrtc.dash_cast
- data:
- entity_id: media_player.computer_area_hub
- url: rtsp_cam13_sub
- force: true
- extra:
- mode: webrtc
\ No newline at end of file
+ - action: webrtc.dash_cast
+ data:
+ entity_id: media_player.computer_area_hub
+ url: rtsp_cam13_sub
+ force: true
+ extra:
+ mode: webrtc
diff --git a/scripts/cameras/cam13_front_room.yaml b/scripts/cameras/cam13_front_room.yaml
index 81e69da..4cab01c 100644
--- a/scripts/cameras/cam13_front_room.yaml
+++ b/scripts/cameras/cam13_front_room.yaml
@@ -1,9 +1,9 @@
alias: Cam13 on Front Room Hub
sequence:
-- service: webrtc.dash_cast
- data:
- entity_id: media_player.front_room_hub
- url: rtsp_cam13_sub
- force: true
- extra:
- mode: webrtc
\ No newline at end of file
+ - action: webrtc.dash_cast
+ data:
+ entity_id: media_player.front_room_hub
+ url: rtsp_cam13_sub
+ force: true
+ extra:
+ mode: webrtc
diff --git a/scripts/cameras/cam19_computer_area.yaml b/scripts/cameras/cam19_computer_area.yaml
index 5e0e66b..f68b1dc 100644
--- a/scripts/cameras/cam19_computer_area.yaml
+++ b/scripts/cameras/cam19_computer_area.yaml
@@ -1,9 +1,9 @@
alias: Cam19 on Computer Area Hub
sequence:
-- service: webrtc.dash_cast
- data:
- entity_id: media_player.computer_area_hub
- url: rtsp_cam19_sub
- force: true
- extra:
- mode: webrtc
\ No newline at end of file
+ - action: webrtc.dash_cast
+ data:
+ entity_id: media_player.computer_area_hub
+ url: rtsp_cam19_sub
+ force: true
+ extra:
+ mode: webrtc
diff --git a/scripts/cameras/cam19_front_room.yaml b/scripts/cameras/cam19_front_room.yaml
index 0eb2901..1fa00e4 100644
--- a/scripts/cameras/cam19_front_room.yaml
+++ b/scripts/cameras/cam19_front_room.yaml
@@ -1,9 +1,9 @@
alias: Cam19 on Front Room Hub
sequence:
-- service: webrtc.dash_cast
- data:
- entity_id: media_player.front_room_hub
- url: rtsp_cam19_sub
- force: true
- extra:
- mode: webrtc
\ No newline at end of file
+ - action: webrtc.dash_cast
+ data:
+ entity_id: media_player.front_room_hub
+ url: rtsp_cam19_sub
+ force: true
+ extra:
+ mode: webrtc
diff --git a/scripts/cameras/create_camera_link.yaml b/scripts/cameras/create_camera_link.yaml
index 3b17852..9a61e66 100644
--- a/scripts/cameras/create_camera_link.yaml
+++ b/scripts/cameras/create_camera_link.yaml
@@ -3,15 +3,15 @@ sequence:
- variables:
link_id: "{% for _ in range(40) %}{{ range(10)|random }}{% endfor %}"
- - service: webrtc.create_link
+ - action: webrtc.create_link
data:
- link_id: "{{ link_id }}" # create a random or permanent link ID
+ link_id: "{{ link_id }}" # create a random or permanent link ID
# url: rtsp://rtsp:12345678@192.168.1.123:554/av_stream/ch0
# entity: camera.sonoff # you can use camera entity_id or url
url: rtsp://192.168.1.7:8554/rtsp_cam03_sub
- open_limit: 1 # how many times a link can be opened (0 - unlimit, 1 - default)
- time_to_live: 60 # how many seconds will the link live (0 - unlimit, 60 - default)
+ open_limit: 1 # how many times a link can be opened (0 - unlimit, 1 - default)
+ time_to_live: 60 # how many seconds will the link live (0 - unlimit, 60 - default)
- - service: persistent_notification.create
+ - action: persistent_notification.create
data:
- message: 'Open Camera'
\ No newline at end of file
+ message: 'Open Camera'
diff --git a/scripts/computer_area/computer_area_light_cycle.yaml b/scripts/computer_area/computer_area_light_cycle.yaml
index 2089515..28984c3 100644
--- a/scripts/computer_area/computer_area_light_cycle.yaml
+++ b/scripts/computer_area/computer_area_light_cycle.yaml
@@ -2,15 +2,15 @@ alias: Computer Area Light Cycle
fields:
colorset:
description: The set of colors to loop through
- example: 'gemtones'
+ example: "gemtones"
brightness:
description: The brightness that the lights should be set to
- example: '100'
+ example: "100"
transition:
description: The transition time, in seconds
- example: '10'
+ example: "10"
sequence:
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.computer_area_hue
brightness: '{{ states("input_number.computer_area_light_cycle_brightness") | int }}'
@@ -52,5 +52,5 @@ sequence:
seconds: '{{ states("input_number.computer_area_light_cycle_transition") | int }}'
# Wait until the loop_lights script has finished running
- wait_template: "{{ is_state('script.computer_area_loop_lights', 'off') }}"
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.computer_area_loop_lights
diff --git a/scripts/computer_area/computer_area_loop_lights.yaml b/scripts/computer_area/computer_area_loop_lights.yaml
index 474ceea..7d2201b 100644
--- a/scripts/computer_area/computer_area_loop_lights.yaml
+++ b/scripts/computer_area/computer_area_loop_lights.yaml
@@ -2,5 +2,5 @@ alias: Computer Area Loop Lights
sequence:
# Wait until the light_cycle script has finished running
- wait_template: "{{ is_state('script.computer_area_light_cycle', 'off') }}"
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.computer_area_light_cycle
diff --git a/scripts/control_light_with_lux.yaml b/scripts/control_light_with_lux.yaml
index cd33af7..1fee640 100644
--- a/scripts/control_light_with_lux.yaml
+++ b/scripts/control_light_with_lux.yaml
@@ -1,7 +1,7 @@
alias: Control Light With Lux
sequence:
- - service: light.turn_on
+ - action: light.turn_on
data_template:
- entity_id: '{{ lightname }}'
- brightness: '{{ brightness }}'
- transition: 5
\ No newline at end of file
+ entity_id: "{{ lightname }}"
+ brightness: "{{ brightness }}"
+ transition: 5
diff --git a/scripts/front_room/front_room_light_cycle.yaml b/scripts/front_room/front_room_light_cycle.yaml
index 8176367..f029ad6 100644
--- a/scripts/front_room/front_room_light_cycle.yaml
+++ b/scripts/front_room/front_room_light_cycle.yaml
@@ -2,60 +2,60 @@ alias: Front Room Light Cycle
fields:
colorset:
description: The set of colors to loop through
- example: 'gemtones'
+ example: "gemtones"
brightness:
description: The brightness that the lights should be set to
- example: '100'
+ example: "100"
transition:
description: The transition time, in seconds
- example: '10'
+ example: "10"
sequence:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.front_room_cycle_same
- state: 'on'
- sequence:
- - service: light.turn_on
- data_template:
- entity_id: light.front_room_hue
- brightness: '{{ states("input_number.front_room_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.front_room_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.front_room_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.front_room_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.front_room_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.front_room_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.front_room_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.front_room_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.front_room_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.front_room_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.front_room_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.front_room_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.front_room_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.front_room_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.front_room_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.front_room_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.front_room_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.front_room_cycle_same
+ state: "on"
+ sequence:
+ - action: light.turn_on
+ data_template:
+ entity_id: light.front_room_hue
+ brightness: '{{ states("input_number.front_room_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.front_room_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.front_room_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.front_room_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.front_room_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.front_room_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.front_room_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.front_room_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.front_room_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.front_room_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.front_room_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.front_room_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.front_room_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.front_room_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.front_room_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.front_room_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.front_room_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
default:
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.front_room_splash_left
brightness: '{{ states("input_number.front_room_light_cycle_brightness") | int }}'
@@ -93,7 +93,7 @@ sequence:
{% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
{% endif %}
{{ colors|random }}
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.front_room_splash_right
brightness: '{{ states("input_number.front_room_light_cycle_brightness") | int }}'
@@ -135,5 +135,5 @@ sequence:
seconds: '{{ states("input_number.front_room_light_cycle_transition") | int }}'
# Wait until the loop_lights script has finished running
- wait_template: "{{ is_state('script.front_room_loop_lights', 'off') }}"
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.front_room_loop_lights
diff --git a/scripts/front_room/front_room_loop_lights.yaml b/scripts/front_room/front_room_loop_lights.yaml
index b2d8156..8d22ac3 100644
--- a/scripts/front_room/front_room_loop_lights.yaml
+++ b/scripts/front_room/front_room_loop_lights.yaml
@@ -2,5 +2,5 @@ alias: Front Room Loop Lights
sequence:
# Wait until the light_cycle script has finished running
- wait_template: "{{ is_state('script.front_room_light_cycle', 'off') }}"
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.front_room_light_cycle
diff --git a/scripts/garage/blink_garage_lights.yaml b/scripts/garage/blink_garage_lights.yaml
index 0781370..7214321 100644
--- a/scripts/garage/blink_garage_lights.yaml
+++ b/scripts/garage/blink_garage_lights.yaml
@@ -1,21 +1,21 @@
alias: Blink Garage Lights
sequence:
- alias: "Manually flash the garage lights"
- service: light.toggle
+ action: light.toggle
target:
entity_id: light.garage_overhead
- - delay: '00:00:01'
+ - delay: "00:00:01"
- alias: "Manually flash the garage lights"
- service: light.toggle
+ action: light.toggle
target:
entity_id: light.garage_overhead
- - delay: '00:00:01'
+ - delay: "00:00:01"
- alias: "Manually flash the garage lights"
- service: light.toggle
+ action: light.toggle
target:
entity_id: light.garage_overhead
- - delay: '00:00:01'
+ - delay: "00:00:01"
- alias: "Manually flash the garage lights"
- service: light.toggle
+ action: light.toggle
target:
- entity_id: light.garage_overhead
\ No newline at end of file
+ entity_id: light.garage_overhead
diff --git a/scripts/great_room/great_room_light_cycle.yaml b/scripts/great_room/great_room_light_cycle.yaml
index df271a2..3f06b9a 100644
--- a/scripts/great_room/great_room_light_cycle.yaml
+++ b/scripts/great_room/great_room_light_cycle.yaml
@@ -2,60 +2,60 @@ alias: Great Room Light Cycle
fields:
colorset:
description: The set of colors to loop through
- example: 'gemtones'
+ example: "gemtones"
brightness:
description: The brightness that the lights should be set to
- example: '100'
+ example: "100"
transition:
description: The transition time, in seconds
- example: '10'
+ example: "10"
sequence:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.great_room_cycle_same
- state: 'on'
- sequence:
- - service: light.turn_on
- data_template:
- entity_id: light.downstairs
- brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.great_room_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.great_room_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.great_room_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.great_room_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.great_room_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.great_room_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.great_room_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.great_room_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.great_room_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.great_room_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.great_room_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.great_room_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.great_room_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.great_room_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.great_room_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.great_room_cycle_same
+ state: "on"
+ sequence:
+ - action: light.turn_on
+ data_template:
+ entity_id: light.downstairs
+ brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.great_room_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.great_room_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.great_room_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.great_room_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.great_room_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.great_room_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.great_room_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.great_room_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.great_room_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.great_room_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.great_room_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.great_room_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.great_room_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.great_room_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.great_room_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
default:
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.basement_1
brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
@@ -93,7 +93,7 @@ sequence:
{% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
{% endif %}
{{ colors|random }}
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.basement_2
brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
@@ -131,7 +131,7 @@ sequence:
{% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
{% endif %}
{{ colors|random }}
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.basement_3
brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
@@ -169,7 +169,7 @@ sequence:
{% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
{% endif %}
{{ colors|random }}
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.basement_4
brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
@@ -207,7 +207,7 @@ sequence:
{% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
{% endif %}
{{ colors|random }}
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.basement_5
brightness: '{{ states("input_number.great_room_light_cycle_brightness") | int }}'
@@ -249,5 +249,5 @@ sequence:
seconds: '{{ states("input_number.great_room_light_cycle_transition") | int }}'
# Wait until the loop_lights script has finished running
- wait_template: "{{ is_state('script.great_room_loop_lights', 'off') }}"
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.great_room_loop_lights
diff --git a/scripts/great_room/great_room_loop_lights.yaml b/scripts/great_room/great_room_loop_lights.yaml
index 0d7b8a0..33e4e2a 100644
--- a/scripts/great_room/great_room_loop_lights.yaml
+++ b/scripts/great_room/great_room_loop_lights.yaml
@@ -2,5 +2,5 @@ alias: Great Room Loop Lights
sequence:
# Wait until the light_cycle script has finished running
- wait_template: "{{ is_state('script.great_room_light_cycle', 'off') }}"
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.great_room_light_cycle
diff --git a/scripts/hass_restart.yaml b/scripts/hass_restart.yaml
index aa8dbe9..b0d277f 100644
--- a/scripts/hass_restart.yaml
+++ b/scripts/hass_restart.yaml
@@ -1,3 +1,3 @@
alias: Restart Home Assistant
sequence:
-- service: homeassistant.restart
\ No newline at end of file
+ - action: homeassistant.restart
diff --git a/scripts/house_alert.yaml b/scripts/house_alert.yaml
index d44a4b2..f2d9f52 100644
--- a/scripts/house_alert.yaml
+++ b/scripts/house_alert.yaml
@@ -1,22 +1,22 @@
alias: House alert
sequence:
- - service: media_player.turn_on
+ - action: media_player.turn_on
data:
entity_id: media_player.master_bedroom_clock
- - service: media_player.volume_set
+ - action: media_player.volume_set
data:
entity_id: media_player.master_bedroom_clock
volume_level: 0.5
- - service: media_player.play_media
+ - action: media_player.play_media
data:
entity_id: media_player.master_bedroom_clock
media_content_id: http://192.168.1.11:8123/local/audio/alarms/Alarm_Clock.mp3
media_content_type: music
- - delay: '00:00:10'
+ - delay: "00:00:10"
# Wait for it to stop playing (5 second audio clip)
- wait_template: "{{ is_state('media_player.master_bedroom_clock','idle') }}"
- timeout: '00:00:06'
- continue_on_timeout: 'true'
+ timeout: "00:00:06"
+ continue_on_timeout: "true"
# Send an audio alert
- action: tts.speak
target:
@@ -25,12 +25,12 @@ sequence:
media_player_entity_id: media_player.master_bedroom_clock
message: >-
The following are open: {{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_exterior_doors', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
- - delay: '00:00:02'
+ - delay: "00:00:02"
# Wait for it to stop playing (2 minute timeout)
- wait_template: "{{ is_state('media_player.master_bedroom_clock','idle') }}"
- timeout: '00:02:00'
- continue_on_timeout: 'true'
+ timeout: "00:02:00"
+ continue_on_timeout: "true"
# Turn off the media players
- - service: media_player.turn_off
+ - action: media_player.turn_off
data:
entity_id: media_player.master_bedroom_clock
diff --git a/scripts/inovelli_led.yaml b/scripts/inovelli_led.yaml
index ab66a39..cded1fb 100644
--- a/scripts/inovelli_led.yaml
+++ b/scripts/inovelli_led.yaml
@@ -162,7 +162,7 @@ sequence:
0
{% endif %}
# Unremark to provide an notification with troubleshooting information.
- # - service: persistent_notification.create
+ # - action: persistent_notification.create
# data:
# title: "DEBUG: script.inovelli_led"
# notification_id: "inovelli_led"
@@ -176,14 +176,13 @@ sequence:
# node_id: '{{ node_id }}'
# parameter: '{{ parameter }}'
# value: '{{ inovelli_math }}'
-
- choose:
# The Z-Wave JS integration requires this service call.
- conditions:
- '{{ zwave_integration == "zwave_js" }}'
sequence:
# Clear the previous effect.
- - service: zwave_js.bulk_set_partial_config_parameters
+ - action: zwave_js.bulk_set_partial_config_parameters
target:
entity_id: "{{ entity_id }}"
data:
@@ -191,7 +190,7 @@ sequence:
value: 0
# Start the new effect.
- - service: zwave_js.bulk_set_partial_config_parameters
+ - action: zwave_js.bulk_set_partial_config_parameters
target:
entity_id: "{{ entity_id }}"
data:
@@ -203,14 +202,14 @@ sequence:
# - '{{ zwave_integration == "ozw" }}'
# sequence:
# # Clear the previous effect.
- # - service: ozw.set_config_parameter
+ # - action: ozw.set_config_parameter
# data:
# node_id: "{{ node_id }}"
# parameter: "{{ parameter }}"
# value: 0
# # Start the new effect.
- # - service: ozw.set_config_parameter
+ # - action: ozw.set_config_parameter
# data:
# node_id: "{{ node_id }}"
# parameter: "{{ parameter }}"
@@ -219,7 +218,7 @@ sequence:
# # The Z-wave integration requires this service call.
# default:
# # Clear the previous effect.
- # - service: zwave.set_config_parameter
+ # - action: zwave.set_config_parameter
# data:
# node_id: "{{ node_id }}"
# parameter: "{{ parameter }}"
@@ -227,7 +226,7 @@ sequence:
# value: 0
# # Start the new effect.
- # - service: zwave.set_config_parameter
+ # - action: zwave.set_config_parameter
# data:
# node_id: "{{ node_id }}"
# parameter: "{{ parameter }}"
@@ -242,7 +241,7 @@ fields:
entity:
#integration: zwave_js
model:
- description: 'Device type: dimmer (default), switch, combo_light'
+ description: "Device type: dimmer (default), switch, combo_light"
example: dimmer
selector:
select:
@@ -251,7 +250,7 @@ fields:
- switch
- combo_light
color:
- description: 'Choose a color.'
+ description: "Choose a color."
example: purple
selector:
select:
@@ -268,7 +267,7 @@ fields:
- Light Pink
- Pink
effect:
- description: 'Choose an effect.'
+ description: "Choose an effect."
example: blink
selector:
select:
@@ -282,7 +281,7 @@ fields:
- Pulse
- Breath
duration:
- description: 'How long should the effect run?'
+ description: "How long should the effect run?"
example: 10 seconds
selector:
select:
@@ -317,4 +316,4 @@ fields:
- 45 Minutes
- 1 Hour
- 2 Hours
- - Indefinitely
\ No newline at end of file
+ - Indefinitely
diff --git a/scripts/inovelli_led_number.yaml b/scripts/inovelli_led_number.yaml
index 26e2950..7701c61 100644
--- a/scripts/inovelli_led_number.yaml
+++ b/scripts/inovelli_led_number.yaml
@@ -2,7 +2,7 @@
# https://nathanfiscus.github.io/inovelli-notification-calc/
# https://community.inovelli.com/t/home-assistant-2nd-gen-switch-rgb-working/168/62
# https://docs.google.com/spreadsheets/u/1/d/1SGJrJHCUtz8AzznWL_mLCTJjjr2U0IpltcUkRr7N_6M/edit?usp=sharing
-description: 'Set color on Inovelli LED dimmer'
+description: "Set color on Inovelli LED dimmer"
mode: queued
fields:
@@ -13,10 +13,10 @@ fields:
description: The color to set the LED (Red, Orange, Green, Blue, Pink, Yellow(Default), Cyan, Purple)
example: Purple
duration:
- description: 'How long the effect should last (1 Second, 15 Minutes, 2 Hours, Indefinitely(Default))'
+ description: "How long the effect should last (1 Second, 15 Minutes, 2 Hours, Indefinitely(Default))"
example: '"30 Seconds"'
effect:
- description: 'The effect to use (Off, Solid, Chase(Default), Fast Blink, Slow Blink, Pulse)'
+ description: "The effect to use (Off, Solid, Chase(Default), Fast Blink, Slow Blink, Pulse)"
example: Chase
level:
description: Brightness level (1-10, Default is 4)
@@ -25,7 +25,7 @@ fields:
description: A pre-calculated Inovelli LED value
example: 33490140
sequence:
- - service: input_number.set_value
+ - action: input_number.set_value
data_template:
entity_id: "{{ entity_id }}"
value: >
@@ -100,9 +100,9 @@ sequence:
{{ value }}
{% endif %}
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Inovelli LED Number
entity_id: script.inovelli_led_number
message: >
- {{ states("sensor.date_time_iso") }} Inovelli LED ran with the following options: {{ entity_id }} {{ led }} {{ color }} {{ duration }} {{ effect }} {{ level }} and generated {{ states("input_number.master_bedroom_light_led") | int }}
\ No newline at end of file
+ {{ states("sensor.date_time_iso") }} Inovelli LED ran with the following options: {{ entity_id }} {{ led }} {{ color }} {{ duration }} {{ effect }} {{ level }} and generated {{ states("input_number.master_bedroom_light_led") | int }}
diff --git a/scripts/inovelli_led_off.yaml b/scripts/inovelli_led_off.yaml
index 49267c8..b65b444 100644
--- a/scripts/inovelli_led_off.yaml
+++ b/scripts/inovelli_led_off.yaml
@@ -3,11 +3,11 @@ fields:
description: The entity to change
example: zwave.master_bedroom_dimmer
led:
- description: 'Which LED to adjust (Light(Default), Fan)'
+ description: "Which LED to adjust (Light(Default), Fan)"
example: "Light" # Set to "false" to adjust the fan LED
sequence:
- - service: script.inovelli_led
+ - action: script.inovelli_led
data_template:
entity_id: "{{ entity_id }}"
led: "{{ led }}"
- effect: "Off"
\ No newline at end of file
+ effect: "Off"
diff --git a/scripts/inovelli_led_set_defaults.yaml b/scripts/inovelli_led_set_defaults.yaml
index 7ce4f7c..23f60d5 100644
--- a/scripts/inovelli_led_set_defaults.yaml
+++ b/scripts/inovelli_led_set_defaults.yaml
@@ -58,12 +58,12 @@ variables:
"Pink": 234
sequence:
- variables:
- color: '{{ colors[color|title] }}'
+ color: "{{ colors[color|title] }}"
color_parameter: '{{ parameters[model]["color"] }}'
level_on_parameter: '{{ parameters[model]["level_on"] }}'
level_off_parameter: '{{ parameters[model]["level_off"] }}'
- # - service: script.debug
+ # - action: script.debug
# data:
# id: 02
# message: |
@@ -78,27 +78,27 @@ sequence:
- conditions:
- '{{ zwave_integration == "zwave_js" }}'
sequence:
- - service: zwave_js.set_config_parameter
+ - action: zwave_js.set_config_parameter
target:
- entity_id: '{{ entity_id }}'
+ entity_id: "{{ entity_id }}"
data:
- parameter: '{{ color_parameter }}'
- value: '{{ color }}'
+ parameter: "{{ color_parameter }}"
+ value: "{{ color }}"
- - service: zwave_js.set_config_parameter
+ - action: zwave_js.set_config_parameter
target:
- entity_id: '{{ entity_id }}'
+ entity_id: "{{ entity_id }}"
data:
- parameter: '{{ level_on_parameter }}'
- value: '{{ level_on }}'
+ parameter: "{{ level_on_parameter }}"
+ value: "{{ level_on }}"
- # - service: ozw.set_config_parameter
- - service: zwave_js.set_config_parameter
+ # - action: ozw.set_config_parameter
+ - action: zwave_js.set_config_parameter
target:
- entity_id: '{{ entity_id }}'
+ entity_id: "{{ entity_id }}"
data:
- parameter: '{{ level_off_parameter }}'
- value: '{{ level_off }}'
+ parameter: "{{ level_off_parameter }}"
+ value: "{{ level_off }}"
fields:
entity_id:
@@ -108,7 +108,7 @@ fields:
entity:
#integration: zwave_js
model:
- description: 'Device type: dimmer (default), switch, combo_light, combo_fan'
+ description: "Device type: dimmer (default), switch, combo_light, combo_fan"
example: dimmer
selector:
select:
@@ -118,7 +118,7 @@ fields:
- combo_light
- combo_fan
color:
- description: 'Choose a color.'
+ description: "Choose a color."
example: purple
selector:
select:
@@ -139,4 +139,4 @@ fields:
example: 10
level_off:
description: LED Brightness when off
- example: 3
\ No newline at end of file
+ example: 3
diff --git a/scripts/master_bedroom/master_bedroom_light_cycle.yaml b/scripts/master_bedroom/master_bedroom_light_cycle.yaml
index 163b097..8940884 100644
--- a/scripts/master_bedroom/master_bedroom_light_cycle.yaml
+++ b/scripts/master_bedroom/master_bedroom_light_cycle.yaml
@@ -2,60 +2,60 @@ alias: Master Bedroom Light Cycle
fields:
colorset:
description: The set of colors to loop through
- example: 'gemtones'
+ example: "gemtones"
brightness:
description: The brightness that the lights should be set to
- example: '100'
+ example: "100"
transition:
description: The transition time, in seconds
- example: '10'
+ example: "10"
sequence:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.master_bedroom_cycle_same
- state: 'on'
- sequence:
- - service: light.turn_on
- data_template:
- entity_id: light.master_bedroom_hue
- brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.master_bedroom_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.master_bedroom_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.master_bedroom_cycle_same
+ state: "on"
+ sequence:
+ - action: light.turn_on
+ data_template:
+ entity_id: light.master_bedroom_hue
+ brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.master_bedroom_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.master_bedroom_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
default:
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.master_bedroom_1
brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
@@ -93,7 +93,7 @@ sequence:
{% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
{% endif %}
{{ colors|random }}
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.master_bedroom_2
brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
@@ -131,7 +131,7 @@ sequence:
{% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
{% endif %}
{{ colors|random }}
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.master_bedroom_3
brightness: '{{ states("input_number.master_bedroom_light_cycle_brightness") | int }}'
@@ -173,5 +173,5 @@ sequence:
seconds: '{{ states("input_number.master_bedroom_light_cycle_transition") | int }}'
# Wait until the loop_lights script has finished running
- wait_template: "{{ is_state('script.master_bedroom_loop_lights', 'off') }}"
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.master_bedroom_loop_lights
diff --git a/scripts/master_bedroom/master_bedroom_loop_lights.yaml b/scripts/master_bedroom/master_bedroom_loop_lights.yaml
index e603926..283b644 100644
--- a/scripts/master_bedroom/master_bedroom_loop_lights.yaml
+++ b/scripts/master_bedroom/master_bedroom_loop_lights.yaml
@@ -2,5 +2,5 @@ alias: Master Bedroom Loop Lights
sequence:
# Wait until the light_cycle script has finished running
- wait_template: "{{ is_state('script.master_bedroom_light_cycle', 'off') }}"
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.master_bedroom_light_cycle
diff --git a/scripts/master_bedroom/wake_up_the_master_bedroom.yaml b/scripts/master_bedroom/wake_up_the_master_bedroom.yaml
index 70c3f6f..b3b4a9d 100644
--- a/scripts/master_bedroom/wake_up_the_master_bedroom.yaml
+++ b/scripts/master_bedroom/wake_up_the_master_bedroom.yaml
@@ -53,7 +53,7 @@ sequence:
seconds: 0
milliseconds: 0
- - service: input_select.select_option
+ - action: input_select.select_option
data:
option: Auto
target:
diff --git a/scripts/notification_action_script.yaml b/scripts/notification_action_script.yaml
index aae9bce..971efea 100644
--- a/scripts/notification_action_script.yaml
+++ b/scripts/notification_action_script.yaml
@@ -10,11 +10,11 @@ sequence:
- alias: "Ask to close or open the garage"
choose:
- conditions:
- - condition: state
- entity_id: cover.garage_door
- state: 'closed'
+ - condition: state
+ entity_id: cover.garage_door
+ state: "closed"
sequence:
- service: notify.mobile_app_pixel_7
+ action: notify.mobile_app_pixel_7
data:
message: "The garage is closed. Do you want to adjust this?"
data:
@@ -24,11 +24,11 @@ sequence:
- action: "{{ action_close }}"
title: Close
- conditions:
- - condition: state
- entity_id: cover.garage_door
- state: 'open'
+ - condition: state
+ entity_id: cover.garage_door
+ state: "open"
sequence:
- service: notify.mobile_app_pixel_7
+ action: notify.mobile_app_pixel_7
data:
message: "The garage is open. Do you want to adjust this?"
data:
@@ -54,11 +54,11 @@ sequence:
choose:
- conditions: "{{ wait.trigger.event.data.action == action_open }}"
sequence:
- - service: cover.open_cover
+ - action: cover.open_cover
target:
entity_id: cover.garage_door
- conditions: "{{ wait.trigger.event.data.action == action_close }}"
sequence:
- - service: cover.close_cover
+ - action: cover.close_cover
target:
entity_id: cover.garage_door
diff --git a/scripts/notify_alert.yaml b/scripts/notify_alert.yaml
index cf1b1c9..042b67f 100644
--- a/scripts/notify_alert.yaml
+++ b/scripts/notify_alert.yaml
@@ -1,6 +1,6 @@
alias: Notify Alert
sequence:
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
title: "Wake up!"
message: "The house is on fire and the cat's stuck in the dryer!"
diff --git a/scripts/notify_with_icon.yaml b/scripts/notify_with_icon.yaml
index 400b526..cbde20f 100644
--- a/scripts/notify_with_icon.yaml
+++ b/scripts/notify_with_icon.yaml
@@ -1,6 +1,6 @@
alias: Notify With Icon
sequence:
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
title: "Cellphone icon"
message: "This will show a cellphone icon in the status bar"
diff --git a/scripts/notify_with_pic.yaml b/scripts/notify_with_pic.yaml
index d8c5050..47ac8ce 100644
--- a/scripts/notify_with_pic.yaml
+++ b/scripts/notify_with_pic.yaml
@@ -1,6 +1,6 @@
alias: Notify with Pic
sequence:
- - service: notify.mobile_app_pixel_7
+ - action: notify.mobile_app_pixel_7
data:
title: Test
message: "This is a test message with an image."
diff --git a/scripts/nursery/nursery_light_cycle.yaml b/scripts/nursery/nursery_light_cycle.yaml
index 459084b..7d73d0e 100644
--- a/scripts/nursery/nursery_light_cycle.yaml
+++ b/scripts/nursery/nursery_light_cycle.yaml
@@ -2,60 +2,60 @@ alias: Nursery Light Cycle
fields:
colorset:
description: The set of colors to loop through
- example: 'gemtones'
+ example: "gemtones"
brightness:
description: The brightness that the lights should be set to
- example: '100'
+ example: "100"
transition:
description: The transition time, in seconds
- example: '10'
+ example: "10"
sequence:
- choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.nursery_cycle_same
- state: 'on'
- sequence:
- - service: light.turn_on
- data_template:
- entity_id: light.nursery_hue
- brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
- transition: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
- profile: >
- {% if states('input_select.nursery_color_set') == 'Basic' %}
- {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
- {% elif states('input_select.nursery_color_set') == 'Color Wheel' %}
- {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
- {% elif states('input_select.nursery_color_set') == 'Rainbow' %}
- {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
- {% elif states('input_select.nursery_color_set') == 'Flourescent' %}
- {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
- {% elif states('input_select.nursery_color_set') == 'Silver Swirl' %}
- {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
- {% elif states('input_select.nursery_color_set') == 'Gem Tones' %}
- {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
- {% elif states('input_select.nursery_color_set') == 'Reds' %}
- {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
- {% elif states('input_select.nursery_color_set') == 'Oranges' %}
- {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
- {% elif states('input_select.nursery_color_set') == 'Yellows' %}
- {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
- {% elif states('input_select.nursery_color_set') == 'Greens' %}
- {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
- {% elif states('input_select.nursery_color_set') == 'Cyans' %}
- {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
- {% elif states('input_select.nursery_color_set') == 'Blues' %}
- {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
- {% elif states('input_select.nursery_color_set') == 'Purples' %}
- {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
- {% elif states('input_select.nursery_color_set') == 'Magentas' %}
- {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
- {% elif states('input_select.nursery_color_set') == 'Grays' %}
- {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
- {% endif %}
- {{ colors|random }}
+ - conditions:
+ - condition: state
+ entity_id: input_boolean.nursery_cycle_same
+ state: "on"
+ sequence:
+ - action: light.turn_on
+ data_template:
+ entity_id: light.nursery_hue
+ brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
+ transition: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
+ profile: >
+ {% if states('input_select.nursery_color_set') == 'Basic' %}
+ {% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
+ {% elif states('input_select.nursery_color_set') == 'Color Wheel' %}
+ {% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
+ {% elif states('input_select.nursery_color_set') == 'Rainbow' %}
+ {% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
+ {% elif states('input_select.nursery_color_set') == 'Flourescent' %}
+ {% set colors = ['radical_red','wild_watermelon','outrageous_orange','atomic_tangerine','neon_carrot','sunglow','laser_lemon','unmellow_yellow','electric_lime','screamin_green','magic_mint','blizzard_blue','shocking_pink','razzle_dazzle_rose','hot_magenta','purple_pizzazz'] %}
+ {% elif states('input_select.nursery_color_set') == 'Silver Swirl' %}
+ {% set colors = ['aztec_gold','burnished_brown','cerulean_frost','cinnamon_satin','copper_penny','cosmic_cobalt','glossy_grape','granite_gray','green_sheen','lilac_luster','misty_moss','mystic_maroon','pearly_purple','pewter_blue','polished_pine','quick_silver','rose_dust','rusty_red','shadow_blue','shiny_shamrock','steel_teal','sugar_plum','twilight_lavender','wintergreen_dream'] %}
+ {% elif states('input_select.nursery_color_set') == 'Gem Tones' %}
+ {% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
+ {% elif states('input_select.nursery_color_set') == 'Reds' %}
+ {% set colors = ['auburn','baby_pink','barn_red','burgundy','burnt_umber','cadmium_red','cardinal','chesnut','chili_red','congo_pink','coral_pink','desire','fire_engine_red','imperial_red','new_york_pink','paradise_pink','pastel_pink','pigment_red','rust','salmon_pink','tango_pink','turkey_red','vanilla_ice','wine'] %}
+ {% elif states('input_select.nursery_color_set') == 'Oranges' %}
+ {% set colors = ['beaver','cadmium_orange','carrot_orange','champagne','chocolate','cocoa_brown','desert_sand','flame','gamboge','international_orange','kobicha','lion','marigold','orange_peel','persian_orange','persimmon','peru','portland_orange','pumpkin','russet','safety_orange','sandy_brown','tan','taupe','tawny','tea_rose','wood_brown'] %}
+ {% elif states('input_select.nursery_color_set') == 'Yellows' %}
+ {% set colors = ['amber','beige','buff','citrine','cream','cyber_yellow','ecru','harvest_gold','jasmine','jonquil','khaki','lemon','mellow_yellow','mikado_yellow','mustard','naples_yellow','old_gold','process_yellow','royal_yellow','safety_yellow','saffron','school_bus_yellow','straw','vanilla'] %}
+ {% elif states('input_select.nursery_color_set') == 'Greens' %}
+ {% set colors = ['army_green','artichoke','asparagus','avacado','bottle_green','bright_mint','celadon','emerald','fern_green','forest_green','harlequin','hunter_green','india_green','islamic_green','jade','kelly_green','laurel_green','malachite','mantis','mint_green','moss_green','neon_green','olive','pakistan_green','paris_green','rifle_green','russian_green','sea_green','shamrock_green','slytherin_green'] %}
+ {% elif states('input_select.nursery_color_set') == 'Cyans' %}
+ {% set colors = ['aqua','aquamarine','brunswick_green','celadon_green','celeste','cerulean','charleston_green','dark_cyan','electric_blue','feldgrau','gray_green','midnight_green','morning_blue','myrtle_green','persian_green','robin_egg_blue','sky_blue','teal','teal_blue','turquoise','verdigris','viridian'] %}
+ {% elif states('input_select.nursery_color_set') == 'Blues' %}
+ {% set colors = ['azure','baby_blue','blue_gray','capri','cornflower','egyptian_blue','glaucous','independence','indigo','indigo_dye','liberty','light_blue','midnight_blue','navy_blue','periwinkle','powder_blue','resolution_blue','sapphire','space_cadet','steel_blue','ultramarine'] %}
+ {% elif states('input_select.nursery_color_set') == 'Purples' %}
+ {% set colors = ['byzantium','dark_purple','electric_indigo','eminence','heliotrope','indigo','indigo_dye','mardi_gras','mauve','medium_purple','orchid','pansy_purple','phlox','purpureus','thistle','tropical_indigo','tyrian_purple','royal_purple'] %}
+ {% elif states('input_select.nursery_color_set') == 'Magentas' %}
+ {% set colors = ['amaranth','antique_fuchsia','baby_pink','cameo_pink','carnation_pink','charm_pink','china_pink','cotton_candy','dark_magenta','fandango','french_fuchsia','french_pink','fuchsia_rose','magenta_haze','mimi_pink','persian_pink','piggy_pink','pink','pink_lace','pink_lavender','plum','queen_pink','rose','rose_quartz','shocking_pink','silver_pink','sky_magenta','super_pink'] %}
+ {% elif states('input_select.nursery_color_set') == 'Grays' %}
+ {% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
+ {% endif %}
+ {{ colors|random }}
default:
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.nursery_color_1
brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
@@ -93,7 +93,7 @@ sequence:
{% set colors = ['ash_gray','battleship_gray','cadet_gray','charcoal','dim_gray','gunmetal','jet','marengo','nickel','platinum','rocket_metallic','silver','slate_gray'] %}
{% endif %}
{{ colors|random }}
- - service: light.turn_on
+ - action: light.turn_on
data_template:
entity_id: light.nursery_color_2
brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
@@ -135,5 +135,5 @@ sequence:
seconds: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
# Wait until the loop_lights script has finished running
- wait_template: "{{ is_state('script.nursery_loop_lights', 'off') }}"
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.nursery_loop_lights
diff --git a/scripts/nursery/nursery_loop_lights.yaml b/scripts/nursery/nursery_loop_lights.yaml
index 45603ef..bc7da33 100644
--- a/scripts/nursery/nursery_loop_lights.yaml
+++ b/scripts/nursery/nursery_loop_lights.yaml
@@ -2,5 +2,5 @@ alias: Nursery Loop Lights
sequence:
# Wait until the light_cycle script has finished running
- wait_template: "{{ is_state('script.nursery_light_cycle', 'off') }}"
- - service: script.turn_on
+ - action: script.turn_on
entity_id: script.nursery_light_cycle
diff --git a/scripts/people/all_kids_youtube_music.yaml b/scripts/people/all_kids_youtube_music.yaml
index 838c1cc..11466f1 100644
--- a/scripts/people/all_kids_youtube_music.yaml
+++ b/scripts/people/all_kids_youtube_music.yaml
@@ -1,21 +1,21 @@
-alias: All Kids Youtube Music
-mode: single
-icon: mdi:music
-sequence:
- - service: media_player.select_source
- data:
- source: nursery_hub
- entity_id: media_player.ytube_music_player
- - service: media_player.shuffle_set
- data:
- shuffle: true
- entity_id: media_player.ytube_music_player
- - service: media_player.repeat_set
- data:
- repeat: all
- entity_id: media_player.ytube_music_player
- - service: media_player.play_media
- data:
- entity_id: media_player.ytube_music_player
- media_content_id: RDCLAK5uy_mH5mS2pbI9c743F2Xoi7WxRVBbw7k3hPE
- media_content_type: playlist
\ No newline at end of file
+alias: All Kids Youtube Music
+mode: single
+icon: mdi:music
+sequence:
+ - action: media_player.select_source
+ data:
+ source: girls_room_hub
+ entity_id: media_player.ytube_music_player
+ - action: media_player.shuffle_set
+ data:
+ shuffle: true
+ entity_id: media_player.ytube_music_player
+ - action: media_player.repeat_set
+ data:
+ repeat: all
+ entity_id: media_player.ytube_music_player
+ - action: media_player.play_media
+ data:
+ entity_id: media_player.ytube_music_player
+ media_content_id: RDCLAK5uy_mH5mS2pbI9c743F2Xoi7WxRVBbw7k3hPE
+ media_content_type: playlist
diff --git a/scripts/people/bridget/bridget_travel_sensor.yaml b/scripts/people/bridget/bridget_travel_sensor.yaml
index a071095..0c71be6 100644
--- a/scripts/people/bridget/bridget_travel_sensor.yaml
+++ b/scripts/people/bridget/bridget_travel_sensor.yaml
@@ -1,7 +1,7 @@
alias: Bridget travel sensor
mode: restart
sequence:
- - service: input_text.set_value
+ - action: input_text.set_value
data_template:
entity_id: input_text.person_bridget
value: >-
diff --git a/scripts/people/clint/clint_travel_sensor.yaml b/scripts/people/clint/clint_travel_sensor.yaml
index 1d9d568..52b2669 100644
--- a/scripts/people/clint/clint_travel_sensor.yaml
+++ b/scripts/people/clint/clint_travel_sensor.yaml
@@ -1,7 +1,7 @@
alias: Clint travel sensor
mode: restart
sequence:
- - service: input_text.set_value
+ - action: input_text.set_value
data_template:
entity_id: input_text.person_clint
value: >-
diff --git a/scripts/people/clint/clint_traveltime.yaml b/scripts/people/clint/clint_traveltime.yaml
index 08e7ca8..57b3e5b 100644
--- a/scripts/people/clint/clint_traveltime.yaml
+++ b/scripts/people/clint/clint_traveltime.yaml
@@ -1,7 +1,7 @@
alias: Clint traveltime
mode: restart
sequence:
- - service: logbook.log
+ - action: logbook.log
data_template:
name: Clint Traveltime
entity_id: script.clint_traveltime
diff --git a/scripts/people/clint/take_meds.yaml b/scripts/people/clint/take_meds.yaml
index c50b035..5b72819 100644
--- a/scripts/people/clint/take_meds.yaml
+++ b/scripts/people/clint/take_meds.yaml
@@ -9,10 +9,10 @@ sequence:
state: "on"
sequence:
- alias: "Turn off AM meds"
- service: input_boolean.turn_off
+ action: input_boolean.turn_off
target:
entity_id: input_boolean.clint_needs_am_meds
- - service: media_player.play_media
+ - action: media_player.play_media
target:
entity_id:
- media_player.bathroom_mini
@@ -26,10 +26,10 @@ sequence:
state: "on"
sequence:
- alias: "Turn off PM meds"
- service: input_boolean.turn_off
+ action: input_boolean.turn_off
target:
entity_id: input_boolean.clint_needs_pm_meds
- - service: media_player.play_media
+ - action: media_player.play_media
target:
entity_id:
- media_player.bathroom_mini
@@ -37,7 +37,7 @@ sequence:
media_content_id: media-source://media_source/tts/taking_afternoon_meds.mp3
media_content_type: "audio/mpeg"
default:
- - service: media_player.play_media
+ - action: media_player.play_media
target:
entity_id:
- media_player.bathroom_mini
diff --git a/scripts/people/ebin/ebin_travel_sensor.yaml b/scripts/people/ebin/ebin_travel_sensor.yaml
index 3bdecf9..08aff63 100644
--- a/scripts/people/ebin/ebin_travel_sensor.yaml
+++ b/scripts/people/ebin/ebin_travel_sensor.yaml
@@ -1,7 +1,7 @@
alias: Ebin travel sensor
mode: restart
sequence:
- - service: input_text.set_value
+ - action: input_text.set_value
data_template:
entity_id: input_text.person_ebin
value: >-
diff --git a/scripts/people/emmett/emmett_travel_sensor.yaml b/scripts/people/emmett/emmett_travel_sensor.yaml
index dc0834f..8467c95 100644
--- a/scripts/people/emmett/emmett_travel_sensor.yaml
+++ b/scripts/people/emmett/emmett_travel_sensor.yaml
@@ -1,7 +1,7 @@
alias: Emmett travel sensor
mode: restart
sequence:
- - service: input_text.set_value
+ - action: input_text.set_value
data_template:
entity_id: input_text.person_emmett
value: >-
@@ -19,4 +19,4 @@ sequence:
At Childcare
{% else %}
Somewhere
- {% endif %}
\ No newline at end of file
+ {% endif %}
diff --git a/scripts/people/goodnight_kids_youtube_music.yaml b/scripts/people/goodnight_kids_youtube_music.yaml
index e31dfba..d84ef61 100644
--- a/scripts/people/goodnight_kids_youtube_music.yaml
+++ b/scripts/people/goodnight_kids_youtube_music.yaml
@@ -2,20 +2,20 @@ alias: Goodnight Kids Youtube Music
mode: single
icon: mdi:music
sequence:
- - service: media_player.select_source
+ - action: media_player.select_source
data:
- source: nursery_hub
+ source: girls_room_hub
entity_id: media_player.ytube_music_player
- - service: media_player.shuffle_set
+ - action: media_player.shuffle_set
data:
shuffle: false
entity_id: media_player.ytube_music_player
- - service: media_player.repeat_set
+ - action: media_player.repeat_set
data:
repeat: all
entity_id: media_player.ytube_music_player
- - service: media_player.play_media
+ - action: media_player.play_media
data:
entity_id: media_player.ytube_music_player
media_content_id: PLtfKVM9o2_5ag5qC9nHxl7tKBvGRnh2HM
- media_content_type: playlist
\ No newline at end of file
+ media_content_type: playlist
diff --git a/scripts/people/guest/guest_travel_sensor.yaml b/scripts/people/guest/guest_travel_sensor.yaml
index 709312c..547315e 100644
--- a/scripts/people/guest/guest_travel_sensor.yaml
+++ b/scripts/people/guest/guest_travel_sensor.yaml
@@ -1,7 +1,7 @@
alias: Guest travel sensor
mode: restart
sequence:
- - service: input_text.set_value
+ - action: input_text.set_value
data_template:
entity_id: input_text.person_guest
value: >-
diff --git a/scripts/people/kristy/kristy_travel_sensor.yaml b/scripts/people/kristy/kristy_travel_sensor.yaml
index 858514d..89d4a79 100644
--- a/scripts/people/kristy/kristy_travel_sensor.yaml
+++ b/scripts/people/kristy/kristy_travel_sensor.yaml
@@ -1,7 +1,7 @@
alias: Kristy travel sensor
mode: restart
sequence:
- - service: input_text.set_value
+ - action: input_text.set_value
data_template:
entity_id: input_text.person_kristy
value: >-
diff --git a/scripts/people/marshall/marshall_travel_sensor.yaml b/scripts/people/marshall/marshall_travel_sensor.yaml
index 9bdf37c..49cc1f3 100644
--- a/scripts/people/marshall/marshall_travel_sensor.yaml
+++ b/scripts/people/marshall/marshall_travel_sensor.yaml
@@ -1,7 +1,7 @@
alias: Marshall travel sensor
mode: restart
sequence:
- - service: input_text.set_value
+ - action: input_text.set_value
data_template:
entity_id: input_text.person_marshall
value: >-
diff --git a/scripts/people/tess/tess_travel_sensor.yaml b/scripts/people/tess/tess_travel_sensor.yaml
index 90236ea..4bf244d 100644
--- a/scripts/people/tess/tess_travel_sensor.yaml
+++ b/scripts/people/tess/tess_travel_sensor.yaml
@@ -1,7 +1,7 @@
alias: Tess travel sensor
mode: restart
sequence:
- - service: input_text.set_value
+ - action: input_text.set_value
data_template:
entity_id: input_text.person_tess
value: >-
diff --git a/ui-camera-cast.yaml b/ui-camera-cast.yaml
index d8ecb4e..1090aa8 100644
--- a/ui-camera-cast.yaml
+++ b/ui-camera-cast.yaml
@@ -4,11 +4,11 @@ icon: mdi:camcorder
#custom_header: !include lovelace/custom_header.yaml
views:
- !include lovelace/stretch-cameras/dual-camera-view.yaml
- - !include lovelace/stretch-cameras/nursery-view.yaml
+ - !include lovelace/stretch-cameras/girls-room-view.yaml
- !include lovelace/stretch-cameras/front-room-view.yaml
- !include lovelace/stretch-cameras/kitchen-view.yaml
- !include lovelace/stretch-cameras/computer-area-view.yaml
- - !include lovelace/stretch-cameras/blue-room-view.yaml
+ - !include lovelace/stretch-cameras/boys-room-view.yaml
- !include lovelace/stretch-cameras/garage-view.yaml
- !include lovelace/stretch-cameras/front-porch-view.yaml
- !include lovelace/stretch-cameras/front-yard-view.yaml
@@ -16,4 +16,3 @@ views:
- !include lovelace/stretch-cameras/master-bedroom-view.yaml
- !include lovelace/stretch-cameras/indoor-camera-view.yaml
- !include lovelace/stretch-cameras/outdoor-camera-view.yaml
-
diff --git a/ui-cams.yaml b/ui-cams.yaml
index cf3b1c3..ed31847 100644
--- a/ui-cams.yaml
+++ b/ui-cams.yaml
@@ -8,7 +8,7 @@ views:
- !include lovelace/raw-cameras/front-room-view.yaml
- !include lovelace/raw-cameras/kitchen-view.yaml
- !include lovelace/raw-cameras/computer-area-view.yaml
- - !include lovelace/raw-cameras/blue-room-view.yaml
+ - !include lovelace/raw-cameras/boys-room-view.yaml
- !include lovelace/raw-cameras/garage-view.yaml
- !include lovelace/raw-cameras/front-porch-view.yaml
- !include lovelace/raw-cameras/front-yard-view.yaml
diff --git a/ui-phone.yaml b/ui-phone.yaml
index 543e12c..b5bb4c5 100644
--- a/ui-phone.yaml
+++ b/ui-phone.yaml
@@ -8,7 +8,7 @@ kiosk_mode:
ignore_entity_settings: true
views:
- !include lovelace/phone/home.yaml
- - !include lovelace/phone/nursery.yaml
+ - !include lovelace/phone/girls-room.yaml
- !include lovelace/phone/master-bedroom.yaml
- !include lovelace/phone/front-room.yaml
- !include lovelace/phone/kitchen.yaml
@@ -20,7 +20,7 @@ views:
- !include lovelace/phone/back-yard.yaml
- !include lovelace/phone/computer-area.yaml
- !include lovelace/phone/great-room.yaml
- - !include lovelace/phone/blue-room.yaml
+ - !include lovelace/phone/boys-room.yaml
- !include lovelace/phone/mancave.yaml
- !include lovelace/phone/utility-room.yaml
- !include lovelace/phone/furnace-room.yaml
diff --git a/www/floorplan/computer_area.svg b/www/floorplan/computer_area.svg
index fb3c3b8..bd8c594 100644
--- a/www/floorplan/computer_area.svg
+++ b/www/floorplan/computer_area.svg
@@ -968,14 +968,14 @@
style="fill:#000000;stroke-width:0.0207007"
transform="rotate(-90)" />
+ inkscape:label="binary_sensor._door_contact" />
+ inkscape:label="binary_sensor.boys_room_door_contact" />
+ inkscape:label="input_boolean.boys_room_occupied" />
+ inkscape:label="binary_sensor.boys_room_window_contact" />
-
inkscape:label="light.front_porch_overhead" />
+ inkscape:label="media_player.girls_room_hub">
+ inkscape:label="media_player.boys_room_clock">
+ inkscape:label="binary_sensor.boys_room_person_occupancy" />
+ inkscape:label="sensor.boys_room_thermal_comfort_dew_point_perception" />
+ inkscape:label="sensor.boys_room_thermal_comfort_humidex_perception" />
+ inkscape:label="sensor.boys_room_thermal_comfort_summer_simmer_perception" />