Add water level configuration

This commit is contained in:
Phil Howard
2021-03-08 17:28:24 +00:00
parent 9559a05a41
commit d20d8f6ced

View File

@@ -528,6 +528,18 @@ class ChannelEditView(ChannelView, EditView):
"format": lambda value: "Yes" if value else "No",
"help": "Enable/disable this channel",
},
{
"title": "Watering Level",
"prop": "water_level",
"inc": 0.05,
"min": 0,
"max": 1.0,
"mode": "float",
"round": 2,
"format": lambda value: f"{value * 100:0.2f}%",
"help": "Saturation at which watering occurs",
"context": "sat",
},
{
"title": "Auto Water",
"prop": "auto_water",