Page 4 of 9
Re: Support for Somfy Connexoon and Tahoma
Posted: Thursday 18 August 2022 12:58
by MikeyMan
madpatrick wrote: ↑Thursday 18 August 2022 8:57
MikeyMan wrote: ↑Wednesday 17 August 2022 20:05
@madpatrick @JanJaap any appetite from you guys to have a look into the local API before the online one stops?
Hi MikeyMan,
I'm more then willing to help you, but do not have any program skills.
JanJaap did all the programming Python.
What do you mean with "before the online one stops" ?
Yesterday the Somfy server was down for a whole day and therefor the plugin didn't work.
This is a real problem because the Somfy server is not working from time to time.
So the local API is definetaly a way forward, but we need to have some support from a python programmer.
I know that JanJaap pretty busy at the moment
Well, i can only imagine that Somfy wants to cut back on the costs for their 'old' API, and thats why they are moving to the new local solution.
Don't have any programming skills myself, so at this moment it's all a matter of trial and error. No clue if i'm able to get anywhere.
Already proud of myself for getting the API's to work from a python script

Re: Support for Somfy Connexoon and Tahoma
Posted: Thursday 18 August 2022 13:38
by madpatrick
MikeyMan wrote: ↑Thursday 18 August 2022 12:58
madpatrick wrote: ↑Thursday 18 August 2022 8:57
MikeyMan wrote: ↑Wednesday 17 August 2022 20:05
@madpatrick @JanJaap any appetite from you guys to have a look into the local API before the online one stops?
Hi MikeyMan,
I'm more then willing to help you, but do not have any program skills.
JanJaap did all the programming Python.
What do you mean with "before the online one stops" ?
Yesterday the Somfy server was down for a whole day and therefor the plugin didn't work.
This is a real problem because the Somfy server is not working from time to time.
So the local API is definetaly a way forward, but we need to have some support from a python programmer.
I know that JanJaap pretty busy at the moment
Well, i can only imagine that Somfy wants to cut back on the costs for their 'old' API, and thats why they are moving to the new local solution.
Don't have any programming skills myself, so at this moment it's all a matter of trial and error. No clue if i'm able to get anywhere.
Already proud of myself for getting the API's to work from a python script
I agree. Somfy has a lot of problems with their server.
Often they are out of service
What do you have already working with your script ?
Are the devices visible and added to Domoticz
Can you operate them?
I'm very curious
I like to empahize that the current script made by JanJaap is working very good and the only problem with it is the Somfy server
Re: Support for Somfy Connexoon and Tahoma
Posted: Thursday 18 August 2022 14:25
by MikeyMan
madpatrick wrote: ↑Thursday 18 August 2022 13:38
MikeyMan wrote: ↑Thursday 18 August 2022 12:58
madpatrick wrote: ↑Thursday 18 August 2022 8:57
Hi MikeyMan,
I'm more then willing to help you, but do not have any program skills.
JanJaap did all the programming Python.
What do you mean with "before the online one stops" ?
Yesterday the Somfy server was down for a whole day and therefor the plugin didn't work.
This is a real problem because the Somfy server is not working from time to time.
So the local API is definetaly a way forward, but we need to have some support from a python programmer.
I know that JanJaap pretty busy at the moment
Well, i can only imagine that Somfy wants to cut back on the costs for their 'old' API, and thats why they are moving to the new local solution.
Don't have any programming skills myself, so at this moment it's all a matter of trial and error. No clue if i'm able to get anywhere.
Already proud of myself for getting the API's to work from a python script
I agree. Somfy has a lot of problems with their server.
Often they are out of service
What do you have already working with your script ?
Are the devices visible and added to Domoticz
Can you operate them?
I'm very curious
I like to empahize that the current script made by JanJaap is working very good and the only problem with it is the Somfy server
If only...
No at this point i've got:
- Token working through API
- All API's working
- All API's callable through python script
- Neat JSON response from API's.
Nothing done with Domoticz whatsoever. First step is to see if i can get the script to come up with the right filtered devices.
I do think that the API's are 99% the same. And even easier, because the connections are easier to make.
My issue with the current script is that it is dependent on Somfy, and that it won't allow other sensors to be added. Which is neccesary since i want to make the operating of the screens dependent on the room temperature and lighting conditions.
Re: Support for Somfy Connexoon and Tahoma
Posted: Wednesday 31 August 2022 14:13
by JanJaap
Hi guys,
Just back from holiday, hence some silence from my side....
I read here that local and web API's are pretty similar: I would expect so: just the address part of the URL is probably different and maybe some authentication?
Anyhow, I can fix those sensors quite easily into the plugin. I see your use-case: I also have a lot of automation that takes readings from one hardware and use it to control something on an other hardware (example: read out my Nest thermostat + a temp/humidity reader via Zigbee in the bathroom to switch a ventilation unit via Zwave) which can be done easily with Domoticz in the middle.
Just wondering a bit on how to continue: I have prepared a new branch with the control of the tilting of the blinds which takes the new framework. I strongly prefer to continue on that branch ( I can merge all the things done by ab10002 ) and start adding the local API from there. But It would require you to re-install your devices. A bit of work for a man but a giant leap for the plugin

Let me know if you're OK with that.
As some background: the new plugin framework allows to connect multiple domoticz widgets to 1 somfy device (this was not possible before). For example to send both up/down as well as tilt commands to a venetian blind. Or control a light connected to a sun screen. So I think this is quite valuable.
Re: Support for Somfy Connexoon and Tahoma
Posted: Wednesday 31 August 2022 14:17
by madpatrick
Hey JanJaap
I agree to continue with the new Beanch
If this means to add the decices back it not a big issue.
I’ve made a Beta branch with some small adoptions of ab10002
Re: Support for Somfy Connexoon and Tahoma
Posted: Wednesday 31 August 2022 14:25
by JanJaap
OK, cool, will get to it! I will make an error when someone needs to upgrade so it doesn't end up in a swamp...... Expect some updates probably around the weekend. Have some home chores on my list first.......
Re: Support for Somfy Connexoon and Tahoma
Posted: Thursday 01 September 2022 7:27
by MikeyMan
New branch is fine with me. However, I still expect that Somfy will drop support for the old APIs at some point. Might be better to switch to the local API from the get go while we're at it.
Or do you mean it could facilitate both?
I've got a working postman.co I can share if you like.
Re: Support for Somfy Connexoon and Tahoma
Posted: Thursday 01 September 2022 16:36
by JanJaap
Well my idea is to first consolidate all changes on the web API and then see to move it to local API. As I understood those aren't too different?
Re: Support for Somfy Connexoon and Tahoma
Posted: Friday 02 September 2022 11:07
by MikeyMan
JanJaap wrote: ↑Thursday 01 September 2022 16:36
Well my idea is to first consolidate all changes on the web API and then see to move it to local API. As I understood those aren't too different?
As far as i consider with my -very!- limited programming experience not.
It's even simpler as it is a local connection.
Only thing that has been bugging me is the mDNS handling of the .local address. But direct ip also works.
Re: Support for Somfy Connexoon and Tahoma
Posted: Thursday 08 September 2022 16:39
by madpatrick
MickeyMan,
Is it possible to use the Local API together with the current remote API ?
Then makes the testing and swith in the future easier
Re: Support for Somfy Connexoon and Tahoma
Posted: Friday 09 September 2022 16:11
by JanJaap
Should be possible to add this as a configuration. Presuming all the commands are the same
Re: Support for Somfy Connexoon and Tahoma
Posted: Friday 09 September 2022 16:12
by madpatrick
Sorry. I ment from the Tahoma box side.
You have to put the box in Developer Mode. I do not know what then happens
Re: Support for Somfy Connexoon and Tahoma
Posted: Friday 09 September 2022 16:52
by madpatrick
Hi All,
The plugin has been update to v2.2.0 and is now having support for the Somfy Sunis IO Luxsensor
The has all been achieved by ab10002 and now is incorporated in the plugin Master branch
Please do some testing and give us your feedback
Re: Support for Somfy Connexoon and Tahoma
Posted: Monday 26 September 2022 14:30
by MikeyMan
madpatrick wrote: ↑Friday 09 September 2022 16:12
Sorry. I ment from the Tahoma box side.
You have to put the box in Developer Mode. I do not know what then happens
I'm still using the existing plugin, so i'd say it should work

Re: Support for Somfy Connexoon and Tahoma
Posted: Monday 26 September 2022 14:37
by MikeyMan
madpatrick wrote: ↑Friday 09 September 2022 16:52
Hi All,
The plugin has been update to v2.2.0 and is now having support for the Somfy Sunis IO Luxsensor
The has all been achieved by ab10002 and now is incorporated in the plugin Master branch
Please do some testing and give us your feedback
Updated the plugin, it didn't automatically add the device.
Upon removing and adding the hardware it did.
Currently reading 0 lux, but i don't know if there's a polling interval of some kind.
edit: yes, value is working now!
Re: Support for Somfy Connexoon and Tahoma
Posted: Tuesday 01 November 2022 15:42
by MikeyMan
getting some errors now:
Code: Select all
2022-11-01 15:40:18.266 Error: Somfy Tahoma: Call to function 'onCommand' failed, exception details:
2022-11-01 15:40:18.267 Error: Somfy Tahoma: Traceback (most recent call last):
2022-11-01 15:40:18.267 Error: Somfy Tahoma: File "/home/pi/domoticz/plugins/somfy/plugin.py", line 462, in onCommand
2022-11-01 15:40:18.268 Error: Somfy Tahoma: _plugin.onCommand(DeviceId, Unit, Command, Level, Color)
2022-11-01 15:40:18.268 Error: Somfy Tahoma: File "/home/pi/domoticz/plugins/somfy/plugin.py", line 179, in onCommand
2022-11-01 15:40:18.268 Error: Somfy Tahoma: data = {"label": "Domoticz - "+Devices[DeviceId].Units[Unit].Name+" - "+commands["name"], "actions": self.actions_serialized}
2022-11-01 15:40:18.268 Error: Somfy Tahoma: KeyError: 'name'
Any thoughts?
Re: Support for Somfy Connexoon and Tahoma
Posted: Thursday 03 November 2022 15:28
by MikeyMan
Re adding the hardware doesnt help.
ah, never mind, there was already an update
Re: Support for Somfy Connexoon and Tahoma
Posted: Saturday 05 November 2022 19:26
by madpatrick
There is a major update of for the Somfy plugin.
Now it also possible to connect to the Somfy Tahoma box locally.
With the plugin you can select to connect to your Somfy equipment through web API or local access directly to your box.
The Somfy web API is still buggy (on the Somfy side) so we think the local access is more stable
Please give it a try and give us your feedback.
A big thanks to JanJaap how did all the programming and to AB10002 for the help, support and testing
You can find the plugin here :
Code: Select all
git clone https://github.com/MadPatrick/somfy
Please read the readme file for a proper setup
Re: Support for Somfy Connexoon and Tahoma
Posted: Monday 07 November 2022 9:48
by MikeyMan
On it!
Git pull for update is not an option anymore? Have to reinstall fully?
Re: Support for Somfy Connexoon and Tahoma
Posted: Monday 07 November 2022 9:55
by madpatrick
Sure.
If you have the plugin already installed you can do Git Pull.
Check which version you have.
If you have an old version you might need to remove the devices first.
The devices will be recreated after startup of the plugin