I want to use TimerSet1 as condition from the clock.
The clock switch to on in the evening lets say 18:00 hours en switch Off on 23:00 hours.
I already tried to use <TimeAlarms.h> but its not working, maybe i made a programming fault, but i can't whats goes wrong.
TimeAlarms sounds like the correct approach. The alarm function called at the desired time should set the value of Timer1. If Timer1 is set to 0 or 1 by the alarm function, you should be able to use it as a condition.
Post you best effort at the code using the time alarms. What did you not understand about reply #3.
The clock switch to on in the evening lets say 18:00 hours en switch Off on 23:00 hours.
Can you write a simple TimeAlarms program which prints "ON" at 18:00 and "OFF" at 23:00? The sketch should be very similar to the library example program with the morning and evening alarms. Try and modify it.
Once you can get the alarms working, its strait forward to set up the dimming values. Instead of printing "ON" and "OFF" you will modify dimming values in the called alarm functions.