Skip to content

Instantly share code, notes, and snippets.

@jsakas
Created March 20, 2021 19:55
Show Gist options
  • Save jsakas/69cb4567f34deb80e798bc389be74d85 to your computer and use it in GitHub Desktop.
Save jsakas/69cb4567f34deb80e798bc389be74d85 to your computer and use it in GitHub Desktop.

Turn WeMo smart plug on or off

curl -H 'Content-type:text/xml;  charset=utf-8' -H 'SOAPACTION:"urn:Belkin:service:basicevent:1#SetBinaryState"' -d '<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body><u:SetBinaryState xmlns:u="urn:Belkin:service:basicevent:1"> <BinaryState>1</BinaryState></u:SetBinaryState></s:Body></s:Envelope>' 'http://192.168.0.190:49153/upnp/control/basicevent1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment