Multi-key switch only shows one switch
hyoukaija opened this issue · comments
hyoukaija commented
Alex X commented
You need to write converter for your device
hyoukaija commented
How to do it?
hyoukaija commented
The link above is very helpful, thank you very much, I attached my code, I hope it can be a reference for others
`from custom_components.xiaomi_gateway3.core.devices import *
DEVICES = [
{
# dual channel on/off, power measurement
9610: ["bean", "Double Wall Switch", "bl02"],
"spec": [
BaseConv("channel_1", "switch", mi="2.p.1"),
BaseConv("channel_2", "switch", mi="3.p.1"),
BaseConv("led", "switch", mi="8.p.1"),
],
},] + DEVICES`