Hi all,
I’m trying to integrate a humidity sensor in HA using MQTT. My payload looks like the following (I’m testing it with mosquitto_pub):
mosquitto_pub -h 123.123.123.123 -t garden/humidity/vegetables -m '{"humidity": 87.324, "timestamp": 1745310200}' -u mqtt -P mqtt
My configuration in configuration.yaml looks like this:
mqtt:
sensor:
- name: "Veggie garden"
unit_of_measurement: "%"
state_topic: "garden/humidity/vegetables"
value_template: "{{ value_json.humidity | float }}"
force_update: true
However, when I look at the entity, it does not show anything:
Could somebody please tell me what I’m missing or doing wrong?