Replace Early Night Mode input boolean with binary sensor
This commit is contained in:
@ -211,7 +211,7 @@
|
|||||||
action:
|
action:
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.early_night_mode
|
entity_id: binary_sensor.early_night_mode
|
||||||
state: 'on'
|
state: 'on'
|
||||||
then:
|
then:
|
||||||
- service: script.family_is_home_night
|
- service: script.family_is_home_night
|
||||||
@ -352,7 +352,7 @@
|
|||||||
state: 'on'
|
state: 'on'
|
||||||
alias: Is holiday mode on?
|
alias: Is holiday mode on?
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.early_night_mode
|
entity_id: binary_sensor.early_night_mode
|
||||||
state: 'on'
|
state: 'on'
|
||||||
alias: Is early night mode on?
|
alias: Is early night mode on?
|
||||||
alias: Test conditions
|
alias: Test conditions
|
||||||
|
@ -28,9 +28,6 @@ kallen_overnight:
|
|||||||
night_mode:
|
night_mode:
|
||||||
name: Night Mode
|
name: Night Mode
|
||||||
icon: mdi:lightbulb-night
|
icon: mdi:lightbulb-night
|
||||||
early_night_mode:
|
|
||||||
name: Early Night Mode
|
|
||||||
icon: mdi:lightbulb-night-outline
|
|
||||||
toggle_testing:
|
toggle_testing:
|
||||||
name: Toggle Testing
|
name: Toggle Testing
|
||||||
icon: mdi:test-tube
|
icon: mdi:test-tube
|
Submodule node-red/projects/NerdFlows updated: 88d281f51c...0aaf78e899
@ -245,7 +245,7 @@ script:
|
|||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.early_night_mode
|
entity_id: binary_sensor.early_night_mode
|
||||||
state: 'on'
|
state: 'on'
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
|
@ -386,7 +386,7 @@ automation:
|
|||||||
then:
|
then:
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.early_night_mode
|
entity_id: binary_sensor.early_night_mode
|
||||||
state: 'off'
|
state: 'off'
|
||||||
then:
|
then:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
@ -398,7 +398,7 @@ automation:
|
|||||||
- condition: and
|
- condition: and
|
||||||
conditions:
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.early_night_mode
|
entity_id: binary_sensor.early_night_mode
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.give_me_darkness
|
entity_id: input_boolean.give_me_darkness
|
||||||
|
@ -438,7 +438,6 @@ freeze_cleanup:
|
|||||||
data: {}
|
data: {}
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.early_night_mode
|
|
||||||
- input_boolean.night_mode
|
- input_boolean.night_mode
|
||||||
- input_boolean.shower_mode
|
- input_boolean.shower_mode
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
|
@ -135,7 +135,7 @@
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% if is_state('light.living_room_lights','on') %}
|
{% if is_state('light.living_room_lights','on') %}
|
||||||
{% if is_state('input_boolean.early_night_mode','on') %}
|
{% if is_state('binary_sensor.early_night_mode','on') %}
|
||||||
"Because it is getting dark, I have turned on some lights for your convenience. "
|
"Because it is getting dark, I have turned on some lights for your convenience. "
|
||||||
{% else %}
|
{% else %}
|
||||||
"Due to less than optimal sunlight, I have turned on some lights for your convenience. "
|
"Due to less than optimal sunlight, I have turned on some lights for your convenience. "
|
||||||
|
Reference in New Issue
Block a user