Phloks
April 28, 2025, 9:21am
1
I’m reading data from my weather station into mqtt broker in HA.
When I connect to the broker using MQTT explorer, I see data coming in.
Next I tried to create a sensor.
For that I added the following part to my configuration.yaml file:
mqtt:
- sensor:
name: "Temperatuur buiten"
unique_id: "outside temp"
force_update: true
state_topic: "rtl_433/Vevor-7in1/12345"
value_template: "{{ value_json.temperature_C }}"
Restarted everything (even tried a reboot, shame on me…), but the sensor does not show up under devices or entities.
What am I doing wrong ?
francisp
(Francis)
April 28, 2025, 9:36am
2
At first sign, nothing. The sensor is looking good.
Maybe show the data that comes in.
Phloks
April 28, 2025, 9:42am
3
Sure !
This is coming in:
{"time":"2025-04-28 11:38:11","model":"Vevor-7in1","id":11564,"channel":0,"battery_ok":1,"temperature_C":21.0,"humidity":36,"wind_avg_km_h":1.8,"wind_max_km_h":4.66667,"wind_dir_deg":74,"rain_mm":40.542,"uv":5,"light_lux":87840,"mic":"CHECKSUM","mod":"FSK","freq1":868.3865,"freq2":868.2311,"rssi":-0.120407,"snr":18.27631,"noise":-18.3967}
Not very nice formatted…
One thing to mention: in my first post I showed the id of the topic as 12345.
It is however 11564, and this value is also used in the mqtt config.
Does this make sense/help ?
francisp
(Francis)
April 28, 2025, 9:43am
4
This has to be correct indeed.
Phloks
April 28, 2025, 9:46am
5
It is.
I just used 12345 because I did not remember the exact value any more.
This is the exact definition I’m using:
mqtt:
- sensor:
name: "Temperatuur buiten"
unique_id: "outside temp"
force_update: true
state_topic: "rtl_433/Vevor-7in1/11564"
value_template: "{{ value_json.temperature_C }}"
francisp
(Francis)
April 28, 2025, 9:48am
6
You do have the mqtt integration installed ?
You only have once the line
mqtt:
in configuration.yaml ?
Phloks
April 28, 2025, 9:51am
7
Not sure what you’re asking here…
Yes, the MQTT integration has been installed in HA, and running happily.
Using MQTT explorer from another machine and connecting to my HA instance on port 1883 lets me see what is being published to the mqtt broker on HA.
Phloks
April 28, 2025, 9:51am
8
By the way.
Thanks for trying to help me out !!
francisp
(Francis)
April 28, 2025, 9:53am
9
if you have in configuration.yaml
mqtt:
- sensor:
mqtt:
- sensor:
only one will be found. So make sure there is only one ‘mqtt:’ line.
Phloks
April 28, 2025, 10:06am
10
Hmm,
There is only one.
This is my entire configuration.yaml file:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mqtt:
- sensor:
- name: "Temperatuur buiten"
unique_id: "outside_temp"
force_update: true
state_topic: "rtl_433/Vevor-7in1/11564"
value_template: "{{ value_json.temperature_C }}"
And the included files do not have mqtt in them…
Phloks
April 28, 2025, 4:19pm
11
Figured it out.
It was a stupid mistake by me after all…
On the Settings → Devices page you can see the discovered services. I simply forgot to Add the MQTT broker.
After having done that, the sensor appeared immediately !
Thanks for the support.