Thought I had this sorted out but, ran into a snag...
I am using ghostxml to provide a value to a variable (this works as below)
name value id
pump2 184,1295,15,0,0 414840212
I then want to split this variable into 4 other separate variables each containing a single number
ie
watts 184
rpm 1295
gpm 15
filter 0
I have created the 4 variables above
I am then using python via an action group to do the following....
- Code: Select all
indigo.variable.updateValue(indigo.variables[142699920], indigo.variables[414840212].value.split(',')[3])
142699920 corresponds to my indigo variable for GPM
Initially, I thought this was working, however, I can NOT get the single variables to update from the parent variable.
At this time, I am just trying to force the update using the execute all on the python script associate with the individual variable in the action group. Once I can get the process correct, I will set up a schedule to execute the specific action group on a regular basis.
What am I missing???
- Code: Select all
indigo.variable.updateValue(indigo.variables[142699920], indigo.variables[414840212].value.split(',')[3])
the above should take the 3rd value (15) from the parent pump 2 variable and copy it to my GPM variable should it not?
Thanx in advance for the help!
dave