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

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 »

Please place the log file as text and not as an image. It is then hard to read
You can copy past it as text and then uses the backets in the files of the form.

I see that you are using version 2.02 of Norfolk plugin.
That is not the correct plugin
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
nene82
Posts: 15
Joined: Saturday 01 June 2024 9:39
Target OS: Linux
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by nene82 »

Here for the logs
Attachments
logs.txt
(2.3 KiB) Downloaded 22 times
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 »

nene82 wrote: Sunday 02 June 2024 10:41 Here for the logs
Please paste it with brackets

Code: Select all

 2024-06-02 10:34:38.086 Status: Domoticz V2024.4 (c)2012-2024 GizMoCuz
2024-06-02 10:34:38.086 Status: Build Hash: 731719420, Date: 2024-01-30 09:16:34
2024-06-02 10:34:38.086 Status: Startup Path: /home/user/domoticz/
2024-06-02 10:34:38.381 Status: PluginSystem: Started, Python version '3.10.13', 5 plugin definitions loaded.
2024-06-02 10:34:38.434 Status: WebServer(HTTP) started on address: :: with port 8080
2024-06-02 10:34:38.447 Status: WebServer(SSL) started on address: :: with port 443
2024-06-02 10:34:38.463 Status: RxQueue: queue worker started...
2024-06-02 10:34:38.464 Status: TCPServer: shared server started...
2024-06-02 10:34:40.484 Status: RfxCom: Worker started...
2024-06-02 10:34:40.500 Status: Météo Virtuelle: Using Domoticz default location from Settings as Location.
2024-06-02 10:34:40.502 Status: Tahoma-Switch: Started.
2024-06-02 10:34:40.507 Status: NotificationSystem: thread started...
2024-06-02 10:34:40.507 Status: Tahoma-Switch: Entering work loop.
2024-06-02 10:34:40.508 Status: EventSystem: reset all events...
2024-06-02 10:34:40.508 Status: Météo Virtuelle: Started...
2024-06-02 10:34:40.508 Status: Nas: Worker started...
2024-06-02 10:34:40.508 Status: Pi: Hardware Monitor: Started (OStype Linux)
2024-06-02 10:34:40.518 Status: dzVents: Write file: /home/user/domoticz/scripts/dzVents/generated_scripts/08 - lecture et stockage variable toute les heures.lua
2024-06-02 10:34:40.518 Status: EventSystem: reset all device statuses...
2024-06-02 10:34:40.624 Status: RfxCom LAN: connected to: 192.168.68.75:10001
2024-06-02 10:34:40.703 Status: PluginSystem: 1 plugins started.
2024-06-02 10:34:40.776 Status: Python EventSystem: Initializing event module.
2024-06-02 10:34:40.783 Status: EventSystem: Queue thread started...
2024-06-02 10:34:40.783 Status: EventSystem: Started
2024-06-02 10:34:40.821 Status: Tahoma-Switch: Initialized version 2.0.2, author 'nonolk'
2024-06-02 10:34:40.821 Status: Tahoma-Switch: Starting Tahoma blind plugin
2024-06-02 10:34:41.486 Status: RfxCom: Using serial port: /dev/serial/by-id/usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_1ad4629fbfbaed119300b48238a92db5-if00-port0
2024-06-02 10:34:41.509 Status: Mosquitto: Connecting to 192.168.68.95:1883
2024-06-02 10:34:41.709 Status: Mosquitto: connected to: 192.168.68.95:1883 
You are using the wrong version of the plugin

Code: Select all

Tahoma-Switch: Initialized version 2.0.2, author 'nonolk'
My version is : 4.2.16

Please update the plugin and check
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
nene82
Posts: 15
Joined: Saturday 01 June 2024 9:39
Target OS: Linux
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by nene82 »

The logs

Code: Select all

 2024-06-02 19:27:54.911 Status: Domoticz V2024.4 (c)2012-2024 GizMoCuz
2024-06-02 19:27:54.912 Status: Build Hash: 731719420, Date: 2024-01-30 09:16:34
2024-06-02 19:27:54.912 Status: Startup Path: /home/user/domoticz/
2024-06-02 19:27:55.209 Status: PluginSystem: Started, Python version '3.10.13', 4 plugin definitions loaded.
2024-06-02 19:27:55.575 Status: WebServer(HTTP) started on address: :: with port 8080
2024-06-02 19:27:55.589 Status: WebServer(SSL) started on address: :: with port 443
2024-06-02 19:27:55.602 Status: RxQueue: queue worker started...
2024-06-02 19:27:55.602 Status: TCPServer: shared server started...
2024-06-02 19:27:57.605 Status: RfxCom: Worker started...
2024-06-02 19:27:57.635 Status: Météo Virtuelle: Using Domoticz default location from Settings as Location.
2024-06-02 19:27:57.641 Status: Tahoma-Switch: Started.
2024-06-02 19:27:57.645 Status: Météo Virtuelle: Started...
2024-06-02 19:27:57.645 Status: Nas: Worker started...
2024-06-02 19:27:57.645 Status: EventSystem: reset all events...
2024-06-02 19:27:57.645 Status: Pi: Hardware Monitor: Started (OStype Linux)
2024-06-02 19:27:57.645 Status: Tahoma-Switch: Entering work loop.
2024-06-02 19:27:57.647 Status: NotificationSystem: thread started...
2024-06-02 19:27:57.658 Status: RfxCom LAN: connected to: 192.168.68.75:10001
2024-06-02 19:27:57.664 Status: dzVents: Write file: /home/user/domoticz/scripts/dzVents/generated_scripts/08 - lecture et stockage variable toute les heures.lua
2024-06-02 19:27:57.664 Status: EventSystem: reset all device statuses...
2024-06-02 19:27:58.021 Status: PluginSystem: 1 plugins started.
2024-06-02 19:27:58.074 Status: Python EventSystem: Initializing event module.
2024-06-02 19:27:58.080 Status: EventSystem: Queue thread started...
2024-06-02 19:27:58.080 Status: EventSystem: Started
2024-06-02 19:27:58.607 Status: RfxCom: Using serial port: /dev/serial/by-id/usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_1ad4629fbfbaed119300b48238a92db5-if00-port0
2024-06-02 19:27:58.646 Status: Mosquitto: Connecting to 192.168.68.95:1883
2024-06-02 19:27:58.846 Status: Mosquitto: connected to: 192.168.68.95:1883 
ans the Errors that appear after updating!

Code: Select all

 2024-06-02 19:16:16.199 Error: Tahoma-Switch: (tahomaIO) failed to load 'plugin.py', Python Path used was '/home/user/domoticz/plugins/somfy/:/usr/local/lib/python310.zip:/usr/local/lib/python3.10:/usr/local/lib/python3.10/lib-dynload:/usr/local/lib/python3.10/site-packages'.
2024-06-02 19:16:16.204 Error: Tahoma-Switch: Traceback (most recent call last):
2024-06-02 19:16:16.205 Error: Tahoma-Switch: File "/home/user/domoticz/plugins/somfy/plugin.py", line 91, in <module>
2024-06-02 19:16:16.205 Error: Tahoma-Switch: import tahoma
2024-06-02 19:16:16.205 Error: Tahoma-Switch: File "/home/user/domoticz/plugins/somfy/tahoma.py", line 1, in <module>
2024-06-02 19:16:16.205 Error: Tahoma-Switch: import requests
2024-06-02 19:16:16.205 Error: Tahoma-Switch: ModuleNotFoundError: No module named 'requests' 
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, you have missed a step in the pre-requisites on the install page, as you do not have the python module 'requests' installed. this is indicated in step 3 of installation on Madpatricks github page. Please read and follow them carefully.
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
nene82
Posts: 15
Joined: Saturday 01 June 2024 9:39
Target OS: Linux
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by nene82 »

Sorry, if I did it but didn't see that it doesn't work a priori!

Code: Select all

user@Domoticz:~$ sudo apt-get update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease
Fetched 93.0 kB in 1s (80.6 kB/s)
Reading package lists... Done
user@Domoticz:~$ sudo apt-get install python3 libpython3-dev libpython3.7-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libpython3.7-dev
E: Couldn't find any package by glob 'libpython3.7-dev'
E: Couldn't find any package by regex 'libpython3.7-dev'
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 »

check your python version

Code: Select all

python3 -V
Probably 3.9.2

So then

Code: Select all

apt install python3 libpython3-dev libpython3.9-dev
-= 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 »

Good addition Patrick (perhaps update instructions as most folks will be on python 3.9 or 3.10 by now). Please make sure to continue the steps afterwards as these install ' requests'
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 »

JanJaap wrote: Monday 03 June 2024 21:55 Good addition Patrick (perhaps update instructions as most folks will be on python 3.9 or 3.10 by now). Please make sure to continue the steps afterwards as these install ' requests'
Done
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
nene82
Posts: 15
Joined: Saturday 01 June 2024 9:39
Target OS: Linux
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by nene82 »

Good morning,
Below are the results of these manipulations, I'm not sure it changed anything!
On the other hand, I don't understand the relationship with the python version which appears on "About Domoticz"
I'm sorry!

Code: Select all

user@Domoticz:~$ python3 -V
Python 3.9.2
user@Domoticz:~$ apt install python3 libpython3-dev libpython3.9-dev
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission d                                                                                                                                                             enied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are y                                                                                                                                                             ou root?
user@Domoticz:~$ sudo apt install python3 libpython3-dev libpython3.9-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3 is already the newest version (3.9.2-3).
python3 set to manually installed.
The following additional packages will be installed:
  libexpat1-dev libpython3.9
The following NEW packages will be installed:
  libexpat1-dev libpython3-dev libpython3.9 libpython3.9-dev
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 5540 kB of archives.
After this operation, 25.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bullseye/main arm64 libexpat1-dev arm64 2.2.10-2+deb11u5 [128 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 libpython3.9 arm64 3.9.2-1 [1556 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 libpython3.9-dev arm64 3.9.2-1 [3835 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 libpython3-dev arm64 3.9.2-3 [21.7 kB]
Fetched 5540 kB in 0s (25.8 MB/s)
Selecting previously unselected package libexpat1-dev:arm64.
(Reading database ... 44138 files and directories currently installed.)
Preparing to unpack .../libexpat1-dev_2.2.10-2+deb11u5_arm64.deb ...
Unpacking libexpat1-dev:arm64 (2.2.10-2+deb11u5) ...
Selecting previously unselected package libpython3.9:arm64.
Preparing to unpack .../libpython3.9_3.9.2-1_arm64.deb ...
Unpacking libpython3.9:arm64 (3.9.2-1) ...
Selecting previously unselected package libpython3.9-dev:arm64.
Preparing to unpack .../libpython3.9-dev_3.9.2-1_arm64.deb ...
Unpacking libpython3.9-dev:arm64 (3.9.2-1) ...
Selecting previously unselected package libpython3-dev:arm64.
Preparing to unpack .../libpython3-dev_3.9.2-3_arm64.deb ...
Unpacking libpython3-dev:arm64 (3.9.2-3) ...
Setting up libpython3.9:arm64 (3.9.2-1) ...
Setting up libexpat1-dev:arm64 (2.2.10-2+deb11u5) ...
Setting up libpython3.9-dev:arm64 (3.9.2-1) ...
Setting up libpython3-dev:arm64 (3.9.2-3) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u10) ...
user@Domoticz:~$ python3 -V
Python 3.9.2
user@Domoticz:~$ ^C
user@Domoticz:~$ sudo apt-get install python3 libpython3-dev libpython3.9-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libpython3-dev is already the newest version (3.9.2-3).
python3 is already the newest version (3.9.2-3).
libpython3.9-dev is already the newest version (3.9.2-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
user@Domoticz:~$ sudo apt-get install python3-requests
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-requests is already the newest version (2.25.1+dfsg-2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
user@Domoticz:~$ sudo python3 -V
Python 3.9.2
user@Domoticz:~$
Attachments
Infos Domoticz.jpg
Infos Domoticz.jpg (29.25 KiB) Viewed 912 times
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, what happens now then when you restart the plugin in Domoticz? Now the dependencies should all be resolved.....
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
nene82
Posts: 15
Joined: Saturday 01 June 2024 9:39
Target OS: Linux
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by nene82 »

As I told you, it's the same!

Code: Select all

 2024-06-04 11:38:11.439 Error: Tahoma-Switch: (tahomaIO) failed to load 'plugin.py', Python Path used was '/home/user/domoticz/plugins/somfy/:/usr/local/lib/python310.zip:/usr/local/lib/python3.10:/usr/local/lib/python3.10/lib-dynload:/usr/local/lib/python3.10/site-packages'.
2024-06-04 11:38:11.441 Error: Tahoma-Switch: Traceback (most recent call last):
2024-06-04 11:38:11.441 Error: Tahoma-Switch: File "/home/user/domoticz/plugins/somfy/plugin.py", line 91, in <module>
2024-06-04 11:38:11.441 Error: Tahoma-Switch: import tahoma
2024-06-04 11:38:11.441 Error: Tahoma-Switch: File "/home/user/domoticz/plugins/somfy/tahoma.py", line 1, in <module>
2024-06-04 11:38:11.441 Error: Tahoma-Switch: import requests
2024-06-04 11:38:11.441 Error: Tahoma-Switch: ModuleNotFoundError: No module named 'requests'
2024-06-04 11:39:19.046 Error: Tahoma-Switch hardware (40) thread seems to have ended unexpectedly
2024-06-04 11:39:33.049 Error: Tahoma-Switch hardware (40) thread seems to have ended unexpectedly
2024-06-04 11:39:47.052 Error: Tahoma-Switch hardware (40) thread seems to have ended unexpectedly
2024-06-04 11:40:01.177 Error: Tahoma-Switch hardware (40) thread seems to have ended unexpectedly
2024-06-04 11:40:15.180 Error: Tahoma-Switch hardware (40) thread seems to have ended unexpectedly
2024-06-04 11:40:29.183 Error: Tahoma-Switch hardware (40) thread seems to have ended unexpectedly
2024-06-04 11:40:43.185 Error: Tahoma-Switch hardware (40) thread seems to have ended unexpectedly 
 
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by Thorgal789 »

Code: Select all

2024-06-04 11:38:11.441 Error: Tahoma-Switch: import requests
2024-06-04 11:38:11.441 Error: Tahoma-Switch: ModuleNotFoundError: No module named 'requests'
Hello, and if you install the missing lib requests ?
nene82
Posts: 15
Joined: Saturday 01 June 2024 9:39
Target OS: Linux
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by nene82 »

Thorgal789 wrote: Tuesday 04 June 2024 16:07

Code: Select all

2024-06-04 11:38:11.441 Error: Tahoma-Switch: import requests
2024-06-04 11:38:11.441 Error: Tahoma-Switch: ModuleNotFoundError: No module named 'requests'
Hello, and if you install the missing lib requests ?
Hello,
I followed the tutorial and the manipulations that Madpatrick and JanJaap recommended to me, however these errors are still present.
I also understand that these libraries are missing, but as I indicated above I don't know how to do anything other than copy.
I'm sorry.
I think I'll stop bothering you.
I thank you for your patience.
Best regards,
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by Thorgal789 »

Can try

Code: Select all

sudo -H pip3 install requests
sudo -H pip install requests
nene82
Posts: 15
Joined: Saturday 01 June 2024 9:39
Target OS: Linux
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by nene82 »

Thorgal789 wrote: Tuesday 04 June 2024 17:56 Can try

Code: Select all

sudo -H pip3 install requests
sudo -H pip install requests

Code: Select all

user@Domoticz:~$ sudo -H pip3 install requests
sudo: pip3: command not found
user@Domoticz:~$ sudo -H pip install requests
sudo: pip: command not found
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by Thorgal789 »

You haven't pip installed on your python version ?

https://www.geeksforgeeks.org/how-to-in ... linux-mac/
nene82
Posts: 15
Joined: Saturday 01 June 2024 9:39
Target OS: Linux
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by nene82 »

Thorgal789 wrote: Tuesday 04 June 2024 18:33 You haven't pip installed on your python version ?

https://www.geeksforgeeks.org/how-to-in ... linux-mac/
Yes, I think so!

Code: Select all

user@Domoticz:~/Python-3.10.13$ sudo -H pip3 install requests
sudo: pip3: command not found
user@Domoticz:~/Python-3.10.13$ 0.13$ sudo -H pip install requests^M
-bash: 0.13$: command not found
Attachments
Infos Domoticz.jpg
Infos Domoticz.jpg (29.25 KiB) Viewed 815 times
python.jpg
python.jpg (17.74 KiB) Viewed 815 times
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 »

i see Python 3.10.13 in the screen shot, but Python -V gives 3.9.2

that makes no sense.
Try :

Code: Select all

apt install python3 libpython3-dev libpython3.10-dev
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
nene82
Posts: 15
Joined: Saturday 01 June 2024 9:39
Target OS: Linux
Domoticz version:
Contact:

Re: Support for Somfy Connexoon and Tahoma

Post by nene82 »

madpatrick wrote: Tuesday 04 June 2024 18:51 i see Python 3.10.13 in the screen shot, but Python -V gives 3.9.2

that makes no sense.
Try :

Code: Select all

apt install python3 libpython3-dev libpython3.10-dev
At what level of the tree? under Domoticz ?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest