I migrated all my stuff to openhab 3.0, but my Hue Dimmer Switch rule takes up to 5 seconds to be executed.
Does this occur on your set ups as well?
Is there an easy fix?
Thank you already!
triggers:
- id: "1"
label: di
configuration:
thingUID: hue:0820:ecb5fa1507f1:2
channelUID: hue:0820:ecb5fa1507f1:2:dimmer_switch_event
type: core.ChannelEventTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
type: application/vnd.openhab.dsl.rule
script: |-
switch(Huedimmerswitch1_DimmerSchalter.state.toString()) {
case "1001.0": {
Arbeitsplatte.sendCommand("0,0,100")
Dunstabzugshaube_Betrieb.sendCommand("ON")
// Button 1 press and hold - white 100%
}
case "1002.0": {
Arbeitsplatte.sendCommand("ON")
Dunstabzugshaube_Betrieb.sendCommand("ON")
// Button 1 press - return to previous colour
}
case "2001.0": {
Arbeitsplatte.sendCommand("100")
Dunstabzugshaube_Betrieb.sendCommand("ON")
// Button 2 press and hold - previous colour but 100% brightness
}
case "2002.0": {
Arbeitsplatte.sendCommand("INCREASE")
// Button 2 press - Increase brightness
}
case "3001.0": {
Arbeitsplatte.sendCommand("1")
// Button 3 press and hold - previous colour minimum brightness
}
case "3002.0": {
Arbeitsplatte.sendCommand("DECREASE")
// Button 3 press - Decrease brightness
}
case "4001.0": {
Arbeitsplatte.sendCommand("OFF")
Dunstabzugshaube_Betrieb.sendCommand("OFF")
// Button 4 press and hold - OFF
}
case "4002.0": {
Arbeitsplatte.sendCommand("OFF")
Dunstabzugshaube_Betrieb.sendCommand("OFF")
// Button 4 press - OFF
}
}
type: script.ScriptAction