I'm wanting to use Node-Red with Home Assistant to alert me if a certain device state is running too frequently (state 'on' twice in 15m or less). I've taken a few shots at this thinking I could use MQTT to flag the state having been on and hold that for 15m and if another event comes in within that time; send an alert - but didn't get that working as I had trouble comparing output from MQTT and the home assistant state event.
I have a sneaking suspicion I'm making this harder than it needs to be, but am really new to this and kind of floundering at this point. I'm not seeing anything else in the forums that clicks for this.