Page 3 of 3

Re: Setting up the plugin

PostPosted: Sun Apr 19, 2020 3:41 pm
by howartp
Thanks, I’ll compare to docs tomorrow.


Sent from my iPhone using Tapatalk Pro

Re: Setting up the plugin

PostPosted: Mon Apr 20, 2020 2:36 pm
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

Re: Setting up the plugin

PostPosted: Mon Apr 20, 2020 5:25 pm
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

Re: Setting up the plugin

PostPosted: Sat May 02, 2020 2:56 pm
by howartp

Re: Setting up the plugin

PostPosted: Thu Sep 17, 2020 8:28 am
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

Re: Setting up the plugin

PostPosted: Mon Dec 28, 2020 2:42 am
by koensayr
Any luck here @webdeck?

Re: Setting up the plugin

PostPosted: Mon Dec 28, 2020 11:38 am
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.

Re: Setting up the plugin

PostPosted: Fri Jan 01, 2021 1:31 pm
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