I now have example of how to control my Energenie PMS-LAN, which I’m trying to work through on the micasverde.com (Vera Control) forum- on a quest to see how I can get Vera (and by association HASS) to run them.
As it seem both curl or wget can do the job.
The first thing you need to do is login (the default password is 1, so I have left it as that for those examples) - and this times out after I think 3-5 mins
curl -s -d "pw=1" http://192.168.1.90/login.html
wget -q -O - --post-data="pw=1" http://192.168.1.90/login.html
And the to turn the sockets on or off you set the value of your target to either 1 or 0 e.g.
Turn on socket 4 (via curl)
curl -s -d "cte4=1" http://192.168.1.90/
Turn off socket 4 (via curl)
curl -s -d "cte4=0" http://192.168.1.90/
Turn on socket 4 (via wget)
wget -q -O - --post-data="cte4=1" 'http://192.168.1.90/'
Turn off socket 4 (via wget)
wget -q -O - --post-data="cte4=0" 'http://192.168.1.90/'