YinHangCode / homebridge-mi-aqara

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

What am i doing wrong? #91

Open youri50 opened 7 years ago

youri50 commented 7 years ago

Does someone know what am i doing wrong? The plugin works fine but i can't disable the virtual buttons. Only the gateway name is changen good. The other don't work...

{ "bridge": { "name": "Homebridge", "username": "myusername", "port": myport, "pin": "mypin" },

    "platforms": [
            {
                    "platform": "yeelight",
                    "name": "yeelight"
            },
            {
                    "platform": "MiAqaraPlatform",
                    "gateways": {
                      "Mygatewaycode": "blabla"
                    },
                    "defaultValue": {

                        "Mygatewaycode": {
                            "Gateway_Lightbulb": {
                                "name": "Gateway lamp"
                            },
                            "Gateway_LightSensor": {
                                "name": "Gateway licht sensor"
                            },
                            "Gateway_Switch_JoinPermission": {
                                "name": "living room gateway join permission switch",
                                "disable": true
                            }
                        },
                        "158d0001000001": {
                            "ContactSensor_ContactSensor": {
                            "name": "Deursensor"
                          }
                        },
                        "158d0001000002": {
                            "MotionSensor_MotionSensor": {
                                "name": "Bewegingssensor"
                            }
                        },
                        "158d0001000003": {
                            "Global": {
                                "disable": false
                            },
                            "Button_StatelessProgrammableSwitch": {
                                "name": "Knop",
                                "disable": false
                            },
                            "Button_Switch_VirtualSinglePress": {
                                "name": "living room button virtual single press"
                            },
                            "Button_Switch_VirtualDoublePress": {
                                "name": "living room button virtual double press"
                            }
                        },
                        "158d0001000004": {
                            "TemperatureAndHumiditySensor_TemperatureSensor": {
                                "name": "Temperatuur"
                            },
                            "TemperatureAndHumiditySensor_HumiditySensor": {
                                "name": "Luchtvochtigheid"
                            }
                        },
                        "158d0001000015": {
                            "MagicSquare_StatelessProgrammableSwitch_Flip90": {
                                "name": "Cube flip90",
                                "disable": true
                            },
                            "MagicSquare_Switch_VirtualFlip90": {
                                "name": "Cube flip90"
                            },
                            "MagicSquare_StatelessProgrammableSwitch_Flip180": {
                                "name": "study room magic square flip180",
                                "disable": true
                            },
                            "MagicSquare_Switch_VirtualFlip180": {
                                "name": "Cube flip180"
                            },
                            "MagicSquare_StatelessProgrammableSwitch_Move": {
                                "name": "study room magic square move",
                                "disable": true
                            },
                            "MagicSquare_Switch_VirtualMove": {
                                "name": "Cube move"
                            },
                            "MagicSquare_StatelessProgrammableSwitch_TapTwice": {
                                "name": "study room magic square tapTwice",
                                "disable": true
                            },
                            "MagicSquare_Switch_VirtualTapTwice": {
                                "name": "Cube tapTwice"
                            },
                            "MagicSquare_StatelessProgrammableSwitch_ShakeAir": {
                                "name": "study room magic square shakeAir",
                                "disable": true
                            },
                            "MagicSquare_Switch_VirtualShakeAir": {
                                "name": "Cube shake"
                            },
                            "MagicSquare_StatelessProgrammableSwitch_Rotate": {
                                "name": "study room magic square rotate",
                                "disable": true
                            }
                        },
                        "158d0001000021": {
                            "Button2_StatelessProgrammableSwitch": {
                                "name": "Deurbel"
                            },
                            "Button2_Switch_VirtualSinglePress": {
                                "name": "study room button virtual single press",
                                "disable": true
                            },
                            "Button2_Switch_VirtualDoublePress": {
                                "name": "study room button virtual double press",
                                "disable": true
                            }
                        }

                    }
            }
    ]

}

Hinchukardt commented 4 years ago

Very old issue but maybe someone has the same problem.

The boolean value must be between " "; so "disable": "true" is correct. "disable": true does not work