Hi solomos
you need somthing to delay
perhaps the while like in this example helps,
- platform: template
name: "$human_devicename "
optimistic: true
id: laser_heat
# internal: true
turn_on_action:
- while:
condition:
lambda: 'return true;'
then:
- light.turn_on: <-your output
id: laserled_light
transition_length: 3s
- delay: 100ms <- your delay for putton press
- light.turn_off:
id: laserled_light
transition_length: 1ms
- delay: 5min <- your delay wait for next
turn_off_action:
then:
- light.turn_off:
id: laserled_light
transition_length: 100ms
do you read this?