mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
Compare commits
16 Commits
7b8fbb063e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9d501134c8 | |||
| 30bbe781ef | |||
| 70989327d5 | |||
| bf67d595ef | |||
| 7de01f94c1 | |||
| 6f4259d767 | |||
| 149fac6ec0 | |||
| a272421a33 | |||
| 105fb7cf86 | |||
| 6003d60774 | |||
| 97a0e678c0 | |||
| 6550521520 | |||
| 578edbc7dc | |||
| a49d981ad4 | |||
| 78cd67a560 | |||
| 921c3df342 |
@@ -15,11 +15,15 @@ watchman_report.txt
|
||||
.ha_run.lock
|
||||
backup_config.yaml
|
||||
|
||||
.cache/
|
||||
.storage/
|
||||
.cloud/
|
||||
.automatic/
|
||||
glances/
|
||||
.tts.token*
|
||||
*.tts.token
|
||||
.secrets/
|
||||
secrets/
|
||||
customize.yaml
|
||||
image/
|
||||
open-zwave/
|
||||
@@ -43,6 +47,7 @@ rtl_433/
|
||||
tts/
|
||||
/lovelace/private
|
||||
model_cache/
|
||||
www/mail_and_packages/*
|
||||
|
||||
secrets.yaml
|
||||
google_calendars.yaml
|
||||
@@ -62,6 +67,7 @@ rtl_433.conf
|
||||
*.conf.template*
|
||||
go2rtc-1.0.0
|
||||
go2rtc.yaml
|
||||
mqtt_dump.txt
|
||||
|
||||
nest.conf
|
||||
harmony_harmony_hub.conf
|
||||
|
||||
@@ -47,17 +47,17 @@ This is how to actuall do it!
|
||||
```yaml
|
||||
- platform: template
|
||||
value_template: >
|
||||
{{ is_state('binary_sensor.nursery_multisensor_home_security_motion_detection','off') and states('sensor.nursery_last_motion') | int <= 300 and states('sensor.system_uptime') | int >= 5 }}
|
||||
{{ is_state('binary_sensor.girls_room_multisensor_motion_detection','off') and states('sensor.girls_room_last_motion') | int <= 300 and states('sensor.system_uptime') | int >= 5 }}
|
||||
prob_given_true: 0.8
|
||||
|
||||
- platform: template
|
||||
value_template: >
|
||||
{{ is_state('binary_sensor.nursery_multisensor_home_security_motion_detection','off') and states('sensor.nursery_last_motion') | int > 300 and states('sensor.nursery_last_motion') | int <= 600 and states('sensor.system_uptime') | int >= 5 }}
|
||||
{{ is_state('binary_sensor.girls_room_multisensor_motion_detection','off') and states('sensor.girls_room_last_motion') | int > 300 and states('sensor.girls_room_last_motion') | int <= 600 and states('sensor.system_uptime') | int >= 5 }}
|
||||
prob_given_true: 0.6
|
||||
|
||||
- platform: template
|
||||
value_template: >
|
||||
{{ is_state('binary_sensor.nursery_multisensor_home_security_motion_detection','off') and states('sensor.nursery_last_motion') | int > 600 and states('sensor.nursery_last_motion') | int <= 900 and states('sensor.system_uptime') | int >= 10 }}
|
||||
{{ is_state('binary_sensor.girls_room_multisensor_motion_detection','off') and states('sensor.girls_room_last_motion') | int > 600 and states('sensor.girls_room_last_motion') | int <= 900 and states('sensor.system_uptime') | int >= 10 }}
|
||||
prob_given_true: 0.4
|
||||
```
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ triggers:
|
||||
to: "on"
|
||||
|
||||
action:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_10_pro
|
||||
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(', ') }}"
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
alias: Camera06 Preset
|
||||
id: automation_camera06_preset
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_select.camera_06
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
- platform: time_pattern
|
||||
minutes: "/30"
|
||||
|
||||
action:
|
||||
- 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
|
||||
@@ -1,52 +0,0 @@
|
||||
alias: Camera07 Preset
|
||||
id: automation_camera07_preset
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_select.camera_07
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
- platform: time_pattern
|
||||
minutes: "/30"
|
||||
|
||||
action:
|
||||
- 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
|
||||
@@ -1,108 +0,0 @@
|
||||
alias: Frigate Recordings
|
||||
id: automation_frigate_recordings
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
- id: automatic
|
||||
platform: time_pattern
|
||||
minutes: "/10"
|
||||
|
||||
- id: boolean
|
||||
platform: state
|
||||
entity_id: input_boolean.debug_recordings
|
||||
|
||||
- id: indoors
|
||||
platform: state
|
||||
entity_id: input_boolean.indoor_recordings
|
||||
|
||||
- id: outdoors
|
||||
platform: state
|
||||
entity_id: input_boolean.outdoor_recordings
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- 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:
|
||||
- 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:
|
||||
- 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
|
||||
@@ -1,108 +0,0 @@
|
||||
alias: Frigate Snapshots
|
||||
id: automation_frigate_snapshots
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
- id: automatic
|
||||
platform: time_pattern
|
||||
minutes: "/10"
|
||||
|
||||
- id: boolean
|
||||
platform: state
|
||||
entity_id: input_boolean.debug_snapshots
|
||||
|
||||
- id: indoors
|
||||
platform: state
|
||||
entity_id: input_boolean.indoor_snapshots
|
||||
|
||||
- id: outdoors
|
||||
platform: state
|
||||
entity_id: input_boolean.outdoor_snapshots
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- 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:
|
||||
- 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:
|
||||
- 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
|
||||
@@ -1,149 +0,0 @@
|
||||
id: automation_frigate_person_back_yard
|
||||
alias: Frigate Person Back Yard
|
||||
description: "Fire a notification if a person is detected by Frigate in the back yard"
|
||||
mode: single
|
||||
max_exceeded: silent
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: frigate/events
|
||||
payload: frigate_cam14
|
||||
value_template: "{{ value_json['after']['camera'] }}"
|
||||
variables:
|
||||
id: "{{ trigger.payload_json['after']['id'] }}"
|
||||
camera: "{{ trigger.payload_json['after']['camera'] }}"
|
||||
camera_name: "{{ camera | replace('_', ' ') | title }}"
|
||||
object: "{{ trigger.payload_json['after']['label'] }}"
|
||||
label: "{{ object | title }}"
|
||||
entered_zones: "{{ trigger.payload_json['after']['entered_zones'] }}"
|
||||
type: "{{ trigger.payload_json['type'] }}"
|
||||
base_url: https://automation.clintweaver.com
|
||||
group_target: ""
|
||||
zone_only: false
|
||||
input_zones:
|
||||
- front_porch
|
||||
- driveway
|
||||
zones: "{{ input_zones | list }}"
|
||||
input_labels:
|
||||
- person
|
||||
labels: "{{ input_labels | list }}"
|
||||
presence_entity: person.clint
|
||||
condition:
|
||||
- "{{ type != 'end' }}"
|
||||
- "{{ not zone_only or entered_zones|length > 0 }}"
|
||||
- "{{ not zones|length or zones|select('in', entered_zones)|list|length > 0 }}"
|
||||
- "{{ not labels|length or object in labels }}"
|
||||
#- "{{ not presence_entity or not is_state(presence_entity, 'home') }}"
|
||||
- '{{ is_state("binary_sensor.patio_door_contact","off") }}'
|
||||
- "{{ is_state('input_boolean.outdoor_snapshots','on') }}"
|
||||
action:
|
||||
- choose:
|
||||
- conditions: "{{ not group_target }}"
|
||||
sequence:
|
||||
- device_id: 70c62eb366d6ed914b0ccc6bf41c32fd
|
||||
domain: mobile_app
|
||||
type: notify
|
||||
message: A {{ label }} was detected on the {{ camera_name }} camera.
|
||||
data:
|
||||
tag: "{{ id }}"
|
||||
group: frigate-notification-{{ camera }}
|
||||
image: /api/frigate/notifications/{{id}}/thumbnail.jpg?format=android
|
||||
attachment:
|
||||
url: /api/frigate/notifications/{{id}}/thumbnail.jpg
|
||||
|
||||
- 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:
|
||||
- action: notify.{{ group_target }}
|
||||
data:
|
||||
message: A {{ label }} was detected on the {{ camera_name }} camera.
|
||||
data:
|
||||
tag: "{{ id }}"
|
||||
group: frigate-notification-{{ camera }}
|
||||
image: /api/frigate/notifications/{{id}}/thumbnail.jpg?format=android
|
||||
attachment:
|
||||
url: /api/frigate/notifications/{{id}}/thumbnail.jpg
|
||||
- repeat:
|
||||
sequence:
|
||||
- wait_for_trigger:
|
||||
- platform: mqtt
|
||||
topic: frigate/events
|
||||
payload: "{{ id }}"
|
||||
value_template: "{{ value_json['after']['id'] }}"
|
||||
timeout:
|
||||
minutes: 2
|
||||
continue_on_timeout: false
|
||||
- condition: template
|
||||
value_template: "{{ wait.trigger.payload_json['type'] == 'end' }}"
|
||||
- choose:
|
||||
- conditions: "{{ not group_target }}"
|
||||
sequence:
|
||||
- device_id: 70c62eb366d6ed914b0ccc6bf41c32fd
|
||||
domain: mobile_app
|
||||
type: notify
|
||||
message: A {{ label }} was detected on the {{ camera_name }} camera.
|
||||
data:
|
||||
tag: "{{ id }}"
|
||||
group: frigate-notification-{{ camera }}
|
||||
url: >-
|
||||
{{base_url}}/api/frigate/notifications/{{id}}/{{camera}}/clip.mp4
|
||||
clickAction: >-
|
||||
{{base_url}}/api/frigate/notifications/{{id}}/{{camera}}/clip.mp4
|
||||
image: >-
|
||||
/api/frigate/notifications/{{id}}/thumbnail.jpg?format=android
|
||||
sound: none
|
||||
attachment:
|
||||
url: /api/frigate/notifications/{{id}}/thumbnail.jpg
|
||||
actions:
|
||||
- action: URI
|
||||
title: View Clip
|
||||
uri: >-
|
||||
{{base_url}}/api/frigate/notifications/{{id}}/{{camera}}/clip.mp4
|
||||
- action: URI
|
||||
title: View Snapshot
|
||||
uri: >-
|
||||
{{base_url}}/api/frigate/notifications/{{id}}/snapshot.jpg
|
||||
- action: silence-{{ camera }}
|
||||
title: Silence Notifications
|
||||
destructive: true
|
||||
default:
|
||||
- action: notify.{{ group_target }}
|
||||
data:
|
||||
message: A {{ label }} was detected on the {{ camera_name }} camera.
|
||||
data:
|
||||
tag: "{{ id }}"
|
||||
group: frigate-notification-{{ camera }}
|
||||
url: >-
|
||||
{{base_url}}/api/frigate/notifications/{{id}}/{{camera}}/clip.mp4
|
||||
clickAction: >-
|
||||
{{base_url}}/api/frigate/notifications/{{id}}/{{camera}}/clip.mp4
|
||||
image: >-
|
||||
/api/frigate/notifications/{{id}}/thumbnail.jpg?format=android
|
||||
sound: none
|
||||
attachment:
|
||||
url: /api/frigate/notifications/{{id}}/thumbnail.jpg
|
||||
actions:
|
||||
- action: URI
|
||||
title: View Clip
|
||||
uri: >-
|
||||
{{base_url}}/api/frigate/notifications/{{id}}/{{camera}}/clip.mp4
|
||||
- action: URI
|
||||
title: View Snapshot
|
||||
uri: >-
|
||||
{{base_url}}/api/frigate/notifications/{{id}}/snapshot.jpg
|
||||
- action: silence-{{ camera }}
|
||||
title: Silence Notifications
|
||||
destructive: true
|
||||
until: "{{ wait.trigger.payload_json['type'] == 'end' }}"
|
||||
- wait_for_trigger:
|
||||
- platform: event
|
||||
event_type: mobile_app_notification_action
|
||||
event_data:
|
||||
action: silence-{{ camera }}
|
||||
timeout:
|
||||
seconds: 30
|
||||
continue_on_timeout: false
|
||||
- delay:
|
||||
minutes: 30
|
||||
@@ -48,7 +48,7 @@ action:
|
||||
- choose:
|
||||
- conditions: "{{ not group_target }}"
|
||||
sequence:
|
||||
- device_id: 70c62eb366d6ed914b0ccc6bf41c32fd
|
||||
- device_id: 99193a9cdfd7a8cb893c54665d710e7d
|
||||
domain: mobile_app
|
||||
type: notify
|
||||
message: A {{ label }} was detected on the {{ camera_name }} camera.
|
||||
@@ -89,7 +89,7 @@ action:
|
||||
- choose:
|
||||
- conditions: "{{ not group_target }}"
|
||||
sequence:
|
||||
- device_id: 70c62eb366d6ed914b0ccc6bf41c32fd
|
||||
- device_id: 99193a9cdfd7a8cb893c54665d710e7d
|
||||
domain: mobile_app
|
||||
type: notify
|
||||
message: A {{ label }} was detected on the {{ camera_name }} camera.
|
||||
|
||||
@@ -6,7 +6,7 @@ max_exceeded: silent
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: frigate/events
|
||||
payload: frigate_cam19
|
||||
payload: doorbell_cam
|
||||
value_template: "{{ value_json['after']['camera'] }}"
|
||||
variables:
|
||||
id: "{{ trigger.payload_json['after']['id'] }}"
|
||||
@@ -39,13 +39,13 @@ condition:
|
||||
- '{{ is_state("binary_sensor.front_door_contact","off") }}'
|
||||
- '{{ is_state("binary_sensor.patio_door_contact","off") }}'
|
||||
- '{{ is_state("binary_sensor.front_porch_motion","off") }}'
|
||||
- '{{ is_state("binary_sensor.garage_motion_switch_home_security_motion_detection","off") }}'
|
||||
- '{{ is_state("binary_sensor.garage_motion_switch_motion_detection","off") }}'
|
||||
- "{{ is_state('input_boolean.outdoor_snapshots','on') }}"
|
||||
action:
|
||||
- choose:
|
||||
- conditions: "{{ not group_target }}"
|
||||
sequence:
|
||||
- device_id: 70c62eb366d6ed914b0ccc6bf41c32fd
|
||||
- device_id: 99193a9cdfd7a8cb893c54665d710e7d
|
||||
domain: mobile_app
|
||||
type: notify
|
||||
message: A {{ label }} was detected on the {{ camera_name }} camera.
|
||||
@@ -86,7 +86,7 @@ action:
|
||||
- choose:
|
||||
- conditions: "{{ not group_target }}"
|
||||
sequence:
|
||||
- device_id: 70c62eb366d6ed914b0ccc6bf41c32fd
|
||||
- device_id: 99193a9cdfd7a8cb893c54665d710e7d
|
||||
domain: mobile_app
|
||||
type: notify
|
||||
message: A {{ label }} was detected on the {{ camera_name }} camera.
|
||||
|
||||
@@ -20,7 +20,7 @@ variables:
|
||||
type: "{{ trigger.payload_json['type'] }}"
|
||||
stationary: "{{ trigger.payload_json['after']['stationary'] }}"
|
||||
base_url: https://automation.clintweaver.com
|
||||
group_target: "mobile_app_pixel_7"
|
||||
group_target: "mobile_app_pixel_10_pro"
|
||||
zone_only: true
|
||||
before_zones:
|
||||
- from_street
|
||||
@@ -52,7 +52,7 @@ action:
|
||||
- choose:
|
||||
- conditions: "{{ not group_target }}"
|
||||
sequence:
|
||||
- device_id: 70c62eb366d6ed914b0ccc6bf41c32fd
|
||||
- device_id: 99193a9cdfd7a8cb893c54665d710e7d
|
||||
domain: mobile_app
|
||||
type: notify
|
||||
message: A {{ label }} was detected on the {{ camera_name }} camera.
|
||||
@@ -93,7 +93,7 @@ action:
|
||||
- choose:
|
||||
- conditions: "{{ not group_target }}"
|
||||
sequence:
|
||||
- device_id: 70c62eb366d6ed914b0ccc6bf41c32fd
|
||||
- device_id: 99193a9cdfd7a8cb893c54665d710e7d
|
||||
domain: mobile_app
|
||||
type: notify
|
||||
message: A {{ label }} was detected on the {{ camera_name }} camera.
|
||||
|
||||
@@ -25,10 +25,10 @@ condition:
|
||||
entity_id: media_player.front_room_hub
|
||||
state: "playing"
|
||||
- condition: state
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.girls_room_clock
|
||||
state: "playing"
|
||||
- condition: state
|
||||
entity_id: media_player.girls_room_hub
|
||||
entity_id: media_player.bedroom_hub
|
||||
state: "playing"
|
||||
- condition: state
|
||||
entity_id: media_player.bathroom_mini
|
||||
|
||||
@@ -16,18 +16,18 @@ action:
|
||||
entity_id: script.bridget_travel_sensor
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.girls_room_asleep
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.nursery_occupied
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.bridget_in_bed
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.girls_room_asleep
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.girls_room_occupied
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.bridget_in_bed
|
||||
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.bridget_is_awake
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.bridget_is_awake
|
||||
|
||||
@@ -18,6 +18,8 @@ action:
|
||||
sequence:
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.clint_work_from_home
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.allow_announcements
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.clint_work_from_home
|
||||
@@ -25,3 +27,5 @@ action:
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.clint_work_from_home
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.allow_announcements
|
||||
|
||||
@@ -3,10 +3,16 @@ id: automation_clint_at_work
|
||||
#description:
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
entity_id: device_tracker.pixel_10_pro
|
||||
to: "WMU"
|
||||
action:
|
||||
- action: input_text.set_value
|
||||
data:
|
||||
entity_id: input_text.person_clint
|
||||
value: at work
|
||||
# - action: notify.mobile_app_pixel_10_pro
|
||||
# data:
|
||||
# message: command_volume_level
|
||||
# data:
|
||||
# media_stream: notification_stream
|
||||
# command: 1
|
||||
|
||||
@@ -6,10 +6,12 @@ mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- device_tracker.pixel_7
|
||||
- device_tracker.pixel_10_pro
|
||||
- person.clint
|
||||
- group.person_clint
|
||||
from: "home"
|
||||
for:
|
||||
seconds: 30
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
@@ -21,7 +23,7 @@ condition:
|
||||
entity_id: person.clint
|
||||
state: "home"
|
||||
- condition: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
entity_id: device_tracker.pixel_10_pro
|
||||
state: "home"
|
||||
|
||||
action:
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
alias: Clint Home
|
||||
id: automation_clint_home
|
||||
mode: restart
|
||||
#description:
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- device_tracker.pixel_7
|
||||
- person.clint
|
||||
- group.person_clint
|
||||
- device_tracker.pixel_7_wifi
|
||||
to: "home"
|
||||
|
||||
- platform: state
|
||||
id: car_home
|
||||
entity_id:
|
||||
- binary_sensor.gray_suv_east_side
|
||||
- binary_sensor.gray_suv_west_side
|
||||
- group.traverse
|
||||
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:
|
||||
- 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"
|
||||
|
||||
@@ -7,12 +7,16 @@ trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
|
||||
to: "on"
|
||||
# Bed in master bedroom is occupied
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bed_occupied
|
||||
to: "on"
|
||||
# Radio playing
|
||||
- platform: state
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.bedroom_hub
|
||||
to: "playing"
|
||||
- platform: state
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.bedroom_hub
|
||||
to: "idle"
|
||||
# Light on
|
||||
- platform: state
|
||||
@@ -26,10 +30,10 @@ trigger:
|
||||
minutes: 5
|
||||
# Something gets plugged in
|
||||
- platform: state
|
||||
entity_id: sensor.pixel_7_charger_type
|
||||
entity_id: sensor.pixel_10_pro_charger_type
|
||||
to: "Wireless"
|
||||
- platform: state
|
||||
entity_id: sensor.pixel_7_charger_type
|
||||
entity_id: sensor.pixel_10_pro_charger_type
|
||||
to: "wireless"
|
||||
- platform: state
|
||||
entity_id: sensor.dreamsurface_dreamsurface_battery_powerline_status
|
||||
|
||||
@@ -10,7 +10,7 @@ trigger:
|
||||
entity_id:
|
||||
- input_select.clint_status_dropdown
|
||||
- input_boolean.clint_home
|
||||
- device_tracker.pixel_7
|
||||
- device_tracker.pixel_10_pro
|
||||
|
||||
condition:
|
||||
- condition: template
|
||||
|
||||
@@ -13,6 +13,10 @@ trigger:
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
|
||||
to: "off"
|
||||
for: "00:05:00"
|
||||
# Bed in master bedroom is occupied
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bed_occupied
|
||||
to: "on"
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.master_bedroom_door_contact
|
||||
|
||||
@@ -10,6 +10,10 @@ trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
|
||||
to: "on"
|
||||
# Bed in master bedroom is occupied
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bed_occupied
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
|
||||
@@ -5,12 +5,12 @@ id: automation_clint_changing_zones
|
||||
trigger:
|
||||
# Been away for a few minutes
|
||||
- platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
entity_id: device_tracker.pixel_10_pro
|
||||
to: "not_home"
|
||||
for: "00:05:00"
|
||||
# Arrived in a zone
|
||||
- platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
entity_id: device_tracker.pixel_10_pro
|
||||
from: "not_home"
|
||||
condition:
|
||||
# Been at least 5 minutes
|
||||
|
||||
@@ -8,9 +8,15 @@ trigger:
|
||||
at:
|
||||
entity_id: input_datetime.clint_next_alarm
|
||||
offset: "-300"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- action: input_boolean.turn_off
|
||||
data:
|
||||
target:
|
||||
entity_id: input_boolean.master_bedroom_asleep
|
||||
|
||||
- delay:
|
||||
@@ -20,9 +26,11 @@ action:
|
||||
milliseconds: 0
|
||||
|
||||
- action: media_player.volume_set
|
||||
target:
|
||||
#entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
entity_id: media_player.ma_bedroom_hub
|
||||
data:
|
||||
entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
volume_level: 0.60
|
||||
volume_level: 0.90
|
||||
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
@@ -30,15 +38,21 @@ action:
|
||||
target:
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
|
||||
- action: music_assistant.play_media
|
||||
- action: media_player.shuffle_set
|
||||
target:
|
||||
entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
entity_id: media_player.ma_bedroom_hub
|
||||
data:
|
||||
media_type: playlist
|
||||
#media_id: library://playlist/7
|
||||
media_id: >
|
||||
{% set playlists = ['library://playlist/33','library://playlist/32','library://playlist/21','library://playlist/28','library://playlist/27','library://playlist/22','library://playlist/29','library://playlist/36','library://playlist/23','library://playlist/12','library://playlist/34','library://playlist/35','library://playlist/19'] %}
|
||||
{{ playlists|random }}
|
||||
enqueue: replace
|
||||
shuffle: true
|
||||
|
||||
- action: script.wake_the_bedroom
|
||||
- action: music_assistant.play_media
|
||||
data:
|
||||
media_id: library://playlist/32
|
||||
media_type: playlist
|
||||
enqueue: replace
|
||||
target:
|
||||
entity_id: media_player.ma_bedroom_hub
|
||||
#media_id: >
|
||||
# {% set playlists = ['library://playlist/32','library://playlist/9'] %}
|
||||
# {{ playlists|random }}
|
||||
|
||||
#- action: script.wake_the_bedroom
|
||||
|
||||
@@ -8,10 +8,10 @@ trigger:
|
||||
to: "on"
|
||||
# Radio playing
|
||||
- platform: state
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.bedroom_hub
|
||||
to: "playing"
|
||||
- platform: state
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.bedroom_hub
|
||||
to: "idle"
|
||||
# Light on
|
||||
- platform: state
|
||||
|
||||
@@ -16,11 +16,11 @@ condition:
|
||||
state: "off"
|
||||
action:
|
||||
# Notify the last person to leave
|
||||
- action: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_10_pro
|
||||
data:
|
||||
message: >-
|
||||
{% if as_timestamp(states.input_boolean.kristy_home.last_updated) > as_timestamp(states.input_boolean.clint_home.last_updated) %}
|
||||
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(', ') }}
|
||||
The following are open: {{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_exterior_windows', 'entity_id') + state_attr('binary_sensor.exterior_doors', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
|
||||
{% else %}
|
||||
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(', ') }}
|
||||
The following are open: {{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_exterior_windows', 'entity_id') + state_attr('binary_sensor.exterior_doors', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
|
||||
{% endif %}
|
||||
|
||||
@@ -52,10 +52,10 @@ action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: "{{states('switch.nursery_bed_lights') == 'off' }}"
|
||||
value_template: "{{states('switch.girls_room_bed_lights') == 'off' }}"
|
||||
sequence:
|
||||
- action: input_select.select_option
|
||||
target:
|
||||
entity_id: input_select.nursery_wled
|
||||
entity_id: input_select.girls_room_wled
|
||||
data:
|
||||
option: Read
|
||||
|
||||
@@ -29,8 +29,8 @@ action:
|
||||
- media_player.bathroom_mini
|
||||
- media_player.front_room_hub
|
||||
- media_player.kitchen
|
||||
- media_player.girls_room_hub
|
||||
- media_player.master_bedroom_clock
|
||||
- media_player.girls_room_clock
|
||||
- media_player.bedroom_hub
|
||||
volume_level: 0.7
|
||||
- delay: "00:00:03"
|
||||
- action: tts.speak
|
||||
|
||||
@@ -24,12 +24,12 @@ action:
|
||||
- action: media_player.volume_set
|
||||
data_template:
|
||||
volume_level: 0.30
|
||||
entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
- action: tts.speak
|
||||
target:
|
||||
entity_id: tts.google_translate_en_com
|
||||
data:
|
||||
media_player_entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
media_player_entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
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(', ') }}
|
||||
{{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_exterior_windows', 'entity_id') + state_attr('binary_sensor.exterior_doors', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
alias: Continue Nursery Noise
|
||||
id: automation_continue_nursery_noise
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: media_player.girls_room_hub
|
||||
from: "playing"
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.girls_room_asleep
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- 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: 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_select.nursery_mode
|
||||
state: "Night on"
|
||||
action:
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.google_home
|
||||
option: "Nursery"
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.ambient_sound
|
||||
option: "Random White Noise"
|
||||
- action: input_number.set_value
|
||||
data:
|
||||
entity_id: input_number.volume_ambientsounds
|
||||
value: "0.35"
|
||||
- action: script.ambientsounds
|
||||
@@ -115,36 +115,18 @@ action:
|
||||
|
||||
- delay: "00:00:01"
|
||||
|
||||
# - action: media_player.play_media
|
||||
# target:
|
||||
# entity_id: media_player.front_room_hub
|
||||
# data:
|
||||
# media_content_id: camera-casting-yml/nursery-camera
|
||||
# media_content_type: lovelace
|
||||
# metadata:
|
||||
# title: Nursery Camera
|
||||
# thumbnail: https://brands.home-assistant.io/_/lovelace/logo.png
|
||||
# media_class: app
|
||||
# children_media_class: null
|
||||
# navigateIds:
|
||||
# - {}
|
||||
# - media_content_type: lovelace
|
||||
# media_content_id: ""
|
||||
# - media_content_type: lovelace
|
||||
# media_content_id: camera-casting-yml
|
||||
|
||||
- choose:
|
||||
- conditions: "{{is_state('input_boolean.ebin_home','on')}}"
|
||||
sequence:
|
||||
- action: input_select.select_option
|
||||
target:
|
||||
entity_id: input_select.nursery_wled
|
||||
entity_id: input_select.girls_room_wled
|
||||
data:
|
||||
option: "Off"
|
||||
|
||||
- action: input_select.select_option
|
||||
target:
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
data:
|
||||
option: "Nightlight"
|
||||
|
||||
@@ -161,13 +143,13 @@ action:
|
||||
- action: input_button.press
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_button.nursery_bedtime
|
||||
entity_id: input_button.girls_room_bedtime
|
||||
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
option: Running Rainbow
|
||||
target:
|
||||
entity_id: input_select.nursery_wled
|
||||
entity_id: input_select.girls_room_wled
|
||||
|
||||
- choose:
|
||||
- conditions: "{{is_state('input_boolean.emmett_home','on')}}"
|
||||
|
||||
@@ -198,7 +198,7 @@ action:
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
state: "Manual"
|
||||
- condition: state
|
||||
entity_id: input_select.house
|
||||
@@ -206,7 +206,7 @@ action:
|
||||
sequence:
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
option: Auto
|
||||
|
||||
- choose:
|
||||
|
||||
@@ -35,11 +35,11 @@ condition:
|
||||
attribute: source
|
||||
state: "YouTube"
|
||||
- condition: state
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.bedroom_hub
|
||||
attribute: source
|
||||
state: "PBS Kids"
|
||||
- condition: state
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.bedroom_hub
|
||||
attribute: source
|
||||
state: "YouTube"
|
||||
|
||||
@@ -94,23 +94,23 @@ action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.bedroom_hub
|
||||
state: "playing"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.bedroom_hub
|
||||
attribute: source
|
||||
state: "YouTube"
|
||||
- condition: state
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.bedroom_hub
|
||||
attribute: source
|
||||
state: "PBS Kids"
|
||||
sequence:
|
||||
- action: media_player.select_source
|
||||
data:
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.bedroom_hub
|
||||
source: Home
|
||||
- action: media_player.turn_off
|
||||
data:
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.bedroom_hub
|
||||
|
||||
@@ -13,7 +13,7 @@ condition:
|
||||
state: "off"
|
||||
for: "00:10:00"
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.deck_light_level
|
||||
entity_id: sensor.deck_hue_motion_sensor_illuminance
|
||||
below: 25
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.sun_elevation
|
||||
|
||||
@@ -38,7 +38,7 @@ condition:
|
||||
state: "on"
|
||||
# It's getting dark
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.bar_light_level
|
||||
entity_id: sensor.bar_hue_motion_sensor_illuminance
|
||||
below: 15
|
||||
# Somebody is nearly home, or just arrived
|
||||
- condition: or
|
||||
|
||||
@@ -8,7 +8,7 @@ trigger:
|
||||
to: "on"
|
||||
|
||||
action:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_10_pro
|
||||
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(', ') }}
|
||||
|
||||
@@ -17,7 +17,7 @@ condition:
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_10_pro
|
||||
data:
|
||||
title: Update Available
|
||||
message: A Home Assistant update is available
|
||||
|
||||
@@ -27,9 +27,9 @@ 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.boys_room_light_cycle
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_select.boys_room_mode
|
||||
state: "Nightlight"
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
alias: Boys Room Light Cycle
|
||||
id: efcf9f08-4174-480a-8480-9b240a0e9e4f
|
||||
trigger:
|
||||
- id: light_cycle_on
|
||||
platform: state
|
||||
entity_id: input_boolean.boys_room_light_cycle
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- id: setting_change
|
||||
platform: state
|
||||
entity_id:
|
||||
- input_number.boys_room_light_cycle_transition
|
||||
- input_select.boys_room_color_set
|
||||
- input_boolean.boys_room_cycle_same
|
||||
|
||||
condition: "{{ is_state('input_boolean.boys_room_light_cycle','on') }}"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.boys_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.boys_room_cycle_same
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.boys_room_hue
|
||||
data:
|
||||
brightness: '{{ states("input_number.boys_room_light_cycle_brightness") | int }}'
|
||||
transition: '{{ states("input_number.boys_room_light_cycle_transition") | int }}'
|
||||
profile: >
|
||||
{% if states('input_select.boys_room_color_set') == 'Basic' %}
|
||||
{% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
|
||||
{% elif states('input_select.boys_room_color_set') == 'Color Wheel' %}
|
||||
{% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
|
||||
{% elif states('input_select.boys_room_color_set') == 'Rainbow' %}
|
||||
{% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
|
||||
{% elif states('input_select.boys_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.boys_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.boys_room_color_set') == 'Gem Tones' %}
|
||||
{% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
|
||||
{% elif states('input_select.boys_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.boys_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.boys_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.boys_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.boys_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.boys_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.boys_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.boys_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.boys_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.boys_room_cycle_same
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.boys_room_color_1
|
||||
data:
|
||||
brightness: '{{ states("input_number.boys_room_light_cycle_brightness") | int }}'
|
||||
transition: '{{ states("input_number.boys_room_light_cycle_transition") | int }}'
|
||||
profile: >
|
||||
{% if states('input_select.boys_room_color_set') == 'Basic' %}
|
||||
{% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
|
||||
{% elif states('input_select.boys_room_color_set') == 'Color Wheel' %}
|
||||
{% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
|
||||
{% elif states('input_select.boys_room_color_set') == 'Rainbow' %}
|
||||
{% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
|
||||
{% elif states('input_select.boys_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.boys_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.boys_room_color_set') == 'Gem Tones' %}
|
||||
{% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
|
||||
{% elif states('input_select.boys_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.boys_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.boys_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.boys_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.boys_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.boys_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.boys_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.boys_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.boys_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.boys_room_color_2
|
||||
data:
|
||||
brightness: '{{ states("input_number.boys_room_light_cycle_brightness") | int }}'
|
||||
transition: '{{ states("input_number.boys_room_light_cycle_transition") | int }}'
|
||||
profile: >
|
||||
{% if states('input_select.boys_room_color_set') == 'Basic' %}
|
||||
{% set colors = ['white','black','red','orange','yellow','green','blue','purple','pink','brown','gray'] %}
|
||||
{% elif states('input_select.boys_room_color_set') == 'Color Wheel' %}
|
||||
{% set colors = ['red','orange','amber','yellow','chartreuse','green','teal','blue','violet','purple','magenta'] %}
|
||||
{% elif states('input_select.boys_room_color_set') == 'Rainbow' %}
|
||||
{% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
|
||||
{% elif states('input_select.boys_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.boys_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.boys_room_color_set') == 'Gem Tones' %}
|
||||
{% set colors = ['amethyst','citrine','emerald','jade','lapis_lazuli','malachite','rose_quartz','ruby','sapphire','smokey_topaz'] %}
|
||||
{% elif states('input_select.boys_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.boys_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.boys_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.boys_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.boys_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.boys_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.boys_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.boys_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.boys_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.boys_room_light_cycle_transition") | int }}'
|
||||
|
||||
until:
|
||||
- condition: state
|
||||
entity_id: input_boolean.boys_room_light_cycle
|
||||
state: "off"
|
||||
|
||||
- action: automation.trigger
|
||||
entity_id: automation.boys_room_lights_to_on
|
||||
@@ -60,9 +60,9 @@ condition:
|
||||
entity_id: binary_sensor.early_morning
|
||||
state: "on"
|
||||
|
||||
- alias: "Is Nursery Light Cycle turned off?"
|
||||
- alias: "Is Boys Room Light Cycle turned off?"
|
||||
condition: state
|
||||
entity_id: input_boolean.nursery_light_cycle
|
||||
entity_id: input_boolean.girls_room_light_cycle
|
||||
state: "off"
|
||||
|
||||
- alias: "Are the kids asleep?"
|
||||
@@ -95,13 +95,11 @@ action:
|
||||
entity_id: binary_sensor.computer_area_occupied
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: webrtc.dash_cast
|
||||
- action: dash_cast.load_url
|
||||
data:
|
||||
entity_id: media_player.computer_area_hub
|
||||
url: cam01_sub_opus
|
||||
force: true
|
||||
extra:
|
||||
mode: webrtc
|
||||
url: http://192.168.1.7:1984/stream.html?src=boys_room_cam
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
@@ -109,49 +107,13 @@ action:
|
||||
entity_id: binary_sensor.front_room_occupied
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: webrtc.dash_cast
|
||||
- action: dash_cast.load_url
|
||||
data:
|
||||
entity_id: media_player.front_room_hub
|
||||
url: cam01_sub_opus
|
||||
force: true
|
||||
extra:
|
||||
mode: webrtc
|
||||
url: http://192.168.1.7:1984/stream.html?src=boys_room_cam
|
||||
|
||||
- delay: "00:10:00"
|
||||
|
||||
- action: media_player.turn_off
|
||||
entity_id: media_player.front_room_hub, media_player.computer_area_hub
|
||||
|
||||
# - alias: "Flash some lights"
|
||||
# repeat:
|
||||
# count: 6
|
||||
# sequence:
|
||||
# - delay: 1
|
||||
# - action: light.toggle
|
||||
# target:
|
||||
# entity_id:
|
||||
# - light.entryway_hue
|
||||
# - light.computer_area_hue
|
||||
# - light.front_room_hue
|
||||
#- delay: '00:00:02'
|
||||
|
||||
# - alias: "Fix computer area lights"
|
||||
# action: automation.trigger
|
||||
# target:
|
||||
# entity_id: "automation.computer_area_lights_to_{{ computer_area }}"
|
||||
# data:
|
||||
# skip_condition: true
|
||||
|
||||
# - alias: "Fix front room lights"
|
||||
# action: automation.trigger
|
||||
# target:
|
||||
# entity_id: "automation.front_room_lights_to_{{ front_room }}"
|
||||
# data:
|
||||
# skip_condition: true
|
||||
|
||||
# - alias: "Fix entryway lights"
|
||||
# action: automation.trigger
|
||||
# target:
|
||||
# entity_id: "automation.entryway_lights_to_{{ entryway }}"
|
||||
# data:
|
||||
# skip_condition: true
|
||||
|
||||
@@ -8,4 +8,4 @@ trigger:
|
||||
|
||||
action:
|
||||
- action: media_player.turn_off
|
||||
entity_id: media_player.ma_boys_room_clock
|
||||
entity_id: media_player.boys_room_clock
|
||||
|
||||
@@ -7,7 +7,7 @@ trigger:
|
||||
to: "on"
|
||||
|
||||
- platform: state
|
||||
entity_id: media_player.ma_boys_room_clock
|
||||
entity_id: media_player.boys_room_clock
|
||||
to: "idle"
|
||||
for: 00:00:05
|
||||
|
||||
@@ -21,17 +21,17 @@ action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.ma_boys_room_clock
|
||||
entity_id: media_player.boys_room_clock
|
||||
state: "playing"
|
||||
sequence:
|
||||
- action: media_player.media_stop
|
||||
target:
|
||||
entity_id: media_player.ma_boys_room_clock
|
||||
entity_id: media_player.boys_room_clock
|
||||
|
||||
- action: script.search_and_play_playlist
|
||||
- action: music_assistant.play_media
|
||||
target:
|
||||
entity_id: media_player.ma_boys_room_clock
|
||||
data:
|
||||
speaker: media_player.ma_boys_room_clock
|
||||
search_term: CleverThunderstorm
|
||||
volume: 0.3
|
||||
repeat: all
|
||||
shuffle: false
|
||||
media_type: playlist
|
||||
media_id: library://playlist/34
|
||||
enqueue: replace
|
||||
|
||||
@@ -26,7 +26,7 @@ trigger:
|
||||
|
||||
# - platform: state
|
||||
# id: motion
|
||||
# entity_id: group.computer_area_motion
|
||||
# entity_id: binary_sensor.computer_area_motion
|
||||
# to: "on"
|
||||
|
||||
condition:
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
alias: "Computer Area Occupied"
|
||||
id: automation_computer_area_occupied
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.computer_area_occupied
|
||||
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
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.computer_area_mode
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_select.computer_area_mode
|
||||
state: "Manual"
|
||||
|
||||
action:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.computer_area_occupied
|
||||
@@ -24,7 +24,7 @@ trigger:
|
||||
|
||||
# - platform: state
|
||||
# id: motion
|
||||
# entity_id: group.dining_room_motion
|
||||
# entity_id: binary_sensor.dining_room_motion
|
||||
# to: "on"
|
||||
|
||||
condition:
|
||||
|
||||
@@ -5,7 +5,7 @@ trigger:
|
||||
platform: event
|
||||
event_type: timer.finished
|
||||
event_data:
|
||||
entity_id: timer.nursery_camera_on_hub
|
||||
entity_id: timer.girls_room_camera_on_hub
|
||||
action:
|
||||
action: media_player.turn_off
|
||||
data:
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
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: 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:
|
||||
- action: timer.cancel
|
||||
data:
|
||||
entity_id: timer.nursery_camera_on_tv
|
||||
default:
|
||||
action: media_player.turn_off
|
||||
data:
|
||||
entity_id: media_player.front_room_tv
|
||||
@@ -38,7 +38,7 @@ action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: timer.nursery_camera_on_hub
|
||||
entity_id: timer.girls_room_camera_on_hub
|
||||
state: "idle"
|
||||
sequence:
|
||||
- action: media_player.volume_set
|
||||
@@ -50,10 +50,10 @@ action:
|
||||
target:
|
||||
entity_id: media_player.front_room_hub
|
||||
data:
|
||||
media_content_id: camera-casting-yml/nursery-camera
|
||||
media_content_id: camera-casting-yml/girls_room-camera
|
||||
media_content_type: lovelace
|
||||
metadata:
|
||||
title: Nursery Camera
|
||||
title: Girls Room Camera
|
||||
thumbnail: https://brands.home-assistant.io/_/lovelace/logo.png
|
||||
media_class: app
|
||||
children_media_class: null
|
||||
@@ -66,4 +66,4 @@ action:
|
||||
|
||||
- action: timer.start
|
||||
data:
|
||||
entity_id: timer.nursery_camera_on_hub
|
||||
entity_id: timer.girls_room_camera_on_hub
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
alias: Baby Monitor on TV
|
||||
id: automation_baby_monitor_on_tv
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
to: "off"
|
||||
for: "00:00:03"
|
||||
- platform: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
to: "off"
|
||||
for: "00:00:03"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.front_room_occupied
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_tv
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_tv
|
||||
state: "standby"
|
||||
- condition: state
|
||||
entity_id: input_boolean.computer_area_occupied
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.master_bedroom_occupied
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_asleep
|
||||
state: "off"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
state: "on"
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
state: "on"
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
state: "on"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_tv
|
||||
state: playing
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_tv
|
||||
state: paused
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_tv
|
||||
attribute: source
|
||||
state: "IP Camera Viewer - Pro"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: timer.nursery_camera_on_hub
|
||||
state: "idle"
|
||||
sequence:
|
||||
- action: rest_command.nursery_on_roku_1
|
||||
|
||||
- action: timer.start
|
||||
data:
|
||||
entity_id: timer.nursery_camera_on_tv
|
||||
@@ -20,7 +20,7 @@ trigger:
|
||||
|
||||
# - platform: state
|
||||
# id: motion
|
||||
# entity_id: group.front_room_motion
|
||||
# entity_id: binary_sensor.front_room_motion
|
||||
# to: "on"
|
||||
|
||||
- platform: state
|
||||
@@ -119,7 +119,7 @@ action:
|
||||
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) }}"
|
||||
- "{{ states('sensor.front_room_hue_motion_sensor_illuminance') | float(default=0) < states('input_number.front_room_light_level_trigger') | float(default=0) }}"
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
data:
|
||||
@@ -137,7 +137,7 @@ action:
|
||||
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) }}"
|
||||
- "{{ states('sensor.front_room_hue_motion_sensor_illuminance') | float(default=0) < states('input_number.front_room_light_level_trigger') | float(default=0) }}"
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
target:
|
||||
@@ -149,7 +149,7 @@ action:
|
||||
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) }}"
|
||||
- "{{ states('sensor.front_room_hue_motion_sensor_illuminance') | float(default=0) < states('input_number.front_room_light_level_trigger') | float(default=0) }}"
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
data:
|
||||
@@ -163,7 +163,7 @@ action:
|
||||
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) }}"
|
||||
- "{{ states('sensor.front_room_hue_motion_sensor_illuminance') | float(default=0) < states('input_number.front_room_light_level_trigger') | float(default=0) }}"
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
target:
|
||||
|
||||
@@ -3,7 +3,7 @@ id: automation_front_room_water_sensor_on
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.furnace_room_water_sensor_water_alarm_water_leak_detected
|
||||
entity_id: binary_sensor.furnace_room_water_sensor_leak
|
||||
to: "on"
|
||||
for: "00:00:10"
|
||||
|
||||
@@ -12,9 +12,9 @@ action:
|
||||
target:
|
||||
entity_id: tts.google_translate_en_com
|
||||
data:
|
||||
media_player_entity_id: media_player.front_room_hub, media_player.bathroom_mini, media_player.kitchen, media_player.master_bedroom_clock
|
||||
media_player_entity_id: media_player.front_room_hub, media_player.bathroom_mini, media_player.kitchen, media_player.bedroom_hub
|
||||
message: Attention! A water leak has been detected on the furnace room floor!
|
||||
|
||||
- action: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_10_pro
|
||||
data:
|
||||
message: Attention! A water leak has been detected on the furnace room floor!
|
||||
|
||||
@@ -18,7 +18,7 @@ triggers:
|
||||
trigger: state
|
||||
alias: When the furnace room door has been closed for 10 minutes
|
||||
- id: motion_off
|
||||
entity_id: binary_sensor.furnace_room_motion_switch_home_security_motion_detection
|
||||
entity_id: binary_sensor.furnace_room_motion_switch_motion_detection
|
||||
to: "off"
|
||||
for: "00:15:00"
|
||||
trigger: state
|
||||
@@ -40,7 +40,7 @@ actions:
|
||||
id: door_closed
|
||||
- condition: state
|
||||
entity_id: >-
|
||||
binary_sensor.furnace_room_motion_switch_home_security_motion_detection
|
||||
binary_sensor.furnace_room_motion_switch_motion_detection
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: light.furnace_room
|
||||
|
||||
@@ -18,7 +18,7 @@ trigger:
|
||||
|
||||
# - platform: state
|
||||
# id: "motion"
|
||||
# entity_id: group.garage_motion
|
||||
# entity_id: binary_sensor.garage_motion
|
||||
# from: "off"
|
||||
# to: "on"
|
||||
|
||||
@@ -56,7 +56,7 @@ trigger:
|
||||
|
||||
- platform: state
|
||||
id: "workshop_motion"
|
||||
entity_id: group.workshop_motion
|
||||
entity_id: binary_sensor.workshop_motion
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
|
||||
@@ -17,6 +17,6 @@ condition:
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_10_pro
|
||||
data:
|
||||
message: The garage is open, but nobody is home
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
alias: Nursery Awake Button
|
||||
id: automation_nursery_awake_button
|
||||
alias: Girls Room Awake Button
|
||||
id: automation_girls_room_awake_button
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_button.nursery_awake
|
||||
entity_id: input_button.girls_room_awake
|
||||
|
||||
condition: []
|
||||
|
||||
@@ -12,13 +12,13 @@ action:
|
||||
data:
|
||||
option: Auto
|
||||
target:
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
option: "Off"
|
||||
target:
|
||||
entity_id: input_select.nursery_wled
|
||||
entity_id: input_select.girls_room_wled
|
||||
|
||||
- action: switch.turn_off
|
||||
target:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
alias: Nursery Bedtime Button
|
||||
id: automation_nursery_bedtime_button
|
||||
alias: Girls Room Bedtime Button
|
||||
id: automation_girls_room_bedtime_button
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_button.nursery_bedtime
|
||||
entity_id: input_button.girls_room_bedtime
|
||||
|
||||
condition: []
|
||||
|
||||
@@ -12,17 +12,17 @@ action:
|
||||
data:
|
||||
option: Nightlight
|
||||
target:
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
|
||||
# - action: input_select.select_option
|
||||
# data:
|
||||
# option: Running Rainbow
|
||||
# target:
|
||||
# entity_id: input_select.nursery_wled
|
||||
# entity_id: input_select.girls_room_wled
|
||||
|
||||
# - action: automation.trigger
|
||||
# target:
|
||||
# entity_id: automation.nursery_wled_changed
|
||||
# entity_id: automation.girls_room_wled_changed
|
||||
|
||||
#- condition:
|
||||
- alias: "Do not restart the music if it is already playing"
|
||||
@@ -31,32 +31,32 @@ action:
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
entity_id: media_player.ma_girls_room_clock
|
||||
state: "playing"
|
||||
|
||||
- action: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.4
|
||||
volume_level: 0.20
|
||||
target:
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
entity_id: media_player.ma_girls_room_clock
|
||||
|
||||
#- action: script.goodnight_kids_youtube_music
|
||||
- action: media_player.shuffle_set
|
||||
data:
|
||||
shuffle: false
|
||||
target:
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
entity_id: media_player.ma_girls_room_clock
|
||||
|
||||
- action: media_player.repeat_set
|
||||
data:
|
||||
repeat: all
|
||||
target:
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
entity_id: media_player.ma_girls_room_clock
|
||||
|
||||
- action: music_assistant.play_media
|
||||
data:
|
||||
media_id: library://playlist/5
|
||||
media_id: library://playlist/36
|
||||
media_type: playlist
|
||||
enqueue: replace
|
||||
target:
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
entity_id: media_player.ma_girls_room_clock
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
alias: Nursery Dimmer LEDs
|
||||
id: automation_nursery_dimmer_leds
|
||||
alias: Girls Room Dimmer LEDs
|
||||
id: automation_girls_room_dimmer_leds
|
||||
mode: single
|
||||
# Hide warnings when triggered while in delay.
|
||||
max_exceeded: silent
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
attribute: brightness
|
||||
|
||||
- platform: state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
# condition:
|
||||
# - "{{ is_state('sensor.nursery_dimmer_node_status','alive') }}"
|
||||
# - "{{ is_state('sensor.girls_room_dimmer_node_status','alive') }}"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- alias: "Light off"
|
||||
condition: state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: zwave_js.set_config_parameter
|
||||
@@ -42,7 +42,7 @@ action:
|
||||
- conditions:
|
||||
- alias: "Light brightness below 78"
|
||||
condition: numeric_state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
attribute: brightness
|
||||
below: 78
|
||||
sequence:
|
||||
@@ -62,7 +62,7 @@ action:
|
||||
- conditions:
|
||||
- alias: "Light brightness below 104"
|
||||
condition: numeric_state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
attribute: brightness
|
||||
below: 104
|
||||
sequence:
|
||||
@@ -82,7 +82,7 @@ action:
|
||||
- conditions:
|
||||
- alias: "Light brightness below 130"
|
||||
condition: numeric_state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
attribute: brightness
|
||||
below: 130
|
||||
sequence:
|
||||
@@ -102,7 +102,7 @@ action:
|
||||
- conditions:
|
||||
- alias: "Light brightness below 156"
|
||||
condition: numeric_state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
attribute: brightness
|
||||
below: 156
|
||||
sequence:
|
||||
@@ -122,7 +122,7 @@ action:
|
||||
- conditions:
|
||||
- alias: "Light brightness below 182"
|
||||
condition: numeric_state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
attribute: brightness
|
||||
below: 182
|
||||
sequence:
|
||||
@@ -142,7 +142,7 @@ action:
|
||||
- conditions:
|
||||
- alias: "Light brightness below 208"
|
||||
condition: numeric_state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
attribute: brightness
|
||||
below: 208
|
||||
sequence:
|
||||
@@ -162,7 +162,7 @@ action:
|
||||
- conditions:
|
||||
- alias: "Light brightness below 234"
|
||||
condition: numeric_state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
attribute: brightness
|
||||
below: 234
|
||||
sequence:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
alias: Nursery Into Bed
|
||||
id: automation_nursery_into_bed
|
||||
alias: Girls Room Into Bed
|
||||
id: automation_girls_room_into_bed
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
@@ -27,13 +27,13 @@ condition:
|
||||
entity_id: input_boolean.ebin_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.nursery_light_cycle
|
||||
entity_id: input_boolean.girls_room_light_cycle
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
state: "Nightlight"
|
||||
- condition: state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
alias: Nursery Light Cycle
|
||||
id: automation_nursery_light_cycle
|
||||
alias: Girls Room Light Cycle
|
||||
id: e5174fca-7170-4348-87dc-a27d4a2bdb9c
|
||||
trigger:
|
||||
- id: light_cycle_on
|
||||
platform: state
|
||||
entity_id: input_boolean.nursery_light_cycle
|
||||
entity_id: input_boolean.girls_room_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
|
||||
- input_number.girls_room_light_cycle_transition
|
||||
- input_select.girls_room_color_set
|
||||
- input_boolean.girls_room_cycle_same
|
||||
|
||||
condition: "{{ is_state('input_boolean.nursery_light_cycle','on') }}"
|
||||
condition: "{{ is_state('input_boolean.girls_room_light_cycle','on') }}"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.nursery_light_cycle
|
||||
entity_id: input_boolean.girls_room_light_cycle
|
||||
state: "on"
|
||||
sequence:
|
||||
- repeat:
|
||||
@@ -28,141 +28,141 @@ action:
|
||||
- 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
|
||||
entity_id: input_boolean.girls_room_cycle_same
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
data:
|
||||
brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
|
||||
transition: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
|
||||
brightness: '{{ states("input_number.girls_room_light_cycle_brightness") | int }}'
|
||||
transition: '{{ states("input_number.girls_room_light_cycle_transition") | int }}'
|
||||
profile: >
|
||||
{% if states('input_select.nursery_color_set') == 'Basic' %}
|
||||
{% if states('input_select.girls_room_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' %}
|
||||
{% elif states('input_select.girls_room_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' %}
|
||||
{% elif states('input_select.girls_room_color_set') == 'Rainbow' %}
|
||||
{% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
|
||||
{% elif states('input_select.nursery_color_set') == 'Flourescent' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Silver Swirl' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Gem Tones' %}
|
||||
{% elif states('input_select.girls_room_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' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Oranges' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Yellows' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Greens' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Cyans' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Blues' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Purples' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Magentas' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Grays' %}
|
||||
{% elif states('input_select.girls_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.nursery_cycle_same
|
||||
entity_id: input_boolean.girls_room_cycle_same
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.nursery_color_1
|
||||
entity_id: light.girls_room_color_1
|
||||
data:
|
||||
brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
|
||||
transition: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
|
||||
brightness: '{{ states("input_number.girls_room_light_cycle_brightness") | int }}'
|
||||
transition: '{{ states("input_number.girls_room_light_cycle_transition") | int }}'
|
||||
profile: >
|
||||
{% if states('input_select.nursery_color_set') == 'Basic' %}
|
||||
{% if states('input_select.girls_room_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' %}
|
||||
{% elif states('input_select.girls_room_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' %}
|
||||
{% elif states('input_select.girls_room_color_set') == 'Rainbow' %}
|
||||
{% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
|
||||
{% elif states('input_select.nursery_color_set') == 'Flourescent' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Silver Swirl' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Gem Tones' %}
|
||||
{% elif states('input_select.girls_room_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' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Oranges' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Yellows' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Greens' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Cyans' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Blues' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Purples' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Magentas' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Grays' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_2
|
||||
entity_id: light.girls_room_color_2
|
||||
data:
|
||||
brightness: '{{ states("input_number.nursery_light_cycle_brightness") | int }}'
|
||||
transition: '{{ states("input_number.nursery_light_cycle_transition") | int }}'
|
||||
brightness: '{{ states("input_number.girls_room_light_cycle_brightness") | int }}'
|
||||
transition: '{{ states("input_number.girls_room_light_cycle_transition") | int }}'
|
||||
profile: >
|
||||
{% if states('input_select.nursery_color_set') == 'Basic' %}
|
||||
{% if states('input_select.girls_room_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' %}
|
||||
{% elif states('input_select.girls_room_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' %}
|
||||
{% elif states('input_select.girls_room_color_set') == 'Rainbow' %}
|
||||
{% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
|
||||
{% elif states('input_select.nursery_color_set') == 'Flourescent' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Silver Swirl' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Gem Tones' %}
|
||||
{% elif states('input_select.girls_room_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' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Oranges' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Yellows' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Greens' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Cyans' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Blues' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Purples' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Magentas' %}
|
||||
{% elif states('input_select.girls_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.nursery_color_set') == 'Grays' %}
|
||||
{% elif states('input_select.girls_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.nursery_light_cycle_transition") | int }}'
|
||||
seconds: '{{ states("input_number.girls_room_light_cycle_transition") | int }}'
|
||||
|
||||
until:
|
||||
- condition: state
|
||||
entity_id: input_boolean.nursery_light_cycle
|
||||
entity_id: input_boolean.girls_room_light_cycle
|
||||
state: "off"
|
||||
|
||||
- action: automation.trigger
|
||||
entity_id: automation.nursery_lights_to_on
|
||||
entity_id: automation.girls_room_lights_to_on
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
alias: Nursery Lights to Off
|
||||
id: automation_nursery_lights_to_off
|
||||
alias: Girls Room Lights to Off
|
||||
id: e4926a27-2022-4d48-875e-f368e6472749
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
|
||||
- platform: state
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
to: "off"
|
||||
|
||||
- platform: state
|
||||
id: light_level
|
||||
entity_id: binary_sensor.nursery_naturally_lit
|
||||
entity_id: binary_sensor.girls_room_naturally_lit
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
@@ -21,21 +21,21 @@ trigger:
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
state: "on"
|
||||
|
||||
- alias: "Nursery light cycle not on"
|
||||
- alias: "Girls Room light cycle not on"
|
||||
condition: state
|
||||
entity_id: input_boolean.nursery_light_cycle
|
||||
entity_id: input_boolean.girls_room_light_cycle
|
||||
state: "off"
|
||||
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
state: "off"
|
||||
|
||||
action:
|
||||
@@ -47,22 +47,22 @@ action:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
state: "off"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
state: "Manual"
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
data:
|
||||
transition: 5
|
||||
target:
|
||||
entity_id: scene.nursery_hue_off
|
||||
entity_id: scene.girls_room_hue_off
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
@@ -72,4 +72,4 @@ action:
|
||||
- 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
|
||||
entity_id: light.girls_room_color_1, light.girls_room_color_2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
alias: Nursery Lights to On
|
||||
id: automation_nursery_lights_to_on
|
||||
alias: Girls Room Lights to On
|
||||
id: automation_girls_room_lights_to_on
|
||||
mode: single
|
||||
# Hide warnings when triggered while in delay.
|
||||
max_exceeded: silent
|
||||
@@ -8,20 +8,20 @@ trigger:
|
||||
- platform: state
|
||||
id: mode_change
|
||||
entity_id:
|
||||
- input_select.nursery_mode
|
||||
- input_select.girls_room_mode
|
||||
- input_select.automatic_light_profile
|
||||
|
||||
- platform: state
|
||||
id: light_level
|
||||
entity_id: binary_sensor.nursery_naturally_lit
|
||||
entity_id: binary_sensor.girls_room_naturally_lit
|
||||
from: "on"
|
||||
to: "off"
|
||||
|
||||
- platform: state
|
||||
id: occupied
|
||||
entity_id:
|
||||
- input_boolean.nursery_occupied
|
||||
- binary_sensor.nursery_occupied
|
||||
- input_boolean.girls_room_occupied
|
||||
- binary_sensor.girls_room_occupied
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
@@ -30,9 +30,9 @@ condition:
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: "on"
|
||||
|
||||
- alias: "Nursery light cycle not on"
|
||||
- alias: "Girls Room light cycle not on"
|
||||
condition: state
|
||||
entity_id: input_boolean.nursery_light_cycle
|
||||
entity_id: input_boolean.girls_room_light_cycle
|
||||
state: "off"
|
||||
|
||||
- alias: "Check if light should turn on"
|
||||
@@ -48,7 +48,7 @@ condition:
|
||||
conditions:
|
||||
- alias: "Light level below trigger amount"
|
||||
condition: state
|
||||
entity_id: binary_sensor.nursery_naturally_lit
|
||||
entity_id: binary_sensor.girls_room_naturally_lit
|
||||
state: "off"
|
||||
|
||||
- alias: "Motion or occupancy were detected"
|
||||
@@ -66,13 +66,13 @@ condition:
|
||||
- condition: trigger
|
||||
id: "mode_change"
|
||||
- condition: state
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
state: "on"
|
||||
|
||||
variables:
|
||||
switch_name: light.nursery_dimmer_light
|
||||
light_name: nursery_hue
|
||||
mode_name: input_select.nursery_mode
|
||||
switch_name: light.girls_room_fan_light_switch_light
|
||||
light_name: girls_room_hue
|
||||
mode_name: input_select.girls_room_mode
|
||||
automatic_profile: input_select.automatic_light_profile
|
||||
action:
|
||||
- alias: "Make sure Z-Wave switch is turned on"
|
||||
@@ -84,22 +84,22 @@ action:
|
||||
conditions:
|
||||
- alias: "Room set to manual"
|
||||
condition: state
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
state: Manual
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_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
|
||||
entity_id: input_select.girls_room_mode
|
||||
state: Auto
|
||||
- alias: "Lights are on"
|
||||
condition: state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
state: "on"
|
||||
- alias: "Automatic light profile set to Nightlight"
|
||||
condition: state
|
||||
@@ -116,11 +116,11 @@ action:
|
||||
conditions:
|
||||
- alias: "Room set to auto"
|
||||
condition: state
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
state: Auto
|
||||
- alias: "Lights are on"
|
||||
condition: state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
@@ -133,26 +133,26 @@ action:
|
||||
conditions:
|
||||
- alias: "Room set to auto"
|
||||
condition: state
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
state: Auto
|
||||
- alias: "Lights are off"
|
||||
condition: state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_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"
|
||||
- alias: "If the room is not set to auto, the lights are on, and the room is set to Nightlight change to the Girls Room Mode scene with a short transition"
|
||||
conditions:
|
||||
- alias: "Room not manual or auto and lights are on"
|
||||
condition: state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
state: "on"
|
||||
- alias: "Room set to Nightlight"
|
||||
condition: state
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
state: Nightlight
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
@@ -161,11 +161,11 @@ action:
|
||||
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"
|
||||
- alias: "If the room is not set to auto and the lights are on, change to the Girls Room Mode scene with a transition"
|
||||
conditions:
|
||||
- alias: "Room not manual or auto and lights are on"
|
||||
condition: state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
@@ -174,11 +174,11 @@ action:
|
||||
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"
|
||||
- alias: "If the room is not set to auto and the lights are on, change to the Girls Room Mode scene without a transition"
|
||||
conditions:
|
||||
- alias: "Room not manual or auto and lights are off"
|
||||
condition: state
|
||||
entity_id: light.nursery_hue
|
||||
entity_id: light.girls_room_hue
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
alias: "Nursery Not Occupied"
|
||||
id: automation_nursery_not_occupied
|
||||
alias: "Girls Room Not Occupied"
|
||||
id: automation_girls_room_not_occupied
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
@@ -11,7 +11,7 @@ trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- input_boolean.home_occupied
|
||||
- binary_sensor.nursery_occupied
|
||||
- binary_sensor.girls_room_occupied
|
||||
to: "off"
|
||||
for: "00:05:00"
|
||||
|
||||
@@ -31,7 +31,7 @@ condition:
|
||||
- "unavailable"
|
||||
|
||||
- condition: state
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
state: "on"
|
||||
|
||||
- condition: or
|
||||
@@ -42,12 +42,12 @@ condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.nursery_person_occupancy
|
||||
entity_id: binary_sensor.girls_room_person_occupancy
|
||||
state: "off"
|
||||
for:
|
||||
minutes: 5
|
||||
- condition: state
|
||||
entity_id: binary_sensor.nursery_occupied
|
||||
entity_id: binary_sensor.girls_room_occupied
|
||||
state: "off"
|
||||
for:
|
||||
minutes: 5
|
||||
@@ -60,7 +60,7 @@ action:
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
- conditions:
|
||||
- condition: not
|
||||
conditions:
|
||||
@@ -69,4 +69,4 @@ action:
|
||||
state: "Manual"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
alias: Nursery Occupied
|
||||
id: automation_nursery_occupied
|
||||
alias: Girls Room Occupied
|
||||
id: automation_girls_room_occupied
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.nursery_occupied
|
||||
- binary_sensor.girls_room_occupied
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
state: "off"
|
||||
|
||||
action:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
alias: Nursery Out of Bed
|
||||
id: automation_nursery_out_of_bed
|
||||
alias: Girls Room Out of Bed
|
||||
id: automation_girls_room_out_of_bed
|
||||
mode: single
|
||||
# Hide warnings when triggered while in delay.
|
||||
max_exceeded: silent
|
||||
@@ -11,12 +11,7 @@ trigger:
|
||||
to: "off"
|
||||
for: "00:00:05"
|
||||
- trigger: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
from: "on"
|
||||
to: "off"
|
||||
for: "00:00:05"
|
||||
- trigger: state
|
||||
entity_id: binary_sensor.nursery_door
|
||||
entity_id: binary_sensor.girls_room_door
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
@@ -65,9 +60,9 @@ condition:
|
||||
entity_id: binary_sensor.early_morning
|
||||
state: "on"
|
||||
|
||||
- alias: "Is Nursery Light Cycle turned off?"
|
||||
- alias: "Is Girls Room Light Cycle turned off?"
|
||||
condition: state
|
||||
entity_id: input_boolean.nursery_light_cycle
|
||||
entity_id: input_boolean.girls_room_light_cycle
|
||||
state: "off"
|
||||
|
||||
- alias: "Are the kids asleep?"
|
||||
@@ -100,13 +95,11 @@ action:
|
||||
entity_id: binary_sensor.computer_area_occupied
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: webrtc.dash_cast
|
||||
- action: dash_cast.load_url
|
||||
data:
|
||||
entity_id: media_player.computer_area_hub
|
||||
url: cam08_sub_opus
|
||||
force: true
|
||||
extra:
|
||||
mode: webrtc
|
||||
url: http://192.168.1.7:1984/stream.html?src=girls_room_cam
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
@@ -114,49 +107,14 @@ action:
|
||||
entity_id: binary_sensor.front_room_occupied
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: webrtc.dash_cast
|
||||
- action: dash_cast.load_url
|
||||
data:
|
||||
entity_id: media_player.front_room_hub
|
||||
url: cam08_sub_opus
|
||||
force: true
|
||||
extra:
|
||||
mode: webrtc
|
||||
url: http://192.168.1.7:1984/stream.html?src=girls_room_cam
|
||||
|
||||
- delay: "00:10:00"
|
||||
|
||||
- action: media_player.turn_off
|
||||
entity_id: media_player.front_room_hub, media_player.computer_area_hub
|
||||
|
||||
# - alias: "Flash some lights"
|
||||
# repeat:
|
||||
# count: 6
|
||||
# sequence:
|
||||
# - delay: 1
|
||||
# - action: light.toggle
|
||||
# target:
|
||||
# entity_id:
|
||||
# - light.entryway_hue
|
||||
# - light.computer_area_hue
|
||||
# - light.front_room_hue
|
||||
#- delay: '00:00:02'
|
||||
|
||||
# - alias: "Fix computer area lights"
|
||||
# action: automation.trigger
|
||||
# target:
|
||||
# entity_id: "automation.computer_area_lights_to_{{ computer_area }}"
|
||||
# data:
|
||||
# skip_condition: true
|
||||
|
||||
# - alias: "Fix front room lights"
|
||||
# action: automation.trigger
|
||||
# target:
|
||||
# entity_id: "automation.front_room_lights_to_{{ front_room }}"
|
||||
# data:
|
||||
# skip_condition: true
|
||||
|
||||
# - alias: "Fix entryway lights"
|
||||
# action: automation.trigger
|
||||
# target:
|
||||
# entity_id: "automation.entryway_lights_to_{{ entryway }}"
|
||||
# data:
|
||||
# skip_condition: true
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
alias: Nursery White Noise Off
|
||||
id: automation_nursery_white_noise_off
|
||||
alias: Girls Room White Noise Off
|
||||
id: automation_girls_room_white_noise_off
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
@@ -8,4 +8,4 @@ trigger:
|
||||
|
||||
action:
|
||||
- action: media_player.turn_off
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
entity_id: media_player.girls_room_clock
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
alias: Nursery White Noise On
|
||||
id: automation_nursery_white_noise_on
|
||||
alias: Girls Room White Noise On
|
||||
id: automation_girls_room_white_noise_on
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
@@ -7,7 +7,7 @@ trigger:
|
||||
to: "on"
|
||||
|
||||
- platform: state
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
entity_id: media_player.girls_room_clock
|
||||
to: "idle"
|
||||
for: 00:00:05
|
||||
|
||||
@@ -22,17 +22,17 @@ action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
entity_id: media_player.girls_room_clock
|
||||
state: "playing"
|
||||
sequence:
|
||||
- action: media_player.media_stop
|
||||
target:
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
entity_id: media_player.girls_room_clock
|
||||
|
||||
- action: script.search_and_play_playlist
|
||||
- action: music_assistant.play_media
|
||||
target:
|
||||
entity_id: media_player.ma_girls_room_clock
|
||||
data:
|
||||
speaker: media_player.ma_girls_room_hub
|
||||
search_term: Clever Kids Goodnight Songs
|
||||
volume: 0.25
|
||||
repeat: all
|
||||
shuffle: false
|
||||
media_type: playlist
|
||||
media_id: library://playlist/36
|
||||
enqueue: replace
|
||||
@@ -26,7 +26,7 @@ trigger:
|
||||
|
||||
# - platform: state
|
||||
# id: motion
|
||||
# entity_id: group.great_room_motion
|
||||
# entity_id: binary_sensor.great_room_motion
|
||||
# to: "on"
|
||||
|
||||
condition:
|
||||
|
||||
@@ -52,6 +52,6 @@ action:
|
||||
|
||||
# - action: input_select.select_option
|
||||
# target:
|
||||
# entity_id: input_select.nursery_mode
|
||||
# entity_id: input_select.girls_room_mode
|
||||
# data:
|
||||
# option: "Nightlight"
|
||||
|
||||
@@ -62,7 +62,7 @@ action:
|
||||
- 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) }}"
|
||||
- "{{ states('sensor.bar_hue_motion_sensor_illuminance') | float(default=0) >= states('input_number.kitchen_light_level_trigger') | float(default=0) }}"
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
data:
|
||||
|
||||
@@ -26,7 +26,7 @@ trigger:
|
||||
|
||||
# - platform: state
|
||||
# id: motion
|
||||
# entity_id: group.kitchen_motion
|
||||
# entity_id: binary_sensor.kitchen_motion
|
||||
# to: "on"
|
||||
|
||||
condition:
|
||||
|
||||
@@ -18,7 +18,7 @@ triggers:
|
||||
|
||||
- trigger: state
|
||||
id: motion_off
|
||||
entity_id: binary_sensor.mancave_motion_switch_home_security_motion_detection
|
||||
entity_id: binary_sensor.mancave_motion_switch_motion_detection
|
||||
to: "off"
|
||||
for: "00:15:00"
|
||||
|
||||
@@ -38,7 +38,7 @@ action:
|
||||
- condition: trigger
|
||||
id: "door_closed"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.mancave_motion_switch_home_security_motion_detection
|
||||
entity_id: binary_sensor.mancave_motion_switch_motion_detection
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: light.mancave
|
||||
|
||||
@@ -7,7 +7,7 @@ trigger:
|
||||
entity_id: input_select.master_bathroom_mode
|
||||
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
entity_id: input_boolean.bathroom_occupied
|
||||
to: "off"
|
||||
|
||||
#- platform: time_pattern
|
||||
@@ -26,7 +26,7 @@ condition:
|
||||
entity_id: input_select.master_bathroom_mode
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
entity_id: input_boolean.bathroom_occupied
|
||||
state: "off"
|
||||
action:
|
||||
- choose:
|
||||
@@ -40,7 +40,7 @@ action:
|
||||
entity_id: input_select.master_bathroom_mode
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
entity_id: input_boolean.bathroom_occupied
|
||||
state: "off"
|
||||
- condition: not
|
||||
conditions:
|
||||
@@ -62,4 +62,4 @@ action:
|
||||
- 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
|
||||
entity_id: switch.master_bathroom_motion_switch, switch.master_bathroom_switch
|
||||
|
||||
@@ -10,7 +10,7 @@ trigger:
|
||||
- input_select.master_bathroom_mode
|
||||
- input_select.automatic_light_profile
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
entity_id: input_boolean.bathroom_occupied
|
||||
to: "on"
|
||||
|
||||
# Only turn on the lights when necessary
|
||||
@@ -19,7 +19,7 @@ condition:
|
||||
conditions:
|
||||
# Either when motion is detected
|
||||
- condition: template
|
||||
value_template: "{{ trigger.entity_id == 'input_boolean.master_bathroom_occupied' }}"
|
||||
value_template: "{{ trigger.entity_id == 'input_boolean.bathroom_occupied' }}"
|
||||
# Or when the scene changes while the lights are already on
|
||||
- condition: and
|
||||
conditions:
|
||||
@@ -30,7 +30,7 @@ condition:
|
||||
- condition: template
|
||||
value_template: "{{ trigger.entity_id == 'input_select.automatic_light_profile' }}"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
entity_id: input_boolean.bathroom_occupied
|
||||
state: "on"
|
||||
|
||||
variables:
|
||||
@@ -44,7 +44,7 @@ action:
|
||||
target:
|
||||
entity_id:
|
||||
- switch.master_bathroom_motion_switch
|
||||
- switch.shower_switch
|
||||
- switch.master_bathroom_switch
|
||||
- choose:
|
||||
- alias: "If the room is set to manual, just turn the lights on"
|
||||
conditions:
|
||||
|
||||
@@ -10,7 +10,7 @@ trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- input_boolean.home_occupied
|
||||
- binary_sensor.master_bathroom_occupied
|
||||
- binary_sensor.bathroom_occupied
|
||||
to: "off"
|
||||
for: "00:10:00"
|
||||
|
||||
@@ -26,10 +26,10 @@ condition:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
entity_id: input_boolean.bathroom_occupied
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.master_bathroom_occupied
|
||||
entity_id: binary_sensor.bathroom_occupied
|
||||
state: "off"
|
||||
for: "00:10:00"
|
||||
|
||||
@@ -41,7 +41,7 @@ action:
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
entity_id: input_boolean.bathroom_occupied
|
||||
- conditions:
|
||||
- condition: not
|
||||
conditions:
|
||||
@@ -50,4 +50,4 @@ action:
|
||||
state: "Manual"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
entity_id: input_boolean.bathroom_occupied
|
||||
|
||||
@@ -5,14 +5,14 @@ mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.master_bathroom_occupied
|
||||
- binary_sensor.bathroom_occupied
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
entity_id: input_boolean.bathroom_occupied
|
||||
state: "off"
|
||||
|
||||
action:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
entity_id: input_boolean.bathroom_occupied
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
alias: Continue White Noise
|
||||
id: automation_continue_white_noise
|
||||
initial_state: "on"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
to: "off"
|
||||
for: "00:00:02"
|
||||
- platform: state
|
||||
entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
to: "idle"
|
||||
for: "00:00:02"
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_asleep
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
#- action: input_select.select_option
|
||||
# data:
|
||||
# entity_id: input_select.master_bedroom_mode
|
||||
# option: 'Off'
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.google_home
|
||||
option: "Master Bedroom"
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.ambient_sound
|
||||
option: "Thunderstorm"
|
||||
- action: input_number.set_value
|
||||
data:
|
||||
entity_id: input_number.volume_ambientsounds
|
||||
value: "0.3"
|
||||
- action: script.ambientsounds
|
||||
@@ -4,7 +4,7 @@ initial_state: "off"
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.pixel_7_charger_type
|
||||
entity_id: sensor.pixel_10_pro_charger_type
|
||||
to: "wireless"
|
||||
|
||||
- platform: state
|
||||
@@ -37,7 +37,7 @@ condition:
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_charger_type
|
||||
entity_id: sensor.pixel_10_pro_charger_type
|
||||
state: "wireless"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
|
||||
|
||||
@@ -21,7 +21,7 @@ action:
|
||||
sequence:
|
||||
- action: fan.turn_off
|
||||
target:
|
||||
entity_id: fan.master_bedroom
|
||||
entity_id: fan.master_bedroom_fan_light_switch_fan
|
||||
|
||||
- alias: "Humidity too high via manual run"
|
||||
conditions:
|
||||
@@ -31,7 +31,7 @@ action:
|
||||
sequence:
|
||||
- action: fan.turn_off
|
||||
target:
|
||||
entity_id: fan.master_bedroom
|
||||
entity_id: fan.master_bedroom_fan_light_switch_fan
|
||||
|
||||
- alias: "Humidity too low via trigger"
|
||||
conditions:
|
||||
@@ -42,7 +42,7 @@ action:
|
||||
data:
|
||||
percentage: 33
|
||||
target:
|
||||
entity_id: fan.master_bedroom
|
||||
entity_id: fan.master_bedroom_fan_light_switch_fan
|
||||
|
||||
- alias: "Humidity too low via manual run"
|
||||
conditions:
|
||||
@@ -54,4 +54,4 @@ action:
|
||||
data:
|
||||
percentage: 33
|
||||
target:
|
||||
entity_id: fan.master_bedroom
|
||||
entity_id: fan.master_bedroom_fan_light_switch_fan
|
||||
|
||||
@@ -9,7 +9,7 @@ trigger:
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
to: "off"
|
||||
|
||||
- platform: state
|
||||
@@ -48,7 +48,7 @@ condition:
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
@@ -66,7 +66,7 @@ action:
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
state: "off"
|
||||
- condition: not
|
||||
conditions:
|
||||
|
||||
@@ -14,21 +14,23 @@ trigger:
|
||||
- platform: state
|
||||
id: light_level
|
||||
entity_id: binary_sensor.master_bedroom_naturally_lit
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
from: "on"
|
||||
to: "off"
|
||||
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
to: "on"
|
||||
|
||||
- platform: state
|
||||
id: occupied
|
||||
entity_id: binary_sensor.master_bedroom_occupied
|
||||
entity_id:
|
||||
- binary_sensor.bedroom_occupied
|
||||
- input_boolean.bedroom_occupied
|
||||
to: "on"
|
||||
|
||||
# - platform: state
|
||||
# id: motion
|
||||
# entity_id: group.master_bedroom_motion
|
||||
# entity_id: binary_sensor.master_bedroom_motion
|
||||
# to: "on"
|
||||
|
||||
condition:
|
||||
@@ -45,7 +47,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,7 +58,7 @@ condition:
|
||||
- alias: "Light level below trigger amount"
|
||||
condition: state
|
||||
entity_id: binary_sensor.master_bedroom_naturally_lit
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
- alias: "Motion or occupancy were detected"
|
||||
condition: or
|
||||
@@ -74,11 +75,11 @@ condition:
|
||||
- condition: trigger
|
||||
id: "mode_change"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
state: "on"
|
||||
|
||||
variables:
|
||||
switch_name: light.master_bedroom_dimmer_light
|
||||
switch_name: light.master_bedroom_fan_light_switch_light
|
||||
light_name: master_bedroom_hue
|
||||
mode_name: input_select.master_bedroom_mode
|
||||
automatic_profile: input_select.automatic_light_profile
|
||||
@@ -88,110 +89,133 @@ action:
|
||||
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.master_bedroom_mode
|
||||
state: Manual
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
- alias: "If the room is set to adaptive, turn all adaptive switches on "
|
||||
conditions:
|
||||
- alias: "Room set to adaptive"
|
||||
condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: Adaptive
|
||||
sequence:
|
||||
- action: switch.turn_on
|
||||
target:
|
||||
entity_id:
|
||||
- switch.adaptive_lighting_bedroom
|
||||
- switch.adaptive_lighting_adapt_brightness_bedroom
|
||||
- switch.adaptive_lighting_adapt_color_bedroom
|
||||
default:
|
||||
- action: switch.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- switch.adaptive_lighting_bedroom
|
||||
- switch.adaptive_lighting_adapt_brightness_bedroom
|
||||
- switch.adaptive_lighting_adapt_color_bedroom
|
||||
|
||||
- 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_bedroom_mode
|
||||
state: Manual
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.master_bedroom_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.master_bedroom_mode
|
||||
state: Auto
|
||||
- alias: "Lights are on"
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_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, 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.master_bedroom_mode
|
||||
state: Auto
|
||||
- alias: "Lights are on"
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_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.master_bedroom_mode
|
||||
state: Auto
|
||||
- alias: "Lights are on"
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_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 on, change to the Automatic Light Profile scene with a transition"
|
||||
conditions:
|
||||
- alias: "Room set to auto"
|
||||
condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: Auto
|
||||
- alias: "Lights are on"
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_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.master_bedroom_mode
|
||||
state: Auto
|
||||
- alias: "Lights are off"
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_hue
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: 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:
|
||||
- alias: "Room set to auto"
|
||||
condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: Auto
|
||||
- alias: "Lights are off"
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_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 Master Bedroom Mode scene with a short transition"
|
||||
conditions:
|
||||
- alias: "Room not manual or auto and lights are on"
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_hue
|
||||
state: "on"
|
||||
- alias: "Room set to Nightlight"
|
||||
condition: state
|
||||
entity_id: input_select.master_bedroom_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, the lights are on, and the room is set to Nightlight change to the Master Bedroom Mode scene with a short transition"
|
||||
conditions:
|
||||
- alias: "Room not manual or auto and lights are on"
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_hue
|
||||
state: 'on'
|
||||
- alias: "Room set to Nightlight"
|
||||
condition: state
|
||||
entity_id: input_select.master_bedroom_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 Master Bedroom Mode scene with a transition"
|
||||
conditions:
|
||||
- alias: "Room not manual or auto and lights are on"
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_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 Bedroom Mode scene with a transition"
|
||||
conditions:
|
||||
- alias: "Room not manual or auto and lights are on"
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_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 Bedroom Mode scene without a transition"
|
||||
conditions:
|
||||
- alias: "Room not manual or auto and lights are off"
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_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 Bedroom Mode scene without a transition"
|
||||
conditions:
|
||||
- alias: "Room not manual or auto and lights are off"
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_hue
|
||||
state: 'off'
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
target:
|
||||
entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
|
||||
|
||||
- delay: 1
|
||||
- delay: 1
|
||||
|
||||
@@ -10,7 +10,7 @@ trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- input_boolean.home_occupied
|
||||
- binary_sensor.master_bedroom_occupied
|
||||
- binary_sensor.bedroom_occupied
|
||||
to: "off"
|
||||
for: "00:05:00"
|
||||
|
||||
@@ -29,7 +29,7 @@ condition:
|
||||
- "unavailable"
|
||||
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
state: "on"
|
||||
|
||||
- condition: or
|
||||
@@ -45,7 +45,7 @@ condition:
|
||||
for:
|
||||
minutes: 5
|
||||
- condition: state
|
||||
entity_id: binary_sensor.master_bedroom_occupied
|
||||
entity_id: binary_sensor.bedroom_occupied
|
||||
state: "off"
|
||||
for:
|
||||
minutes: 5
|
||||
@@ -57,7 +57,7 @@ action:
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
- conditions:
|
||||
- condition: not
|
||||
conditions:
|
||||
@@ -66,4 +66,4 @@ action:
|
||||
state: "Manual"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
|
||||
@@ -5,14 +5,14 @@ mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.master_bedroom_occupied
|
||||
- binary_sensor.bedroom_occupied
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
state: "off"
|
||||
|
||||
action:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
|
||||
@@ -10,4 +10,9 @@ action:
|
||||
- action: media_player.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
entity_id: media_player.ma_bedroom_hub
|
||||
|
||||
- action: switch.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.adaptive_lighting_sleep_mode_bedroom
|
||||
@@ -7,10 +7,15 @@ trigger:
|
||||
to: "on"
|
||||
|
||||
action:
|
||||
- action: script.search_and_play_playlist
|
||||
- action: music_assistant.play_media
|
||||
target:
|
||||
entity_id: media_player.ma_bedroom_hub
|
||||
data:
|
||||
speaker: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
search_term: CleverThunderstorm
|
||||
volume: 0.25
|
||||
repeat: all
|
||||
shuffle: false
|
||||
media_type: playlist
|
||||
media_id: library://playlist/34
|
||||
enqueue: replace
|
||||
|
||||
- action: switch.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.adaptive_lighting_sleep_mode_bedroom
|
||||
|
||||
@@ -9,26 +9,26 @@ triggers:
|
||||
id: start
|
||||
|
||||
- trigger: numeric_state
|
||||
entity_id: sensor.nursery_multisensor_air_temperature
|
||||
id: nursery_off
|
||||
below: input_number.nursery_fan_low_temp
|
||||
entity_id: sensor.girls_room_multisensor_air_temperature
|
||||
id: girls_room_off
|
||||
below: input_number.girls_room_fan_low_temp
|
||||
|
||||
- trigger: numeric_state
|
||||
entity_id: sensor.nursery_multisensor_air_temperature
|
||||
id: nursery_low
|
||||
above: input_number.nursery_fan_low_temp
|
||||
below: input_number.nursery_fan_medium_temp
|
||||
entity_id: sensor.girls_room_multisensor_air_temperature
|
||||
id: girls_room_low
|
||||
above: input_number.girls_room_fan_low_temp
|
||||
below: input_number.girls_room_fan_medium_temp
|
||||
|
||||
- trigger: numeric_state
|
||||
entity_id: sensor.nursery_multisensor_air_temperature
|
||||
id: nursery_mid
|
||||
above: input_number.nursery_fan_medium_temp
|
||||
below: input_number.nursery_fan_high_temp
|
||||
entity_id: sensor.girls_room_multisensor_air_temperature
|
||||
id: girls_room_mid
|
||||
above: input_number.girls_room_fan_medium_temp
|
||||
below: input_number.girls_room_fan_high_temp
|
||||
|
||||
- trigger: numeric_state
|
||||
entity_id: sensor.nursery_multisensor_air_temperature
|
||||
id: nursery_high
|
||||
above: input_number.nursery_fan_high_temp
|
||||
entity_id: sensor.girls_room_multisensor_air_temperature
|
||||
id: girls_room_high
|
||||
above: input_number.girls_room_fan_high_temp
|
||||
|
||||
- trigger: numeric_state
|
||||
entity_id: sensor.master_bedroom_multisensor_air_temperature
|
||||
@@ -53,10 +53,10 @@ triggers:
|
||||
id: mbr_high
|
||||
|
||||
- trigger: state
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
|
||||
- trigger: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
|
||||
- trigger: state
|
||||
entity_id: input_boolean.girls_room_asleep
|
||||
@@ -74,7 +74,7 @@ condition:
|
||||
action:
|
||||
- alias: "Calculate fan speeds"
|
||||
variables:
|
||||
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) }}"
|
||||
girls_room_fan_speed: "{{((states('sensor.girls_room_multisensor_air_temperature') | float(default=0) - states('input_number.girls_room_fan_min_temp') | float(default=0))/(states('input_number.girls_room_fan_high_temp') | float(default=1) - states('input_number.girls_room_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) }}"
|
||||
|
||||
# - action: logbook.log
|
||||
@@ -83,115 +83,115 @@ action:
|
||||
# entity_id: automation.automatic_fan_speeds
|
||||
# message: >
|
||||
# Outdoor Air Temp: {{states('sensor.front_yard_thermostat_temperature') | float(default=0)}}
|
||||
# Nursery Air Temp: {{states('sensor.nursery_multisensor_air_temperature') | float(default=0)}}
|
||||
# Nursery Min Temp: {{states('input_number.nursery_fan_min_temp') | float(default=0)}}
|
||||
# Nursery High Temp: {{states('input_number.nursery_fan_high_temp') | float(default=0)}}
|
||||
# Nursery Calculated: {{ nursery_fan_speed }}
|
||||
# Girls Room Air Temp: {{states('sensor.girls_room_multisensor_air_temperature') | float(default=0)}}
|
||||
# Girls Room Min Temp: {{states('input_number.girls_room_fan_min_temp') | float(default=0)}}
|
||||
# Girls Room High Temp: {{states('input_number.girls_room_fan_high_temp') | float(default=0)}}
|
||||
# Girls Room Calculated: {{ girls_room_fan_speed }}
|
||||
# Master Bedroom Air Temp: {{states('sensor.master_bedroom_multisensor_air_temperature') | float(default=0)}}
|
||||
# Master Bedroom Min Temp: {{states('input_number.master_bedroom_fan_min_temp') | float(default=0)}}
|
||||
# Master Bedroom High Temp: {{states('input_number.master_bedroom_fan_high_temp') | float(default=0)}}
|
||||
# Master Bedroom Calculated: {{ master_bedroom_fan_speed }}
|
||||
|
||||
- alias: "Set Nursery fan speed"
|
||||
- alias: "Set Girls Room fan speed"
|
||||
choose:
|
||||
- conditions:
|
||||
- alias: "It is too cold outside to start the nursery fan"
|
||||
- alias: "It is too cold outside to start the girls_room fan"
|
||||
condition: numeric_state
|
||||
entity_id: sensor.nursery_multisensor_air_temperature
|
||||
below: input_number.nursery_fan_min_temp
|
||||
- alias: "Nursery fan on"
|
||||
entity_id: sensor.girls_room_multisensor_air_temperature
|
||||
below: input_number.girls_room_fan_min_temp
|
||||
- alias: "Girls Room fan on"
|
||||
condition: state
|
||||
entity_id: fan.nursery
|
||||
entity_id: fan.girls_room_fan_light_switch_fan
|
||||
state: "on"
|
||||
sequence:
|
||||
- alias: "Turn nursery fan off because it is too cold outside"
|
||||
- alias: "Turn girls_room fan off because it is too cold outside"
|
||||
action: fan.turn_off
|
||||
target:
|
||||
entity_id: fan.nursery
|
||||
entity_id: fan.girls_room_fan_light_switch_fan
|
||||
- conditions:
|
||||
- alias: "Nusery not occupied and window is closed"
|
||||
condition: state
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
state: "off"
|
||||
- alias: "Nusery not asleep"
|
||||
condition: state
|
||||
entity_id: input_boolean.girls_room_asleep
|
||||
state: "off"
|
||||
- alias: "Nursery fan on"
|
||||
- alias: "Girls Room fan on"
|
||||
condition: state
|
||||
entity_id: fan.nursery
|
||||
entity_id: fan.girls_room_fan_light_switch_fan
|
||||
state: "on"
|
||||
- alias: "Nursery window is closed"
|
||||
- alias: "Girls Room window is closed"
|
||||
condition: state
|
||||
entity_id: binary_sensor.nursery_window_contact
|
||||
entity_id: binary_sensor.girls_room_window_contact
|
||||
state: "off"
|
||||
sequence:
|
||||
- alias: "Turn nursery fan off because room isn't occupied"
|
||||
- alias: "Turn girls_room fan off because room isn't occupied"
|
||||
action: fan.turn_off
|
||||
target:
|
||||
entity_id: fan.nursery
|
||||
entity_id: fan.girls_room_fan_light_switch_fan
|
||||
- conditions:
|
||||
- alias: "Nursery below low"
|
||||
- alias: "Girls Room below low"
|
||||
condition: template
|
||||
value_template: "{{states('sensor.nursery_multisensor_air_temperature') | float(default=0) <= states('input_number.nursery_fan_min_temp') | float(default=0)}}"
|
||||
value_template: "{{states('sensor.girls_room_multisensor_air_temperature') | float(default=0) <= states('input_number.girls_room_fan_min_temp') | float(default=0)}}"
|
||||
|
||||
- alias: "Nursery fan on"
|
||||
- alias: "Girls Room fan on"
|
||||
condition: state
|
||||
entity_id: fan.nursery
|
||||
entity_id: fan.girls_room_fan_light_switch_fan
|
||||
state: "on"
|
||||
sequence:
|
||||
- alias: "Turn nursery fan off because the room is too cool"
|
||||
- alias: "Turn girls_room fan off because the room is too cool"
|
||||
action: fan.turn_off
|
||||
target:
|
||||
entity_id: fan.nursery
|
||||
entity_id: fan.girls_room_fan_light_switch_fan
|
||||
- conditions:
|
||||
- alias: "Nursery is occupied"
|
||||
- alias: "Girls Room is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
state: "on"
|
||||
- alias: "Nusery above high"
|
||||
condition: template
|
||||
value_template: "{{states('sensor.nursery_multisensor_air_temperature') | float(default=0) > states('input_number.nursery_fan_high_temp') | float(default=0)}}"
|
||||
value_template: "{{states('sensor.girls_room_multisensor_air_temperature') | float(default=0) > states('input_number.girls_room_fan_high_temp') | float(default=0)}}"
|
||||
|
||||
sequence:
|
||||
- alias: "Turn nursery fan on to percentage speed"
|
||||
- alias: "Turn girls_room fan on to percentage speed"
|
||||
action: fan.set_percentage
|
||||
target:
|
||||
entity_id: fan.nursery
|
||||
entity_id: fan.girls_room_fan_light_switch_fan
|
||||
data:
|
||||
percentage: 100
|
||||
|
||||
- conditions:
|
||||
- alias: "Nursery is occupied"
|
||||
- alias: "Girls Room is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
state: "on"
|
||||
- alias: "Nusery above medium"
|
||||
condition: template
|
||||
value_template: "{{states('sensor.nursery_multisensor_air_temperature') | float(default=0) > states('input_number.nursery_fan_medium_temp') | float(default=0)}}"
|
||||
value_template: "{{states('sensor.girls_room_multisensor_air_temperature') | float(default=0) > states('input_number.girls_room_fan_medium_temp') | float(default=0)}}"
|
||||
|
||||
sequence:
|
||||
- alias: "Turn nursery fan on to percentage speed"
|
||||
- alias: "Turn girls_room fan on to percentage speed"
|
||||
action: fan.set_percentage
|
||||
target:
|
||||
entity_id: fan.nursery
|
||||
entity_id: fan.girls_room_fan_light_switch_fan
|
||||
data:
|
||||
percentage: 66
|
||||
|
||||
- conditions:
|
||||
- alias: "Nursery is occupied"
|
||||
- alias: "Girls Room is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.nursery_occupied
|
||||
entity_id: input_boolean.girls_room_occupied
|
||||
state: "on"
|
||||
- alias: "Nusery above low"
|
||||
condition: template
|
||||
value_template: "{{states('sensor.nursery_multisensor_air_temperature') | float(default=0) > states('input_number.nursery_fan_low_temp') | float(default=0)}}"
|
||||
value_template: "{{states('sensor.girls_room_multisensor_air_temperature') | float(default=0) > states('input_number.girls_room_fan_low_temp') | float(default=0)}}"
|
||||
|
||||
sequence:
|
||||
- alias: "Turn nursery fan on to percentage speed"
|
||||
- alias: "Turn girls_room fan on to percentage speed"
|
||||
action: fan.set_percentage
|
||||
target:
|
||||
entity_id: fan.nursery
|
||||
entity_id: fan.girls_room_fan_light_switch_fan
|
||||
data:
|
||||
percentage: 33
|
||||
|
||||
@@ -206,11 +206,11 @@ action:
|
||||
- alias: "Turn master bedroom fan off because it is too cold outside"
|
||||
action: fan.turn_off
|
||||
target:
|
||||
entity_id: fan.master_bedroom
|
||||
entity_id: fan.master_bedroom_fan_light_switch_fan
|
||||
- conditions:
|
||||
- alias: "Master Bedroom not occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
state: "off"
|
||||
- alias: "Master Bedroom not asleep"
|
||||
condition: state
|
||||
@@ -218,7 +218,7 @@ action:
|
||||
state: "off"
|
||||
- alias: "Master Bedroom fan on"
|
||||
condition: state
|
||||
entity_id: fan.master_bedroom
|
||||
entity_id: fan.master_bedroom_fan_light_switch_fan
|
||||
state: "on"
|
||||
- alias: "Master bedroom window is closed"
|
||||
condition: state
|
||||
@@ -228,7 +228,7 @@ action:
|
||||
- alias: "Turn master bedroom fan off because room isn't occupied"
|
||||
action: fan.turn_off
|
||||
target:
|
||||
entity_id: fan.master_bedroom
|
||||
entity_id: fan.master_bedroom_fan_light_switch_fan
|
||||
|
||||
- conditions:
|
||||
- alias: "Master Bedroom below low"
|
||||
@@ -237,18 +237,18 @@ action:
|
||||
|
||||
- alias: "Master Bedroom fan on"
|
||||
condition: state
|
||||
entity_id: fan.master_bedroom
|
||||
entity_id: fan.master_bedroom_fan_light_switch_fan
|
||||
state: "on"
|
||||
sequence:
|
||||
- alias: "Turn master bedroom fan off because the room is too cool"
|
||||
action: fan.turn_off
|
||||
target:
|
||||
entity_id: fan.master_bedroom
|
||||
entity_id: fan.master_bedroom_fan_light_switch_fan
|
||||
|
||||
- conditions:
|
||||
- alias: "Master Bedroom is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
state: "on"
|
||||
- alias: "Master Bedroom above high"
|
||||
condition: template
|
||||
@@ -258,14 +258,14 @@ action:
|
||||
- alias: "Turn master bedroom fan on to percentage speed"
|
||||
action: fan.set_percentage
|
||||
target:
|
||||
entity_id: fan.master_bedroom
|
||||
entity_id: fan.master_bedroom_fan_light_switch_fan
|
||||
data:
|
||||
percentage: 100
|
||||
|
||||
- conditions:
|
||||
- alias: "Master Bedroom is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
state: "on"
|
||||
- alias: "Master Bedroom above medium"
|
||||
condition: template
|
||||
@@ -275,14 +275,14 @@ action:
|
||||
- alias: "Turn master bedroom fan on to percentage speed"
|
||||
action: fan.set_percentage
|
||||
target:
|
||||
entity_id: fan.master_bedroom
|
||||
entity_id: fan.master_bedroom_fan_light_switch_fan
|
||||
data:
|
||||
percentage: 66
|
||||
|
||||
- conditions:
|
||||
- alias: "Master Bedroom is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
entity_id: input_boolean.bedroom_occupied
|
||||
state: "on"
|
||||
- alias: "Master Bedroom above low"
|
||||
condition: template
|
||||
@@ -292,6 +292,6 @@ action:
|
||||
- alias: "Turn master bedroom fan on to percentage speed"
|
||||
action: fan.set_percentage
|
||||
target:
|
||||
entity_id: fan.master_bedroom
|
||||
entity_id: fan.master_bedroom_fan_light_switch_fan
|
||||
data:
|
||||
percentage: 33
|
||||
|
||||
@@ -1,102 +1,102 @@
|
||||
alias: Dishwasher Done
|
||||
id: dishwashwer_done
|
||||
description: "Dishwasher just finished"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.empty_dishwasher
|
||||
from: "off"
|
||||
to: "on"
|
||||
# alias: Dishwasher Done
|
||||
# id: dishwashwer_done
|
||||
# description: "Dishwasher just finished"
|
||||
# trigger:
|
||||
# - platform: state
|
||||
# entity_id: input_boolean.empty_dishwasher
|
||||
# from: "off"
|
||||
# to: "on"
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
# - platform: homeassistant
|
||||
# event: start
|
||||
|
||||
condition:
|
||||
- alias: "The home is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: "on"
|
||||
# condition:
|
||||
# - alias: "The home is occupied"
|
||||
# condition: state
|
||||
# entity_id: input_boolean.home_occupied
|
||||
# state: "on"
|
||||
|
||||
- alias: "Its not bedtime"
|
||||
condition: state
|
||||
entity_id: input_boolean.bedtime
|
||||
state: "off"
|
||||
# - alias: "Its not bedtime"
|
||||
# condition: state
|
||||
# entity_id: input_boolean.bedtime
|
||||
# state: "off"
|
||||
|
||||
action:
|
||||
- repeat:
|
||||
while: "{{ is_state('input_boolean.empty_dishwasher','on') }}"
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.allow_announcements
|
||||
state: "on"
|
||||
# action:
|
||||
# - repeat:
|
||||
# while: "{{ is_state('input_boolean.empty_dishwasher','on') }}"
|
||||
# sequence:
|
||||
# - choose:
|
||||
# - conditions:
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.allow_announcements
|
||||
# state: "on"
|
||||
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_audio_mode
|
||||
state: in_communication
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_audio_mode
|
||||
state: in_call
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_bedtime
|
||||
state: "on"
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.announcement_pending
|
||||
# state: 'on'
|
||||
# - condition: not
|
||||
# conditions:
|
||||
# - condition: state
|
||||
# entity_id: sensor.pixel_7_audio_mode
|
||||
# state: in_communication
|
||||
# - condition: state
|
||||
# entity_id: sensor.pixel_7_audio_mode
|
||||
# state: in_call
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.kids_bedtime
|
||||
# state: "on"
|
||||
# # - condition: state
|
||||
# # entity_id: input_boolean.announcement_pending
|
||||
# # state: 'on'
|
||||
|
||||
sequence:
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_dishwasher_done
|
||||
- action: input_boolean.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_dishwasher_done
|
||||
# - input_boolean.announcement_pending
|
||||
# sequence:
|
||||
# - action: input_boolean.turn_off
|
||||
# data: {}
|
||||
# target:
|
||||
# entity_id:
|
||||
# - input_boolean.announce_dishwasher_done
|
||||
# - action: input_boolean.turn_on
|
||||
# data: {}
|
||||
# target:
|
||||
# entity_id:
|
||||
# - input_boolean.announce_dishwasher_done
|
||||
# # - input_boolean.announcement_pending
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
|
||||
# - choose:
|
||||
# - conditions:
|
||||
# - "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
|
||||
|
||||
sequence:
|
||||
- action: 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') }}"
|
||||
# - choose:
|
||||
# - conditions:
|
||||
# - "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
|
||||
|
||||
sequence:
|
||||
- action: notify.dreamsurface
|
||||
data:
|
||||
message: The dishwasher is done
|
||||
# sequence:
|
||||
# - action: notify.dreamsurface
|
||||
# data:
|
||||
# message: The dishwasher is done
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "off"
|
||||
# - choose:
|
||||
# - conditions:
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.clint_home
|
||||
# state: "off"
|
||||
|
||||
sequence:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
data:
|
||||
message: The dishwasher is done
|
||||
data:
|
||||
tag: "dishwasher-complete"
|
||||
notification_icon: mdi:dishwasher-alert
|
||||
channel: Appliance
|
||||
# sequence:
|
||||
# - action: notify.mobile_app_pixel_10_pro
|
||||
# data:
|
||||
# message: The dishwasher is done
|
||||
# data:
|
||||
# tag: "dishwasher-complete"
|
||||
# notification_icon: mdi:dishwasher-alert
|
||||
# channel: Appliance
|
||||
|
||||
- delay:
|
||||
minutes: 30
|
||||
# - delay:
|
||||
# minutes: 30
|
||||
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_dishwasher_done
|
||||
# - action: input_boolean.turn_off
|
||||
# data: {}
|
||||
# target:
|
||||
# entity_id:
|
||||
# - input_boolean.announce_dishwasher_done
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
id: girls_room_dimmer_on
|
||||
alias: Girls Room Dimmer On
|
||||
mode: single
|
||||
# Hide warnings when triggered while in delay.
|
||||
max_exceeded: silent
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: light.girls_room_fan_light_switch_main
|
||||
|
||||
condition:
|
||||
- alias: "Girls Room Dimmer Less Than 255"
|
||||
condition: numeric_state
|
||||
entity_id: light.girls_room_fan_light_switch_main
|
||||
attribute: brightness
|
||||
below: 255
|
||||
|
||||
action:
|
||||
- alias: "Set Girls Room Dimmer to 255"
|
||||
action: light.turn_on
|
||||
target:
|
||||
entity_id: light.girls_room_fan_light_switch_main
|
||||
data:
|
||||
brightness: 255
|
||||
+4
-4
@@ -1,12 +1,12 @@
|
||||
id: nursery_wled_changed
|
||||
alias: Nursery WLED Changed
|
||||
id: girls_room_wled_changed
|
||||
alias: Girls Room WLED Changed
|
||||
mode: single
|
||||
# Hide warnings when triggered while in delay.
|
||||
max_exceeded: silent
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_select.nursery_wled
|
||||
entity_id: input_select.girls_room_wled
|
||||
|
||||
action:
|
||||
#- alias: "Clear segment first"
|
||||
@@ -17,7 +17,7 @@ action:
|
||||
- alias: "Update wled presets for both beds"
|
||||
action: select.select_option
|
||||
data:
|
||||
option: "{{states('input_select.nursery_wled')}}"
|
||||
option: "{{states('input_select.girls_room_wled')}}"
|
||||
target:
|
||||
entity_id:
|
||||
- select.black_bed_wled_preset
|
||||
@@ -14,6 +14,12 @@ trigger:
|
||||
from: "on"
|
||||
to: "off"
|
||||
|
||||
- platform: state
|
||||
id: evening
|
||||
entity_id: binary_sensor.evening
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
# condition:
|
||||
# - alias: "The home is occupied"
|
||||
# condition: state
|
||||
@@ -46,3 +52,13 @@ action:
|
||||
data: {}
|
||||
target:
|
||||
entity_id: button.dreamsurface_normal_brightness
|
||||
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: evening
|
||||
|
||||
sequence:
|
||||
- action: button.press
|
||||
data: {}
|
||||
target:
|
||||
entity_id: button.dreamsurface_dim_brightness
|
||||
|
||||
@@ -19,7 +19,7 @@ variables:
|
||||
3ce88b51335de032397b61e9003efe7b: mancave_motion_switch
|
||||
bee0ff46ae368c83ebd408ea7196f226: master_bathroom_motion_switch
|
||||
69bfa35651cd293ad221f32d3f836669: master_bedroom_closet_motion_switch
|
||||
ab40de79ce13e074ce0a820c47db717c: nursery_closet_motion_switch
|
||||
ab40de79ce13e074ce0a820c47db717c: girls_room_closet_motion_switch
|
||||
8291a2e240629c547b08733faaf53e90: shower_switch
|
||||
c0d80ce8eab4bdebce5343ce4a748f34: storage_room_switch
|
||||
8d77dcb0ee41302d5de67b4c333f5099: utility_room_motion_switch
|
||||
|
||||
@@ -13,7 +13,7 @@ variables:
|
||||
tags:
|
||||
# Lights: Reading
|
||||
04-AE-91-3A-B4-6D-80:
|
||||
input_select: nursery_wled
|
||||
input_select: girls_room_wled
|
||||
select_option: Read
|
||||
light_command: "No change"
|
||||
#preset: 6
|
||||
@@ -21,7 +21,7 @@ variables:
|
||||
|
||||
# Lights: Bedtime
|
||||
04-8F-50-3A-B4-6D-80:
|
||||
input_select: nursery_wled
|
||||
input_select: girls_room_wled
|
||||
select_option: Bedtime
|
||||
light_command: "No change"
|
||||
#preset: 3
|
||||
@@ -61,7 +61,7 @@ variables:
|
||||
|
||||
# Lights: Twinkle
|
||||
04-7C-B8-3A-B4-6D-80:
|
||||
input_select: nursery_wled
|
||||
input_select: girls_room_wled
|
||||
select_option: Twinkle
|
||||
light_command: "No change"
|
||||
#preset: 2
|
||||
@@ -69,7 +69,7 @@ variables:
|
||||
|
||||
# Lights:Dim
|
||||
04-98-2F-3A-B4-6D-80:
|
||||
input_select: nursery_wled
|
||||
input_select: girls_room_wled
|
||||
select_option: "Off"
|
||||
light_command: "Dimmed"
|
||||
#preset: -2
|
||||
@@ -77,7 +77,7 @@ variables:
|
||||
|
||||
# Lights: Normal
|
||||
04-0C-22-3A-B4-6D-81:
|
||||
input_select: nursery_wled
|
||||
input_select: girls_room_wled
|
||||
select_option: "Off"
|
||||
light_command: "Auto"
|
||||
#preset: -1
|
||||
@@ -85,7 +85,7 @@ variables:
|
||||
|
||||
# Lights: Off
|
||||
04-6D-46-3A-B4-6D-81:
|
||||
input_select: nursery_wled
|
||||
input_select: girls_room_wled
|
||||
select_option: "Off"
|
||||
light_command: "Off"
|
||||
#preset: 0
|
||||
@@ -120,16 +120,16 @@ action:
|
||||
sequence:
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.nursery_mode
|
||||
entity_id: input_select.girls_room_mode
|
||||
option: "{{ light_command }}"
|
||||
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: "{{ input_select | string == 'nursery_wled'}}"
|
||||
value_template: "{{ input_select | string == 'girls_room_wled'}}"
|
||||
sequence:
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.nursery_wled
|
||||
entity_id: input_select.girls_room_wled
|
||||
option: "{{ select_option }}"
|
||||
|
||||
- conditions:
|
||||
|
||||
@@ -7,7 +7,7 @@ max_exceeded: silent
|
||||
variables:
|
||||
# Map scanner device ID to media player entity ID
|
||||
sources:
|
||||
299e280bcc3579ca9b3ef714677dbf9b: girls_room_hub
|
||||
299e280bcc3579ca9b3ef714677dbf9b: girls_room_clock
|
||||
75060fd1afdd90be: upstairs_speakers
|
||||
# Map tag ID to content
|
||||
tags:
|
||||
|
||||
@@ -8,7 +8,7 @@ max_exceeded: silent
|
||||
variables:
|
||||
# Map scanner device ID to media player entity ID
|
||||
sources:
|
||||
299e280bcc3579ca9b3ef714677dbf9b: girls_room_hub
|
||||
299e280bcc3579ca9b3ef714677dbf9b: girls_room_clock
|
||||
75060fd1afdd90be: front_room_hub
|
||||
# Map tag ID to content
|
||||
tags:
|
||||
|
||||
@@ -7,7 +7,7 @@ max_exceeded: silent
|
||||
variables:
|
||||
# Map scanner device ID to media player entity ID
|
||||
devices:
|
||||
299e280bcc3579ca9b3ef714677dbf9b: media_player.girls_room_hub
|
||||
299e280bcc3579ca9b3ef714677dbf9b: media_player.girls_room_clock
|
||||
|
||||
# Map tag ID to content
|
||||
tags:
|
||||
|
||||
@@ -55,7 +55,7 @@ action:
|
||||
state: "off"
|
||||
|
||||
sequence:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_10_pro
|
||||
data:
|
||||
message: The kitchen fridge has been open for too long!
|
||||
|
||||
|
||||
@@ -6,12 +6,12 @@ max_exceeded: silent
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: light.master_bedroom_dimmer_main
|
||||
entity_id: light.master_bedroom_fan_light_switch_main
|
||||
|
||||
condition:
|
||||
- alias: "Master Bedroom Dimmer Less Than 255"
|
||||
condition: numeric_state
|
||||
entity_id: light.master_bedroom_dimmer_main
|
||||
entity_id: light.master_bedroom_fan_light_switch_main
|
||||
attribute: brightness
|
||||
below: 255
|
||||
|
||||
@@ -19,6 +19,6 @@ action:
|
||||
- alias: "Set Master Bedroom Dimmer to 255"
|
||||
action: light.turn_on
|
||||
target:
|
||||
entity_id: light.master_bedroom_dimmer_main
|
||||
entity_id: light.master_bedroom_fan_light_switch_main
|
||||
data:
|
||||
brightness: 255
|
||||
|
||||
@@ -6,12 +6,12 @@ id: automation_new_mail
|
||||
trigger:
|
||||
- id: new_mail
|
||||
platform: numeric_state
|
||||
entity_id: sensor.mail_usps_mail
|
||||
entity_id: sensor.imap_gmail_com_mail_usps_mail
|
||||
above: 0
|
||||
|
||||
- id: no_mail
|
||||
platform: numeric_state
|
||||
entity_id: sensor.mail_usps_mail
|
||||
entity_id: sensor.imap_gmail_com_mail_usps_mail
|
||||
below: 1
|
||||
|
||||
- platform: homeassistant
|
||||
@@ -24,7 +24,7 @@ action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.mail_usps_mail
|
||||
entity_id: sensor.imap_gmail_com_mail_usps_mail
|
||||
above: 0
|
||||
|
||||
sequence:
|
||||
@@ -34,7 +34,7 @@ action:
|
||||
|
||||
- conditions:
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.mail_usps_mail
|
||||
entity_id: sensor.imap_gmail_com_mail_usps_mail
|
||||
below: 1
|
||||
|
||||
sequence:
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
id: nursery_dimmer_on
|
||||
alias: Nursery Dimmer On
|
||||
mode: single
|
||||
# Hide warnings when triggered while in delay.
|
||||
max_exceeded: silent
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: light.nursery_dimmer_main
|
||||
|
||||
condition:
|
||||
- alias: "Nursery Dimmer Less Than 255"
|
||||
condition: numeric_state
|
||||
entity_id: light.nursery_dimmer_main
|
||||
attribute: brightness
|
||||
below: 255
|
||||
|
||||
action:
|
||||
- alias: "Set Nursery Dimmer to 255"
|
||||
action: light.turn_on
|
||||
target:
|
||||
entity_id: light.nursery_dimmer_main
|
||||
data:
|
||||
brightness: 255
|
||||
@@ -20,8 +20,29 @@ action:
|
||||
target:
|
||||
entity_id: climate.thermostat
|
||||
|
||||
- action: climate.set_preset_mode
|
||||
target:
|
||||
entity_id: climate.thermostat
|
||||
data:
|
||||
preset_mode: "auto"
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: "on"
|
||||
|
||||
sequence:
|
||||
- action: climate.set_preset_mode
|
||||
target:
|
||||
entity_id: climate.thermostat
|
||||
data:
|
||||
preset_mode: "home"
|
||||
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: "off"
|
||||
|
||||
sequence:
|
||||
- action: climate.set_preset_mode
|
||||
target:
|
||||
entity_id: climate.thermostat
|
||||
data:
|
||||
preset_mode: "away"
|
||||
|
||||
|
||||
|
||||
@@ -1,111 +0,0 @@
|
||||
alias: Tumble Dryer Done
|
||||
id: tumble_dryer_done
|
||||
description: "Dryer just finished"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.fold_clothes
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
condition:
|
||||
- alias: "The home is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: "on"
|
||||
|
||||
- alias: "Its not bedtime"
|
||||
condition: state
|
||||
entity_id: input_boolean.bedtime
|
||||
state: "off"
|
||||
|
||||
- condition: state
|
||||
entity_id: input_boolean.allow_announcements
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- repeat:
|
||||
while: "{{ is_state('input_boolean.fold_clothes','on') }}"
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.utility_room_occupied
|
||||
state: "off"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_audio_mode
|
||||
state: in_communication
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_audio_mode
|
||||
state: in_call
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_bedtime
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.bedtime
|
||||
state: "on"
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.announcement_pending
|
||||
# state: 'on'
|
||||
|
||||
sequence:
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_dryer_done
|
||||
- action: input_boolean.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_dryer_done
|
||||
# - input_boolean.announcement_pending
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- "{{ is_state('binary_sensor.dreambox_recently_active','on') }}"
|
||||
|
||||
sequence:
|
||||
- action: notify.dreambox
|
||||
data:
|
||||
message: The dryer is done
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- "{{ is_state('binary_sensor.dreamsurface_recently_active','on') }}"
|
||||
|
||||
sequence:
|
||||
- action: notify.dreamsurface
|
||||
data:
|
||||
message: The dryer is done
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "off"
|
||||
|
||||
sequence:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
data:
|
||||
message: The dryer is done
|
||||
data:
|
||||
tag: "dryer-complete"
|
||||
notification_icon: mdi:tumble-dryer-alert
|
||||
channel: Appliance
|
||||
|
||||
- delay:
|
||||
minutes: 15
|
||||
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_dryer_done
|
||||
@@ -1,111 +0,0 @@
|
||||
alias: Washing Machine Done
|
||||
id: washing_machine_done
|
||||
description: "Washing machine just finished"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.swap_laundry
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
condition:
|
||||
- alias: "The home is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: "on"
|
||||
|
||||
- alias: "Its not bedtime"
|
||||
condition: state
|
||||
entity_id: input_boolean.bedtime
|
||||
state: "off"
|
||||
|
||||
- condition: state
|
||||
entity_id: input_boolean.allow_announcements
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- repeat:
|
||||
while: "{{ is_state('input_boolean.swap_laundry','on') }}"
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.utility_room_occupied
|
||||
state: "off"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_audio_mode
|
||||
state: in_communication
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_audio_mode
|
||||
state: in_call
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_bedtime
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.bedtime
|
||||
state: "on"
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.announcement_pending
|
||||
# state: 'on'
|
||||
|
||||
sequence:
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_washing_machine_done
|
||||
- action: input_boolean.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_washing_machine_done
|
||||
# - input_boolean.announcement_pending
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
|
||||
|
||||
sequence:
|
||||
- action: notify.dreambox
|
||||
data:
|
||||
message: The washing machine is done
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
|
||||
|
||||
sequence:
|
||||
- action: notify.dreamsurface
|
||||
data:
|
||||
message: The washing machine is done
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "off"
|
||||
|
||||
sequence:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
data:
|
||||
message: The washing machine is done
|
||||
data:
|
||||
tag: "washing-machine-complete"
|
||||
notification_icon: mdi:washing-machine-alert
|
||||
channel: Appliance
|
||||
|
||||
- delay:
|
||||
minutes: 15
|
||||
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_washing_machine_done
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user