Thanks, I’ll compare to docs tomorrow.
Sent from my iPhone using Tapatalk Pro
Setting up the plugin
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
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
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
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
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
Any luck here @webdeck?
Re: Setting up the plugin
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 directorykoensayr wrote:Any luck here @webdeck?
Code: Select all
$HOME/Perceptive Automation/Indigo 7.5/Plugins/SomfyManager.indigoPlugin/Contents/Server Plugin
- Attachments
-
- plugin.py.txt
- (6.21 KiB) Downloaded 213 times
Re: Setting up the plugin
Apologies, never saw the original question .koensayr wrote:Any luck here @webdeck?
Will have a look.
Sent from my iPhone using Tapatalk Pro