deiger / AirCon

Scripts for controlling Air Conditioners, e.g. with HiSense modules.
GNU General Public License v3.0
216 stars 58 forks source link

wrong temperature with decimal values for fglair #118

Open christoph-ng opened 3 years ago

christoph-ng commented 3 years ago

The fix doesn't work correct, decimal values are not set correctly, see the log above:

I0628 20:17:03.327  mqtt_client.py:37] MQTT message Topic: hisense_ac/a0cc2be7a43b/adjust_temperature/command, Payload b'25.5'
D0628 20:17:03.328  notifier.py:112] [KeepAlive] Sending PUT http://192.168.0.99/local_reg.json {"local_reg": {"ip": "192.168.0.77", "notify": 1, "port": 1883, "uri": "/local_lan"}}
D0628 20:17:03.338  query_handlers.py:122] Encrypting: {"seq_no": 8, "data": {"properties": [{"property": {"base_type": "integer", "name": "adjust_temperature", "value": 260, "id": "UhTgWh6W"}}]}}
I0628 20:17:03.339  web_log.py:206] 192.168.0.99 [28/Jun/2021:20:17:03 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 417 "-" "-"
D0628 20:17:03.340  notifier.py:85] [KeepAlive] Waiting for notification or timeout
I0628 20:17:04.727  query_handlers.py:136] Decrypted: {"seq_no":8,"data":{"name":"adjust_temperature","value":260}}

Originally posted by @christoph-ng in https://github.com/deiger/AirCon/issues/85#issuecomment-870007658

markwoodward86 commented 2 years ago

Any movement on this one? I cannot set 0.5 C setpoints either.