Skip to content

Add proper support for Battery CC "battery low" notification #135

@AlCalzone

Description

@AlCalzone

Related to: home-assistant/core#150898

zwave-js/zwave-js#7984 added a new "battery low" notification to fix an issue where Z-Wave JS incorrectly interpreted the corresponding command from a device. This notification used to overwrite the battery level with 0, even if the battery still had some power left.

Instead of a stateful "isLow" value, Z-Wave JS now exposes an event, similar to Notification CC and some other CCs. This event includes information whether the battery needs replacement soon or now: https://zwave-js.github.io/zwave-js/#/api/node?id=battery-cc

According to the Z-Wave specs,

Controllers SHOULD inform the user that the battery needs replacement each time the low-battery warning (0xFF) is received.

Not sure how other integrations handle this, but I think a dismissable repair issue could be a good way to handle this.

Metadata

Metadata

Assignees

Labels

backendThis bug or request (primary) involves the Home Assistant backend/integration

Type

No type

Projects

Status

Later

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions