Hi all !
I have a volume meter and I’m running it on a rpi using a script. That script publishes its reported values to my mqtt server.
It works as show in this screenshot :
As you can see, the mqtt topic is the following :
homeassistant/sensors/db_level
I am using “sensor: !include sensors.yaml” in my configuration.yaml to make things a little more readable.
Problem is, I can’t figure out how to create a sensor for this in my sensors.yaml file.
Can someone here help me out writing the right thing to add ? Goal is to get a history of volume levels around my house.
here is my full sensors.yaml file content so far : - platform: template sensors: current_temperature: unique_id: "cu - Pastebin.com
i know it might sound stupid, but while it wrks when simply adding this in my configuration file :
mqtt:
sensor:
- name: "noise_levels"
state_topic: "homeassistant/sensors/db_level"
unit_of_measurement: "dB"
it then works…
Can someone let me know how to format this to put it in my sensors.yaml file ?
Thanks !!!