Automation trigger on rising edge

Hi,
I have an automation that triggers when the state of a telldus switch (platform: state).
My problem is that if the state of this trigger is not reset, the automation triggers multiple times, with minutes between…

Is there a way to prevent this (except resetting the switch in the automation)?
Im thinking of triggering the automation on e.g rising edge of the trigger?

you may use a combination of “from:” and “to:” attributes on the trigger sections

trigger:
- platform: state
  entity_id: switch.my_special_switch
  from: 'off'
  to: 'on'

Thank you m0wlheld…simple solution. I assume this will fix the problem :slight_smile:

If it doesn’t, share your entire automation!

This fixed my problem :slight_smile:

1 Like