Currently the Rules are set up to allow the user to input the desired value for the digital pin in a text input blank with no validation. In this story we will change that to a drop box with On and Off. These will translate in the saving of the front end so that the back end code is unchanged and a 1 or 0 still gets stored as the value of the action in the rule. This will be good validation and maintain data integrity in the database.
Branch - DeviceActionsOnOff
Currently the Rules are set up to allow the user to input the desired value for the digital pin in a text input blank with no validation. In this story we will change that to a drop box with On and Off. These will translate in the saving of the front end so that the back end code is unchanged and a 1 or 0 still gets stored as the value of the action in the rule. This will be good validation and maintain data integrity in the database.