YinHangCode / homebridge-mi-aqara

a homebridge plugin for XiaoMi Aqara plugin.
1.08k stars 154 forks source link

Aqara cube virtual switch #247

Open andrejkovo opened 5 years ago

andrejkovo commented 5 years ago

Can someone explain me what does it do and how can you hide them. Thanks

meesjan commented 5 years ago

Add this to your config.json. What it does, I really don't know.

"defaultValue": { "158d000xxxxxxx": { "MagicSquare_Switch_VirtualFlip90": { "disable": true }, "MagicSquare_Switch_VirtualFlip180": { "disable": true }, "MagicSquare_Switch_VirtualMove": { "disable": true }, "MagicSquare_Switch_VirtualTapTwice": { "disable": true }, "MagicSquare_Switch_VirtualShakeAir": { "disable": true }

andrejkovo commented 5 years ago

Thanks now its hidden. But i really like to know what does it do. If the button will trigger that switch on/off it will be great for automations.

YinHangCode commented 5 years ago

@meesjan is right. The following can also be done.

"defaultValue": {
    "158d000xxxxxxx": {
        "Global": {
            "disable": true 
        }
    }
}

The virtual switch trun on/off equate to cube actions accordingly.