Bonjour,
I have a problem with Homematic switches becoming unavailable in home assistant.
Home assistant is installed on an Intel NUC. It is completely up to date.
Home Assistant Core 2022.6.5
Home Assistant Supervisor 2022.05.3
Home Assistant OS 8.1
I use a CCU3 from homematic v3.63.9 (the latest version).
My problem: I have very regularly switches that become unavailable only when a service call is made on it. For example a switch.turn_on.
Calling the homematic reconnect service does not change anything. They are still unavailable.
If I go to the CCU3, and change the state of the switch directly from the CCU3 interface, then Home Assistant sees it again and it is no longer considered unavailable.
This is very strange.
Here are the logs when it crashes.
2022-06-15 07:57:14 DEBUG (SyncWorker_2) [pyhomematic.devicetypes.generic] HMGeneric.setValue: address = 'LEQ0181256:1', key = 'STATE' value = 'True'
2022-06-15 07:57:15 ERROR (SyncWorker_2) [pyhomematic.devicetypes.generic] HMGeneric.setValue: STATE on LEQ0181256:1 Exception: <Fault -1: 'Failure'>
2022-06-15 07:57:15 DEBUG (Thread-3) [pyhomematic._hm] RPCFunctions.event: interface_id = homeassistant-rf, address = LEQ0181256:0, value_key = UNREACH, value = True
2022-06-15 07:57:15 DEBUG (Thread-3) [pyhomematic.devicetypes.generic] HMGeneric.event: address=LEQ0181256:0, interface_id=homeassistant-rf, key=UNREACH, value=True
2022-06-15 07:57:15 DEBUG (Thread-3) [pyhomematic.devicetypes.generic] HMGeneric.event: Using callback <bound method HMDevice._hm_event_callback of <Entity LED comptoire fenetre: off>>
2022-06-15 07:57:15 DEBUG (Thread-3) [pyhomematic._hm] RPCFunctions.event: interface_id = homeassistant-rf, address = LEQ0181256:0, value_key = STICKY_UNREACH, value = True
2022-06-15 07:57:15 DEBUG (Thread-3) [pyhomematic.devicetypes.generic] HMGeneric.event: address=LEQ0181256:0, interface_id=homeassistant-rf, key=STICKY_UNREACH, value=True
Logs for homematic reconnect
2022-06-15 13:00:00 DEBUG (Thread-3) [pyhomematic._hm] RPCFunctions.listDevices...........
2022-06-15 13:00:00 DEBUG (Thread-3) [pyhomematic._hm] RPCFunctions.event: interface_id = homeassistant-rf, address = LEQ0181256:0, value_key = STICKY_UNREACH, value = True
2022-06-15 13:00:00 DEBUG (Thread-3) [pyhomematic.devicetypes.generic] HMGeneric.event: address=LEQ0181256:0, interface_id=homeassistant-rf, key=STICKY_UNREACH, value=True
2022-06-15 13:00:00 DEBUG (Thread-3) [pyhomematic.devicetypes.generic] HMGeneric.event: Using callback <bound method HMDevice._hm_event_callback of <Entity LED comptoire fenetre: off>>
2022-06-15 13:00:00 DEBUG (Thread-3) [pyhomematic._hm] RPCFunctions.event: interface_id = homeassistant-rf, address = LEQ0181256:0, value_key = UNREACH, value = True
2022-06-15 13:00:00 DEBUG (Thread-3) [pyhomematic.devicetypes.generic] HMGeneric.event: address=LEQ0181256:0, interface_id=homeassistant-rf, key=UNREACH, value=True
Does anyone have an idea of the problem? I have a possible solution with the CCU3, that is to say that every day, I change the status of each device, but it is not ideal at all.
Thanks you very much