mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-01 06:57:43 +00:00
Resolved conflit and Updated the code Skop dimmer packets for non-dimmer configuration
1. Rsolved the build conflict on sonoff/_changelog.ino tools/decode-config.py 2. Updated the code Skop dimmer packets for non-dimmer configuration
This commit is contained in:
parent
86af0df712
commit
ab9baf2ac0
@ -1,15 +1,25 @@
|
||||
/*
|
||||
* 6.5.0.14 20190520
|
||||
* Updated xdrv_16_tuyadimmer.ino repalced TuyGetPower with bitRead()
|
||||
*
|
||||
* 6.5.0.12 20190517
|
||||
* 6.5.0.13 20190517
|
||||
* Add command SetOption65 (tuya_show_dimmer) to enable or disable dimmer Slider ( for 4 Gang Tuya switch)
|
||||
* Added Seeting.pram9 to define no of Tuya MCU devices
|
||||
* Updated xdrv_01_webserver.ino to check for the tuya_show_dimmer option to display slider2
|
||||
* Updated xdrv_16_tuyadimmer.ino create bool serial packet based on the Device Id and set the power status based on the Device id from MCU packet
|
||||
* Updated xdrv_16_tuyadimmer.ino skip dimmer packets for device configured as non - dimmer
|
||||
*
|
||||
* 6.5.0.12 20190521
|
||||
* Add AriLux RF control GPIO option "ALux IrSel" (159) replacing "Led4i" (59) for full LED control (#5709)
|
||||
* Add LED GPIO option "LedLink" (157) and "LedLinki" (158) to select dedicated link status LED (#5709)
|
||||
* Add support for up to four LEDs related to four power outputs. Enabled when "LedLink(i)" is configured too (#5709)
|
||||
* Add extended LED power control using command LedPowerX where X is 1 to 4. Enabled when "LedLink(i)" is configured too (#5709)
|
||||
*
|
||||
* 6.5.0.11 20190517
|
||||
* Add command SetOption64 0/1 to switch between "-" or "_" as sensor index separator impacting DS18X20, DHT, BMP and SHT3X sensor names (#5689)
|
||||
* Add initial support for Scripts as replacement for Rules. Default disabled but can be enabled in my_user_config.h (#5689)
|
||||
* Add rule System#Save executed just before a planned restart
|
||||
* Add HX711 weight restore after controlled restart or after power restore just before executing command Sensor34 7 (#5367, #5786)
|
||||
* Remove define USE_EMULATION from my_user_config.h (#5826)
|
||||
* Add defines USE_EMULATION_WEMO and USE_EMULATION_HUE to my_user_config.h to control emulation features at compile time (#5826)
|
||||
* Add support for SPS30 Particle sensor thanks to Gerhard Mutz (#5830)
|
||||
*
|
||||
* 6.5.0.10 20190513
|
||||
* Enable ADC0 by default in my_user_config.h (#5671)
|
||||
|
@ -207,7 +207,8 @@ void TuyaPacketProcess(void)
|
||||
else if (tuya_buffer[5] == 8) { // dim packet
|
||||
|
||||
AddLog_P2(LOG_LEVEL_DEBUG, PSTR("TYA: RX Dim State=%d"), tuya_buffer[13]);
|
||||
|
||||
if(Settings.flag3.tuya_show_dimmer == 0) //
|
||||
{
|
||||
if (!Settings.param[P_TUYA_DIMMER_ID]) {
|
||||
AddLog_P2(LOG_LEVEL_DEBUG, PSTR("TYA: Autoconfiguring Dimmer ID %d"), tuya_buffer[6]);
|
||||
Settings.param[P_TUYA_DIMMER_ID] = tuya_buffer[6];
|
||||
@ -224,6 +225,7 @@ void TuyaPacketProcess(void)
|
||||
ExecuteCommand(scmnd, SRC_SWITCH);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case TUYA_CMD_WIFI_RESET:
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
VER = '2.2.0025'
|
||||
VER = '2.2.0026'
|
||||
|
||||
"""
|
||||
decode-config.py - Backup/Restore Sonoff-Tasmota configuration data
|
||||
@ -903,14 +903,20 @@ Setting_6_5_0_9['flag3'][0].update ({
|
||||
'no_power_feedback': ('<L', (0x3A0,1,13), (None, None, ('SetOption', '"SetOption63 {}".format($)')) ),
|
||||
})
|
||||
# ======================================================================
|
||||
# ======================================================================
|
||||
Setting_6_5_0_10 = copy.deepcopy(Setting_6_5_0_9)
|
||||
Setting_6_5_0_10['flag3'][0].update ({
|
||||
'use_underscore': ('<L', (0x3A0,1,14), (None, None, ('SetOption', '"SetOption64 {}".format($)')) ),
|
||||
})
|
||||
# ======================================================================
|
||||
# ======================================================================
|
||||
Setting_6_5_0_11 = copy.deepcopy(Setting_6_5_0_10)
|
||||
Setting_6_5_0_11['flag3'][0].update ({
|
||||
'tuya_show_dimmer': ('<L', (0x3A0,1,15), (None, None, ('SetOption', '"SetOption65 {}".format($)')) ),
|
||||
})
|
||||
# ======================================================================
|
||||
Settings = [
|
||||
(0x6050010, 0xe00, Setting_6_5_0_10),
|
||||
(0x605000B, 0xe00, Setting_6_5_0_11),
|
||||
(0x605000B, 0xe00, Setting_6_5_0_10),
|
||||
(0x6050009, 0xe00, Setting_6_5_0_9),
|
||||
(0x6050007, 0xe00, Setting_6_5_0_7),
|
||||
(0x6050006, 0xe00, Setting_6_5_0_6),
|
||||
@ -1142,12 +1148,12 @@ def GetGroupList(setting):
|
||||
dev = setting[name]
|
||||
format_, group = GetFieldDef(dev, fields="format_, group")
|
||||
if group is not None and len(group) > 0:
|
||||
groups.add(group)
|
||||
groups.add(group.title())
|
||||
if isinstance(format_, dict):
|
||||
subgroups = GetGroupList(format_)
|
||||
if subgroups is not None and len(subgroups) > 0:
|
||||
for group in subgroups:
|
||||
groups.add(group)
|
||||
groups.add(group.title())
|
||||
|
||||
groups=list(groups)
|
||||
groups.sort()
|
||||
|
Loading…
x
Reference in New Issue
Block a user