I have now also installed a complete new instance of HA only running the ramses_cc integration using config flow cofiguration option. Same problem.
I am using ramses_esp with FW 0.4.9
ramses_esp is integrated using the MQTT broker
serial config: mqtt://HA-mosquitto:[email protected]:1883
2024-06-18 16:35:14.981 ERROR (MainThread) [homeassistant.helpers.dispatcher] Exception in async_write_ha_state when dispatching 'ramses_cc_update': ()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1000, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1063, in __async_calculate_state
if state_attributes := self.state_attributes:
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 324, in __getattribute__
return super().__getattribute__(__name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 524, in state_attributes
hass, self.current_temperature, temperature_unit, precision
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 324, in __getattribute__
return super().__getattribute__(__name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ramses_cc/climate.py", line 311, in current_temperature
return self._device.temperature
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/zones.py", line 736, in temperature
return self._msg_value(Code._30C9, key=SZ_TEMPERATURE) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/zones.py", line 684, in _msg_value
return super()._msg_value(*args, **kwargs, zone_idx=self.idx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ramses_rf/entity_base.py", line 302, in _msg_value
return self._msg_value_code(code, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ramses_rf/entity_base.py", line 330, in _msg_value_code
return self._msg_value_msg(msg, key=key, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ramses_rf/entity_base.py", line 341, in _msg_value_msg
elif msg._expired:
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ramses_tx/message.py", line 340, in _expired
self._fraction_expired = fraction_expired(self._pkt._lifespan)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ramses_tx/message.py", line 317, in fraction_expired
return (self._gwy._dt_now() - self.dtm - _TD_SECS_003) / lifespan
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
TypeError: can't subtract offset-naive and offset-aware datetimes
whereas the logfile ramses.log looks fine:
2024-06-18T16:31:16.377736 056 RP --- 01:085811 18:146860 --:------ 30C9 003 040871
2024-06-18T16:31:16.442733 000 RQ --- 18:146860 01:085811 --:------ 30C9 001 05
2024-06-18T16:31:16.454939 056 RP --- 01:085811 18:146860 --:------ 30C9 003 05087D
2024-06-18T16:31:16.519265 000 RQ --- 18:146860 01:085811 --:------ 30C9 001 07
2024-06-18T16:31:16.566827 056 RP --- 01:085811 18:146860 --:------ 30C9 003 070849
2024-06-18T16:31:16.611222 000 RQ --- 18:146860 01:085811 --:------ 0005 002 000A
2024-06-18T16:31:16.614445 056 RP --- 01:085811 18:146860 --:------ 0005 004 000A0000
2024-06-18T16:31:16.796270 000 RQ --- 18:146860 01:085811 --:------ 0005 002 000B
2024-06-18T16:31:16.811657 056 RP --- 01:085811 18:146860 --:------ 0005 004 000B0000
2024-06-18T16:31:16.874652 000 RQ --- 18:146860 01:085811 --:------ 0005 002 0011
2024-06-18T16:31:17.046773 000 RQ --- 18:146860 01:085811 --:------ 0005 002 0004
2024-06-18T16:31:17.098958 056 RP --- 01:085811 18:146860 --:------ 0005 004 0004BF00
2024-06-18T16:32:11.908633 056 I --- 04:070601 --:------ 01:085811 3150 002 0096
2024-06-18T16:32:40.030264 067 I --- 04:241806 --:------ 01:085811 12B0 003 070000
2024-06-18T16:32:42.771205 066 I --- 04:241806 --:------ 01:085811 12B0 003 070000
2024-06-18T16:33:40.036889 060 I --- 04:070607 --:------ 01:085811 3150 002 019C
2024-06-18T16:33:58.978282 057 I --- 01:085811 --:------ 01:085811 1F09 003 FF0816
2024-06-18T16:33:58.989947 057 I --- 01:085811 --:------ 01:085811 2309 021 0008980108980207080308980405DC050708070802
2024-06-18T16:33:59.011497 057 I --- 01:085811 --:------ 01:085811 30C9 021 0008660108C30208730308F204087105087D07084B
2024-06-18T16:34:53.972582 057 I --- 01:085811 --:------ 01:085811 3B00 002 FCC8
2024-06-18T16:37:26.115097 056 I --- 01:085811 --:------ 01:085811 1F09 003 FF0816
2024-06-18T16:37:26.192676 056 I --- 01:085811 --:------ 01:085811 2309 021 0008980108980207080308980405DC050708070802
2024-06-18T16:37:26.194327 057 I --- 01:085811 --:------ 01:085811 30C9 021 0008660108C30208730308F204087105087D07084B
2024-06-18T16:40:52.990270 054 I --- 01:085811 --:------ 01:085811 1F09 003 FF0816
2024-06-18T16:40:52.995449 055 I --- 01:085811 --:------ 01:085811 2309 021 0008980108980207080308980405DC050708070802
2024-06-18T16:40:53.008456 055 I --- 01:085811 --:------ 01:085811 30C9 021 0008660108C30208730308F204087105087D070847
2024-06-18T16:40:54.109388 069 I --- 04:164499 --:------ 01:085811 3150 002 0400
2024-06-18T16:41:04.045517 062 I --- 04:070605 --:------ 01:085811 3150 002 0200
2024-06-18T16:42:08.676647 049 I --- 04:136049 --:------ 04:136049 30C9 003 000900
2024-06-18T16:42:25.761848 045 I --- 04:136049 --:------ 01:085811 3150 002 0366
2024-06-18T16:43:00.434846 061 I --- 04:110701 --:------ 01:085811 12B0 003 050000
2024-06-18T16:43:03.954008 061 I --- 04:110701 --:------ 01:085811 12B0 003 050000
Don’t know what to do to fix this. Is anyone using the ramses_esp stick with MQTT integration here?