Corrected other issue with dont_disturb_nightime ignored flag
This commit is contained in:
@@ -113,7 +113,7 @@ actions:
|
|||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ dont_disturb_flag }}"
|
value_template: "{{ dont_disturb_flag }}"
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ states('binary_sensor.dont_disturb_nighttime') }}"
|
value_template: "{{ is_state('binary_sensor.dont_disturb_nighttime', 'on') }}"
|
||||||
then:
|
then:
|
||||||
- action: light.turn_on
|
- action: light.turn_on
|
||||||
target: !input light_target
|
target: !input light_target
|
||||||
@@ -132,7 +132,7 @@ actions:
|
|||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ dont_disturb_flag }}"
|
value_template: "{{ dont_disturb_flag }}"
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ states('binary_sensor.dont_disturb_nighttime') }}"
|
value_template: "{{ is_state('binary_sensor.dont_disturb_nighttime', 'on') }}"
|
||||||
then:
|
then:
|
||||||
- action: light.turn_on
|
- action: light.turn_on
|
||||||
target: !input light_target
|
target: !input light_target
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ actions:
|
|||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ dont_disturb_flag }}"
|
value_template: "{{ dont_disturb_flag }}"
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ states('binary_sensor.dont_disturb_nighttime') }}"
|
value_template: "{{ is_state('binary_sensor.dont_disturb_nighttime', 'on') }}"
|
||||||
then:
|
then:
|
||||||
- action: light.turn_on
|
- action: light.turn_on
|
||||||
target: !input light_target
|
target: !input light_target
|
||||||
@@ -152,7 +152,7 @@ actions:
|
|||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ dont_disturb_flag }}"
|
value_template: "{{ dont_disturb_flag }}"
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ states('binary_sensor.dont_disturb_nighttime') }}"
|
value_template: "{{ is_state('binary_sensor.dont_disturb_nighttime', 'on') }}"
|
||||||
then:
|
then:
|
||||||
- action: light.turn_on
|
- action: light.turn_on
|
||||||
target: !input light_target
|
target: !input light_target
|
||||||
|
|||||||
Reference in New Issue
Block a user