Support for Somfy Connexoon and Tahoma
Moderators: leecollings, remb0
-
- Posts: 17
- Joined: Tuesday 22 September 2015 18:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.7
- Contact:
Re: Support for Somfy Connexoon and Tahoma
Where can I find that one? And thanx for the quick response
- madpatrick
- Posts: 659
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Support for Somfy Connexoon and Tahoma
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
-
- Posts: 17
- Joined: Tuesday 22 September 2015 18:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.7
- Contact:
Re: Support for Somfy Connexoon and Tahoma
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.
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.
-
- Posts: 88
- Joined: Sunday 25 June 2023 21:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.3
- Location: The Netherlands
- Contact:
Re: Support for Somfy Connexoon and Tahoma
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
- Attachments
-
- Modified_plugin.py_4.2.22.jpg (67.97 KiB) Viewed 80 times
-
- plugin.py_4.2.22.jpg (77.51 KiB) Viewed 80 times
-
- plugin.py.txt
- (33.45 KiB) Downloaded 5 times
- madpatrick
- Posts: 659
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Support for Somfy Connexoon and Tahoma
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
NEW
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"]
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"]
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
-
- Posts: 88
- Joined: Sunday 25 June 2023 21:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.3
- Location: The Netherlands
- Contact:
Re: Support for Somfy Connexoon and Tahoma
Please check line 8 of the new beta file. It is still 4.2.22
- madpatrick
- Posts: 659
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Support for Somfy Connexoon and Tahoma
I saw it also, Thanks
The master is now 4.2.23
The master is now 4.2.23
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
-
- Posts: 88
- Joined: Sunday 25 June 2023 21:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.3
- Location: The Netherlands
- Contact:
Re: Support for Somfy Connexoon and Tahoma
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
-
- Posts: 88
- Joined: Sunday 25 June 2023 21:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.3
- Location: The Netherlands
- Contact:
Re: Support for Somfy Connexoon and Tahoma
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.
Thanks for updating the plugin.
Who is online
Users browsing this forum: No registered users and 1 guest