Repository navigation
Replies: 1 comment
|
If you want something ready, I can suggest you trying out advanced notifier, will give full entities on HA with a custom component |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
MQTT plugin does not expose Battery sensor via Home Assistant MQTT Discovery
Describe the bug
The Ring Doorbell plugin exposes the battery level correctly in Scrypted, and the MQTT plugin publishes the battery value, but the Home Assistant MQTT Discovery entity is not created for the battery sensor.
The device is a Ring Doorbell Gen 2 (
cocoa_doorbell).Environment
@scrypted/mqttCurrent behavior
The MQTT plugin correctly publishes the following discovery entities:
homeassistant/binary_sensor/scrypted-XXXX-29/BinarySensor/config
homeassistant/binary_sensor/scrypted-XXXX-29/MotionSensor/config
homeassistant/binary_sensor/scrypted-XXXX-29/Online/config
However, no battery sensor discovery message is published.
The actual battery value is available on MQTT:
/29/batteryLevel 100
So the value is exposed by Scrypted but there is no corresponding Home Assistant discovery configuration.
Expected behavior
The MQTT plugin should publish a Home Assistant MQTT Discovery sensor for the battery level, for example:
homeassistant/sensor/scrypted-XXXX-29/Battery/config
with:
device_class: batteryunit_of_measurement: %Example:
{ "name": "Battery", "state_topic": "/29/batteryLevel", "device_class": "battery", "unit_of_measurement": "%", "unique_id": "scrypted-XXXX-29-Battery", "device": { "name": "Citofono", "identifiers": ["XXXX"], "manufacturer": "Ring", "model": "Doorbell Gen 2 (cocoa_doorbell)" } }Additional information
The battery interface is visible in Scrypted:
Motion
Ringing
Battery
and the MQTT broker receives:
/29/batteryLevel 100
Only the Home Assistant MQTT Discovery message appears to be missing.
Possible impact
Adding this would allow Home Assistant users to have the complete Ring device representation:
Doorbell button
Motion sensor
Online status
Battery level
without requiring manual MQTT sensor configuration.
PS
Additional suggestion
The MQTT Discovery entity name for the doorbell button is currently exposed with the name
BinarySensor.For Ring Doorbell devices, a more descriptive name such as
RingSensor(orDoorbellButton) would improve the Home Assistant user experience and make the entity purpose clearer.All reactions