Template based on time

I’ve seen there’s a bunch of these, yet I can’t seem to find one that matches what I want to do. Or, to be honest, I can’t figure out how to translate the existing examples on here to what I want.

I’ve got a wall dimmer, and when motion is detected before 11pm at night I want the switch to come on and be at 100%. If its later than 11pm I want it to come on at 5% (and if I could make the transition time 5 seconds)

This is the current ‘action’ item at the bottom of the automation

type: turn_on
device_id: 78f8b94efd8fbb650186022d45da9f07
entity_id: light.leviton_unknown_type_3201_id_0001_level_2
domain: light

I just answered this topic that should help you:

You can replace the scene actions with the light.turn_on action with the brightness values you want.

1 Like

nm my previous post here. I didn’t read enough!

Yes, now that I’ve put this into place I see exactly what you mean! That’s perfect.

Thanks!

1 Like