Hi, i am a newby in scripting for hs2, can anyone help me out ?
what i want is a script that, when executed set a lamp module (zwave) on and after 30 min set that lamp off then sets another lamp on and after 20 min sets that lamp off and then sets another lamp on and after 15 min sets that lamp off
i have the three lamps set up as devices and they work manually
i gues i have to create events for the three lamps (three on events and three off events)
then i have to create a script to execute these events in the propper sequence (i think)
but i do not want to block all other hs2 processes while i execute this script
what is the best way to go (multiple scripts maybe ?)
the sequence must be that when e.g. the first lamp is going off the second lamp is put on and when the second lamp is going off the thirht lamp is going on, son at any time there is only one lamp active
could anyone give me an example of a script so i can see wich direction to go
thanks aforehand
what i want is a script that, when executed set a lamp module (zwave) on and after 30 min set that lamp off then sets another lamp on and after 20 min sets that lamp off and then sets another lamp on and after 15 min sets that lamp off
i have the three lamps set up as devices and they work manually
i gues i have to create events for the three lamps (three on events and three off events)
then i have to create a script to execute these events in the propper sequence (i think)
but i do not want to block all other hs2 processes while i execute this script
what is the best way to go (multiple scripts maybe ?)
the sequence must be that when e.g. the first lamp is going off the second lamp is put on and when the second lamp is going off the thirht lamp is going on, son at any time there is only one lamp active
could anyone give me an example of a script so i can see wich direction to go
thanks aforehand
Comment