I have a nice feature in my bedroom - I'm opening all blinds every morning. It was a Razberry adapter on RPi board, an entry in the crontab every working day at certain hour, executing
wget call to wget -q --spider "http://192.168.1.200:8083/ZWaveAPI/Run/devices[13].instances[0].Basic.Set(80)"
This worked great before I upgraded to the newest version of Razberry and Z-way. Now the device needs an authentication so I needed to execute shell script instead of just plain wget comand. So I wrote an open_blinders.sh:
This script actually compares the uptime associated with one of the sensors on the Aeotec multi-sensor and if it exceeds the expected time when the sensors was supposed to send an update it turns a power plug off and then back on. I've found the aeotec multi-sensors (the 4 in 1) to be very unreliable when powered from main. They work better when power from batteries but you end up replacing batteries every two weeks.
I also want to note that I have an anonymous user setup without a password that allows local login access. This allows me to save the cookie and execute the scripts.
Last edited by islipfd19 on 06 Oct 2015 17:17, edited 1 time in total.
This is another interface - ZWaveAPI (rather than ZAutomation). I know this one but I wasn't able to use it with curl. The trouble is I can't make it work with parantheses or square brackets. Escaping with '\' doesn't work. Any idea?
Also, thanks valuable insight regarding Aeotec multi-sensor. I gave them up due to unreliable behaviour. Nights here in Poland tend to be cold and below -5C batteries are dead after one night. I had an idea of replacing 4 AA batteries with permanent power supply but hearing what you say I will give that up.
What scripting language are you using? I'm using bash and have found the commands I provided work just fine; the $dev variable should have been replaced with the actual device id. I forgot to update it when I copied and pasted it. The same commands work in a web browser. My actual reply wasn't complete as I look into my script a bit more. I use a cron job to fetch the cookie every so often so that it doesn't expire.
To expand on the Aeotec 4-in-1 multisensor, Aeotec has released a new 6-in-1 multisensor; though I did see a post of someone having difficulty in adding it to their system. I don't think I'm at a point to buying it and testing it out either.
ZAutomation usually doesn't have Basic CC as a device if there's more specific command class (like Multilevel Switch) present, so there's no exact analog for your command. But here's something similar: