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
490 stars 118 forks source link

Config part not registered for some items #219

Closed simie7 closed 8 months ago

simie7 commented 8 months ago

I use 2 HASwitch and 6 HASensorNumber items.

Problem is, that only first 5 declared item's configs are registered on MQTT. When I change order in declaration, then again first 5 items have config part on MQTT. Tried to shorten descriptions, swap declarations in setup () - it has no affect.

Downgraded library from 2.0.0 to 1.3.0, slightly changed code (different constructors etc) - works as expected.

Use Arduino Mega 2560 with W5100, if it is important.

dawidchyrzynski commented 8 months ago

Hi @simie7,

You need to increase the default limit of types as described here: https://dawidchyrzynski.github.io/arduino-home-assistant/documents/library/device-types.html#limitations