From d20d8f6ced6abeb731248d12f69ec9e9ee783608 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 8 Mar 2021 17:28:24 +0000 Subject: [PATCH] Add water level configuration --- examples/monitor.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/monitor.py b/examples/monitor.py index 727b641..6db1d86 100644 --- a/examples/monitor.py +++ b/examples/monitor.py @@ -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",