The first problem is interacting with the JSON API. I want to be able to interact with the razberry using cURL, but every time I include a "Get" or "Set" command, it just returns "null."
For example, this returns a JSON object with sensor data, great:
Code: Select all
curl -H "Content-Type:application/json" 'http://razberry:8083/ZWaveAPI/Run/devices\[14\].instances\[0\].Configuration'
Code: Select all
curl -H "Content-Type:application/json" 'http://razberry:8083/ZWaveAPI/Run/devices\[14\].instances\[0\].Configuration.Get(1,null,null)'
Is this the normal behavior for the window sensor? That is, does it just send a "0" when it opens or closes? Or can I get it to output 255 when open and then 0 when closed again? I would like to be able to have other devices poll the window sensor and get an explicit answer of "open" or "closed" to determine what they should be doing or to warn me that I forgot to close the window if I'm upstairs after a certain time.
Any help would be much appreciated.