# \[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:** 12

<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:** [February 14, 2023, 11:55am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/224 "2023-02-14T11:55:36Z")

</div>

I already added the power sensor to switch device (like it’s done fro lights) for the next test version.  
If a `switch.entityname` has a `sensor.entityname_power`, it’s used automatically. If the sensor doesn’t use the naming, you can set it in device settings:  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/d/5d002517447fdd2c59c1977d7c658fac9b0f164e.png)

Some other features like mdi icon library update will added, too.

I’ll give an update if the test version is online.

---

<div class="post-metadata">

**Author:** ![K4mrat](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/k4mrat/32/9529_2.png) [@K4mrat](https://community.homey.app/u/K4mrat)\
**Post date:** [February 14, 2023, 12:29pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/225 "2023-02-14T12:29:18Z")

</div>

That’s brilliant! Talk about fast!

I have a few switches measuring Volt and Ampere if you ever feel like adding that ability too.

(Like Zigbee switch “TS011F” sold as **Neo Coolcam zigbee** using “_sensor.entityname\_rms\_current_” and “_sensor.entityname\_rms\_voltage_”,  
as well as Z-wave socket from **Aeotec** with “_sensor.entityname\_electric\_consumption\_v_” and "_sensor.entityname\_electric\_consumption\_a"_)

---

<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:** [February 14, 2023, 12:38pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/226 "2023-02-14T12:38:28Z")

</div>

I don’t think that this will be added. It’s more a sensor thing for insights. So better to collect these additionyally sensors in a compound device. The question is: how often do you look at these values?

The energy measure is added to light/switch to be able to see the consumption in the energy summation. There it’s better to have the device itself with its energy data as capability.  
The switch device is made to import the switch domain as device, but not all direct/indirect sensors.  
I hope that’s ok for you 🙂

Edit: I’m thinking about changing the compound device class to “socket” instead of sensor. Would offer to use the “plugged in” option, but would be a bit weird in pair dialog.

---

<div class="post-metadata">

**Author:** ![K4mrat](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/k4mrat/32/9529_2.png) [@K4mrat](https://community.homey.app/u/K4mrat)\
**Post date:** [February 14, 2023, 1:08pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/227 "2023-02-14T13:08:56Z")

</div>

You know what? i’ll probably NEVER look at them 🤣 it’s probably just me having too much of a pokémon-gotta-catch-em-all-mentality, like if they exist i “need” them but will probably NEVER use them 😃 So, I think you might be right!

Off the top of my head I can’t see any downside to changing Compound to “socket” for me personally… the only thing that I can think of is IF i’d like to collect all those sensors, i’d probably never look at, in one compund device to use in like a monitor-flow to see if anything out of the ordinary occurs and then warn me, it might be problematic if Homey MUST have an onoff capability tied to that compund? And if that is the case (but i’m not sure?) there might be some breaking changes to peoples devices after update? At least that whas my thought when I suggested the Compund Switch - to rather add Devices than change existing ones.

I was gonna try it out myself and forked the app, but haven’t used CLI for two years and it refuses to even run apps and throws errors at me so I gave up… Just as well probably since I suck at javascript 🤣

---

<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:** [February 14, 2023, 1:52pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/228 "2023-02-14T13:52:19Z")

</div>

Ok, let me try the compound-socket version. I don’t think a on/off is needed for.  
and yeah, if you have a lot of data you want more 🙂  
But with a compound you can collect the sensors and with flows you can check for peaks if needed.

---

<div class="post-metadata">

**Author:** ![PV2134](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pv2134/32/16433_2.png) [@PV2134](https://community.homey.app/u/PV2134)\
**Post date:** [February 14, 2023, 3:09pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/229 "2023-02-14T15:09:45Z")

</div>

@RonnyW

Thx Ronny, had no idea that the colouring was a default use of Homey. Does the same apply for the main tile (expected: a/c on=coloured tile a/c off= tile greyed, but the tile appears to suggest an active state continuously. That would IMHO an improvement as well.

Peter

---

<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:** [February 14, 2023, 3:55pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/230 "2023-02-14T15:55:13Z")

</div>

Hi,  
the tile is only showing the same as the device detail view (colored blue or orange).  
The tile won’t get disabled. That’s only possible for on/off capabilities (switches). A thermostat has a mode that can operate independent. And even if you set a mode it’s not sure if the device is on (heating/cooling) or off (doing nothing).

The climate domain has an attribute `hvac_action`, that will show the current state in the sensor view (if it’s provided by the HA integration).  
See the definition: [Climate Entity | Home Assistant Developer Docs](https://developers.home-assistant.io/docs/core/entity/climate/)  
But that would not really fit to the tile state.

The tile could represent the climate mode. If mode=off (like a switch that is off) the tile could be inactive/grey and on other modes (AC is switched on) the tile will be active. But it won’t represent the current AC state.

Edit: I will add the tile state dependent on selected mode (so a static state like a light/switch).

---

<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:** [February 14, 2023, 7:00pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/231 "2023-02-14T19:00:32Z")

</div>

**New test version: 1.1.0**

- Fix for custom icons on HomeyPro23
- updated **mdi icon library**
- active/inactive tile for cover device dependent on open/close state.
- active/inactive tile for thermostat dependent on mode.
- optional power entity setting for switch device. Set a power sensor to add power measure to the Homey device

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

@PV2134 @K4mrat : ready to test

---

<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:** [February 14, 2023, 7:40pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/232 "2023-02-14T19:40:51Z")

</div>

Small hint for window covering device:  
It’s base device that offers the possibility to select a “virtual” cover type (like it’s possible for socket device type) - but only in mobile app.

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/12ef10d91c4a0f19c77c7ff15d2192b283974414.png)

![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/0/50cc208882d616509fefeb1f335af8ff7f037414.png)

---

<div class="post-metadata">

**Author:** ![PV2134](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pv2134/32/16433_2.png) [@PV2134](https://community.homey.app/u/PV2134)\
**Post date:** [February 15, 2023, 10:46am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/233 "2023-02-15T10:46:12Z")

</div>

Hi Ronny,

Below are my test findings:

The tile enabled/disabled works like a charm. I clicked Off (“uit”) in the webbrowser and the tile is disabled almost immediately. However, the detailed screen is not updated, “Heat” (Warmte) is still displayed as the selected mode  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/3/43645cb7d71ca88833238698e7487b423dcf7f2b.png)  
I doubt if this is browser related, because the last detail screen (log) is updated.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/f/3f736a6d1ddf87adae01ab87b15d9ed6523b419b.png)  
Furthermore, I’m also not aware if the detail screen of this device should be disabled/transparent if the device is disabled. This could be a feature, assumed this can be controlled by the app.

The Dutch translations can be improved.

1. Log screen: “Op” should be “Aangezet” and “Uit” should be “Uitgezet”. The last one is not necessary but is more consistent with log items of other devices.

2. The mode of operation screen should be (only changes are displayed):  
Warmte → Verwarmen  
Koel → Koelen  
Warmte/Koel → Auto (verwarmen/koelen)  
Droog/vochtigheid → Ontvochtigen  
Alleen fans → Ventileren

3. Flow cards and tags

_Schommelen modus gewijzigd → possibly change into **AC modus gewijzigd** _  
This card confuses me. The “modus” setting in this card is displayed as “vertical” but the variables in the next card are referring to the device mode of operation (heating, cooling. etc.).

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

_Luchtstroom gewijzigd_  
As there is a card “airflow changed” (Luchtstroom gewijzigd), this is more consistent with the swing (schommelen) mode of the previous card.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/4/b4de3a2ea66aa27ebafac8a2f41ba2fb91117387.png).  
I have to test the available variables (Op, Uit, **V** erticaal, Horizontaal, Beide), but “Op” definitely seems a wrong translation.  
FYI, the available swing modes in my device are: Up/Down, Left/Right, 3D. Up/down includes 6 fixed positions and a swing modus.  
Left/right includes 8 fixed positions and a swing modus.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/1/a1b93a83bb28f79235293755642c606269f0e007.png)  
_Vooraf ingestelde modus_  
The preselected modus may be AC specific, the available modes in my device (MHE) are: None, High Power, Eco, Night setback, Silent, Allergen clear, Weekly timer, and several other timer modus combinations.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/5/d5e03022a0dc28ba4b8dda4a4b11203365ddd866.png)  
_Selecteer thermostaatmodus → change into **Stel AC modus in op** _  
Please refer to pt. 2 (above). This list includes a separate “Auto” mode, where the Auto mode in device is equal to Cool/Heat. Maybe these need to be merged.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/5/c53afc84c99bf1484299a0de4061db126c047e9f.png)

_Wijzig naar Luchtstroom → change into **Wijzig luchtstroom** _  
The info text had typing/spelling errors: change into “De lijst wordt geleverd door de AC-unit of de HA-integratie.”

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/1/814d6faec95c848b07e9067ff06d58118817f5a6.png)  
_Wijzig fan modus → change into **Stel fan modus in** _  
Consistency: Change the first letter into a capital

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/9/99a72ebe4de1423d8622a517e290a7ff04664048.png)  
_Overschakelen naar vooraf ingestelde modus_  
The info text has translation/spelling errors, this should be: “De lijst wordt door de AC-unit of door de HA-integratie geladen.”

Peter

---

<div class="post-metadata">

**Author:** ![K4mrat](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/k4mrat/32/9529_2.png) [@K4mrat](https://community.homey.app/u/K4mrat)\
**Post date:** [February 15, 2023, 12:31pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/234 "2023-02-15T12:31:11Z")

</div>

Works like a charm! Good job!

One thing I discovered was that one of my Plugs has a “child lock”, this was favored as the devices on/off switch before it’s actual on/off switch. Easy to remedy by hiding that entity in HA and search again to get the right switch.

Adding the watt sensor from settings works great!  
The only thing I’d love to see is the kWh-option as well 😉

---

<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:** [February 15, 2023, 12:51pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/235 "2023-02-15T12:51:09Z")

</div>

kWh option is there you need a home assistant name that ends in \_power this plugin works

> **[GitHub - bramstroker/homeassistant-powercalc: Custom component to calculate...](https://github.com/bramstroker/homeassistant-powercalc)**
>
> Custom component to calculate estimated power consumption of lights and other appliances - GitHub - bramstroker/homeassistant-powercalc: Custom component to calculate estimated power consumption of...

---

<div class="post-metadata">

**Author:** ![K4mrat](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/k4mrat/32/9529_2.png) [@K4mrat](https://community.homey.app/u/K4mrat)\
**Post date:** [February 15, 2023, 12:58pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/236 "2023-02-15T12:58:08Z")

</div>

Then that’s the explanation. The only plug i’ve tried adding with the new update has its entity named “sensor.name\_summation\_delivered” for som weird reason! I’ll try to override the entity ID in HA then 😄

---

<div class="post-metadata">

**Author:** ![K4mrat](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/k4mrat/32/9529_2.png) [@K4mrat](https://community.homey.app/u/K4mrat)\
**Post date:** [February 15, 2023, 1:28pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/237 "2023-02-15T13:28:27Z")

</div>

Yeah, so either we’re talking about different things or i’m totally missing something. All my entities measuring “kWh” is named things like “sensor.name\_electric\_consumption\_kwh”. While everything measuring Watt is named “sensor.name\_power”. And changing the names on these entities does not make them show up with the new feature of the **switch** as far as I can see with the ones i’ve tried them on. If you’ve managed to add “kWh” in the **advanced settings** -tab of the updated **switch** i’d be really happy to know how you’ve done it 🙂

---

<div class="post-metadata">

**Author:** ![K4mrat](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/k4mrat/32/9529_2.png) [@K4mrat](https://community.homey.app/u/K4mrat)\
**Post date:** [February 15, 2023, 2:21pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/238 "2023-02-15T14:21:21Z")

</div>

@RonnyW

So, this kinda happaned again 😄

- The app was chewing, trying to find devices when I was trying to add new ones
- Things **could** be controlled on/off, but no new devices could be added
- Restarted the app - same behaviour with endless search of devices.
- Disabled and Enabled the app a couple of times - still endless chewing and searching
- Changed the IP to **wrong** port and it did not complain it was wrong, saved the **wrong** settings
- Disabled app with wrong settings, Enabled it again and it instantly complained the settings where wrong when i checked.
- Put in the **correct** port number - and presto everything was working again and the app told me settings where correct 😃

During this time I could connect to HA using browser and phone app and control everything. So something is up. The first time it happened I just added one device, but this time I was adding and removing things so it may well be because of me torturing the app this time 🙂

I’m not so sure this is worth for you putting any effort in to investiganting unless it persists and others notice it as well, just thought you should know if others experience similar issues. The app seems really stable when it’s just being used for day to day automation stuff so far!

---

<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:** [February 15, 2023, 2:21pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/239 "2023-02-15T14:21:21Z")

</div>

> [@\[APP\]\[Pro\] Home Assistant - Community App](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/95):
>
> A new test version 0.3.0 is online with the following changes: Presence device added You can add your device\_tracker or person entitiey as presence device. It has a state (home / not\_home like in HA) and a presence alarm. The alarm can be inverted in device settings. [grafik] Added power sensor for lights When using the [PowerCalc](https://community.home-assistant.io/t/powercalc-virtual-power-sensors/318515) integration, you will get corresponding power sensors for your light: Light: light.mylight Sensor: sensor.mylight\_power If that sensor is found, it’s added …

---

<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:** [February 15, 2023, 3:47pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/240 "2023-02-15T15:47:38Z")

</div>

> [@K4mrat](#):
>
> So, this kinda happaned again 😄

Hm, sound as if the wewbsocket connection to HA was interrupted somehow.  
If that happends again, please open the repair view of a device and check the app log. You can also create a diagnostics report for the app. But in the app log you should already see some errors.  
I hope that points us the right direction to investigate. Thanks.

And as fast solution you can push the reconnect button in device settings. This will hopefully reconnect to HA if it’s broken.

---

<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:** [February 15, 2023, 4:01pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/241 "2023-02-15T16:01:03Z")

</div>

@K4mrat (@JB2K as CC)

I think you mix some things up.  
The power addition for the device is meant for getting current power measure (Watt) data into the homey device. It’s used to add the device into Homey power consumption (the energy overview in Homey app).

All other sensors provided by the switch are just statistics.  
The HA switch entity has only the on/off state, nothing else. The sensors are different for all integrations. There is no standard like used in Homey. Every integration can do whatever it wants. That makes it hard to find a common solution between HA and Homey.  
That’s why I decided to add the power entity for Homey energy. But other sensors should be includes as single sensor device or better as compound.

Don’t take HA devices to serious. At the end it’s only a collection of entities, you have to add one by one to a dashboard.

I want add a device setting for compound device to select the device class (sensor/socket…). So this could be another possibility to add your plug as compound including all sensors.

---

<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:** [February 15, 2023, 4:02pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/242 "2023-02-15T16:02:50Z")

</div>

@K4mrat  
…and thanks for your donation 🍻

---

<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:** [February 15, 2023, 6:11pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/243 "2023-02-15T18:11:54Z")

</div>

> [@PV2134](#):
>
> Furthermore, I’m also not aware if the detail screen of this device should be disabled/transparent if the device is disabled. This could be a feature, assumed this can be controlled by the app.

That’s controlled by the GUI/App.  
And the mode list could hang if the app restarted while it’s opened (or something like this). Sometimes it needs to close the detail view ans open again to get instant reaction.

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

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