- Platform information:
- Hardware: RasPi 4
- OS: Rasbian
- Java Runtime Environment: OpenJDK Runtime Environment (Zulu 8.31.1.122-linux_aarch32hf) (build 1.8.0_181-b122)
- openHAB version: 2.5.8 Release Build
The problem I can’t get my head around concers the following rule that is supposed to switch on a Aeotec ZWave bulb but only works if the bulb was switched on/off “manually” via UI or voice command before.
Item
Color Halllight_FF_Stairs "Flurlicht" (gLights, gFF_Stairs) {channel="zwave:device:5a536276:node15:color_color", alexa="PowerController.powerState,BrightnessController.brightness,ColorController.color" [category="LIGHT"]}
Rule
rule "Flurlicht AN"
when
Item gFF_MSensors changed to ON
then
if (vTimeOfDay.state == "MORNING") {
Halllight_FF_Stairs.sendCommand("45,82,20")
}
else if (vTimeOfDay.state == "EVENING") {
Halllight_FF_Stairs.sendCommand("45,82,30")
}
else if (vTimeOfDay.state == "NIGHT") {
Halllight_FF_Stairs.sendCommand("45,82,10")
}
else if (vTimeOfDay.state == "BED") {
Halllight_FF_Stairs.sendCommand("8,90,10")
}
else if (vTimeOfDay.state == "UNKNOWN") {
Halllight_FF_Stairs.sendCommand("45,82,50")
}
end
The main problem is that if I look at the event log the rule fires and everything looks fine and the command is sent to the bulb but the bulb does not react to it.
Maybe someone can help me or point me in the right direction. I’ll be glad to provide more information if needed.