Setting up the plugin

howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: Setting up the plugin

Post by howartp »

Thanks, I’ll compare to docs tomorrow.


Sent from my iPhone using Tapatalk Pro
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: Setting up the plugin

Post by howartp »

Have a go with https://github.com/howartp84/SomfyManag ... /tag/1.0.5

As well as changing the descriptions in the device editor, i'm attempting to parse the JSON response to see if it succeeded or failed.

Let me know what debug log says.

Peter
rgspb
Posts: 218
Joined: Fri Apr 24, 2009 8:42 am
Location: Florida

Re: Setting up the plugin

Post by rgspb »

Here's what I got: (the shade did lower as expected but I see an error below)

Action Group Master Bath Shade Favorite
Somfy Manager Debug myLinkCmdSingle action called:
Somfy Manager Debug Target device: CC1049A9.4
Somfy Manager Sending payload: { "id":727, "method": "mylink.move.stop", "params": { "auth": "bayfront", "targetID" : "CC1049A9.4"} }
Somfy Manager Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 135, in myLinkCmdSingle
NameError: global name 'json_loads' is not defined
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: Setting up the plugin

Post by howartp »

webdeck
Posts: 436
Joined: Sat May 07, 2005 11:27 pm

Re: Setting up the plugin

Post by webdeck »

I've started seeing these errors with 1.0.6:

Code: Select all

2020-09-16 06:52:35.425 Schedule        Lower Game Room Shade at Sunrise
2020-09-16 06:52:35.425 Action Group    Game Room Shade Down
]2020-09-16 06:52:35.426 Somfy Manager   Sending payload:  { "id":614, "method": "mylink.move.down", "params": { "auth": "REDACTED", "targetID" : "REDACTED"} }
2020-09-16 06:52:35.433 Somfy Manager Error     Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 135, in myLinkCmdSingle
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 367, in decode
ValueError: Extra data: line 1 column 37 - line 1 column 10621 (char 36 - 10620)

2020-09-16 06:52:40.423 Schedule        Lower Game Room Shade at Sunrise (delayed action)
2020-09-16 06:52:40.427 Somfy Manager   Sending payload:  { "id":693, "method": "mylink.move.down", "params": { "auth": "REDACTED", "targetID" : "REDACTED"} }
2020-09-16 06:52:40.427 Somfy Manager Error     Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 153, in myLinkCmdSingle
NameError: global name 'reply' is not defined
koensayr
Posts: 90
Joined: Wed Jul 10, 2013 11:02 pm

Re: Setting up the plugin

Post by koensayr »

Any luck here @webdeck?
webdeck
Posts: 436
Joined: Sat May 07, 2005 11:27 pm

Re: Setting up the plugin

Post by webdeck »

koensayr wrote:Any luck here @webdeck?
I wound up rewriting the plugin and making it more reliable for my setup. Here is my updated version of plugin.py - Rename it to plugin.py and place it in the directory

Code: Select all

$HOME/Perceptive Automation/Indigo 7.5/Plugins/SomfyManager.indigoPlugin/Contents/Server Plugin
Note that I am not the original author of the SomfyManager plugin.
Attachments
plugin.py.txt
(6.21 KiB) Downloaded 213 times
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: Setting up the plugin

Post by howartp »

koensayr wrote:Any luck here @webdeck?
Apologies, never saw the original question .

Will have a look.


Sent from my iPhone using Tapatalk Pro
Post Reply

Return to “Somfy Manager”