Move basement LED strip resets to a counter #184
This commit is contained in:
@ -2274,26 +2274,12 @@
|
|||||||
- unavailable
|
- unavailable
|
||||||
- unknown
|
- unknown
|
||||||
id: button
|
id: button
|
||||||
- platform: time
|
condition:
|
||||||
at: 00:00:00
|
|
||||||
id: midnight
|
|
||||||
condition: []
|
|
||||||
action:
|
|
||||||
- choose:
|
|
||||||
- conditions:
|
|
||||||
- condition: and
|
|
||||||
conditions:
|
|
||||||
- condition: trigger
|
|
||||||
id:
|
|
||||||
- offline
|
|
||||||
- button
|
|
||||||
sequence:
|
|
||||||
- if:
|
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: '{{ is_state(''input_boolean.studio_quiet'',''off'') and
|
value_template: '{{ is_state(''input_boolean.studio_quiet'',''off'') and is_state(''sensor.twitch_ironnerd24'',''offline'')
|
||||||
is_state(''sensor.twitch_ironnerd24'',''offline'') and states(''switch.basement_led_strip'')
|
and states(''switch.basement_led_strip'') not in [''unknown'',''unavailable'']
|
||||||
not in [''unknown'',''unavailable''] }}'
|
}}'
|
||||||
then:
|
action:
|
||||||
- repeat:
|
- repeat:
|
||||||
while:
|
while:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -2302,9 +2288,9 @@
|
|||||||
- condition: template
|
- condition: template
|
||||||
value_template: '{{ repeat.index <= 10 }}'
|
value_template: '{{ repeat.index <= 10 }}'
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_number.increment
|
- service: counter.increment
|
||||||
target:
|
target:
|
||||||
entity_id: input_number.basement_led_strip_resets
|
entity_id: counter.basement_led_strip_resets
|
||||||
data: {}
|
data: {}
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
@ -2318,15 +2304,6 @@
|
|||||||
data: {}
|
data: {}
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 30
|
seconds: 30
|
||||||
- conditions:
|
|
||||||
- condition: trigger
|
|
||||||
id: midnight
|
|
||||||
sequence:
|
|
||||||
- service: input_number.set_value
|
|
||||||
target:
|
|
||||||
entity_id: input_number.basement_led_strip_resets
|
|
||||||
data:
|
|
||||||
value: 0
|
|
||||||
mode: single
|
mode: single
|
||||||
- id: '1696286732266'
|
- id: '1696286732266'
|
||||||
alias: Living Room Lights Adaptive Resync
|
alias: Living Room Lights Adaptive Resync
|
||||||
@ -2770,6 +2747,7 @@
|
|||||||
- counter.back_door_opened_today
|
- counter.back_door_opened_today
|
||||||
- counter.front_door_opened_today
|
- counter.front_door_opened_today
|
||||||
- counter.basement_studio_door_opened_today
|
- counter.basement_studio_door_opened_today
|
||||||
|
- counter.basement_led_strip_resets
|
||||||
data: {}
|
data: {}
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
|
@ -98,13 +98,6 @@ input_number:
|
|||||||
step: 1
|
step: 1
|
||||||
unit_of_measurement: minutes
|
unit_of_measurement: minutes
|
||||||
icon: mdi:timer
|
icon: mdi:timer
|
||||||
basement_led_strip_resets:
|
|
||||||
name: Basement LED Strip Resets
|
|
||||||
min: 0
|
|
||||||
max: 500
|
|
||||||
step: 1
|
|
||||||
unit_of_measurement: resets
|
|
||||||
icon: mdi:restore
|
|
||||||
downstairs_bathroom_lux_threshold:
|
downstairs_bathroom_lux_threshold:
|
||||||
name: Downstairs Bathroom Lux Threshold
|
name: Downstairs Bathroom Lux Threshold
|
||||||
min: 0
|
min: 0
|
||||||
@ -687,11 +680,6 @@ template:
|
|||||||
availability: "{{ is_state('light.master_bedroom_lights','on') and is_state('switch.adaptive_lighting_master_bedroom','on') }}"
|
availability: "{{ is_state('light.master_bedroom_lights','on') and is_state('switch.adaptive_lighting_master_bedroom','on') }}"
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
icon: mdi:brightness-percent
|
icon: mdi:brightness-percent
|
||||||
- name: "Basement LED Strip Resets"
|
|
||||||
unique_id: 0d016f09-a89b-4616-83b7-934580612d00
|
|
||||||
state: "{{ states('input_number.basement_led_strip_resets') | int }}"
|
|
||||||
unit_of_measurement: 'resets'
|
|
||||||
icon: mdi:restore
|
|
||||||
- name: Tina Desk Scene
|
- name: Tina Desk Scene
|
||||||
unique_id: 0d94ba35-bc9d-40a2-aa77-776d26bc3538
|
unique_id: 0d94ba35-bc9d-40a2-aa77-776d26bc3538
|
||||||
state: >
|
state: >
|
||||||
|
Reference in New Issue
Block a user