i’ll try to provide some valuable info. However i’m not an expert. So let me know, if you need anything else / different …
raspi 3B+
openhabianpi
openhab 2.5.5
### item definitions
Group:Color g_L_Sz_Bett "Gruppe Bettlicht im Schlafzimmer" (g_L)
Group:Dimmer g_L_Sz_Bett_FarbT "Gruppe Farbtemperatur Bettlicht" (g_L)
// LED Ketten unter dem Bett
Color Lam_Sz_BettLi_Farb "Bettlicht links Farbe" <colorLight> (g_Z_Sz,g_L_Sz_Bett) ["Lighting"] {channel="zigbee:device:04000B88:ccccccfffebb12f0:CCCCCCFFFEBB12F0_1_color"}
Dimmer Lam_Sz_BettLi_FarbT "Bettlicht links Farbtemperatur [%d %%]" <colorLight> (g_Z_Sz,g_L_Sz_Bett_FarbT) ["Lighting"] {channel="zigbee:device:04000B88:ccccccfffebb12f0:CCCCCCFFFEBB12F0_1_colortemperature"}
Color Lam_Sz_BettRe_Farb "Bettlicht rechts Farbe" <colorLight> (g_Z_Sz,g_L_Sz_Bett) ["Lighting"] {channel="zigbee:device:04000B88:ec1bbdfffe271435:EC1BBDFFFE271435_1_color"}
Dimmer Lam_Sz_BettRe_FarbT "Bettlicht rechts Farbtemperatur [%d %%]" <colorLight> (g_Z_Sz,g_L_Sz_Bett_FarbT) ["Lighting"] {channel="zigbee:device:04000B88:ec1bbdfffe271435:EC1BBDFFFE271435_1_colortemperature"}
### rules
val String filename = "bettlicht.rules"
var Timer sys_start_timer = null
rule "Bettlicht - System started"
when
System started
then
// let openHAB settle and give other rules the chance to fire up
if (sys_start_timer !== null) return;
logInfo(filename, "Bettlicht Initialisierung")
sys_start_timer = createTimer(now.plusSeconds(120), [|
g_S_Bew_Sz_Bett.sendCommand(OFF)
// g_L_Sz_Bett.members.forEach[ i | i.sendCommand("0,0,0") ]
g_L_Sz_Bett.sendCommand("0,0,0")
])
end
rule "Bettlicht"
when
Item g_S_Bew_Sz_Bett changed
then
if (g_S_Bew_Sz_Bett.state == OFF) {
logInfo(filename, "Keine Bewegung mehr, Bettlicht aus")
g_L_Sz_Bett.sendCommand("0,0,0")
}
else if (g_S_Bew_Sz_Bett.state == ON) {
logInfo(filename, "Bewegung, Bettlicht an")
g_L_Sz_Bett.sendCommand(35)
g_L_Sz_Bett_FarbT.sendCommand(80)
}
end
The problem only occurs, when one of the rules fires up (repeatable). I can’t repeat it sending a single command to a single item via PaperUI. So there might be something wrong with my handling of groups at the end. Anyway: debug logs …
### after log:set ... like shown in the binding manual i get entrires like this every second
### seems to be normal, does'nt it?
2020-05-19 12:27:56.932 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TX Telegesis queue: 1
2020-05-19 12:27:56.935 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TX Telegesis: TelegesisDisplayNetworkInformationCommand [device=null, channel=null, power=null, panId=null, epanId=null]
2020-05-19 12:27:56.938 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TX Telegesis Data:AT+N?
2020-05-19 12:27:56.972 [DEBUG] [gesis.internal.TelegesisFrameHandler] - RX Telegesis Data:+N=COO,11,-07,6981,F59B4F9B118D72DC
2020-05-19 12:27:56.975 [DEBUG] [gesis.internal.TelegesisFrameHandler] - RX Telegesis Data:OK
2020-05-19 12:27:56.979 [DEBUG] [gesis.internal.TelegesisFrameHandler] - RX Telegesis: TelegesisDisplayNetworkInformationCommand [device=COO, channel=11, power=-7, panId=27009, epanId=F59B4F9B118D72DC, status=SUCCESS]
### start of debug.log
2020-05-19 12:47:06.770 [vent.ItemStateChangedEvent] - Sen_Sz_BettLi_Bew changed from OFF to ON
2020-05-19 12:47:06.773 [GroupItemStateChangedEvent] - g_S_Bew_Sz_Bett changed from OFF to ON through Sen_Sz_BettLi_Bew
2020-05-19 12:47:06.777 [GroupItemStateChangedEvent] - g_S_Bew changed from OFF to ON through g_S_Bew_Sz_Bett
==> /var/log/openhab2/openhab.log <==
2020-05-19 12:47:06.804 [INFO ] [arthome.model.script.bettlicht.rules] - Bewegung, Bettlicht an
==> /var/log/openhab2/events.log <==
2020-05-19 12:47:06.820 [ome.event.ItemCommandEvent] - Item 'g_L_Sz_Bett' received command 35
...
Log while switching the ligths on and off via rule. you should find the problem twice.
debug.log (222.5 KB)