Sensor Integration Home Assistant
The Senvolon level sensor is integrated into Home Assistant via MQTT. From firmware version 3.8, the sensor supports MQTT Discovery, which allows Home Assistant to automatically detect and integrate the sensor values. Manual configuration is still possible. This guide shows all the steps you need to take in Home Assistant to receive and display sensor readings.
Why use MQTT for the level sensor
- Reliable communication between sensor and Home Assistant
- Automatic detection by MQTT Discovery
- Fast update of measurement values
- Flexible expandability for additional sensors
Prerequisites for integration
- Senvolon level sensor from version 3.8
- Home Assistant
- MQTT broker like Mosquitto
- Correctly set MQTT topic in the sensor
1. Install MQTT broker in Home Assistant
If no MQTT broker is yet available:
- Open Settings → Add-ons
- Go to the Add-on Store
- Install the Mosquitto MQTT Broker
2. Activate and configure MQTT in Home Assistant
- Go to Settings → Devices & Services
- Add the MQTT service
- Complete the configuration
Note: If Mosquitto was installed as an add-on, the broker automatically uses the Home Assistant IP address. Username and password correspond to your Home Assistant credentials.
3. Supplement configuration.yaml
To ensure Home Assistant correctly reads all sensor values, the central configuration file needs to be extended.
Install File Editor
- Open Settings → Add-ons → Add-on Store
- Install the File Editor
- Activate its display in the sidebar
- Open the configuration.yaml file
Enter MQTT sensors
Replace TOPIC with the MQTT topic you set in the level sensor.
mqtt:
sensor:
- name: "Level"
unique_id: "LS_Level"
state_topic: "stat/TOPIC/REL_LEVEL"
unit_of_measurement: "%"
icon: mdi:car-coolant-level
device:
identifiers: "LevelSensor"
manufacturer: "Senvolon"
name: "Level Sensor"
model: "V1"
- name: "Fluid"
unique_id: "LS_Fluid"
state_topic: "stat/TOPIC/FILLING"
unit_of_measurement: "l"
icon: mdi:water
device:
identifiers: "LevelSensor"
manufacturer: "Senvolon"
name: "Level Sensor"
model: "V1"
- name: "Distance"
unique_id: "LS_Distance"
state_topic: "stat/TOPIC/DISTANCE"
unit_of_measurement: "cm"
icon: mdi:waves-arrow-up
device:
identifiers: "LevelSensor"
manufacturer: "Senvolon"
name: "Level Sensor"
model: "V1"
- name: "Height"
unique_id: "LS_Height"
state_topic: "stat/TOPIC/LEVEL"
unit_of_measurement: "cm"
icon: mdi:waves
device:
identifiers: "LevelSensor"
manufacturer: "Senvolon"
name: "Level Sensor"
model: "V1"
- name: "Alert"
unique_id: "LS_Alert"
state_topic: "stat/TOPIC/ALERT"
icon: mdi:alert-circle-outline
device:
identifiers: "LevelSensor"
manufacturer: "Senvolon"
name: "Level Sensor"
model: "V1"
Check syntax and save
- Red exclamation mark = error
- Green check mark = syntax correct
- Then save the file
4. Restart Home Assistant
Reload once via Developer Tools → Restart.
5. See the level sensor in Home Assistant
After the restart, Home Assistant automatically detects the sensor. The values are updated as soon as new data arrives from the sensor.