# \[APP\]\[Pro\] Home Assistant - Community App

**URL:** <https://community.homey.app/t/app-pro-home-assistant-community-app/71477>\
**Category:** Apps\
**Tags:** app, tools, homey-pro, home-assistant\
**Created:** [October 31, 2022, 8:25pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477 "2022-10-31T20:25:26Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [October 31, 2022, 8:25pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1 "2022-10-31T20:25:27Z")

</div>

## Home Assistant - Community App

[![large](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/6/26fe6cc74b5b282908bac54d775005bbbf3ca80e.png)](https://homey.app/a/io.home-assistant.community/)

> **[Home Assistant Community | Homey](https://homey.app/en-us/app/io.home-assistant.community/Home-Assistant-Community/)**
>
> Connect to Home Assistant

* * *

Happy with this app? Thank you for supporting community app development with a small donation via PayPal (send to friends).

[![btn_donate_LG1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/d/6d36f536e736dfeab883c325fe045d49eb2a6793.png)  
 ](https://paypal.me/winklerronny)

* * *

This Homey app adds support for many devices, scripts & scenes of your Home Assistant installation.

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/2/028a9cbd4f81ceeb372f3b22e641450d1191efa4.png)  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/7/87cc2e9eef16aeb3f353c488d5907ca6c0c04a45.png)

**Currently the following device types are supported:**

- Switches
- Buttons
- Lights
- Sensors and Binary Sensors
- Media Players
- Climate
- Presence
- Scenes
- Scripts
- Compound (combined & customizable device)
- Services (start via flowss)

**Installing / using the app**

To use this app, just install it from the Homey app store [Home Assistant Community | Homey](https://homey.app/a/io.home-assistant.community/)

There’s no need for configuring things up front, you can start right away by adding your first device, only now you will have to enter your Home Assistant instance’s local IP address, along with the “Longlived token”  
→ when you don’t have one, create it by scrolling down at ‘[http://your.homeassistant.IPaddress:8123/profile](http://your.homeassistant.IPaddress:8123/profile)’;

When successfully saved, you can install devices without interruption.  
After adding a new device on your HA instance, the entity list in Homey is refreshed instantly and you can directly add your new entity as Homey device.

**Device types explained**

- Switches  
Any switch can be paired

- Buttons  
You can press the button in Homey or react on a HA button press with a flow trigger

- Lights  
Lights will be paired with their matching capabilities (as available on HA);  
this includes: brightness, colour and temperature

- Media Players  
Media players can be paired, that includes TV sets, satellite / cable settop-boxes, home cinema receivers and more.

- Presence  
This device represents a device\_tracker or person (with assigned device\_tracker) entity. You get the current state an an presence alarm, which can be inverted in device settings.

- Climate  
Contol thermostats, heaters or air conditioner. Change the temperature and mode.  
Device dependent modes (fan, preset, swing) can be set using flows cards.

- Scenes  
Scenes you’ve created in HA are paired as buttons, just press it to start a linked scene

- Scripts  
Scripts you’ve created in HA are paired as buttons, just press it to start a linked script

- Sensors  
Sensors are devices which return numeric values, like measuring and metering devices, weather data like rain, wind and such.  
Binary Sensors are devices which return an on/off or true/false state, like motion or contact sensors

**And a special device:**

- Compound  
Compound is a custom device; in your HA instance, you can create a device which combines any sensors or entities present, which you then can pair with Homey as one device.  
There will be examples in this app’s forum topic. See link below.

- There’s a little extra you’ll need to do:  
If you are using HACS, you can just add this integration to HACS searchig for “homey”.  
If not, you can download the files from  
[https://github.com/RonnyWinkler/homeassistant.homey](https://github.com/RonnyWinkler/homeassistant.homey)  
and copy/paste them into ‘/config/custom\_components/homey/’  
You’ll find example files and a how-to in that folder.

* * *

**Further documentations can be found on my Homepage:**

[![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/b/2b3f2db2727186473bb7acdb58116676887da223.jpeg)](https://rwdevelopment.de/homeypro-apps/homeassistant/)

There you can **register for a newsletter** to get updated when a **new blog post** is published.  
And you can **ask for further blog posts** about examples, HowTo’s and technical insights

* * *

**Contributions:**  
The thanks go to…

- Rob Groenendijk and his work on the HA community app this app is based on.
- Jeroen Nijssen and…
- Peter Dwarswaard for their suport, ideas and app tests.

* * *

Help getting this app even better!

[![btn_donate_LG1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/d/6d36f536e736dfeab883c325fe045d49eb2a6793.png)  
 ](https://paypal.me/winklerronny) [![paypal-logo-png-transparent](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/3/63586c1d0194d130d0a276c02cf3c7d2a9d5c8ae.png)](https://paypal.me/winklerronny)  
Please use “send to friends” to avoid fees. Thanks.

---

<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:** [October 31, 2022, 8:25pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/2 "2022-10-31T20:25:42Z")

</div>

**FAQ**

**The app crashes becasue of “memory limit”**  
Most common problem is a high frequent amount of HomeAssistant entity updates.  
Check the following details:

- Are devices imported with this app synced back to HomeAssistant with MqttClient & MqttHub. Exclude these devices in MqttHub
- Is there a HA integrationsending a lot of events/entity updates? Check in HA developer tools, check frequest state changes and events. Check if it’s possible to reduce the interval in HA.

**Can I only add single entities?**  
The app is designed to represent HA domains as a Homey device. State, attributes and services are bound to a domain, so you can add a single entity to Homey as device.  
But additionally you can add HA device entities (entities grouped to a HA device) in device settings. And you can add entities manually in rrepair view.  
For further detail, please check the Blog:  
[Add device entities](https://rwdevelopment.de/2024/03/04/homeassistant-geraete-entitaeten/)  
[Add entities manually](https://rwdevelopment.de/2024/03/05/homeassistant-geraete-capabilities/)

---

<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:** [October 31, 2022, 8:25pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/3 "2022-10-31T20:25:54Z")

</div>

reserved

---

<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:** [October 31, 2022, 8:26pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/4 "2022-10-31T20:26:06Z")

</div>

**Detailed descriptions and examples**

* * *

**HA custom\_component**

- Installation (HACS)  
Open HACS in Home Assistant, select “Search and download repositories”. Search for “homey” and install the integration.  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/a/7ad000318d393e2473c4491060f3c835de2b5daa.png)

- Installation (manually)  
 → Download the files from [Github: custom\_component/homey](https://github.com/RonnyWinkler/homeassistant.homey) and copy them to a new folder “homey” in your HA configuration: **/config/custom\_components/homey**  
 → Then restart HA to load this component.

- YAML configuration  
 → If you want to include the YAML definition **into your configuration.yaml** , then take **example.yaml** as example for the structure. Copy the content into your configuration.yaml and edit the compound definition  
 → If you would like to use an include file (the preferred variant), the **insert this line into your configuration.yaml** :  
**homey: !include homey.yaml**  
This way, you can add all compounds to a file names **homey.yaml**  
Use example\_include.yaml as example for the structure.

**Compound definition**  
The compoud groups a set of entities into a Homey device. As target you have to use an existing Homey capability. The capability defines, how the value is shown (as alarm, measurement or switch).  
The Structure is:

```auto
compound_name:
  name: The name that is used as device name
  capabilities: 
    capability1: entity1
    capability2: entity2
  capabilitiesTitles: (this is optional if you would like to set another capability description)
    capability1: title of capability 1
    capability2: title of capability 2

```

If you need more than one capability of the same type, you can use subcapabilities (add .subname)  
Example:

```auto
temperature:
  name: Temperature
  capabilities:
    measure_temperature.south: sensor.south_temperature
    measure_temperature.nord: sensor.nord_temperature
  capabilitiesTitles:
    measure_temperature.south: "Temp. South"
    measure_temperature.nord: "Temp. Nord"

```

This way you can combine a switch and its measurement capabilities to a measurement plug  
Example: This are the needed entities of a SP120 plug used for a fan:

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/f/4f65fec672a5b76839f88d64e075f5d4af1e1193.png)  
Combined as compound it could look like:

```auto
fan:
  name: Fan
  capabilities:
    onoff: switch.ventilator_eingeschaltet
    meter_power: sensor.ventilator_energie
    measure_power: sensor.ventilator_leistung

```

Add this code to your YAML (using your entities :-)).  
**Then restart HA to take effect.**

In Homey, add a compound device:

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/3/9372a2651a0ade88ea0e8146fb9388ecd4979fef.png)  
Select the “Fan”:  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/b/3b8bdadc0a6430cbe9e15a0546a3328818868bf1.png)

Now you have a device showing the two power values and a switch to toggle the plug.  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/7/6771b259a3191ad9c964d611ed1f1599a8588279.png)

As you can see, the capability description were taken from the HA entities. If you like to get other titles, you can add them to the YAML. And don’t forget to restart HA after YAML changes. If there are syntax error, HA will prevent you to restart.

```auto
fan:
  name: Fan
  capabilities:
    onoff: switch.ventilator_eingeschaltet
    meter_power: sensor.ventilator_energie
    measure_power: sensor.ventilator_leistung
  capabilitiesTitles:
    onoff: Fan switch
    meter_power: Power meter
    measure_power: Power current

```

Removed from Homey and added again it looks like this:  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/c/2c3b53bdec43af189beddf4b18c687a1aca4a807.png)

**A further example for air quality data (air purifier) you can find in [post #130](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/130):**

---

<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:** [October 31, 2022, 8:26pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/5 "2022-10-31T20:26:13Z")

</div>

**Wishlist**

This is a Wiki post for your wishes to the app.  
Please add a wish for the Homey app itself or a HA device/entity you want to see in this app.  
Please make a short! comment/keyword including the affected HA domain. Please don’t comment or discuss here.

* * *

I would love to see…

- Add your wish here

- Support for wireless switches (Aqara). Not a button, but a switch that can support multiple actions (single\_left, double\_left, triple\_left, hold\_left, single\_right, double\_right, triple\_right, hold\_right)

* * *

🎁 Fulfilled wishes 🎁

- add **buttons** “input\_button”  
=\> _RonnyW_: added with version 0.1.6

- Call **custom service** : make “services” list auto generated, replace domain with entity  
=\> _RonnyW_: new app flow action card with autocomplete lists

- support for **device trackers** entity: device\_tracker.xxxxxx  
HA has great options to track network devices, perfect to check is someone is home or not  
=\> _RonnyW_: added with version 0.2.3

- direct Support for light **entities with measurement**  
=\> _RonnyW_: added with 0.3.0  
A sensor entity sensor.mylight\_power is uses as measure\_power capability for **light entities** light.mylight

- direct Support for **Cover** entities  
=\> _RonnyW_: added with 0.5.0

- direct Support for **Locks**  
=\> _RonnyW_: added with 0.5.0

- direct Support for **vacuum cleaner**  
=\> _RonnyW_: added with 0.5.15

- possibility to select multiple devices at once  
=\> _RonnyW_: added new pairing dialog with 1.0.0

- “Always on”, “Power usage when on”, “Power usage when off”. /k4mrat  
=\> _RonnyW_: added general Homey settings based on selectable device class.

- “What’s plugged in?” (“other”, “light”, “fan” etc) /k4mrat  
=\> _RonnyW_: Added device settings for socket/switch device. It’s using Homey core functionality like other socket devices.

- direct Support for **airpurifier**  
=\> _RonnyW_: Add a fan. Then add HA device entities in Homey device settings or manually in repair view.

- media image for http sources  
=\> _RonnyW_: Added support for http URLs

- condition cards for generic capabilities

- Alarm Control Panel device support

---

<div class="post-metadata">

**Author:** ![Exile82](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Exile82](https://community.homey.app/u/Exile82)\
**Post date:** [October 31, 2022, 8:48pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/6 "2022-10-31T20:48:42Z")

</div>

Nice! I use the other HA app on a daily basis but I have missed some features that you introduce.

I have some issues to login in but I think I just need to have another go.  
Am Inforced to use the local IP-adress? I use DuckDNS on my HA installation (https enabled).

---

<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:** [October 31, 2022, 8:54pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/7 "2022-10-31T20:54:14Z")

</div>

That souldn’t matter I think.

---

<div class="post-metadata">

**Author:** ![Exile82](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Exile82](https://community.homey.app/u/Exile82)\
**Post date:** [October 31, 2022, 9:01pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/8 "2022-10-31T21:01:55Z")

</div>

Thanks, I will try more later. Just had a quick try with my duckdns server address [https://xxxxx.duckdns.org:8123](https://xxxxx.duckdns.org:8123) with my newly created long lived token but I get “wrong credentials”. Probably something that I did wrong

---

<div class="post-metadata">

**Author:** ![JB2K](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jb2k/32/134070_2.png) [@JB2K](https://community.homey.app/u/JB2K)\
**Post date:** [October 31, 2022, 9:08pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/9 "2022-10-31T21:08:01Z")

</div>

that means it connects! you just entered a wrong key 🙂

---

<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:** [October 31, 2022, 9:10pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/10 "2022-10-31T21:10:35Z")

</div>

Or the app could not connect to the server. Both will raise the error because it’s just the default login view.

---

<div class="post-metadata">

**Author:** ![Exile82](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Exile82](https://community.homey.app/u/Exile82)\
**Post date:** [October 31, 2022, 9:11pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/11 "2022-10-31T21:11:29Z")

</div>

Hard to do it in a different way, I just copy the token from the app and paste it in Homey interface

---

<div class="post-metadata">

**Author:** ![Exile82](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Exile82](https://community.homey.app/u/Exile82)\
**Post date:** [October 31, 2022, 9:16pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/12 "2022-10-31T21:16:49Z")

</div>

I also got “could not find that Pairsession”

---

<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:** [October 31, 2022, 9:20pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/13 "2022-10-31T21:20:33Z")

</div>

This happens if the pairing dialog is opened for a too long time or the dialog lost connection to the app process in another way. Just close the popup and start again.

---

<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:** [October 31, 2022, 9:25pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/14 "2022-10-31T21:25:12Z")

</div>

> [@Exile82](#):
>
> duckdns server address [https://xxxxx.duckdns.org:8123](https://xxxxx.duckdns.org:8123)

Is this instance running https on this port?  
I tried [https://mydomain.de](https://mydomain.de) with default port 443 and a reverse proxy between forwarding to HA as http on port 8123 and this works fine.

---

<div class="post-metadata">

**Author:** ![Exile82](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Exile82](https://community.homey.app/u/Exile82)\
**Post date:** [October 31, 2022, 9:29pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/15 "2022-10-31T21:29:47Z")

</div>

Okay, I don’t use reverse proxy, just plain simple DNS. I use the same adress that I normally would use to access my HA installation, same port. Just tried and it works to connect to in the browser.

---

<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:** [October 31, 2022, 9:35pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/16 "2022-10-31T21:35:16Z")

</div>

But why accessing HA via DynDNS in the LAN? You can try via IP first if it’s working in general.

---

<div class="post-metadata">

**Author:** ![Exile82](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Exile82](https://community.homey.app/u/Exile82)\
**Post date:** [October 31, 2022, 9:37pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/17 "2022-10-31T21:37:42Z")

</div>

I just have the dns-address in my muscle memory, I always use it. But I also tried the local IP which gave me the same result.

---

<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:** [October 31, 2022, 9:44pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/18 "2022-10-31T21:44:37Z")

</div>

And HA is running https? With a self generated certificate? Perhaps that’s rejected.  
That’s why I’m using HA internal with http and external with https via reverse proxy to avoid such certificate based issues. I can try to figure out if the connection will allow bad certificates or not.

Ok, tried a “bad” certificat access (exchanged certificated to get a wrong domain error) and got the connect error, too. So you need a correct certificate if you are using https. I’ll check if I can tweak the connection settings to ignore cert errors.

---

<div class="post-metadata">

**Author:** ![Exile82](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Exile82](https://community.homey.app/u/Exile82)\
**Post date:** [October 31, 2022, 9:54pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/19 "2022-10-31T21:54:31Z")

</div>

Thanks mate. Didn’t want to cause you more work, just to provide some feedback. 😉

---

<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:** [October 31, 2022, 9:55pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/20 "2022-10-31T21:55:19Z")

</div>

Every feedback helps us to get better 😉  
So I can check the SSL settings.

[Next page](https://community.homey.app/t/app-pro-home-assistant-community-app/71477.md?page=2)
