house-of-abbey / GarminHomeAssistant

Garmin application to provide a dashboard to control your Home Assistant
https://community.home-assistant.io/t/home-assistant-app-for-garmin/637348
MIT License
70 stars 12 forks source link

toggle and press not working #131

Closed Nasimovy closed 4 months ago

Nasimovy commented 4 months ago

hello, i have some problems with using the application:

the toggle does not call the service but it reflects the right state(if i turn the light on in homeassistant ) button press is also not working

the template entity that shows the temperature works

could you point me in the right direction?

my device that i`m currently testing on is the edge 830

`` { "$schema": "https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json", "title": "Home", "items": [

  {
    "entity": "light.office_ceiling_light",
    "name": "Office Lights",
    "type": "toggle"
  },
  {
    "entity": "light.storage_lights",
    "name": "test",
    "type": "toggle"
  },
  {
    "entity": "sensor.sensor_3_temperature",
    "name": "Hall Temp",
    "type": "template",
    "content": "{{ states('sensor.sensor_3_temperature') }}°C"
  },
  {
    "entity": "button.sleep_monitor_1_siren",
    "name": "alarm",
    "type": "tap",
    "tap_action": {
      "service": "button.press"
    }
  }

]

} ``

philipabbey commented 4 months ago

Please can you confirm you have read through our extensive documentation here first? https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/README.md

Then have you tried the online editor tool? https://house-of-abbey.github.io/GarminHomeAssistant/web/

button press is also not working

Lost me here, sorry. Can you provide some context? Which button and from what step in using the application?

Thank you.

Nasimovy commented 4 months ago

sorry that i made such a bad report

api and json is reachable by the online editor tool+ i get no errors on the online editor.

my edge 830 shows the things i configured in the json

image

image

button press is also not working

sorry, for the miscommunication, i meant that tap is not working either

if i press the ''test'' toggle option on the app on the edge 830 the light in homeassistant does not toggle. the state off the light does correspond with the light state in homeassistant though

if i press the "alarm" tap option on the app on the edge 830 the button press is not registered by homeassistant.

philipabbey commented 4 months ago

See https://community.home-assistant.io/t/home-assistant-app-for-garmin/637348/231?u=np_complete, we've had problems with that device before. I'm wondering if its a device issue?

Nasimovy commented 4 months ago

okay i tested by pressing the toggle repeatedly the following happened:

edit: the app does not crash crash i think

Nasimovy commented 4 months ago

See https://community.home-assistant.io/t/home-assistant-app-for-garmin/637348/231?u=np_complete, we've had problems with that device before. I'm wondering if its a device issue?

can i do some further testing or help to solve this?

philipabbey commented 4 months ago

i got this screen what i can't exit or close

Ah, you can choose that screen by pressing the back button multiple times in quick succession really quickly, so the second press is registered before the blue screen reappears.

This is the problem we had with edge devices in simulation. See known issues for a similar but different device at https://github.com/house-of-abbey/GarminHomeAssistant/?tab=readme-ov-file#known-issues point 6.

Only our last report on HA forums was that your device was working. All was working for this device at an earlier point in development, hence we supported it. The Edge 830 device is now failing in simulation too. The problem is now, no matter what we do, we get the error about too many API calls in quick succession. When I trace execution I cannot find a cause (its all asynchronous). It seems a single or first few API calls causes the issue. Everything works perfectly in non-Edge devices, so it is unlikely we'll code around it for this device. We'll end up removing Edge devices from support in afraid.

Nasimovy commented 4 months ago

understandable, thanks for the help/assistance

i have an garmin instinct 2 now with some weird display artifacting should i open an other issue?

philipabbey commented 4 months ago

Yes please