Setting up the plugin

Posted on
Sun Apr 19, 2020 3:41 pm
howartp online
Posts: 4286
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Setting up the plugin

Thanks, I’ll compare to docs tomorrow.


Sent from my iPhone using Tapatalk Pro

Posted on
Mon Apr 20, 2020 2:36 pm
howartp online
Posts: 4286
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Setting up the plugin

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

Posted on
Mon Apr 20, 2020 5:25 pm
rgspb offline
Posts: 207
Joined: Apr 24, 2009
Location: Florida

Re: Setting up the plugin

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

Posted on
Sat May 02, 2020 2:56 pm
howartp online
Posts: 4286
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Setting up the plugin


Posted on
Thu Sep 17, 2020 8:28 am
webdeck offline
Posts: 400
Joined: May 07, 2005

Re: Setting up the plugin

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

Posted on
Mon Dec 28, 2020 2:42 am
koensayr offline
Posts: 88
Joined: Jul 10, 2013

Re: Setting up the plugin

Any luck here @webdeck?

Posted on
Mon Dec 28, 2020 11:38 am
webdeck offline
Posts: 400
Joined: May 07, 2005

Re: Setting up the plugin

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 38 times

Posted on
Fri Jan 01, 2021 1:31 pm
howartp online
Posts: 4286
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Setting up the plugin

koensayr wrote:
Any luck here @webdeck?

Apologies, never saw the original question .

Will have a look.


Sent from my iPhone using Tapatalk Pro

Who is online

Users browsing this forum: No registered users and 0 guests