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?
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?