diff --git a/tasmota/CHANGELOG.md b/tasmota/CHANGELOG.md index 7dbbf3290..b88102593 100644 --- a/tasmota/CHANGELOG.md +++ b/tasmota/CHANGELOG.md @@ -11,6 +11,7 @@ - Add command ``SetOption90 1`` to disable non-json MQTT messages (#8044) - Add command ``Sensor10 0/1/2`` to control BH1750 resolution - 0 = High (default), 1 = High2, 2 = Low (#8016) - Add command ``Sensor10 31..254`` to control BH1750 measurement time which defaults to 69 (#8016) +- Add command ``SetOption91 1`` to enable fading at startup / power on ### 8.2.0.2 20200328 diff --git a/tasmota/settings.h b/tasmota/settings.h index 44c2e061a..54958754c 100644 --- a/tasmota/settings.h +++ b/tasmota/settings.h @@ -110,7 +110,7 @@ typedef union { // Restricted by MISRA-C Rule 18.4 bu uint32_t remote_device_mode : 1; // bit 6 (v8.1.0.9) - SetOption88 - PWM Dimmer Buttons control remote devices uint32_t zigbee_distinct_topics : 1; // bit 7 (v8.1.0.10) - SetOption89 - Distinct MQTT topics per device for Zigbee (#7835) uint32_t only_json_message : 1; // bit 8 (v8.2.0.3) - SetOption90 - Disable non-json MQTT response - uint32_t spare09 : 1; + uint32_t fade_at_startup : 1; // bit 9 (v8.2.0.3) - SetOption91 - Enable light fading at start/power on uint32_t spare10 : 1; uint32_t spare11 : 1; uint32_t spare12 : 1; diff --git a/tasmota/xdrv_04_light.ino b/tasmota/xdrv_04_light.ino index f5cb2e84a..8de0616b7 100644 --- a/tasmota/xdrv_04_light.ino +++ b/tasmota/xdrv_04_light.ino @@ -1310,6 +1310,9 @@ void LightInit(void) Light.power = 0; Light.update = true; Light.wakeup_active = 0; + if (Settings.flag4.fade_at_startup) { + Light.fade_initialized = true; // consider fade intialized starting from black + } LightUpdateColorMapping(); }