Closed VictorvandenHoven closed 3 years ago
I am not sure why the message is published to the "homeassistant/binary_sensor/4D7BAAD014504FDF81FE3ED4C86A3EA2/ topic. When I publish it (by hand) to the "homeassistant/sensor/4D7BAAD014504FDF81FE3ED4C86A3EA2/topic and add some state and availability values, it seems to work well.
It must have something to do with this
In your case, binary_sensor
is selected because soilbatt1
has been identified as a "binary battery" (0
is OK, 1
is low). In that case, the inclusion of the v
unit is now making HASS complain.
I'm on it!
In your case,
binary_sensor
is selected becausesoilbatt1
has been identified as a "binary battery" (0
is OK,1
is low). In that case, the inclusion of thev
unit is now making HASS complain.I'm on it!
Thanks very much!
ecowitt2mqtt version 2.0.0-2
Describe the bug I get in logging of Home Assistant a lot (>100 per hour) of "Exception in async_discover when dispatching 'mqtt_discovery_new_binary_sensor_mqtt'" errors for my "MISOL/1 wireless soil moisture sensor" that talks to the GW1000. It concerns only the battery values of the device, other values are working well.
To Reproduce Steps to reproduce the behavior:
Expected behavior I would expect the battery values to be visible in the HA-overview dashboard, just like the other senor values
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Full error message:
config-part of Message on the MQTT-topic:
{"availability_topic": "homeassistant/binary_sensor/4D7BAAD014504FDF81FE3ED4C86A3EA2/soilbatt1/availability", "device": {"identifiers": ["4D7BAAD014504FDF81FE3ED4C86A3EA2"], "manufacturer": "Ecowitt", "model": "GW1000 Pro", "name": "GW1000 Pro", "sw_version": "GW1000_V1.6.8"}, "name": "soilbatt1", "qos": 1, "state_topic": "homeassistant/binary_sensor/4D7BAAD014504FDF81FE3ED4C86A3EA2/soilbatt1/state", "unique_id": "4D7BAAD014504FDF81FE3ED4C86A3EA2_soilbatt1", "device_class": "battery", "unit_of_measurement": "v"}