Alors, excuse moi je répond pas très régulièrement.
Ce soir mon HA a crash (comme souvent…) et en relançant j’ai vu 2 trucs dans les logs:
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:599
Integration: Capteur (documentation, issues)
First occurred: 22:16:30 (1 occurrences)
Last logged: 22:16:30
cozytouch: Error on device update!
Traceback (most recent call last):
File « /usr/src/homeassistant/homeassistant/helpers/entity_platform.py », line 599, in _async_add_entity
await entity.async_device_update(warning=False)
File « /usr/src/homeassistant/homeassistant/helpers/entity.py », line 1261, in async_device_update
await hass.async_add_executor_job(self.update)
File « /usr/local/lib/python3.12/concurrent/futures/thread.py », line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /config/custom_components/cozytouch/sensor.py », line 218, in update
value = self.get_value()
^^^^^^^^^^^^^^^^
File « /config/custom_components/cozytouch/sensor.py », line 300, in get_value
) - datetime.datetime.fromtimestamp(now_timestamp, « utc »)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: tzinfo argument must be None or of a tzinfo subclass, not type ‹ str ›
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:599
Integration: Capteur (documentation, issues)
First occurred: 22:16:30 (1 occurrences)
Last logged: 22:16:30
cozytouch: Error on device update!
Traceback (most recent call last):
File « /usr/src/homeassistant/homeassistant/helpers/entity_platform.py », line 599, in _async_add_entity
await entity.async_device_update(warning=False)
File « /usr/src/homeassistant/homeassistant/helpers/entity.py », line 1261, in async_device_update
await hass.async_add_executor_job(self.update)
File « /usr/local/lib/python3.12/concurrent/futures/thread.py », line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /config/custom_components/cozytouch/sensor.py », line 218, in update
value = self.get_value()
^^^^^^^^^^^^^^^^
File « /config/custom_components/cozytouch/sensor.py », line 300, in get_value
) - datetime.datetime.fromtimestamp(now_timestamp, « utc »)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: tzinfo argument must be None or of a tzinfo subclass, not type ‹ str ›
et pour le json
{
"config": {
"abort": {
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
},
"error": {
"cannot_connect": "Cannot connect to Atlantic Cozytouch servers",
"invalid_auth": "Invalid Atlantic Cozytouch authentication",
"unknown": "Unknown error"
},
"step": {
"user": {
"data": {
"username": "Username",
"password": "Password"
}
},
"select_device": {
"data": {
"create_unknown": "Create entities for unknown capabilities",
"dump_json": "Dump a JSON file with received data"
}
}
}
}
}
un souci d’authentification on dirait?
Je dois peut-être modifier username et password ^^?