arduino-home-assistant
arduino-home-assistant copied to clipboard
Sensors Not Working Above Limit of 24 (Documentation on Limits Could Be More Visible)
I recently encountered an issue where I had 29 sensors defined in my Arduino project, but the last five sensors were not discovered in Home Assistant and did not function. After spending half of the day troubleshooting, I found out that the issue was caused by the default limit of 24 device types defined in the library.
After increasing the limit to 40 on my Arduino Mega using:
HAMqtt mqtt(client, device, 40);
the problem was resolved, and all sensors started working as expected.
While the documentation on limitations does mention this, I believe it could be made more visible for users to avoid confusion.
Suggestions:
- Add this information at the top of the README, preferably in red text, to make it clear upfront.
- Print a warning in the console when the limit is reached, such as: "Warning: Device limit of 24 has been reached. Additional devices will not be registered."
This would greatly help new users avoid similar frustrations.
P.S. Anyways, this library is awesome! Thank you for creating it! 😊