# Homey Script for Garmin Watch

**URL:** <https://community.homey.app/t/homey-script-for-garmin-watch/66220>\
**Category:** Questions & Help\
**Tags:** homeyscript, advancedflow\
**Created:** [July 19, 2022, 7:38am UTC](https://community.homey.app/t/homey-script-for-garmin-watch/66220 "2022-07-19T07:38:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DvStarrenburg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dvstarrenburg/32/17154_2.png) [@DvStarrenburg](https://community.homey.app/u/DvStarrenburg)\
**Post date:** [July 19, 2022, 7:38am UTC](https://community.homey.app/t/homey-script-for-garmin-watch/66220/1 "2022-07-19T07:38:48Z")

</div>

Hi everyone!  
I’m looking for a friendly enthousiast who wants to help me with my Garmin Watch. Cold beers are on the way as soon as we got it working. I found this app in the Garmin Connect IQ Store [Connect IQ Store | Free Watch Faces and Apps | Garmin](https://apps.garmin.com/nl-NL/apps/ac9a81ab-a52d-41b3-8c14-940a9de37544)  
I would love to use this app to switch on/off virtual devices and/of scenes. Does anyone have experience with this?

I’m just at this skill level where I really see the use of more advanced flowcards/scripts but not skilled enough to understand where to start.  
Any help is really appreciated!

---

<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:** [July 19, 2022, 8:26am UTC](https://community.homey.app/t/homey-script-for-garmin-watch/66220/2 "2022-07-19T08:26:58Z")

</div>

Hi, I created a widget which is pending approval for the Garmin store.  
I will create a topic with information how to use. Then you can view your favorite devices, press buttons, toggle switches and start flows.

For the app you linked you need to use the Athom WebAPI. And you have to use an auth token for Authentification (http header field). But the WebApi is returning very large JSON data you beed to parse in the App. I don’t know if it’s possible with this app.

So please wait a short time. I hope my Widget gets approved the next days.

Edit: Only watches with more then 64kB available widget memory are supported, because the JSON data is so large that the memory limit will kill the widget. @DvStarrenburg : What watch are you using?

---

<div class="post-metadata">

**Author:** ![DvStarrenburg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dvstarrenburg/32/17154_2.png) [@DvStarrenburg](https://community.homey.app/u/DvStarrenburg)\
**Post date:** [July 19, 2022, 10:48am UTC](https://community.homey.app/t/homey-script-for-garmin-watch/66220/3 "2022-07-19T10:48:27Z")

</div>

Sounds great! I use the Garmin Venu SQ Music.

---

<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:** [July 19, 2022, 10:55am UTC](https://community.homey.app/t/homey-script-for-garmin-watch/66220/4 "2022-07-19T10:55:11Z")

</div>

The “music” version is ok. The “small” VenuSQ has only 64kB widget memory and ist not added as compatible.

---

<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:** [July 19, 2022, 5:39pm UTC](https://community.homey.app/t/homey-script-for-garmin-watch/66220/5 "2022-07-19T17:39:28Z")

</div>

The Garmin widget is ready to download.

> [@Garmin - control your Homey with your Garmin watch](https://community.homey.app/t/garmin-control-your-homey-with-your-garmin-watch/66248):
>
> [[Hero Image Venu2]](https://apps.garmin.com/en-US/apps/02c86289-5478-48c3-8509-cd1bb36fe51a) Control your Homey with this widget on your Garmin watch Features Get some Homey details like memory and CPU usage scroll through your favorite devices and flows toggle switches, press buttons and start flows check notifications change your user state (at home/away and awake/asleep) Showcase on Youtube [[ConnectIQ Homey Widget] ](https://www.youtube.com/watch?v=atHeG25W-us) (Showing some currently not availabel functionality) Requirements You need a Homey smart hub to use this widget wink When you …

It’s still alpha version. And you need the Homey cloudID and the session token for WebAPI access.

---

<div class="post-metadata">

**Author:** ![kjeet90](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kjeet90/32/45190_2.png) [@kjeet90](https://community.homey.app/u/kjeet90)\
**Post date:** [July 20, 2022, 6:06am UTC](https://community.homey.app/t/homey-script-for-garmin-watch/66220/6 "2022-07-20T06:06:31Z")

</div>

Aweome that you’re making this!

I bumped into a problem though, that I can’t seem to figure out. When I’ve added the cloudID and the auth token I get the message “Set app settings” when I open the app on my Garmin Fenix 6 Sapphire, I can also go to Devices and Flows, but they both state 0. I tried adding the “Bearer” in front of the token, but then it just stated that the session expired, so I assume that not having the “Bearer” in front was correct?

---

<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:** [July 20, 2022, 6:15am UTC](https://community.homey.app/t/homey-script-for-garmin-watch/66220/7 "2022-07-20T06:15:44Z")

</div>

You have to copy the whole value. Here is a screenshot from Firefox:

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/f/af3a0dc3a34fdb29b4ea856a96d15bf83cb919a3.png)

Best way to find the needed http call ist to search for file “/api/manager/system/”. That are API calls where the toke is used.  
You have to copy the whole value after “Authorization” including the "Bearer ". It can happen, that the string is displayed with a linebreak if the window is too small. Don’t miss this part.

---

<div class="post-metadata">

**Author:** ![kjeet90](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kjeet90/32/45190_2.png) [@kjeet90](https://community.homey.app/u/kjeet90)\
**Post date:** [July 20, 2022, 6:27am UTC](https://community.homey.app/t/homey-script-for-garmin-watch/66220/8 "2022-07-20T06:27:01Z")

</div>

Coped again and now it works 😀

Devices seems to trigger fine, but when I try to start [this](https://homey.app/no-no/flow/bTaiq8/) flow it says “Starting flow…” for half a second and it goes back to showing the “Flows (1)” menu and nothing happens.

---

<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:** [July 20, 2022, 6:33am UTC](https://community.homey.app/t/homey-script-for-garmin-watch/66220/9 "2022-07-20T06:33:28Z")

</div>

Thanks for the feedback. I only tested with advanced Flows. The API call for standard flows seems to get an http error. I’ll check this and update the app when this is fixed and give you a feedback.
