Closed azrod closed 4 years ago
@azrod It seems quite normal for me. Each cover has a unique ID. You have three covers and three ids.
I have 7 different covers. I edited the file below so that the 7 covers go back
tydom_websocket.py
@@ -404,11 +404,11 @@ class TydomWebSocketClient():
# Get list of shutter
if i["last_usage"] == 'shutter':
# print('{} {}'.format(i["id_endpoint"],i["name"]))
- device_dict[i["id_endpoint"]] = i["name"]
+ device_dict[i["id_device"]] = i["name"]
# TODO get other device type
@@ -420,7 +420,7 @@ class TydomWebSocketClient():
try:
for elem in i["endpoints"][0]["data"]:
# Get full name of this id
- endpoint_id = i["endpoints"][0]["id"]
+ endpoint_id = i["id"]
# Element name
Merged your changes, thanks ! Don't hesitate !
Hello,
I have a bug on the covers. Several covers have the same ID.
While in debug mode, the covers have a different ID
Thanks for your help, Regards