LAB02-Research / HASS.Agent-Integration

HASS.Agent's Home Assistant integration. Adds notifications and mediaplayer capabilities to HASS.Agent - a Windows based client (companion app) for Home Assistant.
MIT License
101 stars 17 forks source link

Autodiscovery doesn't work on newly added devices #37

Open Regressor opened 9 months ago

Regressor commented 9 months ago

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 commented 9 months ago

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

gdgeist commented 9 months ago

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.

DrR0X-glitch commented 8 months ago

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?

Regressor commented 8 months ago

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

DrR0X-glitch commented 8 months ago

Okay thx for the info going to look into this.

TRusselo commented 8 months ago

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

welbow commented 6 months ago

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