sinope:
server: "192.168.**.**"
id: "D880*********D148"
api_key: "d62********16ee"
my_city: "montreal"
scan_interval: 120
Sorry about that. Learning something new everyday.
Here is the last log after cleaning up the configuration.yaml
2023-03-21 20:10:02.368 DEBUG (SyncWorker_4) [custom_components.sinope] Setting config location to: /config/.storage/
2023-03-21 20:10:02.368 DEBUG (SyncWorker_4) [custom_components.sinope] Setting scan interval to: 0:02:00
2023-03-21 20:10:02.368 DEBUG (SyncWorker_4) [custom_components.sinope] Setting time zone as: America/Toronto
2023-03-21 20:10:03.580 DEBUG (SyncWorker_8) [custom_components.sinope.climate] Setting up sinope Basement Thermostat: a0c70000
2023-03-21 20:10:03.580 DEBUG (SyncWorker_8) [custom_components.sinope.climate] Setting up sinope Kitchen Thermostat: 505c0100
2023-03-21 20:10:03.721 DEBUG (SyncWorker_0) [custom_components.sinope] login data = 55001200100148D19F242B3980D8d62bfe4e36c9916ee
2023-03-21 20:10:03.965 ERROR (MainThread) [homeassistant.components.climate] sinope: Error on device update!
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 507, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 732, in async_device_update
await task
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/sinope/climate.py”, line 430, in update
device_data = self._client.get_climate_device_data(self._server, self._id)
File “/config/custom_components/sinope/init.py”, line 705, in get_climate_device_data
temperature = get_temperature(bytearray(send_request(self, server, data_read_request(data_read_command,device_id,data_temperature))).hex())
File “/config/custom_components/sinope/init.py”, line 556, in send_request
sock.sendall(login_request(self))
File “/config/custom_components/sinope/init.py”, line 624, in login_request
login_crc = bytes.fromhex(crc_count(bytes.fromhex(login_data)))
ValueError: non-hexadecimal number found in fromhex() arg at position 45
2023-03-21 20:10:03.978 DEBUG (SyncWorker_9) [custom_components.sinope] login data = 55001200100148D19F242B3980D8d62bfe4e36c9916ee
2023-03-21 20:10:04.040 ERROR (MainThread) [homeassistant.components.climate] sinope: Error on device update!
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 507, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 732, in async_device_update
await task
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/sinope/climate.py”, line 430, in update
device_data = self._client.get_climate_device_data(self._server, self._id)
File “/config/custom_components/sinope/init.py”, line 705, in get_climate_device_data
temperature = get_temperature(bytearray(send_request(self, server, data_read_request(data_read_command,device_id,data_temperature))).hex())
File “/config/custom_components/sinope/init.py”, line 556, in send_request
sock.sendall(login_request(self))
File “/config/custom_components/sinope/init.py”, line 624, in login_request
login_crc = bytes.fromhex(crc_count(bytes.fromhex(login_data)))
ValueError: non-hexadecimal number found in fromhex() arg at position 45