Skip to content

Dirigera changing "index" #129

Description

@LarsJensen69

Hi all

sometimes Dirigere are changing the order of sensors:

current = hub.get_open_close_sensors()
for i in range(len(current)):
raindrop=current[0].attributes.is_open;
dooropen=current[1].attributes.is_open;

What happens is that the sensor with [1] suddenly calls the sensor thar was [0} before.
This night it happend in 2 different Hubs at the same time.
Can I call sensors by name - and how?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions