Closed nao-pon closed 1 year ago
@nao-pon How does this toggle list work? What is it for?
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.
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 []