mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-21 04:33:38 +00:00
Last update for visual notifications : #307
This commit is contained in:
@@ -32,24 +32,9 @@ automation:
|
||||
- platform: state
|
||||
entity_id: sensor.bear_stone
|
||||
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: >
|
||||
{% if states.sensor.bear_stone.state|int == 0 %}
|
||||
false
|
||||
{% else %}
|
||||
true
|
||||
{% endif %}
|
||||
|
||||
action:
|
||||
- service_template: >
|
||||
{% if states.sensor.bear_stone.state|int > 0 %}
|
||||
light.turn_on
|
||||
{% else %}
|
||||
light.turn_off
|
||||
{% endif %}
|
||||
entity_id:
|
||||
- light.justin_go
|
||||
- service: light.turn_on
|
||||
entity_id: light.justin_go
|
||||
data_template:
|
||||
color_name: >
|
||||
{% if states.sensor.bear_stone.state|int == 1 %}
|
||||
@@ -67,3 +52,11 @@ automation:
|
||||
- light.justin_go
|
||||
data:
|
||||
flash: long
|
||||
|
||||
- service_template: >
|
||||
{% if states.sensor.bear_stone.state|int > 0 %}
|
||||
light.turn_on
|
||||
{% else %}
|
||||
light.turn_off
|
||||
{% endif %}
|
||||
entity_id: light.justin_go
|
||||
|
Reference in New Issue
Block a user