Problem with 1.002 KNX Day/night

Hi guys,

i have a Problem with a rule.
I want to send a night command with Switch 1.002 and OFF, that also works with number and 0.

But i am not able to send over the same Group address 1 or ON.

OH2 sends always 0 or OFF to knx.

Is this a bug?

Here is the rule:

rule "OG Nachtschaltung"
when
Time cron "0 01 22 ? * * *"
then
sendCommand(Tag_Nacht_OG,OFF)
end

rule "OG Nachtschaltung"
when
Time cron "0 30 07 ? * * *"
then
sendCommand(Tag_Nacht_OG,ON)
end

And the item:

Switch Tag_Nacht_OG {knx=“1.002:9/0/2”}

thanks for help
Vaillan

You’ve used the rule name twice. Every name (rule, item, val and var defined outside a rule) must be unique.

Please be aware that the time cron string is more common if setting the ? to the dayOfWeek part, though your diction should also work:

Time cron "0 1 22 * * ?" //every day @ 22:01:00, do not care about day of week or year 
Time cron "0 30 7 * * ?" //every day @ 07:30:00, do not care about day of week or year 

You should always prefer the method over the action:

Tag_Nacht_OG.sendCommand(ON)

Simple as that I am an idiot.:flushed:

This was just a simple Test rule, to test a day/night Switch with cron.
The working rule will be more accurate.

Thanks for help and sorry for my stupidity.
Vaillan