O
- condition: and
conditions:
- condition: template
value_template: "{{ trigger.event.data.action_value | int < 0 }}"
- condition: template
value_template: "{{ (state_attr('light.living_room_torchere_e27','brightness') | int < 10 )}}"
- service: light.turn_off
entity_id: light.living_room_torchere_e27