Monitor smart plug tplink and turn off after 1 hr

Hi

How can I Monitor smart plug tplink and turn off after 1 hr a device is plugged in ?

Thanks for your help

Create a template sensor on the power consumption attribute and an automation, that triggers if that sensor‘s numeric state is above a defined value for a given time.

1 Like

Hi thanks for your advice I created a template that shows when the plug is connected and drawing electricity now I am stuck on the automation can you give me some light?

Can be created via UI completely …