Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
awadham opened this issue Jan 30, 2024 · 6 comments
Open

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

awadham opened this issue Jan 30, 2024 · 6 comments

Comments

@awadham
Copy link

awadham commented Jan 30, 2024

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

@e-p-s
Copy link

e-p-s commented Feb 2, 2024

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

@Mustreg
Copy link

Mustreg commented Feb 3, 2024

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

@awadham
Copy link
Author

awadham commented Feb 4, 2024

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?

@Mustreg
Copy link

Mustreg commented Feb 4, 2024

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

@Mustreg
Copy link

Mustreg commented Feb 4, 2024

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.

@awadham
Copy link
Author

awadham commented Feb 7, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants