# \[Tutorial\] Reboot Philips Hue Sync Box

**URL:** <https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725>\
**Category:** Tutorials\
**Created:** [December 24, 2020, 9:39am UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725 "2020-12-24T09:39:37Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [December 24, 2020, 9:39am UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/1 "2020-12-24T09:39:37Z")

</div>

**Introduction**  
My personal expirience with the Hue Sync Box is pretty cool but it seems it is still not as stabile as it should be. For example if you’re switching between HDR and non HDR content it will become unstable after a while. You can see that because the video signal gets interrupted from time to time which is pretty anoying. The good news is that this can easily be resolved with a reboot but the bad news is that this isn’t supported by the official Hue app by Athom. But as the [api](https://developers.meethue.com/develop/hue-entertainment/hue-hdmi-sync-box-api/) of the box supports it, there are ways to still get the job done.

**Requirements**

- [Philips Hue Sync Box](https://www.philips-hue.com/de-ch/p/hue-play-hdmi-sync-box/8718699704803)
- [Advanced Rest Client (ARC) for Homey](https://homey.app/de-ch/app/ch.philippewechsler.rest/Advanced-Rest-Client-(ARC)/)
- [Simple Log (only needed for the setup)](https://homey.app/de-ch/app/nl.nielsdeklerk.log/Simple-LOG/)

**Step 1 - Obtain the ip address of the Hue Sync Box**  
The easiest way is to go into the official Hue Sync app → settings → devices → select your Sync Box and check for the IP-Address. Note: depending on your router settings this address might be dynamic. In that case you’ll need to adapt your flows when this happens or you need to auto-discover your box (out of scope for this tutorial).

 ![Screenshot_20201224-093027](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/4/04099de3e4baef6e7b9bd5fc7ab40658d3a95f26.png)

**Step 2 - Access token**  
To perform requests to the Sync Box we need to authorize the request which is done by providing an access token. To obtain this we of course using Homey!

1. Create a new flow called ‘register on Hue Sync Box’ with any trigger you like.

2. As action choose “Advanced Rest Client (ARC)” → “Perform a Request” and use the following options:

3. Create another flow card called ‘request performed’ and choose “Advanced Rest Client (ARC)” → “Request completed” as trigger. As action choose “Simple Log” → “Add something to the log” and set the “Response Body” token as text.  

4. Now you’re ready to perform the actual registration!

**Step 3 - Create custom header collection**  
Go to the configuration of the “Advanced Rest Client” app → headers and click “Add Collection”. Give it a name and description. In “New Header Name” put “Authorization” and in “New Header Value” put “Bearer [the cryptic token from above]”. Click “Add Header to Collection” and then “Save” to complete.

 ![Screenshot_20201224-103641_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d868dd660630aa09816b48d98a2fa2a88f6d93a1.jpeg)  
**Step 4 - Create Reboot flow card**  
Create a new flow card with any trigger you wish and set “Advanced Rest Client (ARC)” → “Perform a Request” as action card with the following options:

- url: https://[your ip address from above]/api/v1/registrations, i.e “[https://192.168.50.69/api/v1/device](https://192.168.50.69/api/v1/device)”
- http verb: put
- body type: json
- body: `{"action":"doSoftwareRestart"}`
- header collection: the one you’ve created in step 3
- certificate: none  
 ![Screenshot_20201224-103605_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/1/91c34303ad281fee79f49538b015dbbf0b85c6d5.jpeg)

Congratulations - you now should be able to reboot your Hue Sync Box!

---

<div class="post-metadata">

**Author:** ![maggo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maggo/32/32264_2.png) [@maggo](https://community.homey.app/u/maggo)\
**Post date:** [January 1, 2021, 3:57pm UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/2 "2021-01-01T15:57:47Z")

</div>

Thanks for sharing this. I tried to install the app several times but nothing happend.

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 4, 2021, 5:34pm UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/3 "2021-01-04T17:34:40Z")

</div>

There was a bug that affected Homey v4.x (see [[Store][Bug] Users cannot download app from the store · Issue #162 · athombv/homey-apps-sdk-issues · GitHub](https://github.com/athombv/homey-apps-sdk-issues/issues/162)) but that should now be fixed. Can you please try again?

---

<div class="post-metadata">

**Author:** ![maggo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maggo/32/32264_2.png) [@maggo](https://community.homey.app/u/maggo)\
**Post date:** [January 4, 2021, 6:34pm UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/4 "2021-01-04T18:34:12Z")

</div>

Hi and thank you. I have just installed it. 👍🏼

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/b/9b30089393ece645250e1bf6581312ebed708929.jpeg)

Now I’m struggling with  
2021-01-04 21:31:45 {“code”:12,“message”:“Invalid JSON”}

---

<div class="post-metadata">

**Author:** ![maggo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maggo/32/32264_2.png) [@maggo](https://community.homey.app/u/maggo)\
**Post date:** [January 4, 2021, 9:07pm UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/5 "2021-01-04T21:07:39Z")

</div>

> [@MadMonkey](#):
>
> {“appName”:“ARC”, “instanceName”:“Homey”}

I have double checked everything but still  
(“code”:12,“message”:“Invalid JSON”})

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 5, 2021, 7:28am UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/6 "2021-01-05T07:28:33Z")

</div>

Seems to be an autoformatting issue of this forum:/ You need to replace the doubble quotes to propper ones ( and also everywhere else where it applies). Any idea how to post things here s.t this does not happen?

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [January 5, 2021, 8:30am UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/7 "2021-01-05T08:30:46Z")

</div>

Yep, the most obvious thing, using the code button, as it truly is code ( \</\> )

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 5, 2021, 9:33am UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/8 "2021-01-05T09:33:45Z")

</div>

> [@MadMonkey](#):
>
> {“action”:“doSoftwareRestart”}

I’ve adapted it, please copy & paste it again!

---

<div class="post-metadata">

**Author:** ![maggo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maggo/32/32264_2.png) [@maggo](https://community.homey.app/u/maggo)\
**Post date:** [January 5, 2021, 2:10pm UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/9 "2021-01-05T14:10:55Z")

</div>

> [@MadMonkey](#):
>
> {“action”:“doSoftwareRestart”}

Thank you! 👍🏼👍🏼👍🏼 Now it works for me.

---

<div class="post-metadata">

**Author:** ![Edgar](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@Edgar](https://community.homey.app/u/Edgar)\
**Post date:** [January 25, 2021, 4:43pm UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/10 "2021-01-25T16:43:36Z")

</div>

Thnx, great job!!

1 issue… i keep getting the error: Invalid Token  
this while i think i did everything right. I did got a very long base64 and then i decoded it and then i got a readable json output but after the regular, was followed by jibberjabber to me. So i thought i needed to leave out everything after the double ==  
i decoded the base64 again en now i get only normal readable json output. But still; invalid token.

Any idea?

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 25, 2021, 5:55pm UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/11 "2021-01-25T17:55:04Z")

</div>

What did you decode? There should be no need to do so…

---

<div class="post-metadata">

**Author:** ![Edgar](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@Edgar](https://community.homey.app/u/Edgar)\
**Post date:** [January 25, 2021, 6:06pm UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/12 "2021-01-25T18:06:08Z")

</div>

> [@MadMonkey](#):
>
> What did you decode? There should be no need to do so…

i know. but i wanted to know if the data in the base64 code is right. so i decoded it to see.

---

<div class="post-metadata">

**Author:** ![Edgar](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@Edgar](https://community.homey.app/u/Edgar)\
**Post date:** [January 28, 2021, 2:25pm UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/13 "2021-01-28T14:25:01Z")

</div>

i guess you don’t have an idea?

---

<div class="post-metadata">

**Author:** ![MadMonkey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/madmonkey/32/22606_2.png) [@MadMonkey](https://community.homey.app/u/MadMonkey)\
**Post date:** [January 29, 2021, 7:17am UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/14 "2021-01-29T07:17:53Z")

</div>

I have but I am a bit short on time and I still did not get 100% what you did;) So retrieving the token worked for you? How does your header collection then look like?

---

<div class="post-metadata">

**Author:** ![Edgar](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@Edgar](https://community.homey.app/u/Edgar)\
**Post date:** [January 29, 2021, 9:38am UTC](https://community.homey.app/t/tutorial-reboot-philips-hue-sync-box/39725/15 "2021-01-29T09:38:15Z")

</div>

Ya, i got the token, that went well. However, it is not an token but a base64 encoded piece of json. But that is not important. I have that received by the first part of the tutorial.

![image.png](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/0/60db0e44da852f7d3e0e96b46fe92a1739649ca8.png)

 ![Image.jpeg](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/d/3d017dfa711d1dbdb542050aa9a1ba77bec58c0c.jpeg)
