Home Assistant exposes the runtime and switching counters reported by compatible Shelly switch channels. Alongside total on-time and switching cycles, it reads time spent above the device’s configured power threshold, giving automations a basis for tasks such as filter-cleaning reminders.
The diagnostic sensors start disabled and appear only when a device reports the counters. Testing found them on the Shelly 1PM Mini Gen4 and Power Strip 4 Gen4 with firmware 2.1.1; those devices kept counting across a reboot. Resetting a counter starts a new statistics cycle in Home Assistant.