decode-config.py: adapt settings

- fix SetOption65 Settings version
- add Setoption66 (buzzer_enable)
- add DisplayWidth (display_width) / DisplayHeight (display_height)
- def housekeeping
This commit is contained in:
Norbert Richter 2019-07-23 18:40:11 +02:00
parent fdda0429d6
commit 9e8d53b977

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),