Closed TheLizard closed 3 years ago
@TheLizard Thanks, I was too lazy to doo that :) Implementing physical & logical address for requests is quite easy with crc code. Frankly this was implemented just as proof-of-concept and since then i had no time to go further with this. It does the job for me for now and I might have more time for this kind of work in winter. I'm glad it helped someone and feel free to contribute :) But I think it's the mvdklip's https://github.com/mvdklip/Domoticz-Hewalex is very well done and all it needs is to add MQTT functionality - after that it can be used with homeassistant and every other MQTT capable HomeAutomation Controller. Extending that Domoticz-Hewalex plugin would be my first choice for next development. mvdklip also got the Heat Pump covered.
A friend of mine started with a heat pump controller for his Home Assistant; however he is not an experienced programmer so I offered to help him on this project.
He started with a RS485 to USB dongle to try this python script. He didn't know about the physical/logical address settings so he got no response from the controller; when there is no response; the script terminates with an index out of range error so I added a check for it, and meanwhile, added the CRC verifications as well.
I could also make some more time available to implement dynamic physical/local addresses)
I also believe the addresses in the payload data part to be the 16-bit logical addresses (as it was 65535 in the controller; this is also stated in one of the documents inside the repository)