Protip to make Home Assistant automations easier: use helpers instead of overcomplicating your automations!
I have a certain class of automation I've set up a few times now: I have a thing that uses power. It's plugged into a Zigbee plug that can measure energy usage. I want to know when the thing is running!
You can use a threshold sensor to make this 100× better…