Page 9 of 9

Re: Support for Somfy Connexoon and Tahoma

Posted: Tuesday 29 April 2025 22:02
by TheoL
Where can I find that one? And thanx for the quick response

Re: Support for Somfy Connexoon and Tahoma

Posted: Tuesday 29 April 2025 22:06
by madpatrick
1. Search in this topic
2. Google
3, https://github.com/MadPatrick/somfy

Re: Support for Somfy Connexoon and Tahoma

Posted: Tuesday 29 April 2025 22:10
by TheoL
That is the one I installed. And I followed those instructions. Although it's weird that the logs give a different version.

I think things went wrong, because I already had installed the old one first. I did find it strange that the config was messed up.

Now I'm getting these warnings:
2025-04-29 22:24:42.876 Error: Somfy: Call to function 'onStart' failed, exception details:
2025-04-29 22:24:42.878 Error: Somfy: Traceback (most recent call last):
2025-04-29 22:24:42.878 Error: Somfy: File "/home/domoticz_root/domoticz/plugins/somfy/plugin.py", line 576, in onStart
2025-04-29 22:24:42.878 Error: Somfy: _plugin.onStart()
2025-04-29 22:24:42.878 Error: Somfy: File "/home/domoticz_root/domoticz/plugins/somfy/plugin.py", line 165, in onStart
2025-04-29 22:24:42.878 Error: Somfy: self.tahoma.activate_token(pin,self.tahoma.token)
2025-04-29 22:24:42.878 Error: Somfy: File "/home/domoticz_root/domoticz/plugins/somfy/tahoma_local.py", line 119, in activate_token
2025-04-29 22:24:42.878 Error: Somfy: raise exceptions.LoginFailure("failed to activate token")
2025-04-29 22:24:42.878 Error: Somfy: exceptions.LoginFailure: failed to activate token
2025-04-29 22:25:06.115 Error: Somfy: Failed to request data: HTTPSConnectionPool(host='2033-9273-2678%20.local', port=8443): Max retries exceeded with url: /enduser-mobile-web/1/enduserAPI/setup/devices (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9833f5e0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
2025-04-29 22:25:30.116 Error: Somfy: Failed to request data: HTTPSConnectionPool(host='2033-9273-2678%20.local', port=8443): Max retries exceeded with url: /enduser-mobile-web/1/enduserAPI/setup/devices (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9833f4f0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
2025-04-29 22:25:54.110 Error: Somfy: Failed to request data: HTTPSConnectionPool(host='2033-9273-2678%20.local', port=8443): Max retries exceeded with url: /enduser-mobile-web/1/enduserAPI/setup/devices (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9833f640>: Failed to establish a new connection: [Errno -2] Name or service not known'))

Okay I got it. I accidently added a space character behind the PIN. The plugin didn't like that. I see my devices now. Thanx for your time.

Re: Support for Somfy Connexoon and Tahoma

Posted: Monday 05 May 2025 14:49
by Rik60
I am running the beta version of the plugin, 4.2.22. It's working fine but causes an error in the Domoticz logging (Python, key error) when one of the devices was moving. I have solved this error by modifing the plugin.py file. I have added 2 lines around line 360, see attached pictures. To use the attached file, remove the.txt extension. I am controlling 2 roller shutters, 3 screens and 1 awning, Somfy IO system. Domoticz version 2025.1 build 16675. I am running this modified plugin now for an 1/2 year without problems/ errors

Re: Support for Somfy Connexoon and Tahoma

Posted: Monday 05 May 2025 15:02
by madpatrick
thanks

Added to the beta 4.2.23

Tip.
Better to add text is a bracket field </> then by using a picture
You can thr easily copy the text


OLD

Code: Select all

            if dataset["deviceURL"] not in Devices:
                Domoticz.Error("device not found for URL: "+str(dataset["deviceURL"]))
                logging.error("device not found for URL: "+str(dataset["deviceURL"])+" while updating states")
                continue #no deviceURL found that matches to domoticz Devices, skip to next dataset
            if (dataset["deviceURL"].startswith("io://")):
                dev = dataset["deviceURL"]
NEW

Code: Select all

            if dataset["deviceURL"] not in Devices:
                Domoticz.Error("device not found for URL: "+str(dataset["deviceURL"]))
                logging.error("device not found for URL: "+str(dataset["deviceURL"])+" while updating states")
                continue #no deviceURL found that matches to domoticz Devices, skip to next dataset
            if (dataset["name"] == "DeviceStateChangedEvent"):
                continue #dataset does not contain correct event, skip to next dataset
            if (dataset["deviceURL"].startswith("io://")):
                dev = dataset["deviceURL"]

Re: Support for Somfy Connexoon and Tahoma

Posted: Monday 05 May 2025 15:23
by Rik60
Please check line 8 of the new beta file. It is still 4.2.22

Re: Support for Somfy Connexoon and Tahoma

Posted: Monday 05 May 2025 15:25
by madpatrick
I saw it also, Thanks
The master is now 4.2.23

Re: Support for Somfy Connexoon and Tahoma

Posted: Monday 05 May 2025 17:20
by Rik60
madpatrick wrote: Monday 05 May 2025 15:25 I saw it also, Thanks
The master is now 4.2.23
Please check in the Master version the Utils.py file. Now the master is updated with de beta plugin.py file, use in the new master version also the Utils.py file from the beta version.
Thanks

Re: Support for Somfy Connexoon and Tahoma

Posted: Tuesday 06 May 2025 9:25
by Rik60
Tested the new master version 4.2.23 with the new plugin.py and utils.py files. Everyting working fine, updating without errors. Running the plugin with the new Domoticz stable 2025.1. No problems, errors.
Thanks for updating the plugin.