If I bind a item to a channel or Thing which returns a number it works fine. The problem is, I habe to much log file entries. I would like to define a rule directly to the Channel or Thing. But there is no change recognized.
test.items:
Number:Angle Azimuth {channel=“astro:sun:local:position#azimuth” }
Number Brightness {channel=“homematic:HG-HM-Sen-MDIR-WM55:77553c53:OEQ0535505:3#BRIGHTNESS”}
test.rules:
rule “ItemA”
when
Item Azimuth changed
then
logInfo(“test.rules”, “this will work” )
end
rule “ItemB”
when
Item Brightness changed
then
logInfo(“test.rules”, “this will work” )
end
rule “ThingA”
when
Thing “homematic:HG-HM-Sen-MDIR-WM55:77553c53:OEQ0535505:3#BRIGHTNESS” changed
then
logInfo(“test.rules”, “this will NOT work” )
end
rule “ChannelB”
when
Channel “astro:sun:local:position#azimuth” triggered
then
logInfo(“test.rules”, “this will NOT work” )
end
I habe tried both as Channel and Thing. As I already have rules working with switches, which are not changing automatically, I assume it is about the Numbers. Any experience with rules regarding Number changes in conditions, addressed as Channel or Thing?