Manually created MQTT sensors showing as unavailable

Hi all,

I’m working on getting a new solar inverter visible inside Home Assistant. I’m using the GivTCP Addon. The addon seems to be happy and if I run MQTT Explorer on my laptop I can see all the relevent data showing up on the Mosquito broker in Home Assistant. The new sensors don’t get auto detected by Home Assistant so I’m manually creating them but every senser I test shows up as “unavailable” in the states viewer. I’ve tried with and without the unit_of_measurement and it makes no difference.

Extract from my mqtt.yaml file shown below.

sensor:
  - name: "GivEnergy Inverter Status"
    state_topic: "GivEnergy/REDACTED/status"
  - name: "GivEnergy PV Power"
    state_topic: "GivEnergy/REDACTED/Power/Power/PV_Power"
    unit_of_measurement: "W"
  - name: "GivEnergy Solar to House"
    state_topic: "GivEnergy/REDACTED/Power/Flows/Solar_to_House"
    unit_of_measurement: "W"

I’ve checked also with MQTT Dashboard on my phone and subscribing to the same topics just gives me the number I’m looking for but still the HA sensors are blank.

I’m sure I’m missing something obvious, but this is driving me crazy. Any clues for what I could be missing?

1 Like

FIXED:

So, guess who didn’t bother to check if home assistant was able to connect to the local HA MQTT broker? Yep, that would be me. I never even noticed that I hadn’t set a username/password for it to connect. When you actually set those up with a valid user that existis, it’s amazing how much better things work, including the autorection of all of the detected sensors.

Its in such situations you value that HA still require us to define the text-to-speak lines, because once AI generated lines becomes available we will end up being insulted by it with lines like “What the heck are you doing?”. :smiley: