Skip to content

Add watchdog to set sensor state to unavailable on missing telegrams #11

@shurli

Description

@shurli

Hi @farmio,
This is a feature suggest.

Sometimes KNX devices fail or their connection get lost due to environmental issues. e.g. weather station, animals, ... or are badly designed and gets stuck. In these cases no more WriteTelegrams wether value-changed-triggered or cyclic will be received.
For now the sensor entity state will stay on its last value forever or at least till a HA restart when it gets "unknown" due to a failing initial read.

I would like to see a "watchdog" or "timeout" config option to set a duration in which a telegram needs to get received otherwise the entity state will change to "unavailable".
This state change could then be used to trigger problem notifications or bring systems in fail-safe-modes.

I think the code to implement the feature is pretty the same like in the sync_state: expire function.
There is also a timer listening to the WriteTelegrams and in case fires the ReadTelegram.

Like to here your response on this idea.
Lg shurli

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions