This is for syncing Tasmota and Tasmota-IRHVAC in case the AC is not in sync.
Can happen to toggle ACs if one party misses a code that was sent.
How to install?
1 Flash firmware to Tasmota.
The binary is attached to this release or you can build the repository yourself.
2 Add a section like this to your "scripts" section of your home-assitant
ir_hvac_airwell_state_only:
sequence:
- data_template:
payload: '{"Vendor":"AIRWELL", "Model":"StateOnly-1", "Power":"{{ power }}", "Mode":"{{ mode }}", "FanSpeed":"{{ fan_speed }}", "Temp":{{ temp }}}'
topic: 'cmnd/{{ station }}/irhvac'
service: mqtt.publish
- data_template:
payload: '{"IrReceived":{"Protocol":"AIRWELL", "IRHVAC":{"Vendor":"AIRWELL", "Model":"-1", "Power":"{{ power }}", "Mode":"{{ mode }}", "FanSpeed":"{{ fan_speed }}", "Temp":{{ temp }}}}}'
topic: 'tele/{{ station }}/RESULT'
service: mqtt.publish
First part sets the state in Tasmota. Note use of "StateOnly" prefix in "Model".
Second part sets the state in Tasmota-IRHVAC.
No IR messages should be sent. The AC will remain in current state.
3 Add buttons in your home-assistant dashboard with a few states that you will want to sync.
for example:
type: horizontal-stack
title: Electra AC - Sync
cards:
- type: button
tap_action:
action: call-service
service: script.ir_hvac_airwell_state_only
service_data:
power: 'Off'
mode: 'Off'
temp: 25
fan_speed: Min
station: tasmota_ir
name: 'Off'
icon: 'mdi:power'
icon_height: 40px
- type: button
tap_action:
action: call-service
service: script.ir_hvac_airwell_state_only
service_data:
power: 'On'
mode: Cool
temp: 25
fan_speed: Min
station: tasmota_ir
name: 25°
icon: 'mdi:snowflake'
icon_height: 40px
How to use?
If you AC actual state is not matching the state in home-assistant, click the button that matches your AC's actual state. This should make no change to the AC but update Tasmota and Tasmota-IRHVAC with the actual state.
From this moment you can use the normal climate card for controls.
If you loose sync often, check if you have good IR connectivity between the different components. Perhaps your AC, remote and IR device are not close enough.