Skip to content

ExposeSensor write/update value #593

@farmio

Description

@farmio

An ExposeSensor value currently gets overwritten by a Telegram from the KNX bus. This is equivalent to a communication object with the write and update flags set.

If we expose a value from HA and the ExposeSensor receives a GroupValueRead request it will respond with its latest received value instead of the last value from HA.

We could add a update_from_bus: bool attribute for ExposeSensor devices that prevent it from processing GroupValueWrite and GroupValueResponse telegrams.


I just sumbled over this in tests. I'm not sure if this is is a real-word problem because the GA the ExposeSensor sends to should not be used to send by other devices imho but I may have overlooked something.

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