01-27-2015, 10:16 PM
I am trying to modify the auto generated v2 template for the dummy AC unit to work with the nest driver. I go the overlay page to work. THe place where I am having problems is with the tile.
How would I change the coding so that the up/down arrows will work for the different fields? I changed where the data is displayed, so that part works. But if I cant figure out how to change the arrows. All I was able to do was set it for one field (low set temp, for example), I cant make it dynamic.
Here is how I have it for one field.
Thanks
How would I change the coding so that the up/down arrows will work for the different fields? I changed where the data is displayed, so that part works. But if I cant figure out how to change the arrows. All I was able to do was set it for one field (low set temp, for example), I cant make it dynamic.
Here is how I have it for one field.
Code:
// Ask the variable to move to the prev value
Devices::FieldWrite
P1=Nest.IncrementTargetLowTemperature_Nest
P2=1
P3=True
Devices::FieldRead
P1=Nest.TargetLowTemperature_Nest
P2=GVar:ThermoTileVal
P3=True
// Update the edit value display
ThermoTileVal::SetText
P1=%(GVar:ThermoTileVal)
// If the new and org values are different, show the set button
If System::Equals
P1=%(GVar:ThermoTileVal)
P2=%(GVar:OrgThermoTileVal)
P3=Case
ThermoSetButton::SetWidgetState
P1=Hidden
Else
ThermoSetButton::SetWidgetState
P1=Normal
End
Thanks