From 5ccd8bc2e755272d0e9fca88c1d27808005790c8 Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Sun, 30 Jun 2019 17:24:19 +0200 Subject: [PATCH 1/2] decode-config.py: adapt settings - add SetOption65 (tuya_show_dimmer) --- tools/decode-config.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/decode-config.py b/tools/decode-config.py index 4807da1b4..311007bab 100755 --- a/tools/decode-config.py +++ b/tools/decode-config.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -VER = '2.2.0027' +VER = '2.2.0028' """ decode-config.py - Backup/Restore Sonoff-Tasmota configuration data @@ -918,7 +918,13 @@ Setting_6_5_0_12.update({ 'sps30_inuse_hours': ('B', 0x1E8, (None, None, ('System', None)) ), }) # ====================================================================== +Setting_6_5_0_15 = copy.deepcopy(Setting_6_5_0_12) +Setting_6_5_0_15['flag3'][0].update ({ + 'tuya_show_dimmer': ('(\S*)

(.*)
", body) + errmatch = re.search("(\S*)

(.*)
", body) reason = "Unknown error" if errmatch and len(errmatch.groups()) > 1: reason = errmatch.group(2) From b0fc277f7bb512f1ec073e1aa2744163eb69d057 Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Sun, 30 Jun 2019 17:29:11 +0200 Subject: [PATCH 2/2] decode-config.py: revert html changes --- tools/decode-config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/decode-config.py b/tools/decode-config.py index 311007bab..0fe3e274c 100755 --- a/tools/decode-config.py +++ b/tools/decode-config.py @@ -1572,7 +1572,7 @@ def PushTasmotaConfig(encode_cfg, host, port, username=DEFAULTS['source']['usern body = body[findUpload:] findSuccessful = body.find("Successful") if findSuccessful < 0: - errmatch = re.search("(\S*)

(.*)
", body) + errmatch = re.search("(\S*)

(.*)
", body) reason = "Unknown error" if errmatch and len(errmatch.groups()) > 1: reason = errmatch.group(2)