ДЦ
Size: a a a
ДЦ
ДЦ
IB
at
IB
IB
IB
ДЦ
ДЦ
IB
trigger:
platform: mqtt
topic: zigbee2mqtt/0x00158d000349236a
condition:
condition: template
value_template: "{{ trigger.payload_json.occupancy }}"
ДЦ
at
trigger:
platform: mqtt
topic: zigbee2mqtt/0x00158d000349236a
condition:
condition: template
value_template: "{{ trigger.payload_json.occupancy }}"
IB
IB
action:
- service: light.turn_on
data_template:
entity_id: light.0xccccccfffe00418e_light
brightness: "{% if is_state('binary_sensor.night', 'on') %}1{% else %}255{% endif %}"
ДЦ
IB
ДЦ
ДЦ
- service: light.turn_on
entity_id: light.led_strip_hb
data_template:
brightness_pct: >
{%- if is_state('binary_sensor.tod_day','off') -%}
2
{%- else -%}
100
{% endif %}
kelvin: >
{%- if is_state('binary_sensor.tod_day','off') -%}
3000
{%- else -%}
5000
{% 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%}
IB