ilcato / homebridge-Fibaro-HC2

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

Scenes are not triggered when script change Global Var #108

Closed nicobode closed 6 years ago

nicobode commented 6 years ago

Hey,

Scenes are not Triggerd when a global war is changed. Yout must add in your PUT request the information "invokeScenes": true

Thanks :)

ilcato commented 6 years ago

Can you elaborate please?

nicobode commented 6 years ago

In file fibaro-api.js you have the function setGlobalVariable here you must replace "value": value

with "value": value, "invokeScenes": true

Reson is: at the moment your script update the global var from false to true or from true to false but when i have example a grafical szene or a lua in fabio with if -> global var = true then this -> than the scene in fibaro isnt running -> that fibaro now that a user want run a scene fibaro need paramenter invoceScenes

i dont no why but it isnt in dokumentation but try it ;)

ilcato commented 6 years ago

Understood. I prepared all the changes in githb but cannot publish on npm from the office. I will publish it tonight from home. thanks.

ilcato commented 6 years ago

@nicobode can you test it?

ilcato commented 6 years ago

It works for me.