this post was submitted on 05 Jan 2025
15 points (100.0% liked)

homeassistant

12555 readers
12 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 2 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] Randelung 4 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

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 2 points 3 weeks ago (1 children)

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.

[–] Randelung 2 points 3 weeks ago (1 children)
[–] peregus 1 points 3 weeks ago