hristo-atanasov / Tasmota-IRHVAC

Home Assistant platform for controlling IR Air Conditioners via Tasmota IRHVAC command and compatible hardware
187 stars 64 forks source link

Fix #78 Add new option `toggle_list` #94

Closed nao-pon closed 1 year ago

nao-pon commented 1 year ago

The toggled property is a setting that does not retain the On state. Set this if your AC properties are toggle function.

toggle_list: #optional - default []

nagyrobi commented 1 year ago

@nao-pon How does this toggle list work? What is it for?

nao-pon commented 1 year ago

This is a fix for the toggle command reported in #78.

Toggle commands switch On/Off by sending On. If this integration remembers the On state, it will always send On when sending other commands, which is not the correct behavior.

This PR does not save the On value for the specified command and only sends the On value by service call.

However, since I don't have the corresponding device, I can't verify the operation, and I'm still waiting for a reply at #78.