tasmota / decode-config

Backup/restore and decode configuration tool for Tasmota
GNU Lesser General Public License v3.0
215 stars 32 forks source link

decode-config crashes with the Sonoff Zbridge #27

Closed bwims closed 3 years ago

bwims commented 3 years ago

Describe the bug decode-config crashes with the Sonoff Zbridge

To Reproduce Steps to reproduce the behavior: 1. Program parameter: decode-config_win64 -T command -f Config_Zbridge_04C9EB_2539_9.2.0.2.dmp 2. Result:

'stty' is not recognized as an internal or external command, operable program or batch file. Traceback (most recent call last): File "decode-config.py", line 4940, in IndexError: list index out of range [12600] Failed to execute script decode-config

Expected behavior A clear and concise description of what you expected to happen.

Normal output as per any other kind of sonoff/tasmota device.

Version Information (please complete the following information):

Same crash dump as before.

However, since this data generates info about my PC, I have created something similar. NB This is from a DIFFERENT .dmp file (of an RF Bridge)

{"bootcount": 36, "cfg_crc": "0x5814", "cfg_holder": 4617, "cfg_size": 3584, "header": {"data": {"crc": "0x5814", "size": 3584, "template": {"crc": "0x5814", "size": 3584, "version": "0x6040112"}, "version": "0x6050000"}, "env": {"platform": "Windows-10-10.0.18362-SP0", "python": "3.6.8", "script": "decode-config.py v9.2.0 [f54a77a]", "system": "Windows AMD64 10 10.0.18362"}, "timestamp": "2021-01-05 17:02:22"}, "version": "0x6050000"}



**Additional context**

I realise this is a very new device, so you may not yet have had a chance to develop for it yet.
curzon01 commented 3 years ago

The error occurs 'cause the program try to tell you you are using incompatible data:

either

(the -f parameter is still supported, but you should use -s, works with all variants)