ilcato / homebridge-Fibaro-HC2

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

Botton ON/OFF position #175

Open marcodesantis71 opened 4 years ago

marcodesantis71 commented 4 years ago

I found a workaround to solve the problem of global variables and non-superuser users. I created a VD that launches the scene, where global variables are declared. At this point I created a new user with only VD permissions, so that only the necessary VDs are on HomeKit. everything works. The problem is the button in the Home application: as soon as it is picked up it lights up (ON status) but immediately after it returns to the OFF state and turns off. Is it possible to make sure that if the button is active this is in the ON position and remains there until I press it again to go to the OFF position? Grazie Marco

ilcato commented 4 years ago

The VD buttons are currently mapped to push buttons.

marcodesantis71 commented 4 years ago

Ciao

Ok. But in this condition I don’t know if the VD is in state ON or OFF.

s it possible to change it so that it keeps up?

ilcato commented 4 years ago

No for this kind of devices. Remember me the problem with the global variables, please.

marcodesantis71 commented 4 years ago

The problem is the GlobalVariable that only a superuser can update the values. But if I configure a superuser on config on plugin, it exposes all devices (VD, HC2 Plugin, Scenes). I would to exposes only few elements on Home Application. So, I found the workaround, but the button stay always on OFF position, so I don't know if it is really on OFF position or not.

marcodesantis71 commented 4 years ago

Is it possibile to configure as a Switch? same, for example, the ifttt plugin.

ilcato commented 4 years ago

A new interface must be implemented. I inserted it into the backlog.

marcodesantis71 commented 4 years ago

OK. Thanks.

I wait...

marcodesantis71 commented 4 years ago

Any news?

marcodesantis71 commented 4 years ago

no news?

marcodesantis71 commented 3 years ago

Hi,

any news?

bozman2021 commented 3 years ago

+1 on this, would like to have this too.