1050 lines
28 KiB
YAML
1050 lines
28 KiB
YAML
- alias: Room Togglers
|
|
description: ''
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.camera_toggle
|
|
from: 'off'
|
|
to: 'on'
|
|
id: camera
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
from: 'off'
|
|
to: 'on'
|
|
id: attic
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.living_room_toggle
|
|
from: 'off'
|
|
to: 'on'
|
|
id: livingroom
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.garage_toggle
|
|
from: 'off'
|
|
to: 'on'
|
|
id: garage
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.office_toggle
|
|
from: 'off'
|
|
to: 'on'
|
|
id: office
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.bedroom_toggle
|
|
from: 'off'
|
|
to: 'on'
|
|
id: bedroom
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.kitchen_toggle
|
|
from: 'off'
|
|
to: 'on'
|
|
id: kitchen
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.basement_toggle
|
|
from: 'off'
|
|
to: 'on'
|
|
id: basement
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.exterior
|
|
from: 'off'
|
|
to: 'on'
|
|
id: exterior
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.breezeway_toggle
|
|
from: 'off'
|
|
to: 'on'
|
|
id: breezeway
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.dining_room_toggle
|
|
from: 'off'
|
|
to: 'on'
|
|
id: diningroom
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.guest_room_toggle
|
|
from: 'off'
|
|
to: 'on'
|
|
id: guestroom
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.kida_room
|
|
from: 'off'
|
|
to: 'on'
|
|
id: kida
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.kidb_room
|
|
from: 'off'
|
|
to: 'on'
|
|
id: kidb
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- attic
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.dining_room_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.kidb_room
|
|
- input_boolean.exterior
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- camera
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.dining_room_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.kidb_room
|
|
- input_boolean.exterior
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- garage
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.dining_room_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.kidb_room
|
|
- input_boolean.exterior
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- basement
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.dining_room_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.kidb_room
|
|
- input_boolean.exterior
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- bedroom
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.dining_room_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.kidb_room
|
|
- input_boolean.exterior
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- breezeway
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.dining_room_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.kidb_room
|
|
- input_boolean.exterior
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- diningroom
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.kidb_room
|
|
- input_boolean.exterior
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- kida
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.dining_room_toggle
|
|
- input_boolean.kidb_room
|
|
- input_boolean.exterior
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- kidb
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.dining_room_toggle
|
|
- input_boolean.exterior
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- exterior
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.kidb_room
|
|
- input_boolean.dining_room_toggle
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- livingroom
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.kidb_room
|
|
- input_boolean.exterior
|
|
- input_boolean.dining_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- office
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.kidb_room
|
|
- input_boolean.exterior
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.dining_room_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- kitchen
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.kidb_room
|
|
- input_boolean.exterior
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.dining_room_toggle
|
|
- input_boolean.guest_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- guestroom
|
|
sequence:
|
|
- target:
|
|
entity_id:
|
|
- input_boolean.attic_toggle
|
|
- input_boolean.garage_toggle
|
|
- input_boolean.camera_toggle
|
|
- input_boolean.bedroom_toggle
|
|
- input_boolean.breezeway_toggle
|
|
- input_boolean.basement_toggle
|
|
- input_boolean.kida_room
|
|
- input_boolean.kidb_room
|
|
- input_boolean.exterior
|
|
- input_boolean.living_room_toggle
|
|
- input_boolean.office_toggle
|
|
- input_boolean.kitchen_toggle
|
|
- input_boolean.dining_room_toggle
|
|
data: {}
|
|
action: input_boolean.turn_off
|
|
mode: single
|
|
- alias: kid's LED Light Strip
|
|
description: ''
|
|
trigger:
|
|
- platform: event
|
|
event_type: zha_event
|
|
id: press-on
|
|
event_data:
|
|
device_ieee: b0:ce:18:14:03:6a:10:20
|
|
unique_id: b0:ce:18:14:03:6a:10:20:1:0x0006
|
|
device_id: 18063a02016a5f1c93d6bee56ab7bb8f
|
|
endpoint_id: 1
|
|
cluster_id: 6
|
|
command: 'on'
|
|
args: []
|
|
params: {}
|
|
enabled: true
|
|
- platform: event
|
|
event_type: zha_event
|
|
id: double-on
|
|
event_data:
|
|
device_ieee: b0:ce:18:14:03:6a:10:20
|
|
unique_id: b0:ce:18:14:03:6a:10:20:1:0x0006
|
|
device_id: 18063a02016a5f1c93d6bee56ab7bb8f
|
|
endpoint_id: 1
|
|
cluster_id: 6
|
|
command: on_double
|
|
args: []
|
|
params: {}
|
|
enabled: true
|
|
- platform: event
|
|
event_type: zha_event
|
|
id: hold-on
|
|
event_data:
|
|
device_ieee: b0:ce:18:14:03:6a:10:20
|
|
unique_id: b0:ce:18:14:03:6a:10:20:1:0x0006
|
|
device_id: 18063a02016a5f1c93d6bee56ab7bb8f
|
|
endpoint_id: 1
|
|
cluster_id: 6
|
|
command: on_long
|
|
args: []
|
|
params: {}
|
|
enabled: true
|
|
- platform: event
|
|
event_type: zha_event
|
|
id: dim-up
|
|
event_data:
|
|
device_ieee: b0:ce:18:14:03:6a:10:20
|
|
unique_id: b0:ce:18:14:03:6a:10:20:1:0x0008
|
|
device_id: 18063a02016a5f1c93d6bee56ab7bb8f
|
|
endpoint_id: 1
|
|
cluster_id: 8
|
|
command: step
|
|
args:
|
|
- 0
|
|
params: {}
|
|
enabled: true
|
|
- platform: event
|
|
event_type: zha_event
|
|
id: dim-down
|
|
event_data:
|
|
device_ieee: b0:ce:18:14:03:6a:10:20
|
|
unique_id: b0:ce:18:14:03:6a:10:20:1:0x0008
|
|
device_id: 18063a02016a5f1c93d6bee56ab7bb8f
|
|
endpoint_id: 1
|
|
cluster_id: 8
|
|
command: step
|
|
args:
|
|
- 1
|
|
params: {}
|
|
enabled: true
|
|
- platform: event
|
|
event_type: zha_event
|
|
id: press-off
|
|
event_data:
|
|
device_ieee: b0:ce:18:14:03:6a:10:20
|
|
unique_id: b0:ce:18:14:03:6a:10:20:1:0x0006
|
|
device_id: 18063a02016a5f1c93d6bee56ab7bb8f
|
|
endpoint_id: 1
|
|
cluster_id: 6
|
|
command: 'off'
|
|
args: []
|
|
params: {}
|
|
enabled: true
|
|
- platform: event
|
|
event_type: zha_event
|
|
id: double-off
|
|
event_data:
|
|
device_ieee: b0:ce:18:14:03:6a:10:20
|
|
unique_id: b0:ce:18:14:03:6a:10:20:1:0x0006
|
|
device_id: 18063a02016a5f1c93d6bee56ab7bb8f
|
|
endpoint_id: 1
|
|
cluster_id: 6
|
|
command: off_double
|
|
args: []
|
|
params: {}
|
|
enabled: true
|
|
- platform: event
|
|
event_type: zha_event
|
|
id: hold-off
|
|
event_data:
|
|
device_ieee: b0:ce:18:14:03:6a:10:20
|
|
unique_id: b0:ce:18:14:03:6a:10:20:1:0x0006
|
|
device_id: 18063a02016a5f1c93d6bee56ab7bb8f
|
|
endpoint_id: 1
|
|
cluster_id: 6
|
|
command: off_long
|
|
args: []
|
|
params: {}
|
|
enabled: true
|
|
- device_id: 18063a02016a5f1c93d6bee56ab7bb8f
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_long_press
|
|
subtype: dim_down
|
|
id: hold-dim-down
|
|
- device_id: 18063a02016a5f1c93d6bee56ab7bb8f
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_long_press
|
|
subtype: dim_up
|
|
id: hold-dim-up
|
|
condition: []
|
|
action:
|
|
- if:
|
|
- condition: trigger
|
|
id: press-on
|
|
- condition: trigger
|
|
id: double-on
|
|
- condition: trigger
|
|
id: hold-on
|
|
- condition: trigger
|
|
id: press-off
|
|
- condition: trigger
|
|
id: hold-off
|
|
then:
|
|
- if:
|
|
- condition: state
|
|
entity_id: input_boolean.kid_light_color_loop
|
|
state: 'on'
|
|
then:
|
|
- service: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.kid_light_color_loop
|
|
- if:
|
|
- condition: trigger
|
|
id: press-on
|
|
then:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness: 255
|
|
kelvin: 3700
|
|
target:
|
|
entity_id: light.kids_led_strip
|
|
- if:
|
|
- condition: trigger
|
|
id: double-on
|
|
then:
|
|
- service: input_select.select_next
|
|
data:
|
|
cycle: true
|
|
target:
|
|
entity_id: input_select.kid_light_color_select
|
|
- service: light.turn_on
|
|
data:
|
|
color_name: '{{ states(''input_select.kid_light_color_select'') }}'
|
|
target:
|
|
entity_id: light.kids_led_strip
|
|
enabled: true
|
|
- if:
|
|
- condition: trigger
|
|
id: hold-on
|
|
then:
|
|
- service: input_boolean.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.kid_s_dance_party
|
|
- if:
|
|
- condition: trigger
|
|
id: dim-up
|
|
- condition: template
|
|
value_template: '{% if is_state(''light.kids_led_strip'',''on'') %} {{(state_attr(''light.kids_led_strip'',''brightness'')
|
|
| float) < 250}}
|
|
|
|
{% endif %}'
|
|
then:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_step: 25
|
|
target:
|
|
entity_id: light.kids_led_strip
|
|
else:
|
|
- if:
|
|
- condition: state
|
|
entity_id: light.kids_led_strip
|
|
state: 'on'
|
|
- condition: trigger
|
|
id: dim-up
|
|
then:
|
|
- repeat:
|
|
count: 2
|
|
sequence:
|
|
- type: turn_off
|
|
device_id: 011ae94cb25345198f95db17e8e23b30
|
|
entity_id: light.kids_led_strip
|
|
domain: light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 125
|
|
- type: turn_on
|
|
device_id: 011ae94cb25345198f95db17e8e23b30
|
|
entity_id: light.kids_led_strip
|
|
domain: light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 125
|
|
enabled: true
|
|
- if:
|
|
- condition: trigger
|
|
id: hold-dim-up
|
|
- condition: template
|
|
value_template: '{% if is_state(''light.kids_led_strip'',''on'') %} {{(state_attr(''light.kids_led_strip'',''brightness'')
|
|
| float) < 254}}
|
|
|
|
{% endif %}'
|
|
then:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_step: 10
|
|
target:
|
|
entity_id: light.kids_led_strip
|
|
else:
|
|
- if:
|
|
- condition: state
|
|
entity_id: light.kids_led_strip
|
|
state: 'on'
|
|
- condition: trigger
|
|
id: hold-dim-up
|
|
then:
|
|
- repeat:
|
|
count: 2
|
|
sequence:
|
|
- type: turn_off
|
|
device_id: 011ae94cb25345198f95db17e8e23b30
|
|
entity_id: light.kids_led_strip
|
|
domain: light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 125
|
|
- type: turn_on
|
|
device_id: 011ae94cb25345198f95db17e8e23b30
|
|
entity_id: light.kids_led_strip
|
|
domain: light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 125
|
|
enabled: true
|
|
- if:
|
|
- condition: trigger
|
|
id: dim-down
|
|
- condition: template
|
|
value_template: '{% if is_state(''light.kids_led_strip'',''on'') %} {{(state_attr(''light.kids_led_strip'',''brightness'')
|
|
| float) > 10}}
|
|
|
|
{% endif %}'
|
|
then:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_step: -25
|
|
target:
|
|
entity_id: light.kids_led_strip
|
|
else:
|
|
- if:
|
|
- condition: state
|
|
entity_id: light.kids_led_strip
|
|
state: 'on'
|
|
- condition: trigger
|
|
id: dim-down
|
|
then:
|
|
- repeat:
|
|
count: 2
|
|
sequence:
|
|
- type: turn_off
|
|
device_id: 011ae94cb25345198f95db17e8e23b30
|
|
entity_id: light.kids_led_strip
|
|
domain: light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 125
|
|
- type: turn_on
|
|
device_id: 011ae94cb25345198f95db17e8e23b30
|
|
entity_id: light.kids_led_strip
|
|
domain: light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 125
|
|
enabled: true
|
|
- if:
|
|
- condition: trigger
|
|
id: hold-dim-down
|
|
- condition: template
|
|
value_template: '{% if is_state(''light.kids_led_strip'',''on'') %} {{(state_attr(''light.kids_led_strip'',''brightness'')
|
|
| float) > 10}}
|
|
|
|
{% endif %}'
|
|
then:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_step: -10
|
|
target:
|
|
entity_id: light.kids_led_strip
|
|
else:
|
|
- if:
|
|
- condition: state
|
|
entity_id: light.kids_led_strip
|
|
state: 'on'
|
|
- condition: trigger
|
|
id: hold-dim-down
|
|
then:
|
|
- repeat:
|
|
count: 2
|
|
sequence:
|
|
- type: turn_off
|
|
device_id: 011ae94cb25345198f95db17e8e23b30
|
|
entity_id: light.kids_led_strip
|
|
domain: light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 125
|
|
- type: turn_on
|
|
device_id: 011ae94cb25345198f95db17e8e23b30
|
|
entity_id: light.kids_led_strip
|
|
domain: light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 125
|
|
enabled: true
|
|
- if:
|
|
- condition: trigger
|
|
id: press-off
|
|
then:
|
|
- service: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.kid_s_dance_party
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 250
|
|
- service: light.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: light.kids_led_strip
|
|
- if:
|
|
- condition: trigger
|
|
id: double-off
|
|
then:
|
|
- service: input_boolean.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.kid_light_color_loop
|
|
- repeat:
|
|
until:
|
|
- condition: state
|
|
entity_id: input_boolean.kid_light_color_loop
|
|
state: 'off'
|
|
sequence:
|
|
- service: input_select.select_next
|
|
data:
|
|
cycle: true
|
|
target:
|
|
entity_id: input_select.kid_light_color_select
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 2
|
|
milliseconds: 0
|
|
- service: light.turn_on
|
|
data:
|
|
color_name: '{{ states(''input_select.kid_light_color_select'') }}'
|
|
target:
|
|
entity_id: light.kids_led_strip
|
|
enabled: true
|
|
- if:
|
|
- condition: trigger
|
|
id: hold-off
|
|
then:
|
|
- service: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.kid_s_dance_party
|
|
mode: restart
|
|
- description: ''
|
|
mode: parallel
|
|
triggers:
|
|
- entity_id:
|
|
- sensor.lutron_z3_1brl_controller
|
|
attribute: rotate_right
|
|
id: rotate-right
|
|
trigger: state
|
|
- entity_id:
|
|
- sensor.lutron_z3_1brl_controller
|
|
attribute: rotate_left
|
|
id: rotate-left
|
|
trigger: state
|
|
- entity_id:
|
|
- sensor.lutron_z3_1brl_controller
|
|
attribute: click
|
|
id: light-toggle
|
|
trigger: state
|
|
conditions: []
|
|
actions:
|
|
- if:
|
|
- condition: trigger
|
|
id: rotate-right
|
|
- condition: state
|
|
entity_id: sensor.lutron_z3_1brl_controller
|
|
attribute: brightness
|
|
state: max
|
|
- condition: template
|
|
value_template: '{{ state_attr(''sensor.lutron_z3_1brl_controller'',''rotate_right'')
|
|
!= 0 }}'
|
|
then:
|
|
- repeat:
|
|
count: '2'
|
|
sequence:
|
|
- data: {}
|
|
target:
|
|
entity_id: light.signify_netherlands_b_v_lto004_huelight
|
|
action: light.turn_off
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 125
|
|
- data:
|
|
brightness: 255
|
|
target:
|
|
entity_id: light.signify_netherlands_b_v_lto004_huelight
|
|
action: light.turn_on
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 125
|
|
else:
|
|
- if:
|
|
- condition: trigger
|
|
id: rotate-right
|
|
- condition: template
|
|
value_template: '{{ state_attr(''sensor.lutron_z3_1brl_controller'',''rotate_right'')
|
|
!= 0 }}'
|
|
then:
|
|
- data:
|
|
brightness_step_pct: 5
|
|
color_temp_kelvin: 4000
|
|
target:
|
|
entity_id: light.signify_netherlands_b_v_lto004_huelight
|
|
action: light.turn_on
|
|
enabled: true
|
|
alias: get brighter
|
|
- if:
|
|
- condition: trigger
|
|
id: rotate-left
|
|
- condition: state
|
|
entity_id: sensor.lutron_z3_1brl_controller
|
|
attribute: brightness
|
|
state: min
|
|
- condition: template
|
|
value_template: '{{ state_attr(''sensor.lutron_z3_1brl_controller'',''rotate_left'')
|
|
!= 0 }}'
|
|
then:
|
|
- repeat:
|
|
count: 2
|
|
sequence:
|
|
- data: {}
|
|
target:
|
|
entity_id: light.signify_netherlands_b_v_lto004_huelight
|
|
action: light.turn_off
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 125
|
|
- data:
|
|
brightness: 2
|
|
target:
|
|
entity_id: light.signify_netherlands_b_v_lto004_huelight
|
|
action: light.turn_on
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 125
|
|
else:
|
|
- if:
|
|
- condition: trigger
|
|
id: rotate-left
|
|
- condition: template
|
|
value_template: '{{ state_attr(''sensor.lutron_z3_1brl_controller'',''rotate_left'')
|
|
!= 0 }}'
|
|
then:
|
|
- data:
|
|
brightness_step_pct: -5
|
|
color_temp_kelvin: 4000
|
|
target:
|
|
entity_id: light.signify_netherlands_b_v_lto004_huelight
|
|
action: light.turn_on
|
|
enabled: true
|
|
alias: get dimmer
|
|
- alias: turn on and off from switch
|
|
choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: light-toggle
|
|
- condition: state
|
|
entity_id: light.signify_netherlands_b_v_lto004_huelight
|
|
state: 'on'
|
|
- condition: numeric_state
|
|
entity_id: sensor.lutron_z3_1brl_controller
|
|
attribute: click
|
|
above: 0
|
|
sequence:
|
|
- data: {}
|
|
target:
|
|
entity_id: light.signify_netherlands_b_v_lto004_huelight
|
|
action: light.turn_off
|
|
alias: turn off
|
|
- conditions:
|
|
- condition: trigger
|
|
id: light-toggle
|
|
- condition: state
|
|
entity_id: light.signify_netherlands_b_v_lto004_huelight
|
|
state: 'off'
|
|
- condition: numeric_state
|
|
entity_id: sensor.lutron_z3_1brl_controller
|
|
attribute: click
|
|
above: 0
|
|
sequence:
|
|
- data:
|
|
brightness_pct: 100
|
|
color_temp_kelvin: 4000
|
|
target:
|
|
entity_id: light.signify_netherlands_b_v_lto004_huelight
|
|
action: light.turn_on
|
|
alias: turn on
|
|
max: 2
|
|
max_exceeded: silent
|
|
- alias: rtl_433 Frequency Switch
|
|
description: Switch to 915Mhz for a few minutes at the end of the day.
|
|
trigger:
|
|
- platform: time
|
|
at: '23:53:00'
|
|
id: switch-to-915
|
|
- platform: time
|
|
at: '23:59:00'
|
|
id: switch-to-433
|
|
condition: []
|
|
action:
|
|
- if:
|
|
- condition: trigger
|
|
id: switch-to-915
|
|
then:
|
|
- service: shell_command.rtl_433_915
|
|
data: {}
|
|
- service: hassio.addon_restart
|
|
data:
|
|
addon: 9b13b3f4_rtl433-next
|
|
- if:
|
|
- condition: trigger
|
|
id: switch-to-433
|
|
then:
|
|
- service: shell_command.rtl_433_433
|
|
data: {}
|
|
- service: hassio.addon_restart
|
|
data:
|
|
addon: 9b13b3f4_rtl433-next
|
|
mode: single
|
|
- alias: Bus Reminder
|
|
description: ''
|
|
trigger:
|
|
- platform: time
|
|
at: 08:06:00
|
|
condition:
|
|
- condition: state
|
|
entity_id: sensor.school_today
|
|
state: 'Yes'
|
|
action:
|
|
- service: google_generative_ai_conversation.generate_content
|
|
metadata: {}
|
|
data:
|
|
prompt: Create a kind and humorous reminder that it is time to get ready for
|
|
the school bus.
|
|
response_variable: bus_reminder
|
|
- service: tts.speak
|
|
metadata: {}
|
|
data:
|
|
cache: true
|
|
media_player_entity_id: media_player.all_speakers
|
|
message: '{{ bus_reminder.text }}'
|
|
target:
|
|
entity_id: tts.home_assistant_cloud
|
|
- variables:
|
|
bus_reminder: '{{ bus_reminder }}'
|
|
mode: single
|
|
- alias: timer N-2 end automation
|
|
description: ''
|
|
trigger:
|
|
- platform: event
|
|
event_type: timer.finished
|
|
event_data:
|
|
entity_id: timer.timer.n_2_timer
|
|
condition: []
|
|
action:
|
|
- service: script.light_off_warning
|
|
data: {}
|
|
- service: timer.start
|
|
data: {}
|
|
target:
|
|
entity_id: timer.timer_2_minutes
|
|
mode: single
|
|
- alias: turn light off after timer
|
|
trigger:
|
|
- platform: event
|
|
event_type: timer.finished
|
|
event_data:
|
|
entity_id: timer.timer_2_minutes
|
|
action:
|
|
- service: light.turn_off
|
|
target:
|
|
entity_id: light.your_light_entity
|
|
data: {}
|
|
mode: single
|