Name Changes and View Changes

This commit is contained in:
CCOSTAN
2016-11-19 18:45:39 +00:00
parent a412066614
commit 8d1304b67f
9 changed files with 41 additions and 33 deletions

View File

@@ -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 %}