I’m attempting to control a window AC and a portable electric heater by using the dual-temp thermostat integration. Both appliances are fully set up through the Broadlink integration. When I created the switch template in the configuration.yaml file, I get the following errors. The errors are pointed at the line for the ‘turn_on’ and ‘turn_off’ commands.
Configuration warnings
Invalid config for 'switch.template' at configuration.yaml, line 61: Unable to determine action 'switches->br_ac->turn_on->0', got None
Invalid config for 'switch.template' at configuration.yaml, line 69: Unable to determine action 'switches->br_ac->turn_off->0', got None
Invalid config for 'switch.template' at configuration.yaml, line 78: Unable to determine action 'switches->br_heat->turn_on->0', got None
Invalid config for 'switch.template' at configuration.yaml, line 88: Unable to determine action 'switches->br_heat->turn_off->0', got None
This is the Climate configuration:
climate:
- platform: dual_smart_thermostat
name: br_climate
heater: switch.br_heat
cooler: switch.br_ac
target_sensor: sensor.br_th_temperature
min_temp: 55
max_temp: 85
ac_mode: false
target_temp: 73
#target_temp_high: 73
#target_temp_low: 71
min_cycle_duration:
seconds: 60
keep_alive:
minutes: 3
#initial_hvac_mode: "heat"
precision: 0.1
target_temp_step: 1
This is the Switch template configuration:
switch:
- platform: template
switches:
br_ac:
turn_on:
sequence:
- service: remote.send_command
target:
entity_id: br_remote
data:
device: br_ac
command: power
turn_off:
sequence:
- service: remote.send_command
target:
entity_id: br_remote
data:
device: br_ac
command: power
br_heat:
turn_on:
sequence:
- service: remote.send_command
target:
entity_id: br_remote
data:
device: br_heat
command:
- power
- oscillate
turn_off:
sequence:
- service: remote.send_command
target:
entity_id: br_remote
data:
device: br_heat
command: power
Any suggestions? I verified that the above configuration doesn’t work.