# Update Device Power State (on/off)

**URL:** <https://community.homey.app/t/update-device-power-state-on-off/60396>\
**Category:** Questions & Help\
**Created:** [February 14, 2022, 12:23pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396 "2022-02-14T12:23:51Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [February 14, 2022, 12:23pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/1 "2022-02-14T12:23:51Z")

</div>

Hi.  
Is it possible, for instance using HomeyScript, to update a devices on/off state manually (without actually turning the device on or off)?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 14, 2022, 1:32pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/2 "2022-02-14T13:32:05Z")

</div>

No, but what problem are you trying to solve?

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [February 14, 2022, 1:34pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/3 "2022-02-14T13:34:52Z")

</div>

I’m using a harmony hub to controll a TV.  
And when someone uses the original remote to turn it on or off, the power state in Homey will be wrong.  
So what I wanted, was to update the power state of the device, based on power consumption.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 14, 2022, 1:39pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/4 "2022-02-14T13:39:46Z")

</div>

What happens if you switch off the TV from Homey when you detect it was turned off with the original remote?

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [February 14, 2022, 1:41pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/5 "2022-02-14T13:41:47Z")

</div>

It turns the TV on. Probably the same IR code for on/off.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 14, 2022, 2:02pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/6 "2022-02-14T14:02:06Z")

</div>

That’s annoying ☹ Perhaps it’s possible to do something with a virtual device.

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [February 14, 2022, 2:56pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/7 "2022-02-14T14:56:20Z")

</div>

Yes, it is annoying. Yes, I could probably do that. Will be messy though…

---

<div class="post-metadata">

**Author:** ![Joenoo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joenoo/32/18671_2.png) [@Joenoo](https://community.homey.app/u/Joenoo)\
**Post date:** [February 14, 2022, 9:07pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/8 "2022-02-14T21:07:11Z")

</div>

Check the Harmony flow to see if it uses the power on command and the power off command instead of the power toggle command and change it if necessary.

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [February 14, 2022, 9:20pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/9 "2022-02-14T21:20:03Z")

</div>

Thanks for the tip. Have however, already done this. Result is the same eather way.

---

<div class="post-metadata">

**Author:** ![Joenoo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joenoo/32/18671_2.png) [@Joenoo](https://community.homey.app/u/Joenoo)\
**Post date:** [February 15, 2022, 7:50am UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/10 "2022-02-15T07:50:48Z")

</div>

Well, then there’s really just one thing you can do… Hide the original remote (I did this), install the Harmony app on your wife’s mobile and connect Google Home to Homey so you can turn off the TV by speech.

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [February 15, 2022, 11:31am UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/11 "2022-02-15T11:31:24Z")

</div>

Don’t want to get rid of the original remote. Having to use the phone for things like volume controll is, in my opinion, highly impractical.  
Just like light switches, the goal (for me) is that they should work together.  
If there is no solution for this at the moment, I will live with the issue. TV is “old”, and will at some point be switched out for a bigger and smarter one 😉

---

<div class="post-metadata">

**Author:** ![Joenoo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joenoo/32/18671_2.png) [@Joenoo](https://community.homey.app/u/Joenoo)\
**Post date:** [February 16, 2022, 9:38pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/12 "2022-02-16T21:38:31Z")

</div>

No, I said to hide the remote, not to throw it out…

Yes it is impractical to use your phone as a substitute for a remote, but it is very handy for a common task like turning off the tv (with a Homey flow).

To be honest I don’t think you can solve this problem with Homey. Harmony is a great product, but if you don’t use it in the way is was intended, it will not work.

My advise: hide the original remote so your family members will have to use the Harmony remote and the flows won’t get out of sync.

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [February 17, 2022, 8:06am UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/13 "2022-02-17T08:06:32Z")

</div>

> [@Joenoo](#):
>
> Harmony is a great product, but if you don’t use it in the way is was intended, it will not work.

That is a good point. I don’t want to use it the way it was intended 😝

All I want and need are the flows for turning it off when we leave or go to bed. For actual usage, when sitting in front of the TV, nothing is better then the original remote. So hiding it is not an option.

I guess this issue won’t be solved unless the app developer creates an option to update the device state. Unfortunately, it seems the developer has abandoned the project.

---

<div class="post-metadata">

**Author:** ![Joenoo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joenoo/32/18671_2.png) [@Joenoo](https://community.homey.app/u/Joenoo)\
**Post date:** [February 17, 2022, 9:36am UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/14 "2022-02-17T09:36:03Z")

</div>

Ok, if you say so…

But one more thing: you can let the Harmony remote learn the off command manually. And then use this in the Harmony flow and this way also in the Homey flow.

That should do it.

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [February 17, 2022, 1:02pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/15 "2022-02-17T13:02:52Z")

</div>

And how do you suggest I do that? There is only one on/off button on the remote.

I guess some devices have different ir-codes for on and off. Seems my TV does not unfortunately.

---

<div class="post-metadata">

**Author:** ![Joenoo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joenoo/32/18671_2.png) [@Joenoo](https://community.homey.app/u/Joenoo)\
**Post date:** [February 17, 2022, 4:06pm UTC](https://community.homey.app/t/update-device-power-state-on-off/60396/16 "2022-02-17T16:06:30Z")

</div>

Well, I suggest you rtfm 😚
