jerrod-lankford / HAGearS3

Home Assistant user interface for the Samsung Gear S3/S2 (tizen os)
138 stars 44 forks source link

Not showing lights #15

Open klaasnicolaas opened 4 years ago

klaasnicolaas commented 4 years ago

My galaxy watch active2 does not show the lights in the house.

If you need more information, please let me know.

miraixyz commented 4 years ago

I have the same issue.... Tried deleting app and reinstalling...same issue. Scripts, groups, etc. seem to be okay...only lights and switches don't show

PiotrMachowski commented 4 years ago

I also have this problem, I suspect that it is because of entities with unavailable state

klaasnicolaas commented 4 years ago

@PiotrMachowski Why do you think it is due to lights that have that status?

miraixyz commented 4 years ago

I have had varying degrees of success by disabling and deleting unavailable entities. I've got switches, but no lights....

klaasnicolaas commented 4 years ago

I can confirm that if you ensure that you don’t have any light entities with the status “unavailable”, you can use the light part in the watch app.

But I will keep this issue open for the time being, for whom it doesn't work.

jerrod-lankford commented 4 years ago

That seems like its working as designed. Why would you want lights and things that are marked unavailable to show up?

miraixyz commented 4 years ago

That seems like its working as designed. Why would you want lights and things that are marked unavailable to show up?

You're not getting it. Its not that the unavailable devices aren't showing up. That's not the issue. The issue is that NO devices are showing up because of the unavailable devices. In my case, I have deleted the unavailable devices in HA, but the lights are still not showing up. There may be other issues.

jerrod-lankford commented 4 years ago

I see. Thats strange, I could try to walk you through debugging but it requires building up a request to home assistant. The code to render the lists is very simple. It hits /api/states and that returns an array of json objects. I then check the entity_id on each object to see if it starts with "light." for example and put it on the page. So if the entities show up in that list and start with "light." then they show up on the lights page

JohanPotgieter commented 4 years ago

I have the same issue on Active 2. I have no light showing at all. The other options work. How can we resolve this?

PiotrMachowski commented 4 years ago

I have finally removed all lights with unavailable state and it's working

am1ter commented 4 years ago

I have the same issue. Lists "Lights" and "Switches" do not open. When I click on their icon in the app nothing happens. Meanwhile "Scripts", "Covers", "Groups" and "Settings" work well. I have some lights and switches that have status "unavailable", because they are currently offline, but I use them frequently and can't delete. My Home Assistant version is 0.109.6 @Jerrkawz, I would really appreciate if you will find some time to help us with this bug! Thank you!

jerrod-lankford commented 4 years ago

@am1ter I've never been able to reproduce this issue. I tried pulling out my z-stick so that all my lights are marked unavailable, but the app still works as expected. If someone can provide me with a way to reproduce id be happy to fix it

PiotrMachowski commented 4 years ago

@Jerrkawz you can try installing browser mod, its lights were breaking my app

samhed commented 4 years ago

I had the same issue, everything aside from the "lights" menu worked - and disabling the "unavailable" lights in HA entity configuration fixed the problem.

Is there any specific way I can find helpful information to assist you in reproducing the bug?

samhed commented 4 years ago

I have now upgraded to a Galaxy Watch 3 and am now having trouble with all menus in the app. No menu even opens up (aside from the settings).

I have removed all unavailable entities from HA - it didn't help. Is there any way I can troubleshoot this further?

samhed commented 4 years ago

It seems my issue is with the authentication after all.

I was using the external HA URL (nabu casa) with the "/lovelace/0" part at the end. I did not get any authentication errors. But when I try changing the token and it doesn't have any effect. The settings menu closes and I see a brief "loading" circle and it gives the impression the authentication succeeded. But none of the menus (lights, switches, scripts, covers, or groups) open.

When I remove the "/lovelace/0" part of the HA URL, I get:

Status code: 401
Messsage: Unauthorized

And in HA logs I see:

Logger: homeassistant.components.http.ban
Source: components/http/ban.py:75
Integration: HTTP (documentation, issues)
First occurred: 14:28:37 (1 occurrences)
Last logged: 14:28:37

Login attempt or request with invalid authentication from 127.0.0.1

I have tried with 3 different long-lived tokens, same result every time. It's getting quite tedious to re-install the Home Assistant UI app on my watch, in order to get the hassgalaxy.app website link.


Edit:

My issue was resolved with the help of @michielscj in #13

spider7611 commented 3 years ago

Have the sampe problem for a while. No lights but other menu are working. (Have browser mod, maybe this is the problem?) removed all unresponsive light entity, but not solve the problem. What can I do?

spider7611 commented 3 years ago

For me this was the problem:

browser_mod:
  devices:
    0a99add6-f0452ca2:
      name: tablet
      disable:
        - light
  disable:
    - all

In the browser mod must disable the light and after restart the lights again working good.

Protoncek commented 2 years ago

Hello folks! It's been a year now, and i wonder if anything has been done in this direction? i just found and installed this app on my watch and i have the same problem: no lights and no switches. Scripts, covers, groups are there. I can't delete my "unavailable" entities, sincer they are "occasional" ones, so they are in use when available (like plug-in wifi switch etc...). So... any other solution ?