|
发表于 2024-7-23 11:27:00
|
显示全部楼层
就是这一部分的空调实体。
action:
- service: climate.set_hvac_mode
data_template:
entity_id: >-
{% if is_state("input_select.timer_climate", "客厅空调") %}
climate.mqtt_34ea344dd13c
{% elif is_state("input_select.timer_climate", "主卧空调") %}
climate.mqtt_34ea3496151c
{% elif is_state("input_select.timer_climate", "次卧空调") %}
climate.entity_id3
{% elif is_state("input_select.timer_climate", "客卧空调") %}
climate.entity_id4
{% endif %}
hvac_mode: 'off' |
|