Are there some users for Gembird SIS-PMS PowerSwitch LAN? Not USB Version!!!
For USB users you can use sispmsctl via apt-get.
My Question is for LAN version. There are exists a controllable port via 5000. Now i look to control my PowerSwitch via Pimatic.
I found a workaround to take control with a small bash script. It’s only a web interface hack, but i can take control with on off.
This is my bash script:
#!/bin/bash
pass=“1234XXXX”
curl -d “pw=${pass}” --dump-header headers http://192.168.1.5/login.html >2&>1
curl -d “${1}=${2}” --dump-header headers http://192.168.1.5 >2&>1
Now you can switch a power socket via
yourscript.sh cte1 1
yourscript.sh cte1 0
All others you can switch cte2 or 3 of 4 with 1 on or 0 off.
That works pretty cool, but that’s to less for that kind of power switch.
OK now i can hack via php the result of curl and parse webpage, but that’s not the best solution. I know you can read out many more information like Ampere or you can set rules with a software from Gembird. Would be nice to read out more details. Setting rules are not interesting for me, 'cause why i use Pimatic.