Code Monkey home page Code Monkey logo

Comments (5)

JacobChrist avatar JacobChrist commented on May 27, 2024 1

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

from picow_homeassistant_starter.

JacobChrist avatar JacobChrist commented on May 27, 2024

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.
image

from picow_homeassistant_starter.

JacobChrist avatar JacobChrist commented on May 27, 2024

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:

image vs image

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:

image image

I've tried to delete entities but I get this message:

image

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?

from picow_homeassistant_starter.

daniloc avatar daniloc commented on May 27, 2024

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.

from picow_homeassistant_starter.

JacobChrist avatar JacobChrist commented on May 27, 2024

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.
image

Also, all the Entity ID's update to the correct names set in firmware.
image

from picow_homeassistant_starter.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.