tasmota / decode-config

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

conversion between versions 6.5.0.16 -> to 8.5.1 not possible #23

Closed edizius closed 4 years ago

edizius commented 4 years ago

Describe the bug By executing command py decode-config.py -s tasmota_8.5.1.dmp -i config-tasmota_6.5.0.16.json the execution fails with:

WARNING 9 (@3734): file 'config-tasmota_6.5.0.16.json' array 'energy_power_delta' couldn't restore, format has changed! Restore value contains (class 'int') but an array of size [3] is expected
Premature exit - Restore data error #9"

To Reproduce _backup file with 6.5.0.16, update to 8.5.1 and restore the backup 1. Program parameter: -s [TARGET] -i [SOURCE] 2. Result: WARNING 9 (@3734): file 'config-tasmota_6.5.0.16.json' array 'energy_power_delta' couldn't restore, format has changed! Restore value contains (class 'int') but an array of size [3] is expected Premature exit - Restore data error #9"

Expected behavior conversion between formats is executed (can convert data from older Tasmota versions (from version v5.10.0) to a newer one and vice versa)

Version Information (please complete the following information):

curzon01 commented 4 years ago

It is what is says,

'energy_power_delta' couldn't restore, format has changed!

--ignore-warnings is your friend

edizius commented 4 years ago

yes, thanks, --ignore-warnings did the trick. thank you very much