From 03a2955f81225defab5bd584ad0b4d596e355d26 Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Tue, 12 Dec 2023 16:07:33 +0100 Subject: [PATCH 01/21] Bump to v13.3.0.1 --- README.md | 2 +- decode-config.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8440d9b..e469bce 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Comparing backup files created by **decode-config** and [.dmp](#dmp-format) file Using the latest development version of decode-config is only necessary if you also use the latest development version of Tasmota. -[![development version](https://img.shields.io/badge/development-v13.3.0.0-blue.svg)](https://github.com/tasmota/decode-config/tree/development) +[![development version](https://img.shields.io/badge/development-v13.3.0.1-blue.svg)](https://github.com/tasmota/decode-config/tree/development) ## Table of contents
diff --git a/decode-config.py b/decode-config.py index 41ba000..069911f 100755 --- a/decode-config.py +++ b/decode-config.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- from __future__ import print_function METADATA = { - 'VERSION': '13.3.0.0', + 'VERSION': '13.3.0.1', 'DESCRIPTION': 'Backup/restore and decode configuration tool for Tasmota', 'CLASSIFIER': 'Development Status :: 4 - Beta', 'URL': 'https://github.com/tasmota/decode-config', @@ -2798,10 +2798,10 @@ def match(self, setting_hardware, config_version): 'neopool_outputsensitive': (HARDWARE.ESP, ' Date: Thu, 14 Dec 2023 09:32:34 +0100 Subject: [PATCH 02/21] Fix prefix change from Domoticz to Dz (#80) --- decode-config.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/decode-config.py b/decode-config.py index 069911f..ded0885 100755 --- a/decode-config.py +++ b/decode-config.py @@ -1938,6 +1938,11 @@ def match(self, setting_hardware, config_version): 'scripting_compressed': (HARDWARE.ESP, 'B', (0x4A0,1,6), (None, None, ('Rules', None)), (False, False)), 'script_enabled': (HARDWARE.ESP, 'B', (0x49F,1,0), (None, None, ('Rules', '"Script {}".format($)')), isscript), 'script': (HARDWARE.ESP, '1536s',0x800, (None, None, ('Rules', None)), (scriptread, scriptwrite)), + 'domoticz_update_timer': (HARDWARE.ESP, ' Date: Sat, 16 Dec 2023 17:36:14 +0100 Subject: [PATCH 03/21] Fix download error using mqtt source --- decode-config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/decode-config.py b/decode-config.py index ded0885..cc09241 100755 --- a/decode-config.py +++ b/decode-config.py @@ -4208,6 +4208,7 @@ def on_message(client, userdata, msg): try: root = json.loads(msg.payload.decode(STR_CODING)) if root: + time.sleep(0.01) if "FileDownload" in root: rcv_code = root["FileDownload"] if "Aborted" in rcv_code: @@ -4255,6 +4256,7 @@ def on_message(client, userdata, msg): dobj = bytearray() else: if use_base64 and file_id > 0 and file_id != rcv_id: + err_str = "File ID mismatch" err_flag = True return @@ -4303,7 +4305,7 @@ def on_connect(client, userdata, flags, rc): def wait_for_connect(): nonlocal conn_flag - timeout = 200 + timeout = MQTT_TIMEOUT/10 while not conn_flag and timeout > 0: time.sleep(0.01) timeout = timeout -1 @@ -4418,6 +4420,7 @@ def on_message(client, userdata, msg): try: root = json.loads(msg.payload.decode(STR_CODING)) if root: + time.sleep(0.01) if "FileUpload" in root: rcv_code = root["FileUpload"] if "Aborted" in rcv_code: From d17027ec706b97bda39c5ff8af1f881f15dbc399 Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Sun, 17 Dec 2023 14:02:11 +0100 Subject: [PATCH 04/21] Revert "Fix download error using mqtt source" This reverts commit aa5599e4b77a17a2e40c4213fe5f9d8c588ff461. --- decode-config.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/decode-config.py b/decode-config.py index cc09241..ded0885 100755 --- a/decode-config.py +++ b/decode-config.py @@ -4208,7 +4208,6 @@ def on_message(client, userdata, msg): try: root = json.loads(msg.payload.decode(STR_CODING)) if root: - time.sleep(0.01) if "FileDownload" in root: rcv_code = root["FileDownload"] if "Aborted" in rcv_code: @@ -4256,7 +4255,6 @@ def on_message(client, userdata, msg): dobj = bytearray() else: if use_base64 and file_id > 0 and file_id != rcv_id: - err_str = "File ID mismatch" err_flag = True return @@ -4305,7 +4303,7 @@ def on_connect(client, userdata, flags, rc): def wait_for_connect(): nonlocal conn_flag - timeout = MQTT_TIMEOUT/10 + timeout = 200 while not conn_flag and timeout > 0: time.sleep(0.01) timeout = timeout -1 @@ -4420,7 +4418,6 @@ def on_message(client, userdata, msg): try: root = json.loads(msg.payload.decode(STR_CODING)) if root: - time.sleep(0.01) if "FileUpload" in root: rcv_code = root["FileUpload"] if "Aborted" in rcv_code: From 83911e9620350e1f951859f37b29e6df9d1676da Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Sun, 17 Dec 2023 14:03:37 +0100 Subject: [PATCH 05/21] Fix download timeout using slow mqtt source --- decode-config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/decode-config.py b/decode-config.py index ded0885..b62e22e 100755 --- a/decode-config.py +++ b/decode-config.py @@ -4229,6 +4229,8 @@ def on_message(client, userdata, msg): err_str ="Receive code "+rcv_code err_flag = True return + if "Done" in rcv_code: + time.sleep(0.1) if "Command" in root: rcv_code = root["Command"] if rcv_code == "Error": @@ -4443,6 +4445,8 @@ def on_message(client, userdata, msg): err_str ="Receive code "+rcv_code err_flag = True return + if "Done" in rcv_code: + time.sleep(0.1) if "Command" in root: rcv_code = root["Command"] if rcv_code == "Error": From a8f939e20cd87c3dc5a27d92bccc3ba241cb0561 Mon Sep 17 00:00:00 2001 From: Sen Haerens Date: Sat, 23 Dec 2023 12:49:19 +0100 Subject: [PATCH 06/21] Fix Linux batch processing command in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e469bce..e9ebbbc 100644 --- a/README.md +++ b/README.md @@ -671,7 +671,7 @@ decode-config -s mqtts://mqttuser:myBrokerPaszxwo!z@mybroker.example.com/tele/ta Linux ```bash -for device in tasmota1 tasmota2 tasmota3; do ./decode-config -c my.conf -s $device -o Config_@d_@v +for device in tasmota1 tasmota2 tasmota3; do ./decode-config -c my.conf -s $device -o Config_@d_@v; done ``` under Windows From 21729f2aaebcdd91fdd43b92574d15a80f687491 Mon Sep 17 00:00:00 2001 From: Zsombor Welker Date: Tue, 2 Jan 2024 10:44:07 +0100 Subject: [PATCH 07/21] README: Update usage for formatting An empty line is required for Github to format content after
correctly. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e9ebbbc..e4bc91e 100644 --- a/README.md +++ b/README.md @@ -921,6 +921,7 @@ These Tasmota commands are used for immediate action and do not change settings These Tasmota commands are unsupported and not implemented in **decode-config**
+ | Group | Supported | *Ad hoc* |`Unsupported`| |----------------|-----------------------------|------------------------|-------------| | **Control** | BlinkCount | *Backlog* | | @@ -1239,6 +1240,7 @@ These Tasmota commands are unsupported and not implemented in **decode-config** ## Program return codes
+ **decode-config** returns the following codes: * **0** - successful: From 8c6840fe4f18a26f4e10cace2b2b10143c820e9e Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Wed, 3 Jan 2024 13:57:26 +0100 Subject: [PATCH 08/21] Bump to v13.3.0.2 --- README.md | 2 +- decode-config.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e4bc91e..39ab3c9 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Comparing backup files created by **decode-config** and [.dmp](#dmp-format) file Using the latest development version of decode-config is only necessary if you also use the latest development version of Tasmota. -[![development version](https://img.shields.io/badge/development-v13.3.0.1-blue.svg)](https://github.com/tasmota/decode-config/tree/development) +[![development version](https://img.shields.io/badge/development-v13.3.0.2-blue.svg)](https://github.com/tasmota/decode-config/tree/development) ## Table of contents
diff --git a/decode-config.py b/decode-config.py index b62e22e..116656b 100755 --- a/decode-config.py +++ b/decode-config.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- from __future__ import print_function METADATA = { - 'VERSION': '13.3.0.1', + 'VERSION': '13.3.0.2', 'DESCRIPTION': 'Backup/restore and decode configuration tool for Tasmota', 'CLASSIFIER': 'Development Status :: 4 - Beta', 'URL': 'https://github.com/tasmota/decode-config', @@ -13,7 +13,7 @@ """ decode-config.py - Backup/Restore Tasmota configuration data - Copyright (C) 2023 Norbert Richter + Copyright (C) 2024 Norbert Richter This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -2803,10 +2803,10 @@ def match(self, setting_hardware, config_version): 'neopool_outputsensitive': (HARDWARE.ESP, ' Date: Tue, 16 Jan 2024 10:53:52 +0100 Subject: [PATCH 09/21] Update v13.3.0.2 settings --- README.md | 7 +++++++ decode-config.py | 3 +++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 39ab3c9..068f793 100644 --- a/README.md +++ b/README.md @@ -1140,6 +1140,13 @@ These Tasmota commands are unsupported and not implemented in **decode-config** | | VoltageLow | | | | | VoltRes | | | | | WattRes | | | + | **Usf** | UsfFTP | | `UsfType` | + | | | | `UsfSize` | + | | | | `UsfFree` | + | | | | `UsfDelete` | + | | | | `UsfRename` | + | | | | `UsfRun` | + | | | | `UsfServe` | | **Light** | DimmerRange | *Channel* | `Color` | | | DimmerStep | *CT* | `Dimmer` | | | Fade | *CTRange* | | diff --git a/decode-config.py b/decode-config.py index 116656b..1263903 100755 --- a/decode-config.py +++ b/decode-config.py @@ -2804,6 +2804,9 @@ def match(self, setting_hardware, config_version): }) # ====================================================================== SETTING_13_3_0_2 = copy.copy(SETTING_13_2_0_1) +SETTING_13_3_0_2['mbflag2'][1].update({ + 'FTP_Mode': (HARDWARE.ESP, ' Date: Tue, 16 Jan 2024 10:55:13 +0100 Subject: [PATCH 10/21] Bump to v13.3.0.3 --- README.md | 2 +- decode-config.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 068f793..b41cebe 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Comparing backup files created by **decode-config** and [.dmp](#dmp-format) file Using the latest development version of decode-config is only necessary if you also use the latest development version of Tasmota. -[![development version](https://img.shields.io/badge/development-v13.3.0.2-blue.svg)](https://github.com/tasmota/decode-config/tree/development) +[![development version](https://img.shields.io/badge/development-v13.3.0.3-blue.svg)](https://github.com/tasmota/decode-config/tree/development) ## Table of contents
diff --git a/decode-config.py b/decode-config.py index 1263903..5a1c30e 100755 --- a/decode-config.py +++ b/decode-config.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- from __future__ import print_function METADATA = { - 'VERSION': '13.3.0.2', + 'VERSION': '13.3.0.3', 'DESCRIPTION': 'Backup/restore and decode configuration tool for Tasmota', 'CLASSIFIER': 'Development Status :: 4 - Beta', 'URL': 'https://github.com/tasmota/decode-config', @@ -2808,7 +2808,10 @@ def match(self, setting_hardware, config_version): 'FTP_Mode': (HARDWARE.ESP, ' Date: Tue, 16 Jan 2024 16:17:33 +0100 Subject: [PATCH 11/21] Fix ESP32 S2/S3/C3 settings (#83) --- decode-config.py | 72 ++++++++++++++++++++++++------------------------ 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/decode-config.py b/decode-config.py index 5a1c30e..33bd375 100755 --- a/decode-config.py +++ b/decode-config.py @@ -679,7 +679,7 @@ def str(self, config_version): Create hardware string @param config_version: - config_version vvalue from Tasmota configuration + config_version value from Tasmota configuration @return: hardware string @@ -2354,38 +2354,38 @@ def match(self, setting_hardware, config_version): 'web_time_start': (HARDWARE.ESP, 'B', 0x33C, (None, None, ('Management', '"WebTime {},{}".format($,@["web_time_end"])')) ), 'web_time_end': (HARDWARE.ESP, 'B', 0x33D, (None, None, ('Management', None)) ), 'pwm_value_ext': (HARDWARE.ESP32, ' Date: Wed, 17 Jan 2024 09:09:52 +0100 Subject: [PATCH 12/21] Revert "Fix ESP32 S2/S3/C3 settings (#83)" This reverts commit 98ca66786b06347fa04505728f616d9ccf5c44e0. --- decode-config.py | 72 ++++++++++++++++++++++++------------------------ 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/decode-config.py b/decode-config.py index 33bd375..5a1c30e 100755 --- a/decode-config.py +++ b/decode-config.py @@ -679,7 +679,7 @@ def str(self, config_version): Create hardware string @param config_version: - config_version value from Tasmota configuration + config_version vvalue from Tasmota configuration @return: hardware string @@ -2354,38 +2354,38 @@ def match(self, setting_hardware, config_version): 'web_time_start': (HARDWARE.ESP, 'B', 0x33C, (None, None, ('Management', '"WebTime {},{}".format($,@["web_time_end"])')) ), 'web_time_end': (HARDWARE.ESP, 'B', 0x33D, (None, None, ('Management', None)) ), 'pwm_value_ext': (HARDWARE.ESP32, ' Date: Wed, 17 Jan 2024 09:11:29 +0100 Subject: [PATCH 13/21] Fix ESP32 S2/S3/C3 settings (#83) --- decode-config.py | 72 ++++++++++++++++++++++++------------------------ 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/decode-config.py b/decode-config.py index 5a1c30e..3b25b2f 100755 --- a/decode-config.py +++ b/decode-config.py @@ -679,7 +679,7 @@ def str(self, config_version): Create hardware string @param config_version: - config_version vvalue from Tasmota configuration + config_version value from Tasmota configuration @return: hardware string @@ -2354,38 +2354,38 @@ def match(self, setting_hardware, config_version): 'web_time_start': (HARDWARE.ESP, 'B', 0x33C, (None, None, ('Management', '"WebTime {},{}".format($,@["web_time_end"])')) ), 'web_time_end': (HARDWARE.ESP, 'B', 0x33D, (None, None, ('Management', None)) ), 'pwm_value_ext': (HARDWARE.ESP32, ' Date: Wed, 17 Jan 2024 14:14:45 +0100 Subject: [PATCH 14/21] Fix v11.1.0.1 settings --- decode-config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decode-config.py b/decode-config.py index 3b25b2f..cc907ef 100755 --- a/decode-config.py +++ b/decode-config.py @@ -2537,7 +2537,7 @@ def match(self, setting_hardware, config_version): SETTING_11_1_0_1.update ({ 'influxdb_rp': (HARDWARE.ESP82, '699s',(0x017,'SET_INFLUXDB_RP'), (None, None, ('Management', '"IfxRP {}".format("\\"" if len($) == 0 else $$)')) ), - 'influxdb_rp': (HARDWARE.ESP32, '699s',(0x017,'SET_INFLUXDB_RP'), + 'influxdb_rp32': (HARDWARE.ESP32, '699s',(0x017,'SET_INFLUXDB_RP'), (None, None, ('Management', '"IfxRP {}".format("\\"" if len($) == 0 else $)')) ), }) From c31405b6a6034f67b08c216c9a90179b05503914 Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Wed, 17 Jan 2024 14:15:36 +0100 Subject: [PATCH 15/21] Update v13.2.0.3 settings --- decode-config.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/decode-config.py b/decode-config.py index cc907ef..da901d1 100755 --- a/decode-config.py +++ b/decode-config.py @@ -2803,7 +2803,24 @@ def match(self, setting_hardware, config_version): 'neopool_outputsensitive': (HARDWARE.ESP, ' Date: Wed, 24 Jan 2024 19:48:14 +0100 Subject: [PATCH 16/21] Bump to v13.3.0.4 --- README.md | 2 +- decode-config.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b41cebe..3729d8e 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Comparing backup files created by **decode-config** and [.dmp](#dmp-format) file Using the latest development version of decode-config is only necessary if you also use the latest development version of Tasmota. -[![development version](https://img.shields.io/badge/development-v13.3.0.3-blue.svg)](https://github.com/tasmota/decode-config/tree/development) +[![development version](https://img.shields.io/badge/development-v13.3.0.4-blue.svg)](https://github.com/tasmota/decode-config/tree/development) ## Table of contents
diff --git a/decode-config.py b/decode-config.py index da901d1..ce38781 100755 --- a/decode-config.py +++ b/decode-config.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- from __future__ import print_function METADATA = { - 'VERSION': '13.3.0.3', + 'VERSION': '13.3.0.4', 'DESCRIPTION': 'Backup/restore and decode configuration tool for Tasmota', 'CLASSIFIER': 'Development Status :: 4 - Beta', 'URL': 'https://github.com/tasmota/decode-config', @@ -2825,10 +2825,10 @@ def match(self, setting_hardware, config_version): 'FTP_Mode': (HARDWARE.ESP, ' Date: Mon, 5 Feb 2024 14:11:42 +0100 Subject: [PATCH 17/21] Bump to v13.3.0.5 --- README.md | 2 +- decode-config.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3729d8e..1d8db0d 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Comparing backup files created by **decode-config** and [.dmp](#dmp-format) file Using the latest development version of decode-config is only necessary if you also use the latest development version of Tasmota. -[![development version](https://img.shields.io/badge/development-v13.3.0.4-blue.svg)](https://github.com/tasmota/decode-config/tree/development) +[![development version](https://img.shields.io/badge/development-v13.3.0.5-blue.svg)](https://github.com/tasmota/decode-config/tree/development) ## Table of contents
diff --git a/decode-config.py b/decode-config.py index ce38781..12f06c7 100755 --- a/decode-config.py +++ b/decode-config.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- from __future__ import print_function METADATA = { - 'VERSION': '13.3.0.4', + 'VERSION': '13.3.0.5', 'DESCRIPTION': 'Backup/restore and decode configuration tool for Tasmota', 'CLASSIFIER': 'Development Status :: 4 - Beta', 'URL': 'https://github.com/tasmota/decode-config', @@ -2825,10 +2825,10 @@ def match(self, setting_hardware, config_version): 'FTP_Mode': (HARDWARE.ESP, ' Date: Wed, 7 Feb 2024 16:54:14 +0100 Subject: [PATCH 18/21] Update v13.3.0.5 settings --- decode-config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/decode-config.py b/decode-config.py index 12f06c7..cddf7b4 100755 --- a/decode-config.py +++ b/decode-config.py @@ -2826,6 +2826,9 @@ def match(self, setting_hardware, config_version): }) # ====================================================================== SETTING_13_3_0_5 = copy.copy(SETTING_13_3_0_2) +SETTING_13_3_0_5['flag6'][1].update ({ + 'mqtt_disable_modbus': (HARDWARE.ESP, ' Date: Wed, 14 Feb 2024 09:39:43 +0100 Subject: [PATCH 19/21] Fix error restoring script based json into rules based config (#85) --- decode-config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decode-config.py b/decode-config.py index cddf7b4..81f8efe 100755 --- a/decode-config.py +++ b/decode-config.py @@ -5577,7 +5577,7 @@ def set_field(dobj, config_version, fieldname, fielddef, restoremapping, addroff else: value = write_converter(restoremapping.encode(STR_CODING), fielddef) err_text = "string length exceeding" - if value is not None: + if value is not None and not isinstance(value, bool): max_ -= 1 valid = min_ <= len(value) <= max_ else: From 5c3497441db6e54529f9d57321ed7297149d52a5 Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Wed, 14 Feb 2024 12:00:59 +0100 Subject: [PATCH 20/21] Update v13.3.0.5 settings --- decode-config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/decode-config.py b/decode-config.py index 81f8efe..47af071 100755 --- a/decode-config.py +++ b/decode-config.py @@ -2828,6 +2828,7 @@ def match(self, setting_hardware, config_version): SETTING_13_3_0_5 = copy.copy(SETTING_13_3_0_2) SETTING_13_3_0_5['flag6'][1].update ({ 'mqtt_disable_modbus': (HARDWARE.ESP, ' Date: Wed, 14 Feb 2024 18:28:33 +0100 Subject: [PATCH 21/21] Prep release v13.4.0 --- README.md | 12 ++++++------ decode-config.py | 5 ++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1d8db0d..646d8bc 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Convert, backup and restore configuration data of devices flashed with [Tasmota Overview -[![master](https://img.shields.io/badge/master-v13.3.0.0-blue.svg)](https://github.com/tasmota/decode-config/tree/master) +[![master](https://img.shields.io/badge/master-v13.4.0.0-blue.svg)](https://github.com/tasmota/decode-config/tree/master) [![GitHub download](https://img.shields.io/github/downloads/tasmota/decode-config/total.svg)](https://github.com/tasmota/decode-config/releases/latest) [![PyPI version](https://badge.fury.io/py/decode-config.svg)](https://badge.fury.io/py/decode-config) ![PyPI downloads](https://img.shields.io/pypi/dm/decode-config?label=pypi%20downloads) @@ -43,7 +43,7 @@ Comparing backup files created by **decode-config** and [.dmp](#dmp-format) file Using the latest development version of decode-config is only necessary if you also use the latest development version of Tasmota. -[![development version](https://img.shields.io/badge/development-v13.3.0.5-blue.svg)](https://github.com/tasmota/decode-config/tree/development) +[![development version](https://img.shields.io/badge/development-v13.4.0.0-blue.svg)](https://github.com/tasmota/decode-config/tree/development) ## Table of contents
@@ -337,7 +337,7 @@ Example: decode-config -c my.conf -s tasmota-4281 --backup-file Config_@d_@v ``` -This will create a file like `Config_Tasmota_13.3.json` (the part `Tasmota` and `13.3` will choosen related to your device configuration). +This will create a file like `Config_Tasmota_13.4.json` (the part `Tasmota` and `13.4` will choosen related to your device configuration). #### Save multiple backup at once @@ -349,7 +349,7 @@ decode-config -c my.conf -s tasmota-4281 -o Config_@d_@v -o Backup_@H.json -o Ba creates three backup files: -* `Config_Tasmota_13.3.json` using JSON format +* `Config_Tasmota_13.4.json` using JSON format * `Backup_tasmota-4281.json` using JSON format * `Backup_tasmota-4281.dmp` using Tasmota configuration file format @@ -357,10 +357,10 @@ creates three backup files: Reading back a previously saved backup file, use the `--restore-file ` parameter. -To restore the previously save backup file `Config_Tasmota_13.3.json` to device `tasmota-4281` use: +To restore the previously save backup file `Config_Tasmota_13.4.json` to device `tasmota-4281` use: ```bash -decode-config -c my.conf -s tasmota-4281 --restore-file Config_Tasmota_13.3 +decode-config -c my.conf -s tasmota-4281 --restore-file Config_Tasmota_13.4 ``` Restore operation also allows placeholders **@v**, **@d**, **@f**, **@h** or **@H** like in backup filenames so we can use the same naming as for the backup process: diff --git a/decode-config.py b/decode-config.py index 47af071..caeffcc 100755 --- a/decode-config.py +++ b/decode-config.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- from __future__ import print_function METADATA = { - 'VERSION': '13.3.0.5', + 'VERSION': '13.4.0.0', 'DESCRIPTION': 'Backup/restore and decode configuration tool for Tasmota', 'CLASSIFIER': 'Development Status :: 4 - Beta', 'URL': 'https://github.com/tasmota/decode-config', @@ -2831,7 +2831,10 @@ def match(self, setting_hardware, config_version): 'counter_both_edges': (HARDWARE.ESP, '