Setting up the plugin

Posted on
Wed Mar 06, 2019 11:05 am
rgspb offline
Posts: 187
Joined: Apr 24, 2009
Location: Florida

Setting up the plugin

So I followed the instructions and was able to create the MyLink device and a motor. That's it, I'm not sure what to do now. There's no up or down or anything to do with it. I can share screen shots if you like, just not sure what comes next.

Posted on
Wed Mar 06, 2019 3:49 pm
howartp offline
Posts: 4084
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Setting up the plugin

Hi.

You should be able to create a Somfy Manager Action > Up, Down, Stop or Read.

Not sure what Read does but it's in there :)

Peter

Posted on
Wed Mar 06, 2019 3:59 pm
rgspb offline
Posts: 187
Joined: Apr 24, 2009
Location: Florida

Re: Setting up the plugin

Ah, ok! Here's what I got when I set up one shade to move up:

Action Group TEST Den shade Up
Somfy Manager BETA Debug myLinkCmdSingle action called:
Somfy Manager BETA Debug Target device: CC1049A9.1
Somfy Manager BETA Sending payload: { "id":1, "method": "mylink.move.up", "params": { "auth": "3791", "targetID" : "CC1049A9.1"} }
Somfy Manager BETA Debug Reply: {"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"method":"mylink.status.keepalive"}{"jsonrpc":"2.0","error":{"code":-32652,"message":"Invalid auth"},"id":1}

Posted on
Wed Mar 06, 2019 4:14 pm
rgspb offline
Posts: 187
Joined: Apr 24, 2009
Location: Florida

Re: Setting up the plugin

OK figured part of this out. Where the Plugin asks for the "MyLink Password" it actually needs to be the name of the "System ID". Plugged that in and it worked.

Posted on
Wed Mar 06, 2019 4:16 pm
rgspb offline
Posts: 187
Joined: Apr 24, 2009
Location: Florida

Re: Setting up the plugin

And..."Stop" is not really stop but the "Favorite" position that you've set using the Somfy remote.

Posted on
Wed Mar 06, 2019 5:16 pm
howartp offline
Posts: 4084
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Setting up the plugin

With all (most?) Somfy products, Stop and Favourite (aka “My”) are the same button.

If the blind is moving, stop should stop it.


Sent from my iPad using Tapatalk Pro

Posted on
Mon Mar 25, 2019 8:16 am
gt3mike offline
Posts: 143
Joined: Dec 31, 2017
Location: Colorado

Re: Setting up the plugin

All those keepalives are interesting. I hacked an action together with Python and telnetlib (thanks @norcoscia) to get my one Somfy Roman shade working with Indigo via a MyLink, but it was timing out fairly often. After about a month of pinging several folks at Somfy, they finally deemed me to be someone they were willing to share their API with. I was hoping I would find something in there to help me figure out why it sometimes wouldn't work, but I didn't find anything.

I eventually improved the situation dramatically by running a little shell script in the background that pings the MyLink on the appropriate port once a minute. Is that what you are doing with the keepalive?

As soon as I have time, I plan to switch to your plugin.

Mike

Posted on
Mon Mar 25, 2019 6:10 pm
howartp offline
Posts: 4084
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Setting up the plugin

It’s so long since I started this one, I’ve no idea how much I wrote and how much I stole, but I’m sure I wouldn’t have put so many keepalives in like that.

I’ll be back to Indigo next month.


Sent from my iPhone using Tapatalk Pro

Posted on
Sat Nov 16, 2019 3:33 pm
howartp offline
Posts: 4084
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Setting up the plugin

How are you both doing with the plugin, if at all?

I'm kinda looking at my plugins at the moment so if you need any help, let me know.

Peter

Posted on
Sat Nov 16, 2019 4:12 pm
gt3mike offline
Posts: 143
Joined: Dec 31, 2017
Location: Colorado

Re: Setting up the plugin

Hi Peter,

I'm still using a Python call from an Indigo action in conjunction with a persistent ping via a shell script. It works about 95% of the time, so I haven't fooled with it. That said, I'd be happy to try something if it would help you mature your plugin..

Best regards,
Mike

Posted on
Sat Nov 16, 2019 4:17 pm
howartp offline
Posts: 4084
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Setting up the plugin

gt3mike wrote:
Hi Peter,

I'm still using a Python call from an Indigo action in conjunction with a persistent ping via a shell script. It works about 95% of the time, so I haven't fooled with it. That said, I'd be happy to try something if it would help you mature your plugin..

Best regards,
Mike

Let me know what you have and i'll have a look.

Peter

Posted on
Sat Nov 16, 2019 4:24 pm
gt3mike offline
Posts: 143
Joined: Dec 31, 2017
Location: Colorado

Re: Setting up the plugin

I have an R28 RTS Roller Shade and a MyLink (the newer one)..

Posted on
Sat Nov 16, 2019 4:26 pm
howartp offline
Posts: 4084
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Setting up the plugin

gt3mike wrote:
I have an R28 RTS Roller Shade and a MyLink (the newer one)..

Sorry, I meant let me know what code you have/are using. :)

Posted on
Sat Nov 16, 2019 4:29 pm
gt3mike offline
Posts: 143
Joined: Dec 31, 2017
Location: Colorado

Re: Setting up the plugin

Ah, gotcha. I'll have to look that up when I'm back home after the weekend.

Posted on
Tue Nov 19, 2019 8:11 am
gt3mike offline
Posts: 143
Joined: Dec 31, 2017
Location: Colorado

Re: Setting up the plugin

My action command for up (down is similar) is

Code: Select all
import telnetlib
payload = '{ "id":1, "method": "mylink.move.up", "params": { "auth": "somfy", "targetID" : "XXXXXXXXXX.X} }'
tn = telnetlib.Telnet ("192.168.0.123", "44100", 3)
# Write the JSON payload
tn.write(payload)
# Close the connection
tn.close()


and my script that I keep running in a Terminal window is

Code: Select all
while true
#do date "+%Y-%m-%d %H:%M:%S"
do printf "`date "+%Y-%m-%d %H:%M:%S"` "
if `nc -G 5 -w 2 192.168.0.123 44100`; then echo 'SUCCESS'; else echo 'FAIL'; fi
sleep 60
done

Who is online

Users browsing this forum: No registered users and 1 guest