HASS.Agent-Integration icon indicating copy to clipboard operation
HASS.Agent-Integration copied to clipboard

Autodiscovery doesn't work on newly added devices

Open Regressor opened this issue 2 years ago • 7 comments

Hi. I installed HASS.Agent on new device (win10 notebook with name 'notebook'). Only MQTT used. I checked mqtt topics via MQTT explorer and I can see hass.agent\devices\notebook topic (and other devices too). I tried to delete "notebook" topic and after deleting this topic created again.

Sensors are created too and I can see them in HA devices table and they are actual (i.e. lastactive status changes on mouse move).

But new HASS.Agent devices is not discovered. I tried to reload integration, reload hass, reboot hass server - doesn't help.

HASS.Agent integration version: 2022.11.19 HASS.Agent windows app version: 2022.14.0 HASS version: 2023.7.2

Regressor avatar Oct 09 '23 04:10 Regressor

I had to remove all devices from integration settings, remove integration, remove hass.agent topic, add integration, restart and then I found all devices "discovered".

Regressor avatar Oct 09 '23 04:10 Regressor

It's great that you left this comment. The updated integration basically borked everything hass.io agent related so will try entirely removing anything related and starting from scratch.

gdgeist avatar Oct 26 '23 22:10 gdgeist

I had to remove all devices from integration settings, remove integration, remove hass.agent topic, add integration, restart and then I found all devices "discovered".

When you say "devices" are you referring to entities(such as sensors or commands) or are you referring to multiple windows machines running hass.agent?

DrR0X-glitch avatar Nov 07 '23 10:11 DrR0X-glitch

Devices = multiple windows machines (each have sensors, controls and media player)

Regressor avatar Nov 07 '23 23:11 Regressor

Okay thx for the info going to look into this.

DrR0X-glitch avatar Nov 08 '23 03:11 DrR0X-glitch

same here,
I enabled some new sensor entities in HASS.agent, they are not being discovered by home assistant

TRusselo avatar Nov 12 '23 02:11 TRusselo

I ran into this as well. Removing my existing HASS.Agent from Devices and then removing the integration from HACS, restarting HA, reinstalling via HACS and restarting HA again showed both of my HASS.Agent machines (old and new). Both HASS.Agents are using an HA token and are pointed to MQTT running as an HA Addon. On the new HASS.Agent, I tried changing the MQTT client id to a unique string to make sure they both weren't using the same id.

HASS.Agent 2022.11.9 (latest version HACS finds) HA 2024.1.2 Mosquito broker addon 6.4.0

welbow avatar Jan 08 '24 19:01 welbow