Skip to content

Commit

Permalink
Add 4 channels relay support
Browse files Browse the repository at this point in the history
  • Loading branch information
niceboy committed Jul 28, 2021
1 parent 8a14a42 commit ea201f4
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion custom_components/aqara_gateway/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@
}, {
# dual channel on/off, power measurement
'lumi.relay.c2acn01': ["Aqara", "Relay", "LLKZMK11LM"], # tested
# 'lumi.relay.c4acn01': ["Aqara", "Relay", "LLKZMK11LM"],
'lumi.ctrl_ln2': ["Aqara", "Double Wall Switch", "QBKG12LM"],
'lumi.ctrl_ln2.aq1': ["Aqara", "Double Wall Switch", "QBKG12LM"],
'lumi.switch.b2nacn02': ["Aqara", "Double Wall Switch D1", "QBKG24LM"],
Expand All @@ -120,6 +119,28 @@
['13.5.85', None, 'button_both', None],
[None, None, 'switch', 'binary_sensor'],
]
}, {
# four channel on/off, power measurement
'lumi.relay.c4acn01': ["Aqara", "Relay", "LLKZMK11LM"],
'params': [
['0.11.85', 'load_voltage', 'power', None],
['0.12.85', 'channel_0_load_power', 'power', 'sensor'],
['0.13.85', 'channel_0', 'consumption', 'sensor'],
['0.22.85', 'channel_1_load_power', 'power', 'sensor'],
['0.23.85', 'channel_1', 'consumption', 'sensor'],
['0.32.85', 'channel_2_load_power', 'power', 'sensor'],
['0.33.85', 'channel_2', 'consumption', 'sensor'],
['0.42.85', 'channel_3_load_power', 'power', 'sensor'],
['0.43.85', 'channel_3', 'consumption', 'sensor'],
['4.1.85', 'channel_0', 'channel 1', 'switch'],
['4.2.85', 'channel_1', 'channel 2', 'switch'],
['4.3.85', 'channel_2', 'channel 3', 'switch'],
['4.4.85', 'channel_3', 'channel 4', 'switch'],
['13.1.85', None, 'button_1', None],
['13.2.85', None, 'button_2', None],
['13.5.85', None, 'button_both', None],
[None, None, 'switch', 'binary_sensor'],
]
}, {
'lumi.ctrl_neutral1': ["Aqara", "Single Wall Switch", "QBKG04LM"],
'params': [
Expand Down Expand Up @@ -249,6 +270,7 @@
'params': [
['4.1.85', 'power_status', 'light', 'light'],
['14.1.85', 'light_level', 'brightness', None],
['14.11.85', None, 'dual_color_temperature_mode', None],
['14.7.85', None, 'dynamic', None],
]
}, {
Expand Down

0 comments on commit ea201f4

Please sign in to comment.