Hi, Im quite new in HA automation, i need some help to setup an automation, so basically what i need to do is to monitor a switch On/Off, the automation will trigger when the switch turn on and the condition is within 30minutes if the switch has been turning on and off greater than x number of times then run the action.
Hope someon can help me on this.