Just realized that the FliC button supports HTTP requests, which is awsome.
However, the button just supports 1 Click, 2 Click and Hold (which is normally fine). Now I would like to get multifunctionality by 1 click (Toggle Playlists, Toggle Lighting settings).
In order to do this I would need, for instance, a plugin that has a variabel that count no clicks.
SO: 1 click => variabel value 1, then upon repeated clicks counts 2, 3, 4 and so on.
This value should then be used to trigger different scenes.
So a manually triggered Scene (by 1 click on button) would add 1 to the variabel. Then this value would be used to trigger different scenes.
Do anyone know if there is such a plugin available or can this be achieved otherwise?
This is a tricky problem to do right …
You need to detect when the clicking stop (i.e. no click for some period of time) then look backwards and see how many clicks happened in the recent time window.
So now even a single click event can not be processed right away … because there might be another click coming soon.
This can be handled with the PLEG plugin.
Each click would start/restart a timer.
When the timer ends you could evaluate what happened recently.
You can use the PLEG multi count expression CLICK @ 2 < 15 Two Clicks in less than 30 seconds.
Then to differentiate the different multi-click expressions I would use PLEG state variable expression … so only one could be true at a time.
i.e. when 3 buttons are clicked to select the most appropriate action, since two and one button clicks are also true.
I’ve got this plugin up and running. It’s pretty awesome, but I’m trying to do something unique: I want to make my hue’s do some messaging by colored lights throughout the house. We have several people who are deaf and using hues to turn lights red when the smoke detectors are going and such is a step in the right direction, but what I really want is to set them to alternate between red and white. Is there a way to create a scene to do it within the plugin?
Best Home Automation shopping experience. Shop at Ezlo!