From 2fc3b93e9daf85558bde241460ff9c57e45a6d98 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 22 Apr 2021 15:03:56 +0200 Subject: [PATCH] Change command ``Power`` should not reset pulsetime Change command ``Power`` should not reset pulsetime (#11805) --- CHANGELOG.md | 4 +-- RELEASENOTES.md | 64 ++----------------------------------- tasmota/support_tasmota.ino | 4 ++- 3 files changed, 7 insertions(+), 65 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f87f575a..8e57777b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,8 @@ All notable changes to this project will be documented in this file. ## [Unreleased] - Development ## [9.4.0.1] - - +### Changed +- Command ``Power`` should not reset pulsetime (#11805) ## [Released] diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 63474515a..f9552dd50 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -76,75 +76,15 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota [Complete list](BUILDS.md) of available feature and sensors. -## Changelog v9.4.0 Leslie +## Changelog v9.4.0.1 ### Added -- Command ``Sensor80 1 <0..7>`` to control MFRC522 RFID antenna gain from 18dB (0) to 48dB (7) [#11073](https://github.com/arendst/Tasmota/issues/11073) -- Command ``SerialBuffer 256..520`` to change hardware serial receive buffer size from default (256) to max local buffer size (520) [#11448](https://github.com/arendst/Tasmota/issues/11448) -- Command ``SetOption126 1`` to enable DS18x20 arithmetic mean over teleperiod for JSON temperature based on [#11472](https://github.com/arendst/Tasmota/issues/11472) -- Command ``Backlog0`` to allow execution of following commands without delay -- Command ``TuyaTempSetRes 0..3`` to control Tuya Temperature Set Resolution [#11781](https://github.com/arendst/Tasmota/issues/11781) -- Commands ``MqttKeepAlive 1..100`` to set Mqtt Keep Alive timer (default 30) and ``MqttTimeout 1..100`` to set Mqtt Socket Timeout (default 4) [#5341](https://github.com/arendst/Tasmota/issues/5341) -- Commands ``DisplayType`` to select sub-modules where implemented and ``DisplayInvert`` to select inverted display where implemented -- Support for SML VBUS [#11125](https://github.com/arendst/Tasmota/issues/11125) -- Support for NEC and OPTOMA LCD/DLP Projector serial power control by Jan BubĂ­k [#11145](https://github.com/arendst/Tasmota/issues/11145) -- Support for XPT2046 touch screen digitizer on ILI9341 display by nonix [#11159](https://github.com/arendst/Tasmota/issues/11159) -- Support for zigbee lumi.sensor_wleak [#11200](https://github.com/arendst/Tasmota/issues/11200) -- Support for dummy energy monitor using user values set by commands ``VoltageSet``, ``CurrentSet``, ``PowerSet`` and ``FrequencySet``. Enable by selecting any GPIO as ``Option A2`` [#10640](https://github.com/arendst/Tasmota/issues/10640) -- Support for CSE7761 energy monitor as used in ESP32 based Sonoff Dual R3 Pow [#10793](https://github.com/arendst/Tasmota/issues/10793) -- Support for Frequency monitoring and zero-cross detection on CSE7761 (Sonoff Dual R3) -- Support for TM1638 seven segment display by Ajith Vasudevan [#11031](https://github.com/arendst/Tasmota/issues/11031) -- Support for MAX7219 seven segment display by Ajith Vasudevan [#11387](https://github.com/arendst/Tasmota/issues/11387) -- Support for MPU6886 on primary or secondary I2C bus -- Support for multiple CCS811 sensors with baseline control (USE_CCS811_V2) by clanganke [#10858](https://github.com/arendst/Tasmota/issues/10858) -- Allow MCP230xx pinmode from output to input [#11104](https://github.com/arendst/Tasmota/issues/11104) -- Berry improvements [#11163](https://github.com/arendst/Tasmota/issues/11163) -- Extent compile time SetOptions support [#11204](https://github.com/arendst/Tasmota/issues/11204) -- Tasmota discovery as alternative to Home Assistant discovery using define ``USE_TASMOTA_DISCOVERY`` -- Optional GUI file editor enabled with define ``GUI_EDIT_FILE`` by barbudor [#11668](https://github.com/arendst/Tasmota/issues/11668) -- Initial support for universal display driver UDisplay by Gerhard Mutz. Enable by selecting any GPIO as ``Option A3`` [#11665](https://github.com/arendst/Tasmota/issues/11665) -- ESP32 Extent BLE [#11212](https://github.com/arendst/Tasmota/issues/11212) -- ESP32 support for WS2812 hardware driver via RMT or I2S -- ESP32 support for secondary I2C controller -- ESP32 support for internal Hall Effect sensor connected to both GPIO36 and GPIO39 only -- ESP32 support for LVGL 7.11 with Berry binding by Stephan Hadinger [#11789](https://github.com/arendst/Tasmota/issues/11789) ### Breaking Changed -- ESP32 partition layout changed to accomodate more file space on most and more code space on core2 and odroid-go [#11746](https://github.com/arendst/Tasmota/issues/11746) ### Changed -- TasmotaSerial library from v3.2.0 to v3.3.0 -- PubSubClient library from EspEasy v2.7.12 to Tasmota v2.8.12 -- IRremoteESP8266 library from v2.7.15 to v2.7.16 -- ESP32 core library from v1.0.5-rc6 to v1.0.6 -- TuyaMcu dimmer timeout [#11121](https://github.com/arendst/Tasmota/issues/11121) -- Rename epaper 42 commands [#11222](https://github.com/arendst/Tasmota/issues/11222) -- DeepSleep announcement topic [#11223](https://github.com/arendst/Tasmota/issues/11223) -- Limit number of relay/button columns in GUI to 8 [#11546](https://github.com/arendst/Tasmota/issues/11546) -- ADC range result from int to float using command ``FreqRes`` for decimal resolution selection [#11545](https://github.com/arendst/Tasmota/issues/11545) -- Removed overtemp detection on external energy monitoring devices [#11628](https://github.com/arendst/Tasmota/issues/11628) -- Redesigned initial GUI wifi configuration by Adrian Scillato [#11693](https://github.com/arendst/Tasmota/issues/11693) -- Redesigned GUI by moving non-configuration buttons from ``Configuration`` to new submenu ``Consoles`` -- In tasmota-sensors.bin enabled support for VL53L0X and disabled TSL2561 [#11711](https://github.com/arendst/Tasmota/issues/11711) -- Add HLW8012/BL0937 average pulse calculation by Alex Lovett [#11722](https://github.com/arendst/Tasmota/issues/11722) -- ESP32 **tasmota32-knx**, **tasmota32-sensors** and **tasmota32-lite** binaries consolidated in **tasmota32.bin** binary +- Command ``Power`` should not reset pulsetime [#11805](https://github.com/arendst/Tasmota/issues/11805) ### Fixed -- PN532 on ESP32 Serial flush both Tx and Rx buffers [#10910](https://github.com/arendst/Tasmota/issues/10910) -- Light scheme related color changes [#11041](https://github.com/arendst/Tasmota/issues/11041) -- Refactor acceleration function for shutter stepper and servo [#11088](https://github.com/arendst/Tasmota/issues/11088) -- LM75AD detection on different addresses [#11096](https://github.com/arendst/Tasmota/issues/11096) -- Timer loop when console is scrolled up regression from v9.3.0 [#11108](https://github.com/arendst/Tasmota/issues/11108) -- Display exception when no file system is present [#11125](https://github.com/arendst/Tasmota/issues/11125) -- Scripter and SML fixes [#11150](https://github.com/arendst/Tasmota/issues/11150) -- Zigbee exception when bad frame is received [#11192](https://github.com/arendst/Tasmota/issues/11192) -- ESP32 flash script for Odroid and Core2 [#11227](https://github.com/arendst/Tasmota/issues/11227) -- ESP32 WS2812 bitbang support [#11248](https://github.com/arendst/Tasmota/issues/11248) -- DS18x20 driver timing issue [#11270](https://github.com/arendst/Tasmota/issues/11270) -- Alexa discovery in hue emulation [#11415](https://github.com/arendst/Tasmota/issues/11415) -- HC-SR04 on ESP32 release serial interface if not used [#11507](https://github.com/arendst/Tasmota/issues/11507) -- Alexa discovery for ZBBridge [#11576](https://github.com/arendst/Tasmota/issues/11576) -- Telegram chat id incorrect size [#11660](https://github.com/arendst/Tasmota/issues/11660) -- KNX energy yesterday [#11718](https://github.com/arendst/Tasmota/issues/11718) ### Noted - ESP32 single core **tasmota32solo1.bin** binary can only be uploaded using the GUI as OTA upload will trigger the watchdog timer \ No newline at end of file diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index bccf37f7f..85af5b586 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -599,7 +599,9 @@ void ExecuteCommandPower(uint32_t device, uint32_t state, uint32_t source) } TasmotaGlobal.active_device = device; - SetPulseTimer((device -1) % MAX_PULSETIMERS, 0); + if (state != POWER_SHOW_STATE) { + SetPulseTimer((device -1) % MAX_PULSETIMERS, 0); + } static bool interlock_mutex = false; // Interlock power command pending power_t mask = 1 << (device -1); // Device to control