# Controlling things with apple home

**URL:** <https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068>\
**Category:** WebThings\
**Created:** [September 14, 2019, 10:45pm UTC](https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068 "2019-09-14T22:45:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![elmacko](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@elmacko](https://discourse.mozilla.org/u/elmacko)\
**Post date:** [September 14, 2019, 10:45pm UTC](https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068/1 "2019-09-14T22:45:16Z")

</div>

I’ve looked everywhere for information on this topic without luck. I want to control all things with the apple home app, for great integration with my familys iphones, setting up scenes/automations, siri voice control etc.

Yes, I have seen the homekit addon but that is for allowing homekit-supported devices to be added to webthings gateway. I want to control everything through the apple home app on my iphone, is this possible? Or will I have to buy every single different gateway (hue, trådfri, aqara etc) needed and use homebridge instead of webthings gateway?

Thanks!

---

<div class="post-metadata">

**Author:** ![mstegeman](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mstegeman](https://discourse.mozilla.org/u/mstegeman)\
**Post date:** [September 16, 2019, 4:47pm UTC](https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068/2 "2019-09-16T16:47:45Z")

</div>

I think something like Homebridge or Home Assistant would probably be better for your needs. Both of those projects can already serve devices up as HomeKit accessories, which can then be added to the Apple Home app.

However, I will say that you can add our UI as a Progressive Web App (Add to Home Screen), which will then appear on your devices as an app. You would be lacking some of the nice iOS built-ins, though, like Siri.

---

<div class="post-metadata">

**Author:** ![elmacko](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@elmacko](https://discourse.mozilla.org/u/elmacko)\
**Post date:** [September 16, 2019, 4:55pm UTC](https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068/3 "2019-09-16T16:55:48Z")

</div>

Thats what I suspected, thanks for confirming! I look forward to following the progress of this project, I think it looks really promising. Keep up the good work!

---

<div class="post-metadata">

**Author:** ![Ingo-L](https://avatars.discourse-cdn.com/v4/letter/i/9e8a1a/32.png) [@Ingo-L](https://discourse.mozilla.org/u/Ingo-L)\
**Post date:** [November 17, 2019, 3:22pm UTC](https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068/4 "2019-11-17T15:22:26Z")

</div>

Hi! I was also searching for a function to control the Webthings Gateway with Apples HomeKit and found this post.

As an alternative to control the Gateway with an Apple Device running iOS, you can use the API of Webthings and the Shortcut function of iOS.  
With Siri you can trigger a created shortcut. In the shortcut itself you are sending a PUT command to the API of the gateway to change the status of your smart Home device.  
Attached you can find my created example. It is working very good.

 ![Bild](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/f/3/f3e6c7a25918c25c1db730dd72836cc48ea98e7c.jpeg) ![Bild](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/8/d/8d58ac600b53da0d434c0a87d162edb3809ea3be.jpeg) ![Bild](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/c/f/cf949ef65cf276abedac328c17f799ca00ab9b26.jpeg)

---

<div class="post-metadata">

**Author:** ![mstegeman](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mstegeman](https://discourse.mozilla.org/u/mstegeman)\
**Post date:** [November 17, 2019, 4:45pm UTC](https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068/5 "2019-11-17T16:45:57Z")

</div>

Just a tip: you’ll probably also want to add an `Accept: application/json` header.

---

<div class="post-metadata">

**Author:** ![Ingo-L](https://avatars.discourse-cdn.com/v4/letter/i/9e8a1a/32.png) [@Ingo-L](https://discourse.mozilla.org/u/Ingo-L)\
**Post date:** [November 18, 2019, 5:45am UTC](https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068/7 "2019-11-18T05:45:53Z")

</div>

Hi mrstegeman!

Thank you for the tip. Could you please give me a short description why adding this to the header?  
I started 2 weeks ago with the webthings, so I‘am no that familiar with the api programming.

Regards Ingo

---

<div class="post-metadata">

**Author:** ![mstegeman](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mstegeman](https://discourse.mozilla.org/u/mstegeman)\
**Post date:** [November 18, 2019, 5:38pm UTC](https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068/8 "2019-11-18T17:38:19Z")

</div>

In the gateway, most of the HTTP paths are shared between the UI and the REST API, so using the `Accept` header makes sure you’re requesting the proper resource.

---

<div class="post-metadata">

**Author:** ![Poisonsting](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@Poisonsting](https://discourse.mozilla.org/u/Poisonsting)\
**Post date:** [August 29, 2020, 6:37pm UTC](https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068/9 "2020-08-29T18:37:11Z")

</div>

I’m trying to make shortcuts to lock and unlock my Zigbee smart lock, I’m having no end of trouble trying to get it to work. Following @Ingo-L’s post I get an alert stating “Invalid property name” (Using “locked”: “unlocked” as my get request indicated is correct)

I’ve also tried issuing a “lock” and “unlock” action as per Mozilla’s API docs, but keep getting an “Incorrect number of parameters” error.

I’d be happy to provide screenshots if it helps 🙂

---

<div class="post-metadata">

**Author:** ![not\_a\_number](https://avatars.discourse-cdn.com/v4/letter/n/e0b2c6/32.png) [@not\_a\_number](https://discourse.mozilla.org/u/not_a_number)\
**Post date:** [August 31, 2020, 12:23am UTC](https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068/10 "2020-08-31T00:23:22Z")

</div>

I’m also stuggling to get my shortcut working… Any help greatly appreciated.

 ![OpenGate](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/d/6/d6fe1f73f3098b5980130e0fdb4f98fe0c20261d.jpeg)

---

<div class="post-metadata">

**Author:** ![Tom\_Smith](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@Tom\_Smith](https://discourse.mozilla.org/u/Tom_Smith)\
**Post date:** [September 5, 2020, 3:55pm UTC](https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068/11 "2020-09-05T15:55:52Z")

</div>

It is the “:” at the end of header parameters. Not sure why but specifically the one after the Authorization. Also I found it easier to use the JSON selection in the body vs creating text and attaching as file. Here is the what worked for me:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/d/c/dc156fc068d5271fa77183c422be2b05abcbe102.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/a/4/a4e021324dec7d1e8e0a2d8cde0718678c86a246.png)

---

<div class="post-metadata">

**Author:** ![not\_a\_number](https://avatars.discourse-cdn.com/v4/letter/n/e0b2c6/32.png) [@not\_a\_number](https://discourse.mozilla.org/u/not_a_number)\
**Post date:** [September 6, 2020, 8:30pm UTC](https://discourse.mozilla.org/t/controlling-things-with-apple-home/45068/12 "2020-09-06T20:30:13Z")

</div>

Thank you so much for your reply. I got it working a couple of days ago. The colons were only part of my problem. I also had the wrong URL and was trying to update the wrong attribute. For the benefit of others, I attach a screenshot.

 ![image](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/f/6/f65034d64f6ba7cfedb5163c85fd31986b4ffea5.jpeg)
