Closed 0ff closed 5 years ago
@0ff I am just curious, which type of fibaro device does not have properties?
Hi @hovorkap, I have defined several Globals in HC2 (Panels > Variables Panel) and then I've set the switchglobalvariables
value of homebridge-Fibaro-HC2
to include some of them. These global "switches", it seems, don't have any properties. Makes sense, if you ask me :)
EDIT: Seems to be these here: https://github.com/ilcato/homebridge-Fibaro-HC2/blob/2ad4eb173d9d9faeb8f0e99f746fe9dfcf58f082/src/index.ts#L208
Cool, maybe the variable switch deserves some polishing rather than NPE fix in shadows. Thanks for help
When defining virtual devices (such as global variables) in HC2 and exposing them via this plugin, the newest version would throw the following error:
My proposed solution is to have an empty fallback-object that would make sure the defaults are used instead of throwing an error.