I have the led-light plugin with hyperion installed and it is actually working quite good. Now I want to use the leds as “morning light” by dimming them from 0% to 100% in a given time, e.g. 5 minutes. I have found this thread where this seems possible in general.

So I tried to set `if it is $alarm and every 10 seconds then dim bedled to $bedled.brightness +1`

(because $rfswitch.dimlevel was not suggested while creating the rule I used $bedled.brightness). This did not work. The frontend says smthng. about a number which was suspected.

As a work around I am using this at the moment

… `dim bedled to 0% and after 1 second set bedled to peach puff and after 2 seconds turn on bedled and dim bedled to 5% and after 5 seconds dim bedled to 10% and after 10 seconds dim bedled to 15% and after 15 seconds dim bedled to 20% and after 20 seconds dim bedled to 25% and after 25 seconds dim bedled to 30% and after 30 seconds dim bedled to 35% and after 35 seconds dim bedled to 40% and after 40 seconds dim bedled to 45% and after 45 seconds dim bedled to 50% and after 50 seconds dim bedled to 55% and after 55 seconds dim bedled to 60% and after 60 seconds dim bedled to 100% and move Rolladen up for 30 seconds`

which is not so convenient like the method described above.

Is anyone able to help me with this?

Thanks in advance!

-triagony

I have the led-light plugin with hyperion installed and it is actually working quite good. Now I want to use the leds as “morning light” by dimming them from 0% to 100% in a given time, e.g. 5 minutes. I have found this thread where this seems possible in general.

So I tried to set `if it is $alarm and every 10 seconds then dim bedled to $bedled.brightness +1`

(because $rfswitch.dimlevel was not suggested while creating the rule I used $bedled.brightness). This did not work. The frontend says smthng. about a number which was suspected.

As a work around I am using this at the moment

… `dim bedled to 0% and after 1 second set bedled to peach puff and after 2 seconds turn on bedled and dim bedled to 5% and after 5 seconds dim bedled to 10% and after 10 seconds dim bedled to 15% and after 15 seconds dim bedled to 20% and after 20 seconds dim bedled to 25% and after 25 seconds dim bedled to 30% and after 30 seconds dim bedled to 35% and after 35 seconds dim bedled to 40% and after 40 seconds dim bedled to 45% and after 45 seconds dim bedled to 50% and after 50 seconds dim bedled to 55% and after 55 seconds dim bedled to 60% and after 60 seconds dim bedled to 100% and move Rolladen up for 30 seconds`

which is not so convenient like the method described above.

Is anyone able to help me with this?

Thanks in advance!

-triagony

```
if it is $alarm then dim bedled to 100% over 600 seconds
```

this would last for 10 minutes and every 6 seconds (600/100 = 6 seconds/percentage) it would lighten up by 1 percent.

]]>`if it is $alarm and $bedled-var is less than 100 and every 10 seconds then dim bedled to $bedled-var +1`

My rule is: `if it is 15:07 and $bedled_var is less than 100 and every 10 seconds then dim bedled to $bedled_var + 1`

while I have set $bedled_var to 0 before manually. The rule is executed but only once (to 1%). It seems that pimatic ignores the “every 10 seconds”-part.

I have also tried `[...] set $bedled_var to ($bedled_var + 1) and dim bedled to ($bedled_var + 1)`

with the same result.

However, it works, when I use `if it is after 15:07 and $bedled_var is less than 100 and every 10 seconds then set $bedled_var to $bedled_var + 1 and dim bedled to ($bedled_var + 1)`

. So thanks for your input

I only have to find a way to reset $bedled_var to 0 before my rule starts. Any ideas?

]]>You use Pimatic 8?

Clear variable at midnight for example:

when(if) it is 0:00 then set $date-var to 0

Thanks for your reply. I will reset $bedled_var at a specific time.

With my rule and the use of `when it is **after** $alarm`

I have to set another condition (`when it is after $alarm and before **someothertime**`

) otherwise the rule will execute at any time as soon as $bedled_var is set back to 0, I think.