# Prevent turning off a device if it's still on?

**URL:** <https://community.homey.app/t/prevent-turning-off-a-device-if-its-still-on/107223>\
**Category:** Flows\
**Tags:** flow\
**Created:** [March 27, 2024, 9:29pm UTC](https://community.homey.app/t/prevent-turning-off-a-device-if-its-still-on/107223 "2024-03-27T21:29:22Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Knagie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/knagie/32/103189_2.png) [@Knagie](https://community.homey.app/u/Knagie)\
**Post date:** [March 28, 2024, 11:56am UTC](https://community.homey.app/t/prevent-turning-off-a-device-if-its-still-on/107223/9 "2024-03-28T11:56:15Z")

</div>

Thanks that’s a perfect inbetween option! I think that at least solves thick-finger/accidental hit problems. And I think I can prevent the accidental shutdown as well by using a flow to trigger the PC boot where I check for the right power or not.

Though now I am stuck on two, non-critical, points:

1. This issue [[Feature request] Excluding zones and devices from Homey Energy](https://community.homey.app/t/feature-request-excluding-zones-and-devices-from-homey-energy/74138/) 😅 It’s showing double the power
2. And I can’t do that for the kWh variable, the VD only seems to have a Power usage option and not a Power total.

It’s not a necessity to fix them but it would be nice to have it fixed, any ideas?

---

_[View the full topic](https://community.homey.app/t/prevent-turning-off-a-device-if-its-still-on/107223)._
