Hi, i am running home assistant 2025.4.3.
I addedan ESP home device that reads 2 contacts and publish the value via mqtt.
in mqtt explorer i see the values changing. I added a yaml configuration for the 2 values, based on the topics I see in mqtt explorer.
In my entities i see the 2 entoties as binary_sensor.pondwaterlevelhigh and binary_sensor.pondwaterlevellow.
Fort the 2 entities, when clicking on them, I see an error “The entity is unavailable”.
I am not able the use these entities in either a dashboard, nor in an Automation.
You have control over the topics if you wrote the ESPHome sketch.
I don’t know how you set HA to read the MQTT data.
I know of 2 ways. Create an MQTT sensor to read those topics, or a better way would be to send the data from ESPHome to a discovery topic directly and HA will just find them. If you created MQTT Sensors can you share the YAML?
Either way I suggest have retain on on these values so that it will not report an error in the logs at HA or device restart.
I created a yaml file, and the content is in the original topic, in the code section.
When I use Settings->Devices and Services and select Entities, I see both sensors.
I also see timestamps when the value changes, but there is the error message, and I am not able to use them anywhere else