Hallo
nach dem Umstieg auf den Futro und die neue Openhab Version will eine meiner Rules nicht mehr.
Eigentlich sind es ja horschte s Rules die "wir" hier zusammen gebastelt haben.
Der Bewegungsmelder löst aus und in der Sitemap werden die Dimmer auch auf den entsprechenden Wert gesetzt.
Das Licht bleibt aber aus.
Die einzige Schaltung die funktioniert ist zum Glück die, die nachts das Orientierungslicht schaltet.
Sonst wäre der WAF TOTAL im Keller.
Über die Sitemap kann ich die LEDs ansprechen. Im Log taucht nichts entsprechendes auf.
Code
2023-08-10 17:48:55.795 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MotionSensor_Lux' changed from NULL to 61
2023-08-10 17:48:55.796 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MotionSensor_MotionStatus' changed from NULL to ON
2023-08-10 17:48:55.798 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MotionSensor_LastMotion' changed from NULL to 2023-08-10T17:48:55.794874036+0200
2023-08-10 17:48:56.302 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Timer_abinsbett' received command ON
2023-08-10 17:48:56.305 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Timer_abinsbett' changed from NULL to ON
2023-08-10 17:48:56.320 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Bett_seite' received command 50
2023-08-10 17:48:56.320 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Bett_mitte' received command 50
2023-08-10 17:48:56.322 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Bett_seite' predicted to become 50
2023-08-10 17:48:56.323 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Bett_seite' changed from 0 to 50
2023-08-10 17:48:56.327 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Bett_mitte' predicted to become 50
2023-08-10 17:48:56.328 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Bett_mitte' changed from 0 to 50
2023-08-10 17:49:57.102 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Timer_abinsbett' received command OFF
2023-08-10 17:49:57.105 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Timer_abinsbett' changed from ON to OFF
2023-08-10 17:49:57.109 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Bett_seite' received command 0
2023-08-10 17:49:57.111 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Bett_mitte' received command 0
2023-08-10 17:49:57.112 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Bett_seite' predicted to become 0
2023-08-10 17:49:57.116 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Bett_mitte' predicted to become 0
2023-08-10 17:49:57.118 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Bett_seite' changed from 50 to 0
2023-08-10 17:49:57.119 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Bett_mitte' changed from 50 to 0
Alles anzeigen
Code
runtimeInfo:
version: 4.0.1
buildString: Release Build
locale: de-DE
systemInfo:
configFolder: /etc/openhab
userdataFolder: /var/lib/openhab
logFolder: /var/[definition='1','0']log[/definition]/openhab
javaVersion: 17.0.8
javaVendor: Private Build
osName: Linux
osVersion: 5.15.0-78-generic
osArchitecture: amd64
availableProcessors: 4
freeMemory: 54205304
totalMemory: 248512512
startLevel: 100
Alles anzeigen
Code
rule "orientierung schaltet Test synchron"
when
Item Timer_orientierung changed
then
switch Timer_orientierung.state {
case ON: {
Bett_seite.sendCommand(5)
}
case OFF: {
Bett_seite.sendCommand(0)
}
}
end
rule "Ab ins Bett schaltet Nachttisch und Kopfteilbeleuchtung synchron"
when
Item Timer_abinsbett changed
then
switch Timer_abinsbett.state {
case ON: {
Bett_seite.sendCommand(50)
Bett_mitte.sendCommand(50)
}
case OFF: {
Bett_seite.sendCommand(0)
Bett_mitte.sendCommand(0)
}
}
end
rule "tvstate"
when
Item Wetek_OnlineState changed to OFF
then
Timer_TVstate.sendCommand(ON)
end
rule "tvstate timer "
when
Item Timer_TVstate changed
then
switch Timer_TVstate {
case ON: {
Timer_TVstate.sendCommand(ON)
}
case OFF: {
Timer_TVstate.sendCommand(OFF)
}
}
end
rule "Bettbeleuchtung mit Feiertagserkennung"
when
Item MotionSensor_LastMotion changed
then
val String FeiertagName = Ephemeris.getNextBankHoliday()
val long TagebisFeiertag = Ephemeris.getDaysUntil(FeiertagName)
val heuteWochenende = Ephemeris.isWeekend(0)
if ((TagebisFeiertag > 0 && heuteWochenende == false && Urlaub.state == OFF ) && (now.getHour() > 5 && now.getHour() < 22)) {
Timer_abinsbett.sendCommand(ON)
}
if ((TagebisFeiertag > 0 && heuteWochenende == false) && (now.getHour() < 6 || now.getHour() > 21) && (Timer_TVstate.state == ON)) {
Timer_abinsbett.sendCommand(ON)
}
if ((TagebisFeiertag > 0 && heuteWochenende == false) && (now.getHour() < 6 || now.getHour() > 21) && (Timer_TVstate.state == OFF)) {
Timer_orientierung.sendCommand(ON)
}
if ((TagebisFeiertag == 0 || heuteWochenende == true) && (now.getHour() > 9 && now.getHour() < 22)) {
Timer_abinsbett.sendCommand(ON)
}
if ((TagebisFeiertag == 0 || heuteWochenende == true) && (now.getHour() < 10 || now.getHour() > 21) && (Timer_TVstate.state == ON)) {
Timer_abinsbett.sendCommand(ON)
}
if ((TagebisFeiertag == 0 || heuteWochenende == true || Urlaub.state == ON) && (now.getHour() < 10 || now.getHour() > 21) && (Timer_TVstate.state == OFF)) {
Timer_orientierung.sendCommand(ON)
}
end
Alles anzeigen
Code
Switch Bett_mitte_switch "Schalter Kopfteil" {channel="wifiled:wifiled:D8F15BF6CA4A:power"}
Dimmer Bett_mitte "Dimmer Kopfteil" {channel="wifiled:wifiled:D8F15BF6CA4A:color"}
Switch Bett_seite_switch "Schalter Nachttisch" {channel="wifiled:wifiled:D8F15BF6C8E5:power"}
Dimmer Bett_seite "Dimmer Nachttisch" {channel="wifiled:wifiled:D8F15BF6C8E5:color"}
Switch TVstate "NetzwerkStatus Mi Box" {channel="network:pingdevice:wetek:online"}
Switch Timer_TVstate "Timer WETEK /HANDY" {expire="30m,command=OFF"} // Wetek aus jetzt 30 Minuten zum ins Bett gehen
Switch Timer_orientierung "Timer 15 sek Nachttisch" {expire="25s,command=OFF"}
Switch Timer_abinsbett "Timer 1 Mintuen" {expire="1m,command=OFF"}
Group:Dimmer gBett "Bettbeleuchtung [%d]"
Alles anzeigen