dawidchyrzynski / arduino-home-assistant

ArduinoHA allows to integrate an Arduino/ESP based device with Home Assistant using MQTT.
https://dawidchyrzynski.github.io/arduino-home-assistant/
GNU Affero General Public License v3.0
463 stars 112 forks source link

[Fix suggestion] Max Number of sensors (devices-types) #204

Closed deckard-rick closed 6 months ago

deckard-rick commented 8 months ago

Problem: I have one device with 10 HANumber sensors but config-messages are only send for the first 5.

Background: I believe, if the HANumbers are created, via pubslihConfig (protected), the config-message is put into a queue. mqtt is not connected if this happens. It looks like, that the queue has a maximum length of five, because of memory size restriction.

Solution:

mariansoban commented 8 months ago

I have same issue for HASwitch - there are 6 HASwitch instances created in code, but only 5 switches are synchronized to Home Assistant and the solution seems to be here: https://github.com/dawidchyrzynski/arduino-home-assistant/issues/190

yannicksuter commented 6 months ago

@deckard-rick override the max number of devices allowed to be registered in the HAMqtt constructor and your problem is solved. I ran into exactly the same issue.

dawidchyrzynski commented 6 months ago

https://dawidchyrzynski.github.io/arduino-home-assistant/documents/library/device-types.html