I'm wanting to build a Control Page to set the start times and zone run durations for my sprinkler device. Setting the start time ought to be easy enough using the excellent EPS - Alarm Clock plugin, but I'm trying to come up with a simple way to run a watering schedule with zone run times stored in variables. I doubt I'm this lucky, but can I just substitute the values in this interface with variable names?
https://www.dropbox.com/s/vj96cfstvvxy3xl/Screen%20Shot%202017-04-26%20at%209.12.50%20AM.png?dl=0
In other words, instead of '18.00' in the box, could it be as simple as putting a variable name ('morningGardenRuntime')?
If that doesn't work, is this the python equivalent of what's happening in the screenshot?
- Code: Select all
indigo.sprinkler.run(myDeviceID, schedule=[18,18,18, 0, 0, 0, 0, 0])
I assume that if I use indigo.sprinkler.run I would need to calculate the 'Multiply durations by Variable value' myself? If I'm missing something really obvious let me know