Hi all,
New to HASS as I installed it on a virtualbox instance. Learning fast though, through troubleshooting my issue. I’ve setup mqtt mosquitto broker and sending data from an ESP32. I can read the topic from the addon configuration. The data is showing up in the core-mosquitto diagnostics file which I downloaded.
I’ve used MQTT Sensor - Home Assistant (home-assistant.io) section “Temperature and humidity sensors” as a guide and changed the topic and value template accordingly.
I’ve configured my sensors in configuration.yaml and restarted HASS. I would expect the sensors to show up in the entities list and added automatically in the overview. But no, I can’t find them. The sensor (readings) should be added to Settings - Devices&services - Entities and the overview automatically, do they?
With the DeveloperTools-CheckAndRestart functionality I don’t get and errors when checking configuration.
And I am stuck now at that point, as I can’t get home assistant to create a sensor for it. Tried a lot of stuff!
Anyone can give any assistance?
configuration.yaml:
# listen to mqtt topic
mqtt:
sensor:
- name: "temperature"
state_topic: "iotsensor/AGS"
unit_of_measurement: "°C"
value_template: "{{ value_json.temp_2 }}"
- name: "humidity"
state_topic: "iotsensor/AGS"
unit_of_measurement: "%"
value_template: "{{ value_json.humi_2 }}"
Part of downloaded diagnostics file:
"devices": [],
"mqtt_debug_info": {
"entities": [
{
"entity_id": "sensor.temperature",
"subscriptions": [
{
"topic": "iotsensor/AGS",
"messages": [
{
"payload": "{\"temp_2\":21.4,\"humi_2\":52}",
"qos": 0,
"retain": 0,
"time": "2024-10-11T10:28:28.882206+00:00",
"topic": "iotsensor/AGS"
},