# Using HomeyPro with Python

**URL:** <https://community.homey.app/t/using-homeypro-with-python/105497>\
**Category:** Developers\
**Tags:** app, homey-pro\
**Created:** [March 4, 2024, 11:36am UTC](https://community.homey.app/t/using-homeypro-with-python/105497 "2024-03-04T11:36:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fayzul\_Islam](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fayzul_islam/32/93973_2.png) [@Fayzul\_Islam](https://community.homey.app/u/Fayzul_Islam)\
**Post date:** [March 4, 2024, 11:36am UTC](https://community.homey.app/t/using-homeypro-with-python/105497/1 "2024-03-04T11:36:53Z")

</div>

Hello! I recently purchased a HomeyPro and I would like to use it with a custom Python script to control the devices connected to it. I noticed that there are web API options available, but I’m not sure where to start. Can you guide me through the steps to use the HomeyPro with the API?

---

<div class="post-metadata">

**Author:** ![diapolon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/diapolon/32/82612_2.png) [@diapolon](https://community.homey.app/u/diapolon)\
**Post date:** [March 4, 2024, 12:15pm UTC](https://community.homey.app/t/using-homeypro-with-python/105497/2 "2024-03-04T12:15:47Z")

</div>

Yes you can! An example:

```auto
GET /api/manager/devices/device/ HTTP/1.1
Host: 192.168.0.123
Authorization: Bearer <your api key>

```

Homey web api sdk:

> **[Getting started with API Keys](https://support.homey.app/hc/en-us/articles/8178797067292-Getting-started-with-API-Keys)**
>
> Homey Pro (Early 2023) offers a feature called API Keys, that's intended for hobbyists and developers to create integrations with their Homey Pro.
> 1. Creating the API Key
> To create an API Key, navi...

> **[Home - Homey Web API](https://athombv.github.io/node-homey-api/)**

---

<div class="post-metadata">

**Author:** ![Fayzul\_Islam](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fayzul_islam/32/93973_2.png) [@Fayzul\_Islam](https://community.homey.app/u/Fayzul_Islam)\
**Post date:** [March 15, 2024, 11:33pm UTC](https://community.homey.app/t/using-homeypro-with-python/105497/3 "2024-03-15T23:33:43Z")

</div>

Is it only for local connection? Is there any way to use the web API outside the local connection? @diapolon

---

<div class="post-metadata">

**Author:** ![diapolon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/diapolon/32/82612_2.png) [@diapolon](https://community.homey.app/u/diapolon)\
**Post date:** [March 16, 2024, 7:50pm UTC](https://community.homey.app/t/using-homeypro-with-python/105497/4 "2024-03-16T19:50:22Z")

</div>

You can connect by cloud.

```auto
https://<cloudid>.connect.athom.com/api/

```

---

<div class="post-metadata">

**Author:** ![Fayzul\_Islam](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fayzul_islam/32/93973_2.png) [@Fayzul\_Islam](https://community.homey.app/u/Fayzul_Islam)\
**Post date:** [March 17, 2024, 11:11am UTC](https://community.homey.app/t/using-homeypro-with-python/105497/5 "2024-03-17T11:11:55Z")

</div>

How to get the cloudID? Can you share the documentation for this cloud API?  
Thanks.

---

<div class="post-metadata">

**Author:** ![diapolon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/diapolon/32/82612_2.png) [@diapolon](https://community.homey.app/u/diapolon)\
**Post date:** [March 19, 2024, 8:24am UTC](https://community.homey.app/t/using-homeypro-with-python/105497/6 "2024-03-19T08:24:08Z")

</div>

You can found your cloud\_id at  
[https://tools.developer.homey.app/tools/system](https://tools.developer.homey.app/tools/system)  
The guide is the previous
