From 07d2862c7ff8bd539431baf604190aff75200711 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 22 Jun 2022 17:28:54 +0200 Subject: [PATCH] Add support for 5-channel light dimmer driver SM2335 Add support for 5-channel light dimmer driver SM2335 used in SwitchBot Color Bulbs (#15839) --- BUILDS.md | 2 +- CHANGELOG.md | 1 + RELEASENOTES.md | 2 +- tasmota/include/tasmota_configurations.h | 8 ++++---- tasmota/include/tasmota_configurations_ESP32.h | 1 - tasmota/my_user_config.h | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/BUILDS.md b/BUILDS.md index 4d7611a29..576c8be6f 100644 --- a/BUILDS.md +++ b/BUILDS.md @@ -65,7 +65,7 @@ Note: `minimal` variant is not listed as it shouldn't be used outside of the [up | USE_MY92X1 | - | x / - | x | x | - | x | | USE_SM16716 | - | x / - | x | x | - | x | | USE_SM2135 | - | x / - | x | x | - | x | -| USE_SM2335 | - | - / x | - | - | - | - | +| USE_SM2335 | - | x / - | x | x | - | x | | USE_BP5758D | - | x / - | x | x | - | x | | USE_SONOFF_L1 | - | x / - | x | x | - | x | | USE_ELECTRIQ_MOODL | - | x / - | x | x | - | x | diff --git a/CHANGELOG.md b/CHANGELOG.md index 06cb69b50..4dfab2aa4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. ## [12.0.2.1] ### Added +- Support for 5-channel light dimmer driver SM2335 used in SwitchBot Color Bulbs (#15839) ### Changed diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 92888e5b0..a1e32ea8b 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -109,7 +109,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo ## Changelog v12.0.2.1 ### Added -- Support for 5-channel light dimmer driver SM2335 used in SwitchBot Color Bulbs +- Support for 5-channel light dimmer driver SM2335 used in SwitchBot Color Bulbs [#15839](https://github.com/arendst/Tasmota/issues/15839) ### Breaking Changed diff --git a/tasmota/include/tasmota_configurations.h b/tasmota/include/tasmota_configurations.h index 5fe9514ea..1eb21552f 100644 --- a/tasmota/include/tasmota_configurations.h +++ b/tasmota/include/tasmota_configurations.h @@ -69,7 +69,7 @@ #define USE_MY92X1 // Add support for MY92X1 RGBCW led controller as used in Sonoff B1, Ailight and Lohas #define USE_SM16716 // Add support for SM16716 RGB LED controller (+0k7 code) #define USE_SM2135 // Add support for SM2135 RGBCW led control as used in Action LSC (+0k6 code) -//#define USE_SM2335 // Add support for SM2335 RGBCW led control as used in Switchbot Bulb +#define USE_SM2335 // Add support for SM2335 RGBCW led control as used in Switchbot Bulb #define USE_BP5758D // Add support for BP5758D RGBCW led control as used in some Tuya lightbulbs (+0k8 code) #define USE_SONOFF_L1 // Add support for Sonoff L1 led control #define USE_ELECTRIQ_MOODL // Add support for ElectriQ iQ-wifiMOODL RGBW LED controller @@ -404,7 +404,7 @@ #undef USE_MY92X1 // Disable support for MY92X1 RGBCW led controller as used in Sonoff B1, Ailight and Lohas #undef USE_SM16716 // Disable support for SM16716 RGB LED controller (+0k7 code) #undef USE_SM2135 // Disable support for SM2135 RGBCW led control as used in Action LSC (+0k6 code) -//#undef USE_SM2335 // Disable support for SM2335 RGBCW led control as used in Switchbot Bulb +#undef USE_SM2335 // Disable support for SM2335 RGBCW led control as used in Switchbot Bulb #undef USE_BP5758D // Disable support for BP5758D RGBCW led control as used in some Tuya lightbulbs (+0k8 code) #undef USE_SONOFF_L1 // Disable support for Sonoff L1 led control #undef USE_ELECTRIQ_MOODL // Disable support for ElectriQ iQ-wifiMOODL RGBW LED controller @@ -554,7 +554,7 @@ #undef USE_MY92X1 // Disable support for MY92X1 RGBCW led controller as used in Sonoff B1, Ailight and Lohas #undef USE_SM16716 // Disable support for SM16716 RGB LED controller (+0k7 code) #undef USE_SM2135 // Disable support for SM2135 RGBCW led control as used in Action LSC (+0k6 code) -//#undef USE_SM2335 // Disable support for SM2335 RGBCW led control as used in Switchbot Bulb +#undef USE_SM2335 // Disable support for SM2335 RGBCW led control as used in Switchbot Bulb #undef USE_BP5758D // Disable support for BP5758D RGBCW led control as used in some Tuya lightbulbs (+0k8 code) #undef USE_SONOFF_L1 // Disable support for Sonoff L1 led control #undef USE_ELECTRIQ_MOODL // Disable support for ElectriQ iQ-wifiMOODL RGBW LED controller @@ -700,7 +700,7 @@ #undef USE_MY92X1 // Disable support for MY92X1 RGBCW led controller as used in Sonoff B1, Ailight and Lohas #undef USE_SM16716 // Disable support for SM16716 RGB LED controller (+0k7 code) #undef USE_SM2135 // Disable support for SM2135 RGBCW led control as used in Action LSC (+0k6 code) -//#undef USE_SM2335 // Disable support for SM2335 RGBCW led control as used in Switchbot Bulb +#undef USE_SM2335 // Disable support for SM2335 RGBCW led control as used in Switchbot Bulb #undef USE_BP5758D // Disable support for BP5758D RGBCW led control as used in some Tuya lightbulbs (+0k8 code) #undef USE_SONOFF_L1 // Disable support for Sonoff L1 led control #undef USE_ELECTRIQ_MOODL // Disable support for ElectriQ iQ-wifiMOODL RGBW LED controller diff --git a/tasmota/include/tasmota_configurations_ESP32.h b/tasmota/include/tasmota_configurations_ESP32.h index 6b0b8c3b0..7df7efbf6 100644 --- a/tasmota/include/tasmota_configurations_ESP32.h +++ b/tasmota/include/tasmota_configurations_ESP32.h @@ -696,7 +696,6 @@ #define USE_HRE // Add support for Badger HR-E Water Meter (+1k4 code) //#define USE_A4988_STEPPER // Add support for A4988/DRV8825 stepper-motor-driver-circuit (+10k5 code) //#define USE_THERMOSTAT // Add support for Thermostat -#define USE_SM2335 // Add support for SM2335 RGBCW led control as used in Switchbot Bulb #define USE_ETHERNET // Add support for ethernet (+20k code) #ifndef USE_KNX diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index 868a16bd0..28d77ed07 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -556,7 +556,7 @@ #define USE_MY92X1 // Add support for MY92X1 RGBCW led controller as used in Sonoff B1, Ailight and Lohas #define USE_SM16716 // Add support for SM16716 RGB LED controller (+0k7 code) #define USE_SM2135 // Add support for SM2135 RGBCW led control as used in Action LSC (+0k6 code) -//#define USE_SM2335 // Add support for SM2335 RGBCW led control as used in SwitchBot Color Bulb +#define USE_SM2335 // Add support for SM2335 RGBCW led control as used in SwitchBot Color Bulb (+0k7 code) #define USE_BP5758D // Add support for BP5758D RGBCW led control as used in some Tuya lightbulbs (+0k8 code) #define USE_SONOFF_L1 // Add support for Sonoff L1 led control #define USE_ELECTRIQ_MOODL // Add support for ElectriQ iQ-wifiMOODL RGBW LED controller (+0k3 code)