diff --git a/CHANGELOG.md b/CHANGELOG.md index 84c1a26bc..c7ed24187 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. - Support for Sonoff Zigbee Bridge Pro by Stephan Hadinger (#15701) - Command ``SspmDisplay 2`` to display Sonoff SPM energy data in GUI for user tab-selected relay modules (#13447) - Command ``SetOption141 1`` to disable display of module name in GUI header +- Support for 5-channel light dimmer driver BP5758D used in Tuya bulbs (#15713) ### Changed diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 415c63d5f..e367612a1 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -118,8 +118,8 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo - Support for Sonoff SPM v1.2.0 - Support for Sonoff Zigbee Bridge Pro by Stephan Hadinger [#15701](https://github.com/arendst/Tasmota/issues/15701) - Support for flowrate meters like YF-DN50 and similary [#15474](https://github.com/arendst/Tasmota/issues/15474) +- Support for 5-channel light dimmer driver BP5758D used in Tuya bulbs [#15713](https://github.com/arendst/Tasmota/issues/15713) - ESP32 Command ``Restart 3`` to switch between SafeBoot and Production -- Support for 5-channel light dimmer driver BP5758D used in Tuya bulbs ### Breaking Changed diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index 750a718bc..8f632349c 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -555,7 +555,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_BP5758D // Add support for BP5758D RGBCW led control as used in some Tuya lightbulbs +#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) #define USE_LIGHT_PALETTE // Add support for color palette (+0k7 code) diff --git a/tasmota/support_features.ino b/tasmota/support_features.ino index a014d97d1..262990005 100644 --- a/tasmota/support_features.ino +++ b/tasmota/support_features.ino @@ -798,7 +798,7 @@ void ResponseAppendFeatures(void) feature8 |= 0x00800000; // xnrg_23_ade7880.ino #endif #if defined(USE_I2C) && defined(USE_PCF85363) - feature8 |= 0x01000000; // xsns_96_pcf85393.ino + feature8 |= 0x01000000; // xdrv_56_rtc_chips.ino #endif #if defined(USE_I2C) && defined(USE_DS3502) feature8 |= 0x02000000; // xdrv_61_ds3502.ino @@ -809,8 +809,9 @@ void ResponseAppendFeatures(void) #ifdef USE_FLOWRATEMETER feature8 |= 0x08000000; // xsns_96_flowratemeter.ino #endif - -// feature8 |= 0x10000000; +#if defined(USE_LIGHT) && defined(USE_BP5758D) + feature8 |= 0x10000000; // xlgt_08_bp5758d.ino +#endif // feature8 |= 0x20000000; // feature8 |= 0x40000000; // feature8 |= 0x80000000; diff --git a/tasmota/tasmota_configurations.h b/tasmota/tasmota_configurations.h index 97fad2865..f169a4cf1 100644 --- a/tasmota/tasmota_configurations.h +++ b/tasmota/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_BP5758D // Add support for BP5758D RGBCW led control as used in some Tuya lightbulbs +#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 #define USE_LIGHT_PALETTE // Add support for color palette (+0k9 code) @@ -403,7 +403,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_BP5758D // Disable support for BP5758D RGBCW led control +#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 #undef USE_LIGHT_PALETTE // Disable support for color palette (+0k9 code) @@ -552,7 +552,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_BP5758D // Disable support for BP5758D RGBCW led control +#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 #undef USE_LIGHT_PALETTE // Disable support for color palette (+0k9 code) @@ -697,7 +697,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_BP5758D // Disable support for BP5758D RGBCW led control +#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 #undef USE_LIGHT_PALETTE // Disable support for color palette (+0k9 code) diff --git a/tools/decode-status.py b/tools/decode-status.py index f053ec544..89b879720 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -279,7 +279,7 @@ a_features = [[ "USE_HDC2010","USE_LSC_MCSL","USE_SONOFF_SPM","USE_SHIFT595", "USE_SDM230","USE_CM110x","USE_BL6523","USE_ADE7880", "USE_PCF85363","USE_DS3502","USE_IMPROV","USE_FLOWRATEMETER", - "","","","" + "USE_BP5758D","","","" ],[ "","","","", "","","","",