Closed JacobChrist closed 1 year ago
Found what was limiting the number of HASwitches and changed the maxDeviceTypeNB to resolve:
explicit HAMqtt(
Client& netClient,
HADevice& device,
const uint8_t maxDevicesTypesNb = 12
);
However I still have a extra non-responsive MQTT Switch
I'm wondering if this is not an issue in HA itself. When I added another HASwitch then removed it, it now appears in the settings but is no longer in code "FlowBot ABC". Maybe its a string left in the MQTT server.
Interestingly enough, the names of the Entity created is based on when I created the entity and what I was doing at the time of creation. That is to say they are named inconsistently and this may be related: For example:
vs
Zone 3 was around before I figure out how to name the zones and get more than 6 switches so it got a generic name. Zone 4 was first created with a name after the max number of devices was created.
The two non-working switches have names associated with switches I created then removed while testing different confiturations:
I've tried to delete entities but I get this message:
Only 0 selected entities can be removed.
You can only remove 0 of the selected 1 entities. Entities can only be removed when the integration is no longer providing the entities. Sometimes you have to restart Home Assistant before you can remove the entities of a removed integration. Are you sure you want to remove the removable entities?
Good catch on maxDevicesTypesNb
. This is another one where I think you'll get further working directly with the maintainers of Arduino Home Assistant. This project is just an example to show how to get started using it. This issue, for example, came up just last week.
I'm pretty sure this is an issue with HA and the way MQTT caches messages. If I delete the device then the issue goes away.
Also, all the Entity ID's update to the correct names set in firmware.
Initial issue was that not all HASwitches were showing up:
(snip)
And for some reason one of the switches comes up unnamed ("MQTT Switch").