Page 3 of 9

Re: Support for Somfy Connexoon and Tahoma

Posted: Tuesday 08 March 2022 17:08
by jpvaneijk
Thanx Jan-Jaap. I've send you the requested logfile.
Let me know what I can do.

Jan-Paul

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 08 June 2022 18:43
by Pertig0
Hello.

Is plugin compatible with last one Tahoma Switch box, or only with the older Tahoma boxes? I want to buy a new one to integrate pergola motor and Rain & Sun/Wind sensors with Domoticz zwave instance on RPi.

Thanks &, best regards.

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 08 June 2022 19:14
by madpatrick
Pertig0 wrote: Wednesday 08 June 2022 18:43 Hello.

Is plugin compatible with last one Tahoma Switch box, or only with the older Tahoma boxes? I want to buy a new one to integrate pergola motor and Rain & Sun/Wind sensors with Domoticz zwave instance on RPi.

Thanks &, best regards.
The plugin works with the Somfy API website and does not connect to the Tahoma of Connexoon box.
As long as your devices are visible on the Somfy site it should work

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 08 June 2022 19:48
by Pertig0
madpatrick wrote: Wednesday 08 June 2022 19:14 The plugin works with the Somfy API website and does not connect to the Tahoma of Connexoon box.
As long as your devices are visible on the Somfy site it should work
OK. As long as you write, it's independent of any hardware and all versions of Tahoma boxes will work whereas it connects and report devices to Somfy portal.

I have read that there is a new version/revision of the API on 21st June, and Somfy API is deprecated. The new Developer Mode is a local API attached to the device? Is independent to Somfy accounts in cloud?

Thx a lot.

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 08 June 2022 19:49
by Pertig0
One more...

for IO protocol... do you recommend the new Tahoma Switch Box or an old second-hand Tahoma Box?

Thx again and, best regards.

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 09 June 2022 16:05
by madpatrick
Pertig0 wrote: Wednesday 08 June 2022 19:49 One more...

for IO protocol... do you recommend the new Tahoma Switch Box or an old second-hand Tahoma Box?

Thx again and, best regards.
I don't know.
That is question you have to ask Somfy or the company who is installing your system

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 15 June 2022 16:23
by labrag12
thank you for your support and time you put into this.
unfortunately this plugin is not working with the Tahoma Switch.

They are going to use a local APi for this.
https://github.com/Somfy-Developer/Somf ... loper-Mode

Do you have plans to update this plugin to work with the tahoma Switch ?

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 15 June 2022 16:53
by Pertig0
:| Can you verify this, @labrag12? The new Tahoma Switch is not compatible with the plugin? You can’t connect to the Somfy account?

I was planning to buy a new Tahoma Switch Box, but with this one…

Best regards,

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 16 June 2022 13:16
by labrag12
Yes, the plugin is not working for me with the switch.
the good news is that you now can work with a local api instead of the somfy web api.
i did see that home assistant has a working solution, https://www.home-assistant.io/integrations/somfy/

hope someone will port this to domoticz

Kind regards,

Patrick

Re: Support for Somfy Connexoon and Tahoma

Posted: Friday 17 June 2022 11:52
by JanJaap
Hi,

I've been maintaining the current plugin for some time without owning any Somfy device. That is doable for small upgrades (as some was requested by MadPatrick and JP further up this thread) but developing a new API from the ground is too much for me. So some other volunteer needed.

Re: Support for Somfy Connexoon and Tahoma

Posted: Monday 20 June 2022 16:35
by madpatrick
Unfortunately, Somfy's Web API is very unstable and JanJaap has improved the plugin in such a way that the plugin does not stop and has to be restarted.
The local API is definitely much better because as mentioned the Web API is very unstable.
It would be nice if someone could make and/or possibly adapt the plugin for this, but I can understand that JanJaap cannot do this. It takes a lot of time and especially if you don't have Somfy devices it is difficult to work

Re: Support for Somfy Connexoon and Tahoma

Posted: Tuesday 02 August 2022 9:14
by MikeyMan
Stumbled upon this topic after getting some new sunshades. Was under the full impression that it would be easy to connect this to domoticz to do some smarter automation.

Not the case yet. Local API sounds good though ;)

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 04 August 2022 15:13
by MikeyMan
The blinds plugin seems to be working, but it is using the old legacy API.

I'm missing the light sensor for instance. Seems to be dependent on the (device["uiClass"] in the code.

Really hope that someone will take a crack at the local api.

edit: switched to the @madpatrick version, but i get an error:

Code: Select all

2022-08-04 15:24:45.059 Error: Somfy Tahoma: 'onHeartbeat' failed 'AttributeError':''BasePlugin' object has no attribute 'runCounter''.
2022-08-04 15:24:45.059 Error: Somfy Tahoma: Exception traceback:
2022-08-04 15:24:45.060 Error: Somfy Tahoma: ----> Line 285 in '/home/pi/domoticz/plugins/somfy/plugin.py', function onHeartbeat
2022-08-04 15:24:45.060 Error: Somfy Tahoma: ----> Line 176 in '/home/pi/domoticz/plugins/somfy/plugin.py', function onHeartbeat
And stil no light sensor

Re: Support for Somfy Connexoon and Tahoma

Posted: Saturday 06 August 2022 14:59
by JanJaap
Hey Mikey,

For concrete issues with the madpatrick version, you can submit a ticket with clear error description on the github, I'll see if I can fix it (for both the error as well as adding this light you mentioned). The description here is not enough (need to have more logging in debug mode and description of used versions etc).

Re: Support for Somfy Connexoon and Tahoma

Posted: Saturday 06 August 2022 20:14
by madpatrick
MikeyMan wrote: Thursday 04 August 2022 15:13 edit: switched to the @madpatrick version, but i get an error:

Code: Select all

2022-08-04 15:24:45.059 Error: Somfy Tahoma: 'onHeartbeat' failed 'AttributeError':''BasePlugin' object has no attribute 'runCounter''.
2022-08-04 15:24:45.059 Error: Somfy Tahoma: Exception traceback:
2022-08-04 15:24:45.060 Error: Somfy Tahoma: ----> Line 285 in '/home/pi/domoticz/plugins/somfy/plugin.py', function onHeartbeat
2022-08-04 15:24:45.060 Error: Somfy Tahoma: ----> Line 176 in '/home/pi/domoticz/plugins/somfy/plugin.py', function onHeartbeat
I think you will have to enable the creation of new devices in the domoticz settings. At least when setting up the plugin and when adding new devices to monitor. After that you can disable it.
Can you please check this.

Re: Support for Somfy Connexoon and Tahoma

Posted: Tuesday 09 August 2022 14:06
by MikeyMan
@madpatrick: i'll try that. Think the 'old' api only supports motors, not sensors?

Tried to start fiddling around with the developer mode API:

https://github.com/MikeyMan83/Somfy-Tah ... -Domoticz/

Hoping this will result in something :)

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 11 August 2022 13:49
by MikeyMan
Took a lot of fiddling around. But i've got the devices in a nice JSON response now.

Code: Select all

	{
		"deviceURL": "io://2017-8871-5701/14384853",
		"available": true,
		"synced": true,
		"type": 2,
		"states": [
			{
				"type": 3,
				"name": "core:StatusState",
				"value": "available"
			},
			{
				"type": 3,
				"name": "core:DiscreteRSSILevelState",
				"value": "normal"
			},
			{
				"type": 1,
				"name": "core:RSSILevelState",
				"value": 50
			},
			{
				"type": 1,
				"name": "core:LuminanceState",
				"value": 5193
			}
		],
		"label": "Verlichtingssensor achterkant",
		"subsystemId": 0,
		"attributes": [
			{
				"type": 3,
				"name": "core:Manufacturer",
				"value": "Somfy"
			},
			{
				"type": 3,
				"name": "core:FirmwareRevision",
				"value": "5126936A15"
			}
		],
		"enabled": true,
		"controllableName": "io:LightIOSystemSensor",
		"definition": {
			"states": [
				{
					"name": "core:StatusState"
				},
				{
					"name": "core:DiscreteRSSILevelState"
				},
				{
					"name": "core:RSSILevelState"
				},
				{
					"name": "core:LuminanceState"
				},
				{
					"name": "core:SensorDefectState"
				}
			],
			"widgetName": "LuminanceSensor",
			"attributes": [],
			"uiClass": "LightSensor",
			"commands": [
				{
					"nparams": 1,
					"commandName": "advancedRefresh",
					"paramsSig": "p1"
				}
			],
			"type": "SENSOR"
		}
	},
Next up: adding devices. Trying to see if i can use the tahoma.py for that.

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 11 August 2022 14:14
by MikeyMan
Did find out why the light sensor wasn't added btw.

The tahoma.py file has a line:

Code: Select all

            if (((device["uiClass"] == "RollerShutter") or (device["uiClass"] == "ExteriorScreen") or (device["uiClass"] == "Screen") or (device["uiClass"] == "Awning") or (device["uiClass"] == "Pergola") or (device["uiClass"] == "GarageDoor") or (device["uiClass"] == "Window") or (device["uiClass"] == "VenetianBlind") or (device["uiClass"] == "ExteriorVenetianBlind")) and ((device["deviceURL"].startswith("io://")) or (device["deviceURL"].startswith("rts://")))):
                self.filtered_devices.append(device)
Added

Code: Select all

or (device["uiClass"] == "LightSensor")
and now it is added. However, since this code only seems to support switches, it is not working as projected.

There seem to be a lot of similarities between the old and new API. So that's probably a good thing.

Re: Support for Somfy Connexoon and Tahoma

Posted: Wednesday 17 August 2022 20:05
by MikeyMan
@madpatrick @JanJaap any appetite from you guys to have a look into the local API before the online one stops?

Re: Support for Somfy Connexoon and Tahoma

Posted: Thursday 18 August 2022 8:57
by madpatrick
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