@santi I flashed my Sonoff TH with #esphome and have full control over the power to the sensor. I power cycle the sensor automatically if it doesn’t get valid readings for a minute. Not too difficult to do yourself, but does require removal from the mains power, and a USB-serial adapter.