Hi all! I have a HA server in my LAN and all my IoT devices are in a separate VLAN. In this way to insert all the devices I have to configure them all manually using MQTT commands. Since I’m fed up about this method, I’ve added a second NIC to the HA VM (Proxmox) that is in the IoT VLAN. When I enter the terminal I see that HA has 2 IPs, one for each network and I thought that all the Shelly (they use the same MQTT broker that uses HA, they’re not configured for cloud connection and ColoT is enabled) devices would appear in HA, but…they don’t. How do you think that I can troubleshoot this problem?

  • Randelung@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    3 days ago

    There’s several parts to this.

    From your post it sounds like you’re using MQTT for the shelly devices and that the broker is separate from HA.

    • I assume HA can connect to and read from the broker? Maybe you have other devices already set up and working?
    • Do you see shelly data on the broker in any form? Does the shelly user have write access to the broker?
    • From what I gather, shellys don’t send HA MQTT discovery data. I think you need to configure them manually. HA won’t just display any data a MQTT broker has; apart from telling HA what data is interesting, it also needs to know the measurement units (and potentially error states or other info like connectivity) https://www.home-assistant.io/integrations/mqtt/#mqtt-discovery

     
    Now, you also mention ColoT. That’s only necessary if you use the shelly integration in HASS. It’s entirely separate from MQTT. You’d point the shellys directly to HA instead of the MQTT broker. It’s much easier to use. Maybe just switch to that since all device can see each other, anyway?

    It’d help if you included a few screenshots or diagrams of what you’re trying to do.

    • peregus@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      Hi, yes, I have a Mosquitto container in another machine.

      • HA can connect to the MQTT broker and I already have other MQTT devices working in HA, there’s also a Shelly RGBW2 that I can turn on and off via MQTT
      • In the MQTT broker I see plenty of data from all the MQTT devices
      • I thought that HA would recognize Shelly devices by their messages. I’ll give a look at the MQTT discovery, thanks.

      I’ve mentioned ColoT because I’ve installed the Shelly integration from HASS (sorry, I’ve forgot to mention it, I’ll add it), but even there there are no devices discovered. I’m using it with mcast, I’ll try putting the HA IP. Thanks for the input, I’ll do some tests.