# Ask homey if a light is on?

**URL:** <https://community.homey.app/t/ask-homey-if-a-light-is-on/79344>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [April 15, 2023, 8:17pm UTC](https://community.homey.app/t/ask-homey-if-a-light-is-on/79344 "2023-04-15T20:17:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ulf\_Modig](https://avatars.discourse-cdn.com/v4/letter/u/f4b2a3/32.png) [@Ulf\_Modig](https://community.homey.app/u/Ulf_Modig)\
**Post date:** [April 15, 2023, 8:17pm UTC](https://community.homey.app/t/ask-homey-if-a-light-is-on/79344/1 "2023-04-15T20:17:25Z")

</div>

From my PC I want to ask Homey if a certain light is on or off. Does anybody have an idea on how to that in a smart way?

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [April 16, 2023, 10:03am UTC](https://community.homey.app/t/ask-homey-if-a-light-is-on/79344/2 "2023-04-16T10:03:46Z")

</div>

Maybe you can do something with webhooks.  
Send a webhook from youre pc to Homey and let Homey say yes ot no or show it in the timeline. Or let a virtual switch turn on or of.  
Look in this community for webhook.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Draper](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonathan_draper/32/33978_2.png) [@Jonathan\_Draper](https://community.homey.app/u/Jonathan_Draper)\
**Post date:** [April 16, 2023, 11:02am UTC](https://community.homey.app/t/ask-homey-if-a-light-is-on/79344/3 "2023-04-16T11:02:34Z")

</div>

What type of PC - Mac or Windows? Also how do you want to ask (voice, text, click on a link?) and how do you want it to respond (voice, text, something else)?

Also, what kind of Homey are you using - just the app, the Homey bridge or the Homey Pro?

If you can answer these then it will be easier to give suggestions that will work for you.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [April 16, 2023, 11:24am UTC](https://community.homey.app/t/ask-homey-if-a-light-is-on/79344/4 "2023-04-16T11:24:21Z")

</div>

You could use this app.

> **[Local API](https://homey.app/de-de/app/dev.dadda.localapi/Local-API/)**
>
> Eine Locale API erstellen und diese wird direkt auf dem Homey verarbeitet

Call it via REST.  
Make an AdvancedFlow where you check the light and then return the result as JSON.

---

<div class="post-metadata">

**Author:** ![Ulf\_Modig](https://avatars.discourse-cdn.com/v4/letter/u/f4b2a3/32.png) [@Ulf\_Modig](https://community.homey.app/u/Ulf_Modig)\
**Post date:** [April 16, 2023, 7:05pm UTC](https://community.homey.app/t/ask-homey-if-a-light-is-on/79344/5 "2023-04-16T19:05:48Z")

</div>

Hi Jonathan, In a C# Windows App I want to ask Homey if a light is on? REST would be nice.  
I have named all devices with a unique name under each zone so I can get the device object by:

const devices = await Homey.devices.getDevices();  
const device = Object.values(devices).find((p) =\> p.name === name && p.zoneName == zone);

Is there a REST on homey?? I would settle for MQTT as well. It does not matter that it will be asynchronous.

I’m on a 2016 Pro (waiting for the new one :-)).

Thanks in advance!  
/Ulf Modig

---

<div class="post-metadata">

**Author:** ![Ulf\_Modig](https://avatars.discourse-cdn.com/v4/letter/u/f4b2a3/32.png) [@Ulf\_Modig](https://community.homey.app/u/Ulf_Modig)\
**Post date:** [April 16, 2023, 7:09pm UTC](https://community.homey.app/t/ask-homey-if-a-light-is-on/79344/6 "2023-04-16T19:09:49Z")

</div>

Now I saw the response above. Maybe the local API app will solve it. I didn’t know that it existed. Will try it out…

---

<div class="post-metadata">

**Author:** ![Ulf\_Modig](https://avatars.discourse-cdn.com/v4/letter/u/f4b2a3/32.png) [@Ulf\_Modig](https://community.homey.app/u/Ulf_Modig)\
**Post date:** [April 16, 2023, 7:10pm UTC](https://community.homey.app/t/ask-homey-if-a-light-is-on/79344/7 "2023-04-16T19:10:43Z")

</div>

Thanks for the tip, hadn’t found this app but I’ll try it out.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Draper](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonathan_draper/32/33978_2.png) [@Jonathan\_Draper](https://community.homey.app/u/Jonathan_Draper)\
**Post date:** [April 16, 2023, 9:24pm UTC](https://community.homey.app/t/ask-homey-if-a-light-is-on/79344/8 "2023-04-16T21:24:22Z")

</div>

Yes I was just about to suggest that app also. I use it extensively and it will do exactly what you need via REST
