Switches could be toggled by rule, is it possible for milight devices too?
Something like:
If dash-button is closed then toggle myMylightDevice
[Solved] How to toggle milight devices
Switches could be toggled by rule, is it possible for milight devices too?
Something like:
If dash-button is closed then toggle myMylightDevice
try something like
If dash-button is closed then dim myMiLightDevice to 0%
No, that’s no solution because on the next press it should be turned on again.
Turning it on and off is already possible without dimming it.
said in How to toggle milight devices:
Something like:
If dash-button is closed then toggle myMylightDevice
This should work with pimatic-led-light
and pimatic-milight-reloaded
. I have tested both and its working fine for me.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
I use the led-light plugin. How is the rule syntax? Could you please post an example?
@mwittig said in How to toggle milight devices:
said in How to toggle milight devices:
Something like:
If dash-button is closed then toggle myMylightDeviceThis should work with
pimatic-led-light
andpimatic-milight-reloaded
. I have tested both and its working fine for me.
For me too…
like this
{
“id”: “led-tisch”,
“name”: “Led-Tisch”,
“rule”: “when its after 16:20 and PC is turned on then dim Led Tisch to 70%”,
“active”: true,
“logging”: true
},
You don’t understand me.
I have a dash button. On the first press the light should be turned on. On the next press the light should be turned off.
With switches the rule is:
If dash-button is closed then toggle switch
But for milight devices there is no “toggle” keyword in rules.
@SaxnPaule said in How to toggle milight devices:
I use the led-light plugin. How is the rule syntax? Could you please post an example?
{
"addr": "xxx.xxx.xxx.xxx",
"zone": 1,
"id": "led1",
"name": "led1",
"class": "Milight"
},
...
{
"id": "test-47",
"name": "test-47",
"rule": "when temperature of filter-1 is greater than 50 and every 4 s then toggle led1",
"active": true,
"logging": true
}
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Yes you’re right. Today it works for me too. Yesterday I never was able to save the rule.
Thank you.
Edit: Did you test it? I could save the rule, but it doesn’t work. The Led stays off.
If I change the rule to:
If dash-button is closed then turn Led on
everything works fine, but with:
If dash-button is closed then toggle Led
it stays dark.
@SaxnPaule said in How to toggle milight devices:
Edit: Did you test it? I could save the rule, but it doesn’t work. The Led stays off.
Well, yes, but I must admit the light does not turn on again when toggling with pimatic-led-light’ Milight. I have published an update which should fix the issue.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Works like a charm now. Thank you for the fast fix.