I've just installed a code device app into my zwave.me installation.
I need a toggle button which when clicked, it change values from off to on into .xml file
So the code I put into web settings page of code device module is:
Code: Select all
http.request({url: "http://127.0.0.1:8083/opendoor.xml",method: "POST", data: "value:"on"})
Code: Select all
Error during perform command execution: SyntaxError: Unexpected identifier
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<value>off</value>