In rules you have to use .state to reference to the state. So your rule should be more like this:
rule "Test Dim Rule"
when
Time cron "0 10 22 * * ?" //year is optional
then
if((Lamp1_Brightness.state as Number) > 50) { //cast the state as number
Lamp1_Brightness.sendCommand(50) //whenever possible prefer the method over the action
}
end
I know of no other way besides screen shots from PaperUI. But for text rules and logs it is much easier on us if you copy and paste the text into the posting rather than screen shots.
To clarify what opus is saying. If you press one of these icons
you will get some code fences inserted into your posting. Paste the code or logs between the fences and all the indentation and lines will be preserved. Way easier to read, especially when reading from a phone.
The first thing to do when you are debugging Rules that do not seem to be triggering is to make the first line in the Rule be a logInfo statement. Then look in openhab.log for that statement. If you see it you know the rule is triggering but has some other problem. If you don’t then you know the problem is with the rule trigger itself.