Hi folks,
I’m trying a little to transfer the telemetry data collected via a separate CAN-BUS controller to the Home Assistant via MQTT.
That works quite well so far, only I fail when creating a binary_sensor.
Here is my configuration:
binary_sensor:
- platform: mqtt
name: "Heizungsbrenner"
unique_id: "heatronic_brenner"
state_topic: "home/heizung/brenner"
payload_on: "1"
payload_off: "0"
The data (0 and 1) arrive at the MQTT broker in any case.
What am I doing wrong?
francisp
(Francis)
November 23, 2021, 7:02am
2
You restarted HA, or did a reload of manually configured mqtt entnties ?
Yes, I did several restarts
francisp
(Francis)
November 23, 2021, 7:18am
4
Do you have other mqtt entities ?
francisp
(Francis)
November 23, 2021, 7:51am
6
I don’t see anything wrong with the definition.
Are you sure you only have binary_sensor: 1 time in your configuration.yaml ?
why are you using this?
device map (optional)
Information about the device this binary sensor is a part of to tie it into the device registry.
Only works through MQTT discovery and when unique_id is set.
At least one of identifiers or connections must be present to identify the device.
Is this condition satisfied?
francisp
(Francis)
November 23, 2021, 8:14am
8
There is nothing wrong with using unique_id :
Thank you!
That was the problem