Closed Blink515 closed 4 years ago
I think the issue is that your quorum is not met, which leaves the cluster leader-less. For distributed entities this also means that no state updates are sent to MQTT. In your copy of the entities data I can see you have a total of 4 nodes currently connected to the cluster, but your config has a quorum of 5 (and also 5 peer addresses). For redundancy purposes I would suggest that you set quorum to 3, as this is enough to be a majority. That should also get your entities updated again. After that you can check out which node is not connecting to the cluster and why.
Thank you. One of the peers is out of commission at the moment but changing the quorum to 3 did the trick. I guess I don't really have a good understanding of what quorum does, is it even needed in my use case?
Not strictly needed, but nice to have nonetheless. It's useful to ensure that there are no conflicts in the entity states when not all nodes are connected. When running 3 or more instances I would recommend to set that value to whatever would be the majority, otherwise it can be left out.
Describe the bug BLE Devices aren't updating their state information in Home Assistant. Subscribing to the MQTT channel shows no state topics for the devices. Looking at the API entities endpoint provides the correct room location and the Room-Assistant devices are sending their config info to MQTT as expected. The status of the sensor shows online so I'm not sure why the state isn't being sent.
To reproduce Not sure.
Relevant logs No errors in the room-assistant log.
Relevant configuration Paste the relevant parts of your configuration below.
local.yml:
RA-Office.yml:
Entities API Data:
Expected behavior State changes from BLE devices are sent to MQTT
Environment
Additional context After the Ansible setup was complete I ran all setcap commands and reboot each device. The setup was working previously with an older version of room-assistant. I unfortunately don't recall what version I upgraded from but it was 2.x for sure.