- Posted on
Mon Jan 07, 2019 7:38 pm
-
norcoscia
offline
-
- Posts: 1208
- Joined: Sep 09, 2015
This is what you do
You can set up a python script in a schedule or action - looks like this (for up) -- just replace the xxx in both auth and targetID with your info. And replace the IP 192.168.1.XX with yours. You don't need the commented out lines.... For the up command just change mylink.move.up to mylink.move.down
use embed python
———————————————-
import telnetlib
payload = '{ "id":1, "method": "mylink.move.up", "params": { "auth": "xxx", "targetID" : "CCxxxxx.1"} }'
tn = telnetlib.Telnet ("192.168.1.XX", "44100")
# Write the JSON payload
tn.write(payload)
# Close the connection
tn.close()
————————————————
NOTE — You get targetID auth from the SOMFY IOS app - one is under integration and one is under info (tap the hamburger on the top left of the app to see choices) The current system ID (on the integration page) is what goes after auth. The ID (under info ) - is what goes after the target ID. I think you will need to add a .1 to it....
_______
Norm