Before i moved to Openhab 2 thi rule worked good:
rule "Wohnzimmerlicht vorne aus"
when
Time cron "0 46 22 * * ?"
then
if (SteckdoseTV_2_Power <= 22)
{
sendCommand(LampeWZ_1_State, OFF)
sendCommand(VitrineTV_1_State, OFF)
sendCommand(VitrineRechts_1_State, OFF)
}
end
Does anybody know how to migrate this to openhab2?