Is it possible to create a child QuickApp of which the parent is an existing Fibaro device?
What I want to do is, to create a child on a Fibaro Binary Switch 2.
The child is of the Multilevel switch type.
You have those light bulbs that dim according to the number of switch clicks (1click = 100%, 2clicks = 50% and 3clicks =15%).
Now I have this in a separate QA, but I want this as an extension to the Binary switch on which the light bulb is mounted.
Is
By fine-tuning the code, I changed the following code to an anonymous function (Lambda expression),
and the QA listens to his parent. As far as the setting of the switch value is concerned.
Please login or register to see this code.
to
Please login or register to see this code.
looks much cleaner now..
and for the sake of completeness, the checkState code
Please login or register to see this code.
I also included the full QA.
Please login or register to see this attachment.