Support for Somfy Connexoon and Tahoma

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

MikeyMan
Posts: 237
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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 ;)
User avatar
madpatrick
Posts: 636
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
MikeyMan
Posts: 237
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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.
JanJaap
Posts: 191
Joined: Thursday 12 October 2017 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Dev
Location: the Netherlands
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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 :lol: 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.
Last edited by JanJaap on Wednesday 31 August 2022 14:24, edited 1 time in total.
RPi 3, Domoticz dev version, Aeon ZWave stick (with a whole bunch of slaves), Zigbee using Zigbee2MQTT, Nest thermo, P1 smart meter on RPi Zero
User avatar
madpatrick
Posts: 636
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
JanJaap
Posts: 191
Joined: Thursday 12 October 2017 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Dev
Location: the Netherlands
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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.......
RPi 3, Domoticz dev version, Aeon ZWave stick (with a whole bunch of slaves), Zigbee using Zigbee2MQTT, Nest thermo, P1 smart meter on RPi Zero
MikeyMan
Posts: 237
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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.
JanJaap
Posts: 191
Joined: Thursday 12 October 2017 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Dev
Location: the Netherlands
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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?
RPi 3, Domoticz dev version, Aeon ZWave stick (with a whole bunch of slaves), Zigbee using Zigbee2MQTT, Nest thermo, P1 smart meter on RPi Zero
MikeyMan
Posts: 237
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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.
User avatar
madpatrick
Posts: 636
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
JanJaap
Posts: 191
Joined: Thursday 12 October 2017 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Dev
Location: the Netherlands
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by JanJaap »

Should be possible to add this as a configuration. Presuming all the commands are the same
RPi 3, Domoticz dev version, Aeon ZWave stick (with a whole bunch of slaves), Zigbee using Zigbee2MQTT, Nest thermo, P1 smart meter on RPi Zero
User avatar
madpatrick
Posts: 636
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
User avatar
madpatrick
Posts: 636
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
MikeyMan
Posts: 237
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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 :)
MikeyMan
Posts: 237
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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!
MikeyMan
Posts: 237
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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?
MikeyMan
Posts: 237
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by MikeyMan »

Re adding the hardware doesnt help.

ah, never mind, there was already an update
User avatar
madpatrick
Posts: 636
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
MikeyMan
Posts: 237
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by MikeyMan »

On it!

Git pull for update is not an option anymore? Have to reinstall fully?
User avatar
madpatrick
Posts: 636
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post 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
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest