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

<div class="post-metadata">

**Author:** ![JOR1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jor1/32/17206_2.png) [@JOR1](https://community.homey.app/u/JOR1)\
**Post date:** [September 19, 2023, 6:11am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/728 "2023-09-19T06:11:31Z")

</div>

The Opening / Closing statuses seem to bee presented by the builtin entity “Status for window covering”:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/5/35ca76d07b9c0a5a7d2de884492f5f7132c98162.png)

Looks lke the valid statuses are Opening, Closing and Not Active (current state). I wonder why Open and Closed are not valid statuses for this entity? I guess it is by design.

---

<div class="post-metadata">

**Author:** ![JOR1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jor1/32/17206_2.png) [@JOR1](https://community.homey.app/u/JOR1)\
**Post date:** [September 19, 2023, 6:39am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/729 "2023-09-19T06:39:42Z")

</div>

> [@JOR1](#):
>
> Looks lke the valid statuses are Opening, Closing and Not Active (current state).

Valid states are Up, Down and Not active.

---

<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:** [September 19, 2023, 7:40am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/730 "2023-09-19T07:40:07Z")

</div>

> [@JOR1](#):
>
> Valid states are Up, Down and Not active.

The states of which entity? You screenshot was showing the correct “closed” state.

 ![Screenshot_20230919_093711_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/2/02740b2ccb3b7f3d557b20cc78450efb545d1e59.jpeg)

So “closed” should result in an inavtive tile and active device switch.  
All other states than “closed” will show the opposite in Homey (because opening and closing is open a part).

---

<div class="post-metadata">

**Author:** ![JOR1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jor1/32/17206_2.png) [@JOR1](https://community.homey.app/u/JOR1)\
**Post date:** [September 19, 2023, 8:07am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/731 "2023-09-19T08:07:27Z")

</div>

The valid HA states seem to be closed, open, closing or opening.

The valid values for “Status for window covering” in the tile (marked i yello) are Up, Down or Not active.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/5/35ca76d07b9c0a5a7d2de884492f5f7132c98162.png)  
I guess this is just some additional info that may probably be used from flowcards.

---

<div class="post-metadata">

**Author:** ![JOR1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jor1/32/17206_2.png) [@JOR1](https://community.homey.app/u/JOR1)\
**Post date:** [September 19, 2023, 8:16am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/732 "2023-09-19T08:16:44Z")

</div>

> [@RonnyW](#):
>
> “closed” should result in an inavtive tile and active device switch.  
> All other states than “closed” will show the opposite in Homey

Yes. I agree.

---

<div class="post-metadata">

**Author:** ![JOR1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jor1/32/17206_2.png) [@JOR1](https://community.homey.app/u/JOR1)\
**Post date:** [September 19, 2023, 9:33am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/733 "2023-09-19T09:33:02Z")

</div>

In my case the Cover opened tag seem to be set to the same value as the Closed tag by itself after a while:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/4/54d5d1626a5445284fce7c5f185ca1d6f04f83fc.png)

Maybe this is the reason for why the tile always ends up in an active state after a while?

---

<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:** [September 19, 2023, 9:48am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/734 "2023-09-19T09:48:45Z")

</div>

Yes, this could be a reason…if the HA response is very slow or if your door needs aome time to open/close.  
This should only happen if you open/close from Homey. Acting from HA there should be no difference between both states.

Example (why this happens):

- You open the door clicking the button inside the device
- Homey switch state changes to “open”
- HA service is called
- Door opens
- HA state is changing to “open”
- HA state is returned to Homey
- Tile state changes to “on” (=open)

The Homey device state is synced after HA sends the updated state to Homey. This oinly happens if there are more than one capability that depends on the HA state (like in this case the tile state).

Btw…I uploaded **test version 1.4.24** with a cosmetic addition:

- If HA cover entity has `device_class = garage`, the Homey device gets the `garagedoor_closed` capability. It has the same logic as the `windowcoverings_closed` capability, but different labels and icon.

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

To change your Homey device you have to remove the current device and add again.

---

<div class="post-metadata">

**Author:** ![JOR1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jor1/32/17206_2.png) [@JOR1](https://community.homey.app/u/JOR1)\
**Post date:** [September 19, 2023, 10:21am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/735 "2023-09-19T10:21:38Z")

</div>

Isn’t the point here that the two states should never be the same?  
They schould allways be the opposite of each other since we want the tile to show active when Closed button is inactive? Or am I missing something?

Thanks for new version. I will test it later on today…

---

<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:** [September 19, 2023, 10:27am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/736 "2023-09-19T10:27:24Z")

</div>

They are opposite, but only after HA has sent the current (changed) state.  
If you press the button in Homey device, this button will change its state directly. After HA has updated the entity state (I think after the door has opened completely), all other capabilities are updated, too.

You can think as:

- the buttons is showing your current action (what you want)
- the tile is showing the current state (what still is in HA)
- bith are synced if HA has finished the process.

---

<div class="post-metadata">

**Author:** ![JOR1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jor1/32/17206_2.png) [@JOR1](https://community.homey.app/u/JOR1)\
**Post date:** [September 19, 2023, 11:08am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/737 "2023-09-19T11:08:13Z")

</div>

Yes, they are opposite when I close my doors.  
Close switch is ON and the tile is inactive.

But, both doors changes tile status back to Open after a while.

Tile for door 2 changed back to active about 5 mins. after it was closed from Homey.  
Tile for Door 1 changed back to active about 9 mins. after it was closed from Homey.

A log entry for Door opened was generated for both doors when tile changed state.  
Both doors have HA state closed and the Closed switch in Homey tile is ON.

There must be a new sync. of the two states happending sometimes later on on a regular basis.

---

<div class="post-metadata">

**Author:** ![JOR1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jor1/32/17206_2.png) [@JOR1](https://community.homey.app/u/JOR1)\
**Post date:** [September 19, 2023, 11:31am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/738 "2023-09-19T11:31:29Z")

</div>

What if any custom added entities (like temperature) changes? Would that trigger a new sync. of the two states? Sync. to the same state instead of the opposite?

---

<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:** [September 19, 2023, 11:33am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/739 "2023-09-19T11:33:57Z")

</div>

HA state/entity changes are pushed from HA in realtime (Websocket). Other entity state changes won’t have an effect on your garage door.

---

<div class="post-metadata">

**Author:** ![JOR1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jor1/32/17206_2.png) [@JOR1](https://community.homey.app/u/JOR1)\
**Post date:** [September 19, 2023, 11:41am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/740 "2023-09-19T11:41:49Z")

</div>

Both Cover open and Door closed values are set based on the actual state in HA? Right?  
I wonder what changes only one of them so they are the same after a few minutes?

---

<div class="post-metadata">

**Author:** ![JOR1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jor1/32/17206_2.png) [@JOR1](https://community.homey.app/u/JOR1)\
**Post date:** [September 19, 2023, 12:29pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/741 "2023-09-19T12:29:33Z")

</div>

I’m not able to find the new beta version…

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [September 19, 2023, 12:40pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/742 "2023-09-19T12:40:29Z")

</div>

Seems to be not available yet

 ![Screenshot_20230919-143927_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/6/561f5f2db1e4e23eaa427f7b47ae451fd2cab439.jpeg)

---

<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:** [September 19, 2023, 12:52pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/743 "2023-09-19T12:52:33Z")

</div>

> [@JOR1](#):
>
> I’m not able to find the new beta version…

Sorry, I uploaded it but didn’t publish 😅  
Now it’s ready to install.

---

<div class="post-metadata">

**Author:** ![JOR1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jor1/32/17206_2.png) [@JOR1](https://community.homey.app/u/JOR1)\
**Post date:** [September 20, 2023, 6:46am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/744 "2023-09-20T06:46:02Z")

</div>

H.  
I installed new test version and readded my garage door devices to Homey.  
Very nice! The Open/Close button now shows an open or closed garage door.

I did a lot of testing yesterday and found that most of the log entries were duplicated. Both english messages and norwegian messages shows in the log. I would prefer the norwegian ones.

All testing was done from Homey App on my phone.  
When pressing the On/Off button, I often got a log entry indicating this action was done from my phone. But sometimes I also get an opposite message from Home Assistant Community at the same time (marked in yello below).

After door was closed at 17:07:17, the tile was inactive and closed switch was on. So far so good.

 ![Garasjedør2 logg Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/e/2e256e037f95011197179afd67e1be0429e15f48.jpeg)

For no reason at all I got new log entries at 17:30:09 (23 minutes later) indicating door was opened. The tile switched to active and the close switch switched to off. There was no new log entries in HA for this event and my garage door was still closed.

New log entry occures at 04:12:21 indicating door was closed. Still no trace of this in HA.  
Then, again, at 04:12:52 a new log entry indicating door was opened again.

HA logs:

 ![Garasjedør2 logg HA](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/a/5a666131995659ae7bff016067526d10033df8c7.jpeg)

I really wonder what is going on! 🤔

---

<div class="post-metadata">

**Author:** ![JOR1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jor1/32/17206_2.png) [@JOR1](https://community.homey.app/u/JOR1)\
**Post date:** [September 20, 2023, 8:24am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/745 "2023-09-20T08:24:23Z")

</div>

I found ut what was happending at 04:12:21.

One of my flows detected that HA Tuya integration was not responding anymore and sent this service call to HA:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/a/9a6c56bab8930a63e31b963f6309004b494d65ba.png)

Looks like this resulted in the correct state for my garage doors in HA were read again and set correctly in Homey.

The Garage doors are not part of the Tuya integration.

---

<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:** [September 20, 2023, 3:06pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/746 "2023-09-20T15:06:15Z")

</div>

The duplicate log entries are caused by the two boolean capabilities “tile state” and “switch state”.  
I have to check which state can be hidden. Because not every entity has a on/off feature. Then the tile is the only way to log the open/close state.

It looks like the app had some communication issues. Perhaps the connection got stuck and HA queues the messages. The service call could be a trigger for resending queued messages.  
You can send a diagnostic log if thisbhappens again. And you can check it by yourself in repair view/application log. Checkbif there are disconnect/reconnect log entries.

---

<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:** [September 21, 2023, 10:35am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/747 "2023-09-21T10:35:06Z")

</div>

Hi @JOR1

I changed the insights for the tile state. It should not appear in device insights anymore. I hope all HA integrations are using the on/off feature so the insights is not missing for other users 🙂

And the tile state is changed directly now when using the device button (garage door closed). So both states should be changed in parallel. But I can’t say what happens if the door can’t open/close and if HA sends the entity state again if it’s not changed in HA. That could end up in a Homey state not in sync with HA.

**Test version 1.4.25**

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

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

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