From ac065867d3c5bd992405190cb9cac9a41df652f7 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 29 Nov 2019 13:11:35 +0100 Subject: [PATCH] Add command ``SetOption77 0/1`` Add command ``SetOption77 0/1`` to keep power on when slider is far left --- RELEASENOTES.md | 1 + tasmota/CHANGELOG.md | 1 + tasmota/settings.h | 2 +- tasmota/xdrv_01_webserver.ino | 2 +- tools/decode-status.py | 3 ++- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index afb4c18ee..a46f2bd46 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -155,6 +155,7 @@ The following binary downloads have been compiled with ESP8266/Arduino library c - Add command ``SetOption74 0/1`` to enable DS18x20 internal pull-up and remove define DS18B20_INTERNAL_PULLUP (#6795) - Add command ``SetOption75 0/1`` to switch between grouptopic (0) using fulltopic replacing %topic% or (1) is cmnd/\ (#6779) - Add command ``SetOption76 0/1`` to enable incrementing bootcount when deepsleep is enabled (#6930) +- Add command ``SetOption77 0/1`` to keep power on when slider is far left - Add command ``I2cDriver`` for I2C driver runtime control using document I2CDEVICES.md - Add command ``TempOffset -12.6 .. 12.6`` to set global temperature sensor offset (#6958) - Add command ``WebColor19`` to control color of Module and Name (#6811) diff --git a/tasmota/CHANGELOG.md b/tasmota/CHANGELOG.md index 5c7202aae..2ab00d9ba 100644 --- a/tasmota/CHANGELOG.md +++ b/tasmota/CHANGELOG.md @@ -8,6 +8,7 @@ - Change update lib IRremoteESP8266 updated to v2.7.1, -2.7k flash and -1.5k RAM for Tasmota-IR - Fix auto--power on/off when setting channel to non-zero or zero value, when SetOption68 1 - Fix postpone saving settings to flash until Fade is complete, avoids pause in Fade +- Add command ``SetOption77 0/1`` to keep power on when slider is far left ### 7.0.0.5 20191118 diff --git a/tasmota/settings.h b/tasmota/settings.h index 876e0bde5..554711cad 100644 --- a/tasmota/settings.h +++ b/tasmota/settings.h @@ -90,7 +90,7 @@ typedef union { // Restricted by MISRA-C Rule 18.4 bu uint32_t ds18x20_internal_pullup : 1; // bit 24 (v7.0.0.1) - SetOption74 - Enable internal pullup for single DS18x20 sensor uint32_t grouptopic_mode : 1; // bit 25 (v7.0.0.1) - SetOption75 - GroupTopic replaces %topic% (0) or fixed topic cmnd/grouptopic (1) uint32_t bootcount_update : 1; // bit 26 (v7.0.0.4) - SetOption76 - Enable incrementing bootcount when deepsleep is enabled - uint32_t spare27 : 1; + uint32_t slider_dimmer_stay_on : 1; // bit 27 (v7.0.0.6) - SetOption77 - Do not power off if slider moved to far left uint32_t spare28 : 1; uint32_t spare29 : 1; uint32_t shutter_mode : 1; // bit 30 (v6.6.0.14) - SetOption80 - Enable shutter support diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index e5d8aecfe..42630b8ba 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -1065,7 +1065,7 @@ void HandleRoot(void) "c", // c - Unique HTML id "#000", "#fff", // Black to White 4, // sl4 - Unique range HTML id - Used as source for Saturation begin color - 0, 100, // Range 0 to 100% + Settings.flag3.slider_dimmer_stay_on, 100, // Range 0/1 to 100% Settings.light_dimmer, 'd', 0); // d0 - Value id is related to lc("d0", value) and WebGetArg("d0", tmp, sizeof(tmp)); } else { // Settings.flag3.pwm_multi_channels - SetOption68 1 - Enable multi-channels PWM instead of Color PWM diff --git a/tools/decode-status.py b/tools/decode-status.py index 5b5c3df98..be79cf921 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -129,7 +129,8 @@ a_setoption = [[ "Enable HTTP CORS", "Enable internal pullup for single DS18x20 sensor", "GroupTopic replaces %topic% (0) or fixed topic cmnd/grouptopic (1)", - "","", + "Enable incrementing bootcount when deepsleep is enabled", + "Do not power off if slider moved to far left", "","", "Enable shutter support", "Invert PCF8574 ports"