samsinnamon / airtouch4pyapi

An api allowing control of AC state (temperature, on/off, mode) of an Airtouch 4 controller locally over TCP
MIT License
27 stars 14 forks source link

No function to Set AC temperature #27

Open dolanjosh opened 6 months ago

dolanjosh commented 6 months ago

In airtouch.py, there's no function for setting the temperature for an AC unit - only Groups.

In my AC setup, I have a bunch of bulkhead Daikin units that have no associated zones/groups - they function as a standalone AC, and I can set the temperature directly on the AC unit. I've tried creating my own function to do this, by just setting Power, TargetSetpoint, and AcNumber message values, however, it doesn't function as expected. I'm sure this would be fairly simple for the author to implement, however, given they'd be much more familiar with the Airtouch API? Note: I'm using AirTouch 5, not 4.

Relevant section of code: https://github.com/samsinnamon/airtouch4pyapi/blob/dd80a33463b87678114ba74d75e431e2379c9ea1/airtouch4pyapi/airtouch.py#L293C5-L293C67

Thanks,

Josh

dolanjosh commented 6 months ago

Just got the docs and worked out how to do it - SetpointControlType needs to be 0x40