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

Information about properties #21

Closed pla10 closed 3 years ago

pla10 commented 3 years ago

Hello! I'm struggling to try to understand which properties are available in objects like hc, dhw and sensors. I have a buderus heat pump and I'm connecting with IVT - HTTP. (it updated tonight to 04.07.07 nsc_icom_gateway) I'm interested in the actualModulation or pumpModulation but it seems to be always 0.0 both from bosch_cli scan and using a custom python script. Moreover, I noticed that some information retrieved easily from a command line rawscan is not present in the dhw_circuits properties (/dhwCircuits/dhw1/currentSetpoint and /heatingCircuits/hc1/actualSupplyTemperature)

pszafer commented 3 years ago
  1. I will release update soon.

  2. actualModulation or pumpModulation. Pump modulation should be available, I know that it is working for some users:

    {
            "id": "/heatingCircuits/hc1/pumpModulation",
            "type": "floatValue",
            "writeable": 0,
            "recordable": 0,
            "value": 10.0,
            "unitOfMeasure": "%"
        },

    Maybe you don't have sensor connected. Without your scan attached I can't tell more.

  3. /dhwCircuits/dhw1/currentSetpoint it's not worth fetching for most users as if you or device change operation mode it will switch to 0, so I'm reading current setpoint from temperatureLevels/low or temperatureLevels/high according to mode in which dhw is working.

  4. /heatingCircuits/hc1/actualSupplyTemperature, there is sensor with which you can fetch sensor data.

pla10 commented 3 years ago

Thank you for the fast response. Will attach a rawscan for reference. When I execute from command line I always get this "Unable to decrypt" error:

2021-08-12 10:48:39 INFO (MainThread) [bosch_thermostat_client.bosch_cli] Running scan 2021-08-12 10:48:39 INFO (MainThread) [bosch_thermostat_client.bosch_cli] Successfully connected to gateway. Found UUID: 038361048 2021-08-12 10:48:43 ERROR (MainThread) [bosch_thermostat_client.encryption.base_encryption] Unable to decrypt: b"\xf7\xb0\xdc\xfdcF$\xb8\x17\x8d\x93\xddvA\x89g}\xd8\x18@mg\xf4\x05\x96\xad\xe8s\x92\x06~\xb5\x9c\xf1\xdb\x9e9\x85O\xac%\xc4|\xfa\xd0$z\x14p~\xda\x11'\x055\x10;6\xb6\xc1\x15\xd9\x1d\xf8\xca\x8br\x8bQP\x99\x16\x00\xd4\xfe\xd3P\xa9\xf6p{\xa6\x8f\xf1\xf7\x1c\xc0@\x1b(\xf9\xc3\x89\x82\xdc\x11\x16\xe9\xf2r\x1c\xbb\xee\x86\x16\x8eq\x1fZC\xa9\x12\xcfI?B\x12\x15\xfb\xa7\xca\x1bf\x19s\xc9\x16\xa2\x1e+lP\xb7\xac\xa6\xfd\xda]&\t\xab6\xb6\x8fj\xd1!\xd5\x85\xeaNS10\xa9\x19\x9e\xff\xea)\x17\x17(R&N$T\xd5QHU\xb0\x89\xaf\xd0\xc8_\xab\xc7\xda\xfd\xb1\x00K\xac\xe2\xf9\xc2_l\x91\xa2Ja\xc9\xb9\xff\x9b\xb8\x95\x97-\xb9;W\xf6'-\xa9\x12\xdb]c\x80\x9aHM\xc4\xd4l3\xc5\x8f" with error: 'utf-8' codec can't decode byte 0xf7 in position 0: invalid start byte 2021-08-12 10:49:29 INFO (MainThread) [bosch_thermostat_client.bosch_cli] Successfully saved result to file: /home/pi/buderus/output.json 2021-08-12 10:49:29 ERROR (MainThread) [asyncio] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x72b71f10>

I don't know if it is related to the inability to read some information. Also in the MyDevice app the actual modulation seems to be always 0.0 (at least every time I've checked). It could be a problem with the heat pump (I'm waiting for the technician to come check)

output_json.txt

pszafer commented 3 years ago

You either don't have some sensors or there is something wrong:

{
            "id": "/heatingCircuits/hc1/pumpModulation",
            "type": "floatValue",
            "writeable": 0,
            "recordable": 0,
            "value": 0.0,
            "unitOfMeasure": "%"
        },
pla10 commented 3 years ago

The technician updated the heat pump and now I can read that value.

pszafer commented 3 years ago

Was it software update or hardware update?