-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Somfy Exterior Screens are continious updating when using beta 4.2.20 #56
Comments
Problems are solved. I have modified 2 files, utils.py and plugin.py. In utils.py i modified the funcion: filter_states(data) by adding a variable 'deviceClass'. This variable is used to put the deviceclass (device["definition"]["uiClass"] into the statelist. This is used to select the right device in plugin.py. `def filter_states(Data):
In plugin.py i have modified the function: update_devices_status(self, Updated_devices) by adding a variable: Modified plugin.py, part of function: update_devices(self, `Updated_devices: ` def update_devices_status(self, Updated_devices):
These changes works for me. |
added to beta version. |
I am using 6 Somfy IO devices, 3 RollerShutter, 2 ExtoriorScreen and 1 Awning. In master version the Awning was not updating, see issue #53 and #55. Those issues where solved in Beta 4.2.20. But the modified plugin.py created another issue, the continious updating of the exterior screens. The problem is that the awning has 2 trigger events (OpenCloseState and DeploymentState), the exterior screens 3 (OpenCloseState, DeploymentState and ClosureState). I tried to modify the plugin.py but i have too little Python program skills to fix this problem. The problem is that the status of the exterior screens is constantly changing by the triggers OpenCloseState and DeplomentState. A solution could by that the DeploymentState is only triggert by the Awning, an extra If statement between the lines 383-386. I don't know how to insert that's the Awning who is triggering.
I am running Domoticz 2023.2 32 bit, OS is Bullseye 32 bit on a PI3B
The text was updated successfully, but these errors were encountered: