From 116277acb445a10bf483ca296f831151840b82d6 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 15 Feb 2017 19:18:18 -0800 Subject: [PATCH] ha-climate-control polymer widget (#212) This replaces the climate paper-slider with a new control which is a numerical display plus up/down buttons. The paper-slider control really needs a fine pointer like a mouse or a stylus to function well, and in my use case the most often time I want to quick manually adjust the temperature is on a mobile device, where using the paper-slider is extremely problematic. The stepsize is now computed based on the units. 0.5 for C, 1.0 for F, which provides about the same granularity for both. The ha-climate-control widget is actually pretty generic, and could be used in other places if anyone has suggestions on a good generic name. --- src/components/ha-climate-control.html | 88 ++++++++++++++++++++++++++ src/more-infos/more-info-climate.html | 44 ++++++------- 2 files changed, 109 insertions(+), 23 deletions(-) create mode 100644 src/components/ha-climate-control.html diff --git a/src/components/ha-climate-control.html b/src/components/ha-climate-control.html new file mode 100644 index 0000000000..89633e50f1 --- /dev/null +++ b/src/components/ha-climate-control.html @@ -0,0 +1,88 @@ + + + + + + + + + + diff --git a/src/more-infos/more-info-climate.html b/src/more-infos/more-info-climate.html index 6c7f45b24e..0b14c3296b 100644 --- a/src/more-infos/more-info-climate.html +++ b/src/more-infos/more-info-climate.html @@ -9,6 +9,8 @@ + +