这样写
power_command_topic: "ir_server/ac/cmnd/power"
mode_state_template: "{{ {'Off': 'off', 'off': 'off', 'auto': 'auto', 'cool': 'cool', 'heat': 'heat', 'dry': 'dry', 'fan_only': 'fan_only'}[value] | default('off') }}"
mode_command_topic: "ir_server/ac/cmnd/mode"
目前测试了可以正常显示状态 |