mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-07 09:58:17 +00:00
Name Changes and View Changes
This commit is contained in:
@@ -54,16 +54,18 @@ action:
|
||||
transition: 1
|
||||
brightness: 255
|
||||
|
||||
|
||||
alias: 'Autoadjust Bedroom Lights After Sunset'
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: light.bedroom_light_1
|
||||
value_template: '{{ state.attributes.brightness }}'
|
||||
above: 140
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: sun.sun
|
||||
state: below_horizon
|
||||
action:
|
||||
- service: script.bedroom_lights_fade_down_to_50_percent
|
||||
|
||||
|
||||
|
||||
# Template Binary Sensors
|
||||
platform: template
|
||||
sensors:
|
||||
flood_sensor:
|
||||
value_template: >-
|
||||
{% if states.sensor.everspring_st812_flood_detector_flood_2_5.state == '255' %}
|
||||
'on'
|
||||
{% elif states.sensor.everspring_st812_flood_detector_flood_2_5.state == '0' %}
|
||||
'off'
|
||||
{% else %}
|
||||
n/a
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user