Help setting up MQTT/HASS.AGENT

Watching videos and googling, but I must be missing something…plus I have no clue what I am doing.

GOAL: I have a PC that I want to be able to ge sensors for. The idea is that when the PC temp hits a certain level, this fan I have kicks on (or when the PC is unlocked, it kicks on, either one).

I have MQTT added in my home assistant.
I do not see anything in the config yaml file regarding it.

HA is running on a VM in hyper-v.
I access it via CASA, as you can see in the pic below:

Broke settings are default except I am just using my username (same as I login with)

On the PC I want to monitor I have the following, all default except for username:

When I search devices, I do not see anything related to that PC.

Could really use some help with this one, as I hit a wall.

Do you have Remote Control enabled in Settings / Home Assistant Cloud in your Home Assistant instance?

What happens when you click Test Connection in HASS.Agent?

Also, I don’t think you can use your Nabu Casa hostname for the MQTT connection. I think Nabu Casa only forwards HTTPS (443), and won’t forward the 1883 MQTT messages.

So here I can only get this to connect if I use my CASA url.
If I try the http://homeassistant.local:8123, it wont connect.
If I use the IP of the machine the VM is running on, it wont connect.
If I use the IP of the actual VM that has HA, it wont connect.

On the box running the VM with HA, I have opened port 1883

But the logs show it is failing:

1 Like

If I try to setup the HA API on the client, it consistently failes unless I use CASA
I have tried http://IP of HA:8123, http://IP of server running the VM with HA :8123, nothing, all fail.

Not sure if ths is a lack of networking knowledge on my part since the HA is running on a hyper-v VM on that box or what.

wow, I figured this out.
Just needed another hour of Google.
My HA instance was still on the 172 address.
After some research, I found that MQTT will not work through CASA as the other person said, and I realized I could not reach that HA instance without CASA.

Running Hyper-V so added a virtual switch, set to external, and assigned it the correect ethernet port on the main machine.

I now got a 192 address and mqtt is up and running.

I need some help with that please
I have the same problem
what should I do, I sorry I don’t understand
My HA is on PI