I have a dehumidifier installed in my crawlspace under the house. It’s powered via an esphome smart plug. I’m looking for advice for an automation that would send a notification if the dehumidifier hasn’t run for more than 12 hours. The smart plug monitors current so easy to determine if the device is currently running but I don’t know how to create a trigger using the entity history?
Probably would also need to send a notification if the smart plug is not available (power failure).