本帖最后由 gucong 于 2023-6-3 17:40 编辑
我用的这一款,可以的: https://home.miot-spec.com/s/suittc.airrtc.wk168
开关被识别为单独的实体,可用switch.turn_on服务控制开关,也可将温控器本身用climate.turn_on来控制开关,二者效果一致。目标温度可以被climate.set_temperature控制。室温虽没有被自动识别为单独的实体,但可以用模板手动实现:
sensor:
- platform: template
sensors:
# 从温控器的室温传感器获取温度
thermostat_0_indoor_temp:
friendly_name: "温控器-室温(客厅)"
unit_of_measurement: "°C"
value_template: "{{state_attr('climate.thermostat_0', 'current_temperature')}}"
thermostat_1_indoor_temp:
friendly_name: "温控器-室温(主卧)"
unit_of_measurement: "°C"
value_template: "{{state_attr('climate.thermostat_1', 'current_temperature')}}"
thermostat_2_indoor_temp:
friendly_name: "温控器-室温(次卧)"
unit_of_measurement: "°C"
value_template: "{{state_attr('climate.thermostat_2', 'current_temperature')}}"
thermostat_3_indoor_temp:
friendly_name: "温控器-室温(客卧)"
unit_of_measurement: "°C"
value_template: "{{state_attr('climate.thermostat_3', 'current_temperature')}}"
设置温度、控制开关的方法与空调一致:
# 用虚拟温控器统一设置美的空调和米家地暖的温度
- service: climate.set_temperature
data:
# 从虚拟温控器中读取温度
temperature: "{{ state_attr('climate.climate_1', 'temperature') }}"
target:
entity_id:
# 米家地暖
- climate.thermostat_1
# 美的空调
- climate.ac_1
# 同时关闭美的空调和米家地暖
- service: switch.turn_off
data: {}
target:
entity_id:
# 美的空调
- switch.ac_1_power
# 米家地暖
- switch.thermostat_1
|