Page 10 of 11

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 31 December 2025 18:40
by madpatrick
I made some changes but i'm not able to test it
Can you try version 5.0.2

If this is not working i'll add more logging in debug to see what is happening

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 01 January 2026 15:43
by Rik60
Updated the beta, now running 5.0.2, nothing changed. I can control all devices but only the awning has no status update. There is another issue, if a device is moving, i can see in the logging that a fast device update should be active, every 10 sec, but the devices are updated every 20sec. I saw this also in earlier versions of the beta.
I created a debug somfy logging when a rolling shutter was active, after that the awning was active. I don't think i can upload it here, the file is about 6000kb

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 01 January 2026 16:12
by madpatrick
Can you create an issue on git.

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 01 January 2026 16:17
by Rik60
Ok. Going to create an issue.
For your information, deviceClassTrig is allways "Unknown".

Re: Support for Somfy Connexoon and Tahoma

Posted: Saturday 03 January 2026 14:42
by madpatrick
Version 5.1.1 has been released

It has been tested but not with every devices.
If you have any finding please report on git about is

The parameters in the hardware setup has been relocated for some settings so you need to change some fields if you upgrade from an older version.
When not familair with the plugin checkout the readme for for more information.

https://github.com/MadPatrick/domoticz_somfy

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 28 January 2026 19:38
by jpvaneijk
Hi Patrick,

I was ready for an overhaul and switched to a clean Trixie (Debian 13) OS on my Raspberry Pi 5.
I can't get your plugin installed, or at least, I can't see any devices.
Could this be due to Trixie? I don't see any error messages in the log as far as I can tell.

Thanks to Jan Jaap's help, I've been running my tilt-function blinds on Bookworm for a long time. But even the older version that runs successfully there doesn't work on Trixie. Very frustrating, and most AI tools offer little solace. Do you have any ideas?

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 28 January 2026 20:11
by madpatrick
I've no RPI or running on Trixie so i can not do a test
If i've some time a i'll setup a VM with Debian 13 and do some testing

It is possible that it is a python version issue and breaks some features
Can you enable the debug logging and monitor what is happening and check the Somfy.log

Maybe better to raise an issue on Git for this

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 28 January 2026 21:07
by Rik60
Just for information, i am running the plugin, latest master, on Trixie, Rpi3b+, Domoticz 2025.2. No issues here.

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 28 January 2026 21:20
by madpatrick
I've found the issue
In the later releases the creation of the devices is broken
So when you do an update it works.

There is not a quick fix (yet) and i need to dive in to this
The best way is to go back to an old release.

see https://github.com/MadPatrick/domoticz_somfy/releases
Maybe 4.2.16 is the best to use for now.


Only the sunset JSON can be giving an error due login setup
You can change the IP 127.0.0.1 in the plugin.py to your domoticz IP

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 29 January 2026 0:17
by madpatrick
i made a quick fix and i looks it is working now

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 29 January 2026 16:34
by madpatrick
ok. Just released version 5.1.6

Please test and let me know

Re: Support for Somfy Connexoon and Tahoma

Posted: Friday 30 January 2026 10:28
by Rik60
I have tested the latest version 5.1.6.
For me it works without problems. Just some remarks/ questions, what is the advantage of using a config file? The only parameter that is used in that file (at this moment) is the fast polling time (temp_time). The other parameters are set in the parameters section. Is it possible to add the fast polling time also in the parameter section, in the same Refresh Interval field?
I think it looks nicer if the Refresh Interval field has the same width as the three other fields.
Thanks for the updates.

Re: Support for Somfy Connexoon and Tahoma

Posted: Friday 30 January 2026 10:42
by madpatrick
Rik60 wrote: Friday 30 January 2026 10:28 I have tested the latest version 5.1.6.
For me it works without problems. Just some remarks/ questions, what is the advantage of using a config file? The only parameter that is used in that file (at this moment) is the fast polling time (temp_time). The other parameters are set in the parameters section. Is it possible to add the fast polling time also in the parameter section, in the same Refresh Interval field?
I think it looks nicer if the Refresh Interval field has the same width as the three other fields.
Thanks for the updates.
Hi Rik
I agree with you and i'm currently working to remove soe of the settings in the config.txt file
The problem is the limitation within Domoticz in the use of parameter fields

Re: Support for Somfy Connexoon and Tahoma

Posted: Friday 30 January 2026 11:13
by madpatrick
I've pushed a new version in the beta branch.
The config.txt is now limited and no reload by changes of the config.txt. Only on start of the plugin of update in the setting page

https://github.com/MadPatrick/domoticz_somfy/tree/beta

Re: Support for Somfy Connexoon and Tahoma

Posted: Friday 30 January 2026 17:19
by Rik60
Moved to beta 5.1.7. No issues. I can't test the creating of new devices.

Re: Support for Somfy Connexoon and Tahoma

Posted: Friday 30 January 2026 20:46
by Rik60
Made some changes in plugin.py:

Code: Select all

        <param field="Mode2" label="Refresh interval" width="100px" default="30;900;15"/>
        <param field="Mode3" label="Night Mode" width="100px" default="30;60"/>
and

Code: Select all

        # Check Mode2 and set default as empty or invalid
        if not Parameters.get('Mode2') or ';' not in Parameters['Mode2']:
            Domoticz.Log("Mode2 leeg of ongeldig, instellen op standaard 30;900;15")
            Parameters['Mode2'] = "30;900;15"

        # Check Mode3 (sunrise;sunset; delay)
        if not Parameters.get('Mode3') or ';' not in Parameters['Mode3']:
            Domoticz.Log("Mode3 leeg of ongeldig, instellen op standaard 30;60")
            Parameters['Mode3'] = "30;60"

        try:
            sr_delay_str, ss_delay_str = Parameters['Mode3'].split(';')
            self.sunriseDelay = int(sr_delay_str.strip())
            self.sunsetDelay = int(ss_delay_str.strip())

        except Exception as e:
            Domoticz.Error("Invalid Mode3 value, using defaults 30;60: " + str(e))
            self.sunriseDelay = 30
            self.sunsetDelay = 60

        try:
            day_str, night_str, tmp_str = Parameters['Mode2'].split(';')
            self.dayInterval = int(day_str.strip())
            self.nightInterval = int(night_str.strip())
            self.temp_delay = int(tmp_str.strip())

        except Exception as e:
            Domoticz.Error("Invalid Mode2 value, using defaults 30;900;15: " + str(e))
            self.dayInterval = 30
            self.nightInterval = 900
            self.temp_delay = 15
Now there are 3 variables in the Refress Interval field. In the config file i have disabled the 2 temp times.

Re: Support for Somfy Connexoon and Tahoma

Posted: Saturday 31 January 2026 14:59
by jpvaneijk
Rik60 wrote: Wednesday 28 January 2026 21:07 Just for information, i am running the plugin, latest master, on Trixie, Rpi3b+, Domoticz 2025.2. No issues here.
Hi,

I've been working on my RPi 5 with Trixie for days now, but I can't get any devices to show up in Domoticz.
When I try to retrieve data from my Tahoma Classic in the terminal, I see the following, which shows that the token, the IP of the Tahoma, and the PIN are correct and working properly.

Code: Select all

Naam                      | Type (uiClass)
--------------------------------------------------
IO (10459781)             | ProtocolGateway
Aanraakgevoelige knop     | Pod
Rolluik kleedkamer        | RollerShutter
Jalouzie                  | ExteriorVenetianBlind
Rolluik slaapkamer        | RollerShutter
Rolluik Lynn              | RollerShutter
Rolluik Tess              | RollerShutter
You would do me a huge favor if you could walk me through the process of installing this plugin step by step. I'm starting to lose hope.

Thank you so, so much in advance for your help!

Re: Support for Somfy Connexoon and Tahoma

Posted: Saturday 31 January 2026 15:41
by madpatrick
Which version are you using?
Please try it with the latest beta version (main should also work)

Enable debug logging to see what is happening
I just tried on a clean debian 13 install and it creates the devices

Code: Select all

2026-01-31 15:37:09.686 Status: Somfy: Initialized version 5.1.8, author 'MadPatrick'
2026-01-31 15:37:09.686 Somfy: Starting Tahoma blind plugin, logging to file /var/log/somfy.log
2026-01-31 15:37:09.686 Somfy: Somfy: Config.txt loaded. Temp Polling set to: 15s voor 120s
2026-01-31 15:37:11.507 Somfy: New device created: Kamer_Klein
2026-01-31 15:37:11.508 Somfy: New device created: Thomas_1
2026-01-31 15:37:11.508 Somfy: New device created: Thomas_2
2026-01-31 15:37:11.508 Somfy: New device created: Aanraakgevoelige knop
2026-01-31 15:37:11.508 Somfy: New device created: Erker_3
2026-01-31 15:37:11.509 Somfy: New device created: Erker_Deur
2026-01-31 15:37:11.509 Somfy: New device created: Erker_2
2026-01-31 15:37:11.509 Somfy: New device created: Erker_4
2026-01-31 15:37:11.509 Somfy: New device created: Erker_1
2026-01-31 15:37:11.509 Somfy: New device created: Slaapkamer
2026-01-31 15:37:11.510 Somfy: New device created: Kamer_Groot
2026-01-31 15:37:11.510 Somfy: New device created: Erker_5
2026-01-31 15:37:11.510 Status: Somfy: Updating device : Kamer_Klein
2026-01-31 15:37:11.511 Status: Somfy: Updating device : Thomas_1
2026-01-31 15:37:11.512 Status: Somfy: Updating device : Thomas_2
2026-01-31 15:37:11.513 Status: Somfy: Updating device : Erker_3
2026-01-31 15:37:11.514 Status: Somfy: Updating device : Erker_Deur
2026-01-31 15:37:11.515 Status: Somfy: Updating device : Erker_2
2026-01-31 15:37:11.515 Status: Somfy: Updating device : Erker_4
2026-01-31 15:37:11.516 Status: Somfy: Updating device : Erker_1
2026-01-31 15:37:11.517 Status: Somfy: Updating device : Slaapkamer
2026-01-31 15:37:11.518 Status: Somfy: Updating device : Kamer_Groot
2026-01-31 15:37:11.519 Status: Somfy: Updating device : Erker_5
2026-01-31 15:37:11.629 Status: [web:8080] Incoming connection from: 127.0.0.1
2026-01-31 15:37:11.629 Somfy: Day mode starts at 07:54 | Night mode starts at 18:30
2026-01-31 15:37:11.629 Somfy: Daily refresh: host=127.0.0.1, port=8080, Day Interval=30s, Night Interval=900s, Sunrise Delay=30m, Sunset Delay=60m, Temp polling: 15s for 2m
2026-01-31 15:37:11.629 Somfy: Daily refresh: New setting sunrise=08:24 sunset=17:30
2026-01-31 15_40_40-Greenshot.png
2026-01-31 15_40_40-Greenshot.png (11.61 KiB) Viewed 145 times
Did you add your IP to your DNS

Code: Select all

Your Somfy box needs the traceable in your network. To do this, you need to link your Somfy Box PIN to the Somfy Box IP address. Add your Somfy Box PIN number to the IP in your local network in etc/hosts or in your DNS Server
192.168.1.1 1234-1234-1234.local


192.168.1.1 is the IP of your Somfy box
1234-1234-1234 is the PIN number of your Somfy box and don't forget to add .local to the PIN number

Re: Support for Somfy Connexoon and Tahoma

Posted: Saturday 31 January 2026 16:01
by jpvaneijk
Hi Patrick and others,

I finally got it working. I used the following git clone and suddenly all the devices appeared! Phew, what a relief!

Code: Select all

git clone https://github.com/MadPatrick/domoticz_somfy.git
First I cleaned everything up, then restarted, and other than that I really don't know what else is/was different.
I can see now that I was using version 5.1.8, but that's beside the point. From now on, I'm going to sit very quietly ;-)

Thank you very much for sharing your thoughts, Patrick. Occasionally, it remains a matter of trial and error.

Re: Support for Somfy Connexoon and Tahoma

Posted: Saturday 31 January 2026 17:01
by madpatrick
Good to hear it is working.
I've pushed the Beta now to the Main branch