bosch-thermostat / bosch-thermostat-client-python

Python3 asyncio package to talk to Bosch thermostat devices.
Apache License 2.0
23 stars 20 forks source link

Add Bosch Compress 7001i device with code 172 #3

Closed slovdahl closed 3 years ago

slovdahl commented 4 years ago

I'm not 100% sure if I'm doing this right, so please help me out if this doesn't make sense 🙂

I have a Bosch Compress 7001i heat pump, and I have successfully used e.g. regofetcher to read data from it. I stepped through the code in the debugger, and noticed that bosch_thermostat_client/gateway/ivt_gateway.py and the get_device_model method didn't return anything. This PR adds the device code. It may very well be that mapping it to rc300.json is not the right thing to do here, but I'm not really sure how to proceed here, so any pointers would be appreciated.

slovdahl commented 4 years ago

I have managed to run bosch_rawscan_cli.py and got a rawscan_XXXX.json dump out of it. How are the bosch_termostat_client/db/*.json files maintained? Are they generated by some kind of script? Or manually? I tried looking for a script but couldn't find anything.

slovdahl commented 4 years ago

rawscan.txt

slovdahl commented 4 years ago

I have looked through the existing DB JSON files, but there are still many parts I don't understand. I went ahead and added a new one for my device type anyway, but any guidance here would be greatly appreciated.

slovdahl commented 4 years ago

@pszafer what about all the entries in the DB file? I'm pretty sure that not all of them are relevant. Do you have any pointers?