ilcato / homebridge-Fibaro-HC2

Homebridge plugin for Fibaro Home Center 2 (and Home Center Lite ...)
Apache License 2.0
65 stars 27 forks source link

2.4.2 Latest Fibaro HC2 Plugin global variables help #215

Closed baduxiyang closed 3 years ago

baduxiyang commented 3 years ago

When I press the global variable switch in apple family, the scene associated with the global variable in HC2 will not trigger to run. Please help to repair

ilcato commented 3 years ago

@Krillle, can you help with this. May it depends on your PR? I cannot test anymore on HC2.

Krillle commented 3 years ago

@baduxiyang The latest pull request enables to set global variables even while using not admin rights users, e.g. to restrict access to devices. However it should not break your running setup. Lets check out what the problem might be:

Does the global variable in Home Center 2 change to true and false, if you switch the switch in home app?

Are you using admin user of Home Center 2 in config.json? → If not you will see the log entry "There was a problem setting variable: xxx to true"

If no admin user: Did you set a admin user explicitly in plugin settings or config.json?

    "adminUsername": "homecenteradmin",
    "adminPassword": "adminpassword",
baduxiyang commented 3 years ago

@Krillle @ilcato Thanks , I will try again tomorow!