Auto Discovery fails at second device
Hi Guys, I Installed hass.agent at my windows PC and AutoDiscovery in HA worked fine. I can use motifications etc. Now I installed HASS:agent on a second device to use it there too. Installation worked fine, I use the same configuration as on the first PC (besides ClientID) but the new device doesn't show up in HA. Is there anything I may have missed in the process? Thanks for your help.
Solution:Jump to solution
@DrR0x we have a lot of work with the integration xD
@Wankster could you please try this:
remove all devices from the integration (so that none are "added"), make sure the HASS.Agents on both/all devices are running, restart HA (full restart, not only yaml reload)
https://b.chihi.ro/FLhxAu.png
https://b.chihi.ro/MWgXJK.png...
36 Replies
You haven't missed anything, unfortunately this is a very hard to identify bug at the moment. What seems to work is restarting the pc and HA
-
Do you have mqtt explorer?
Hi, thx for the reply. I tried restart several times. Thanks for the hint with the MQTT-Explorer. I looked into it and found, that Hass.agent is sending correct information to mqtt. So it seems HA just doesn't discover the new device. Is there a hidden switch to disable/enable AutoDiscovery?
no it should always be on
could you send a screenshot of the pc in mqtt explorer
![No description](https://cdn.answeroverflow.com/1234811243249012736/image.png)
I wonder, should I reinstall the Integration?
not yet
that will most likely fix it, but i'm interested in fixing the issue, so want to collect as much data as i can first
so let me just check:
- You tried restarting both HA and the new machine
- You had the first machine working fine, then installed on new machine and it hasn't been discovered?
- Does the new machine have any entities? (Sensors, commands etc.)
- restart: yes. I restarted both several times including HA full reset (not just yaml)
- yes, first machine works fine, second hasn't been discovered
- no entities in HA, as it isn't found, not even in the mqtt-integration
Have you added a sensor or command to the new machine?
no, I didn't
That could possibly cause it to re discover
okay, I will try
I added two sensors, it did half of the trick. The device is listet in the MQTT-Integration, but not in the HASS-Integration . Having a look in the mqtt-explorer I realized that the local Sensors of Device No. 1 and No. 2 don't show up there
is the device name also the same?
https://b.chihi.ro/HnREWT.png
No , as it is a different device, I named it another Name.
k, just wanted to be sure 😄
I'll ask some more "kinda stupid" questions but those come from experience so please bear with me 😄
does the serial number between the first and second device differ in MQTT Explorer?
in hass.agent/devices topic
Yes, there are two different serial numbers. In mqtt Integration both Devices Show up with their sensors but the Hass Integration doesn't recognize device no 2.