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

Misc: MQTT running but all sensors showing as "Unknown"

Open awadham opened this issue 1 year ago • 6 comments

I have configured everything as per the instructions/docs, and all was working fine. Recently, I have installed an SSL certificate and cloudflare tunnel, and now all of the sensors are showing as "Unknown", despite MQTT showing as "running".

image image image

awadham avatar Jan 30 '24 23:01 awadham

same here. perhaps its outdated. last update 2022. i fear the project is dead.

e-p-s avatar Feb 02 '24 06:02 e-p-s

I have installed an SSL certificate and cloudflare tunnel, and now all of the sensors are showing as "Unknown", despite MQTT showing as "running".

Most likely when you installed those addons, you had to restart HA. HASS.agent cannot reconnect to HA (at least for me it ) after HA is restarted. You need to restart the agent on your Windows PC each time HA itself is restarted. This is the most annoying issue with HASS.agent for me.

I also have Cloudflare on my HA. It makes no difference for HASS.agent assuming your Windows PC is on local network and you are connecting to HA directly via HTTP.

There is some further recent development work of HASS.agent (fork) happening here:

https://github.com/hass-agent/HASS.Agent

but sadly no lack with resolving the "agent reconnection after HA restart" issue so far....

Mustreg avatar Feb 03 '24 12:02 Mustreg

Most likely when you installed those addons, you had to restart HA. HASS.agent cannot reconnect to HA (at least for me it ) after HA is restarted. You need to restart the agent on your Windows PC each time HA itself is restarted. This is the most annoying issue with HASS.agent for me.

How do I "restart the agent" on my Windows PC? Is it just a matter of restarting the actual application, or is there something else I have to do?

awadham avatar Feb 04 '24 15:02 awadham

Right-click the Hass.Agent icon on the Windows system tray: image Select restart: image

Mustreg avatar Feb 04 '24 17:02 Mustreg

In any case get the latest version of Hass.Agent (fork) from here: Click here to download the latest installer as per my post above. From my experience it seems more stable/robust and able to recover from (some) HA restarts.

Mustreg avatar Feb 04 '24 17:02 Mustreg

I tried restarting as you mentioned above, and installing the latest version, but my of the sensors are still showing as "Unknown", despite MQTT showing as "running".

Separately, do you know of any alternatives to HASS.Agent?

Ps. thanks for your help thus far!

awadham avatar Feb 07 '24 21:02 awadham