I’ve got an ESP8266 with ESPHome in the same power socket as my coffee machine. And both are powered through a 25 minute dumb timer.
I want to have a sensor in Home Assistant indicating if the ESP8266 is powered or not. I want to trigger on when the coffee machine is not powered anymore (i.e. the timer runs out). Is this possible through the HA API? Or is the “last will” functionality the only option (which means I need to drop the HA API and go for MQTT instead - something I don’t want to do at this time)? Or is there some other way I can do this?