I would like to configure Z-way to open a certain URL at a certain time, or when a certain lamp is turned on/off.
Can someone point me in the right direction on how to acheive this?
Would I add the URL as a device?
(The result from opening the URL is of no interest in itself, its a fire-and-forget thing).
Thank you!
Call HTTP on event
Re: Call HTTP on event
Depends on where your preferences lie, but I don't like the dark hell of javascript , so I would create a logical rule:
and configure a CodeDevice (named HttpCall above) to call curl, e.g.
Code action for on:
but you must also place curl in
You can also use the "If then" or Association module.
Code: Select all
if light=on then HttpCall
Code action for on:
Code: Select all
system('curl...')
Code: Select all
pi@raspberrypi /opt/z-way-server/automation/.syscommands