We need a simple function or two to render the rules conditions array and the rules actions array as a human readable format. This will be used in the tables to display conditions and rules to the user on the front end.
So,
[["Sensor/1/value","GreaterThan","123"]] may become "Moisture sensor reading greater than 123"
and
[["Device/1/value","1"]] may become "Water Solenoid turns on"
Branch - PrettyDisplayConditionsAndActions
We need a simple function or two to render the rules conditions array and the rules actions array as a human readable format. This will be used in the tables to display conditions and rules to the user on the front end.
So,
[["Sensor/1/value","GreaterThan","123"]] may become "Moisture sensor reading greater than 123" and [["Device/1/value","1"]] may become "Water Solenoid turns on"