Je viens de mettre à jour.
J’ai ces 2 erreurs.
[2020-03-17 10:45:49][DEBUG] : Send http://localhost:9123/devices
[2020-03-17 10:45:49][DEBUG] : Result {"result": "ok", "devices": [{"position": 0, "name": "Store_face", "id": 0, "type": "Awning"}, {"position": 53, "name": "Lames", "id": 1, "type": "Blade"}, {"name": "Lumiere_droite", "id": 2, "type": "Light"}, {"position": 0, "name": "Store_gauche", "id": 3, "type": "Awning"}, {"position": 0, "name": "Store_droit", "id": 4, "type": "Awning"}, {"name": "Lumiere_gauche", "id": 5, "type": "Light"}, {"position": 99, "name": "Velux_Valentin", "id": 6, "type": "RollerShutter"}, {"position": 0, "name": "Velux_bureau", "id": 7, "type": "RollerShutter"}, {"position": 0, "name": "Velux_sejour_bas_droite", "id": 8, "type": "RollerShutter"}, {"position": 0, "name": "Velux_sejour_haut_droite", "id": 9, "type": "RollerShutter"}, {"position": 0, "name": "Velux_sejour_bas_gauche", "id": 10, "type": "RollerShutter"}, {"position": 0, "name": "Velux_sejour_haut_gauche", "id": 11, "type": "RollerShutter"}]}
[2020-03-17 10:45:49][DEBUG] : Create ID : Lames
[2020-03-17 10:45:49][DEBUG] : Create ID : Lumiere_droite
[2020-03-17 10:45:50][DEBUG] : Create ID : Lumiere_gauche
[2020-03-17 10:45:57][DEBUG] : Send http://localhost:9123/position/1
[2020-03-17 10:45:57][DEBUG] : Result {"result": "fail", "reason": "exception during execution", "message": "int() argument must be a string, a bytes-like object or a number, not 'Position'"}
[2020-03-17 10:45:57][DEBUG] : Update Lames at %
[2020-03-17 10:46:04][DEBUG] : Send http://localhost:9123/intensity/2
[2020-03-17 10:46:04][DEBUG] : Result {"result": "fail", "reason": "exception during execution", "message": "'Light' object has no attribute 'position'"}
[2020-03-17 10:46:04][DEBUG] : Update Lumiere_droite at %