Merge pull request #6124 from curzon01/development

decode-config.py: adapt settings
This commit is contained in:
Theo Arends 2019-07-24 09:56:26 +02:00 committed by GitHub
commit 64faec9e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
VER = '2.2.0028'
VER = '2.2.0029'
"""
decode-config.py - Backup/Restore Sonoff-Tasmota configuration data
@ -928,8 +928,18 @@ Setting_6_6_0_1['flag3'][0].update ({
'tuya_dimmer_range_255': ('<L', (0x3A0,1,16), (None, None, ('SetOption', '"SetOption66 {}".format($)')) ),
})
# ======================================================================
Setting_6_6_0_2 = copy.deepcopy(Setting_6_6_0_1)
Setting_6_6_0_2['flag3'][0].update ({
'buzzer_enable': ('<L', (0x3A0,1,17), (None, None, ('SetOption', '"SetOption67 {}".format($)')) ),
})
Setting_6_6_0_2.update ({
'display_width': ('<H', 0x774, (None, None, ('Display', '"DisplayWidth {}".format($)')) ),
'display_height': ('<H', 0x776, (None, None, ('Display', '"DisplayHeight {}".format($)')) ),
})
# ======================================================================
Settings = [
(0x6050010, 0xe00, Setting_6_6_0_1),
(0x6060002, 0xe00, Setting_6_6_0_2),
(0x6060001, 0xe00, Setting_6_6_0_1),
(0x605000F, 0xe00, Setting_6_5_0_15),
(0x605000C, 0xe00, Setting_6_5_0_12),
(0x605000B, 0xe00, Setting_6_5_0_11),