ДЦ
Size: a a a
ДЦ
ДЦ
action:
- service: xiaomi_miio.light_set_scene
entity_id: light.philips_07_ceiling
data_template:
scene: >
{% set hour=states("sensor.time").split(':')[0] | int %}
{%- if hour >= 0 and hour < 8 -%}
4
{%- elif hour >= 8 and hour < 10 -%}
3
{%- elif hour >= 10 and hour < 20 -%}
2
{%- elif hour >= 20 and hour < 22 -%}
3
{%- elif hour >= 22 and hour < 24 -%}
4
{% endif %}
ДЦ
ДЦ
- service: light.turn_on
entity_id: light.led_strip_hb
data_template:
brightness_pct: >
{% if states('binary_sensor.workday_sensor')=='off' and states('sensor.time').split(':').0|int < 10%}
1
{% else %}
100
{%endif%}
kelvin: >
{% if states('binary_sensor.workday_sensor')=='off' and states('sensor.time').split(':').0|int < 10%}
3000
{% else %}
5000
{%endif%}
VO
AX
action:
- service: xiaomi_miio.light_set_scene
entity_id: light.philips_07_ceiling
data_template:
scene: >
{% set hour=states("sensor.time").split(':')[0] | int %}
{%- if hour >= 0 and hour < 8 -%}
4
{%- elif hour >= 8 and hour < 10 -%}
3
{%- elif hour >= 10 and hour < 20 -%}
2
{%- elif hour >= 20 and hour < 22 -%}
3
{%- elif hour >= 22 and hour < 24 -%}
4
{% endif %}
ДЦ
AX
ДЦ
AL
A
l
ДЦ
ДЦ
l
М
T
М
T