Scripting „Gembird energenie EG-PM1W-001“

The „Gembird energenie EG-PM1W-001“ is a IP-Plug thus you could control a power-plug by your wlan. Additionally its a wlan repeater.

Most of compareable devices are „just“ App-based (so controlable by mobiles), have no(!) webinterface and are closely connected to a vendor-cloud.
The EG-PM1W-001 is NOT … it has a webinterface and of couse could easily be controlled using curl. Here is how:

Switch it on:
curl -s -b "user=admin;pass=PASSWORD" -d "gpionum=21&socket1=1" http://IPADR/goform/setSocket

Switch it off:
curl -s -b "user=admin;pass=PASSWORD" -d "gpionum=21&socket1=0" http://IPADR/goform/setSocket

Read the state:
curl -s -r http://IPADR/status.asp -b "user=admin;pass=PASSWORD" http:///goform/formDeviceStatus

…comes to
Sat Apr 16 12:26:49 UTC 2016;0,0,0,0;1;1,Name1,1;0,Name2,0;0,Name3,0;0,Name4,0

…where the „1“ in front of „Name1“ is the state.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.


Time limit is exhausted. Please reload the CAPTCHA.