Page 1 of 9

Support for Somfy Connexoon and Tahoma

Posted: Saturday 06 July 2019 16:32
by gdisselkoen
I'm waiting for support of Somfy devices via the Somfy Connexoon.

There is very well documented API available that works for both the Connexoon box as the TaHoma box.

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 22 January 2020 18:13
by INendels
Here is a link to a python3 library, but i can't make it to work.

https://github.com/tetienne/somfy-open-api

hope this helps for integration in domoticz.

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 22 January 2020 21:45
by OedzesG
Domoticz plugin for Tahoma IO products... blinds interieur and exterieur!

https://github.com/nonolk/domoticz_tahoma_blind

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 23 January 2020 18:12
by INendels
thnx,

installed it and can control my screens, will test it a while because during connecting domoticz crashed a lot.
but i will see if domoticz keep running.

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 23 January 2020 18:45
by OedzesG
will test it a while because during connecting domoticz crashed a lot
i had the same progblem, after every device that was found i needed to restart my domoticz. (3 times in total)
but now it looks verry stable...

Re: Support for Somfy Connexoon and Tahoma

Posted: Saturday 01 February 2020 17:53
by nitpicker
OedzesG wrote: Wednesday 22 January 2020 21:45 Domoticz plugin for Tahoma IO products... blinds interieur and exterieur!

https://github.com/nonolk/domoticz_tahoma_blind
works this plugin also with the connexoon? because that device is a lot cheaper than the tahoma...

Re: Support for Somfy Connexoon and Tahoma

Posted: Sunday 02 February 2020 10:26
by Skippiemanz
nitpicker wrote:
OedzesG wrote: Wednesday 22 January 2020 21:45 Domoticz plugin for Tahoma IO products... blinds interieur and exterieur!

https://github.com/nonolk/domoticz_tahoma_blind
works this plugin also with the connexoon? because that device is a lot cheaper than the tahoma...
On github it is stated to work with the tahoma and the connexoon. I Will give it a try soon. Thanks for pointing at this Solution.

Re: Support for Somfy Connexoon and Tahoma

Posted: Monday 03 February 2020 12:07
by nitpicker
Skippiemanz wrote: Sunday 02 February 2020 10:26 On github it is stated to work with the tahoma and the connexoon. I Will give it a try soon. Thanks for pointing at this Solution.
You have both? The Tahoma and the Connexoon?

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 11 March 2020 14:05
by Skippiemanz
Nope i only have the connexcoon.

Just tested it out and worked flawlesly no crashes upon adding screens.

thanks!

Re: Support for Somfy Connexoon and Tahoma

Posted: Tuesday 31 March 2020 15:00
by sgsdebruijn
Hi all, try installing the stuff from github, but still no Tahoma in Domoticz by Hardware,

files are in
domoticz\domoticz_tahaoma_blind\
plugin.py

Python3 (3.6.9) installed

If starting the script,
~/domoticz/domoticz_tahoma_blinds$ python3 plugin.py
TRaceback (most recent call last):
File "plugin.py", line 21, in <module>
import Domoticz
ModuleNotFoudnError: No module name "Domoticz"


Who can help me out,

Re: Support for Somfy Connexoon and Tahoma

Posted: Tuesday 31 March 2020 15:29
by sgsdebruijn
made a plugins directory in Domoticz and installed the stuff in that directory.
Still no luck

Re: Support for Somfy Connexoon and Tahoma

Posted: Tuesday 31 March 2020 16:43
by sgsdebruijn
Problem was the version of Python and Pythonlib, this did the trick,

sudo apt-get install python3.7 libpython3.7 python3.7-dev -y

sudo systemctl restart domoticz.service

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 02 April 2020 21:38
by vspamn
I keep getting the following error:

Code: Select all

Tahoma auth error
I verified my credentials through https://dev.duboc.pro/tools/setup (server: TaHoma / Connexoon). I am using a Connexoon.

Any ideas?

Re: Support for Somfy Connexoon and Tahoma

Posted: Sunday 19 April 2020 8:49
by Hann1BaL
sgsdebruijn wrote: Tuesday 31 March 2020 16:43 Problem was the version of Python and Pythonlib, this did the trick,

sudo apt-get install python3.7 libpython3.7 python3.7-dev -y

sudo systemctl restart domoticz.service
Did this but:
Once I added the hardware the plugin was crashing regularly.
I found out that it happened when trying to switch multiple devices at once, when grouping devices per room.

So to control the devices I made a Dummy switch Blinds Percentage Inverted
And used that too control a dzvents script, which eiher fully Opens, Closes or set to the level on the dummy switch:

Code: Select all

return {
	on = {
		devices = {
			1205
		}
	},
	execute = function(domoticz, kantoor)
		domoticz.log(kantoor.rawData[1])
		--domoticz.log(kantoor.state)
		if (kantoor.state == 'Closed') then
		    domoticz.devices(1192).close()
		    domoticz.devices(1197).close().afterSec(1)
		elseif (kantoor.state == 'Open') then
		    domoticz.devices(1192).open()
		    domoticz.devices(1197).open().afterSec(1)
		else
		    domoticz.devices(1192).setLevel(kantoor.rawData[1])
		    domoticz.devices(1197).setLevel(kantoor.rawData[1]).afterSec(1)
		end
	end
}
1205 is the dummy switch
1192 and 1197 are 2 windows in the office room.
The aftersec(1) (and for other rooms with more devices followed by aftersec(2)) makes sure it sends the command a sec later.

Since then it has been very stable.

Re: Support for Somfy Connexoon and Tahoma

Posted: Friday 18 September 2020 17:53
by madpatrick
Hi Guys,

I'm about to buy new screens with a somfy system and just want to be sure.

Can this plugin of Domotiz controll the latest Connexoon IO version (i'm reading all about RTS)
Can you control each screen seperatly ?
Not sure how the screens will appears in Domoticz as a device

Thanks for you feedback!

Re: Support for Somfy Connexoon and Tahoma

Posted: Friday 18 September 2020 19:22
by sgsdebruijn
Yes, possible. 8n Domoticz separate screens like normal RTS

Re: Support for Somfy Connexoon and Tahoma

Posted: Friday 18 September 2020 19:40
by madpatrick
sgsdebruijn wrote: Friday 18 September 2020 19:22 Yes, possible. 8n Domoticz separate screens like normal RTS
So Domoticz sends a signal to the Somfy Connexoon box and this will send a signal to the screen ?

Re: Support for Somfy Connexoon and Tahoma

Posted: Friday 18 September 2020 20:06
by sgsdebruijn
Yep

Re: Support for Somfy Connexoon and Tahoma

Posted: Sunday 20 September 2020 15:41
by vspamn
Is there a way to let Domoticz control a terrace screen through the Tahoma box? The terrace screen uses a different app, but the same box.

Re: Support for Somfy Connexoon and Tahoma

Posted: Saturday 03 April 2021 19:12
by madpatrick
OedzesG wrote: Wednesday 22 January 2020 21:45 Domoticz plugin for Tahoma IO products... blinds interieur and exterieur!

https://github.com/nonolk/domoticz_tahoma_blind
I'm setup mu Somfy blinds with the Tahoma box and the Plugin into my Domoticz
After switching some blind I notices that it restart my Domoticz .

I see the folowing errors in my log :

Code: Select all

2021-04-03 19:02:08.733  Status: User: Admin initiated a switch command (493/Somfy - Erker Blok 1/On)
2021-04-03 19:02:08.736  (Dummy  Schakelaars) Light/Switch (Somfy - Erker Blok 1)
2021-04-03 19:02:08.790  Status: dzVents: Info: -=# Screens #=-: ------ Start internal script: Screens Erker Blok 1: Device: "Somfy - Erker Blok 1 (Dummy  Schakelaars)", Index: 493
2021-04-03 19:02:08.791  Status: dzVents: !Info: -=# Screens #=-: Screen Erker blok 1 Dicht
2021-04-03 19:02:08.791  Status: dzVents: Info: -=# Screens #=-: ------ Finished Screens Erker Blok 1
2021-04-03 19:02:08.822  (Somfy Tahoma) Not connected before processing command, must connect
2021-04-03 19:02:08.823  (Somfy Tahoma) Not connected before processing command, must connect
2021-04-03 19:02:08.960  (Somfy Tahoma) Sending command to tahoma api
2021-04-03 19:02:18.007  Status: User: Admin initiated a switch command (493/Somfy - Erker Blok 1/Off)
2021-04-03 19:02:18.009  (Dummy  Schakelaars) Light/Switch (Somfy - Erker Blok 1)
2021-04-03 19:02:18.061  Status: dzVents: Info: -=# Screens #=-: ------ Start internal script: Screens Erker Blok 1: Device: "Somfy - Erker Blok 1 (Dummy  Schakelaars)", Index: 493
2021-04-03 19:02:18.062  Status: dzVents: !Info: -=# Screens #=-: Screen Erker blok 1 Open
2021-04-03 19:02:18.063  Status: dzVents: Info: -=# Screens #=-: ------ Finished Screens Erker Blok 1
2021-04-03 19:02:18.081  (Somfy Tahoma) Not connected before processing command, must connect
2021-04-03 19:02:18.081  (Somfy Tahoma) Not connected before processing command, must connect
2021-04-03 19:02:18.218  (Somfy Tahoma) Sending command to tahoma api
2021-04-03 19:02:22.177  (Somfy Tahoma) Updating device:Somfy - Erker_1
2021-04-03 19:02:22.186  (Somfy Tahoma) Updating device:Somfy - Erker_2
2021-04-03 19:02:26.659  Status: User: Admin initiated a switch command (494/Somfy - Erker Blok 2/On)
2021-04-03 19:02:26.662  (Dummy  Schakelaars) Light/Switch (Somfy - Erker Blok 2)
2021-04-03 19:02:26.720  Status: dzVents: Info: -=# Screens #=-: ------ Start internal script: Screens Erker Blok 2: Device: "Somfy - Erker Blok 2 (Dummy  Schakelaars)", Index: 494
2021-04-03 19:02:26.721  Status: dzVents: !Info: -=# Screens #=-: Screens Erker blok 2 helemaal open
2021-04-03 19:02:26.721  Status: dzVents: Info: -=# Screens #=-: ------ Finished Screens Erker Blok 2
2021-04-03 19:02:26.751  (Somfy Tahoma) Sending command to tahoma api
2021-04-03 19:02:26.751  (Somfy Tahoma) Sending command to tahoma api
2021-04-03 19:02:26.751  (Somfy Tahoma) Sending command to tahoma api
2021-04-03 19:02:32.267  (Somfy Tahoma) Updating device:Somfy - Erker_1
2021-04-03 19:02:32.277  (Somfy Tahoma) Updating device:Somfy - Erker_1
2021-04-03 19:02:32.284  (Somfy Tahoma) Updating device:Somfy - Erker_2
2021-04-03 19:02:32.290  (Somfy Tahoma) Updating device:Somfy - Erker_2
2021-04-03 19:02:32.296  (Somfy Tahoma) Updating device:Somfy - Erker_2
2021-04-03 19:02:35.918  Status: User: Admin initiated a switch command (494/Somfy - Erker Blok 2/Off)
2021-04-03 19:02:35.920  (Dummy  Schakelaars) Light/Switch (Somfy - Erker Blok 2)
2021-04-03 19:02:35.973  Status: dzVents: Info: -=# Screens #=-: ------ Start internal script: Screens Erker Blok 2: Device: "Somfy - Erker Blok 2 (Dummy  Schakelaars)", Index: 494
2021-04-03 19:02:35.975  Status: dzVents: !Info: -=# Screens #=-: Screens Erker blok 2 dicht
2021-04-03 19:02:35.975  Status: dzVents: Info: -=# Screens #=-: ------ Finished Screens Erker Blok 2
2021-04-03 19:02:36.012  (Somfy Tahoma) Sending command to tahoma api
2021-04-03 19:02:36.012  (Somfy Tahoma) Sending command to tahoma api
2021-04-03 19:02:36.012  (Somfy Tahoma) Sending command to tahoma api
2021-04-03 19:02:36.828  (Zwave USB) Light/Switch (PIR Sensor)
2021-04-03 19:02:36.829  Status: OpenZWave: Alarm received (Home Security: Motion Detected at Unknown Location), NodeID: 31 (0x1f)
2021-04-03 19:02:36.833  (Zwave USB) General/Alarm (PIR Alarm Type: Home Security 7 (0x07))
2021-04-03 19:02:36.839  (Zwave USB) Light/Switch (PIR Home Security)
2021-04-03 19:02:36.882  (Zwave USB) Light/Switch (PIR Sensor)
2021-04-03 19:02:38.220  Error: Domoticz(pid:35175, tid:35222('Plugin_ASIO')) received fatal signal 11 (Segmentation fault)
2021-04-03 19:02:38.220  Error: siginfo address=0x12b00008967, address=0x7f423ae454fb
2021-04-03 19:02:38.588  Error: Thread 12 (Thread 0x7f41ff7fe700 (LWP 35222)):
2021-04-03 19:02:38.588  Error: #0  0x00007f423ae451d9 in waitpid () from /lib64/libpthread.so.0
2021-04-03 19:02:38.588  Error: #1  0x000000000067c3c5 in dumpstack_gdb(bool) ()
2021-04-03 19:02:38.588  Error: #2  0x000000000067c96e in signal_handler(int, siginfo_t*, void*) ()
2021-04-03 19:02:38.588  Error: #3  <signal handler called>
2021-04-03 19:02:38.588  Error: #4  0x00007f423ae454fb in raise () from /lib64/libpthread.so.0
2021-04-03 19:02:38.588  Error: #5  <signal handler called>
2021-04-03 19:02:38.588  Error: #6  0x00007f41e4678560 in ?? ()
2021-04-03 19:02:38.588  Error: #7  0x00007f423b72e891 in BIO_write () from /lib64/libcrypto.so.10
2021-04-03 19:02:38.588  Error: #8  0x00000000009bbda6 in boost::asio::ssl::detail::io_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>, boost::asio::ssl::detail::read_op<boost::asio::mutable_buffers_1>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, Plugins::CPluginTransportTCPSecure, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<Plugins::CPluginTransportTCPSecure*>, boost::arg<1> (*)(), boost::arg<2> (*)()> > >::operator()(boost::system::error_code, unsigned long, int) ()
2021-04-03 19:02:38.588  Error: #9  0x00000000009bd28b in boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::ssl::detail::io_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>, boost::asio::ssl::detail::read_op<boost::asio::mutable_buffers_1>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, Plugins::CPluginTransportTCPSecure, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<Plugins::CPluginTransportTCPSecure*>, boost::arg<1> (*)(), boost::arg<2> (*)()> > >, boost::asio::detail::io_object_executor<boost::asio::executor> >::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long) ()
2021-04-03 19:02:38.588  Error: #10 0x000000000077f03c in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
2021-04-03 19:02:38.588  Error: #11 0x000000000099dc71 in Plugins::BoostWorkers() ()
2021-04-03 19:02:38.588  Error: #12 0x0000000000ae6396 in thread_proxy ()
2021-04-03 19:02:38.588  Error: #13 0x00007f423ae3dea5 in start_thread () from /lib64/libpthread.so.0
2021-04-03 19:02:38.588  Error: #14 0x00007f42394709fd in clone () from /lib64/libc.so.6
2021-04-03 19:03:08.878  Status: Domoticz V2020.2 (c)2012-1970 GizMoCuz
2021-04-03 19:03:08.878  Status: Build Hash: 0, Date: 1970-01-01 01:00:00
The switch "Somfy - Erker Blok 1" is a dummy switch to operate 2 blinds at the same time

Anybody a clue what could be the problem ?