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
101 stars 14 forks source link

I would like to ask about the three problems that have occurred. #40

Closed jjy9331 closed 7 months ago

jjy9331 commented 10 months ago
{
  "$schema": "https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json",
  "title": "gm_ha",
  "items": [
    {
      "entity": "scene.A/C_off",
      "name": "A/C_off",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.A/C_on",
      "name": "A/C_on",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.Air_clean_off",
      "name": "Air_clean_off",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.Air_clean_on",
      "name": "Air_clean_on",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.ct_light_off",
      "name": "ct_light_off",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.ct_light_on",
      "name": "ct_light_on",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.curtain_off",
      "name": "curtain_off",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.curtain_on",
      "name": "curtain_on",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.Light_lang",
      "name": "Light_lang",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.Light_math_science",
      "name": "Light_math_science",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.Light_Night_mood",
      "name": "Light_Night_mood",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.Light_off",
      "name": "Light_off",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.veranda_off",
      "name": "veranda_off",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.veranda_on",
      "name": "veranda_on",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
  ]
}
jjy9331 commented 10 months ago

Currently, I'm using Garmin Enduro 2 iPhone is SE_lte.ver HA uses Raspberry Pie 3b+ as a server Port forwarding WAN to duckdns It is composed of https and is in use.

I would like to ask about the three problems that have occurred.

Question 1

These three things work well (scene.Air_clean_off, scene.Air_clean_on, and scene.Light_off)

However, the rest will be printed as "executed" but will not work.

What is the reason? (scene.Light_math_science, scene.Light_Night_mood, etc)

In the readme, the scene was said to be tapable, but no.

I'm comparing and analyzing scenes.yaml and json I can't think of a suitable solution.

Question 2

If the entity and name are spaces or commas and slash( , / ), an error occurs.

Question 3

In the first half-second, api, the menu is displayed as "unconfigured" In the next 0.5 seconds, api, the menu is output as "available". And when you click on it, it doesn't run and it goes back to the menu. And if you click again, the menu is configured and works well. Is the environment still unstable? Or am I json or Is url in api a problem? Is json for menu configuration a problem?

jjy9331 commented 10 months ago
- id: '1700051284451'
  name: Light_math_science
  entities:
    light.caegsang_seumateu_jeongu:
      min_color_temp_kelvin: 2500
      max_color_temp_kelvin: 6500
      min_mireds: 153
      max_mireds: 400
      supported_color_modes:
      - brightness
      - color_temp
      - hs
      - onoff
      color_mode: color_temp
      brightness: 255
      color_temp_kelvin: 6535
      color_temp: 153
      hs_color:
      - 54.768
      - 1.6
      rgb_color:
      - 255
      - 254
      - 250
      xy_color:
      - 0.326
      - 0.333
      friendly_name: '책상 스마트 전구 '
      supported_features: 0
      state: 'on'
    light.yeelink_strip6_0fa8_light:
      supported_color_modes:
      - brightness
      - hs
      - onoff
      color_mode: hs
      brightness: 255
      hs_color:
      - 0
      - 0
      rgb_color:
      - 255
      - 255
      - 255
      xy_color:
      - 0.323
      - 0.329
      model: yeelink.light.strip6
      lan_ip: 172.30.1.72
      mac_address: 58:B6:23:3B:0F:A8
      entity_class: MiotLightEntity
      home_room: 2853687717 서재
      miot_type: urn:miot-spec-v2:device:light:0000A001:yeelink-strip6:1
      light.on: true
      light.brightness: 100
      light.color: 16777215
      state_updater: lan
      friendly_name: Yeelight LED Lightstrip 1S Light
      supported_features: 32
      state: 'on'
    light.yeelink_ceil26_abb0_light:
      min_color_temp_kelvin: 2702
      max_color_temp_kelvin: 6493
      min_mireds: 154
      max_mireds: 370
      effect_list:
      - Day
      - Night
      supported_color_modes:
      - brightness
      - color_temp
      - onoff
      color_mode: color_temp
      brightness: 255
      color_temp_kelvin: 6493
      color_temp: 154
      hs_color:
      - 48.348
      - 2.014
      rgb_color:
      - 255
      - 254
      - 249
      xy_color:
      - 0.327
      - 0.334
      effect: Day
      model: yeelink.light.ceil26
      lan_ip: 172.30.1.1
      mac_address: 64:90:C1:A3:AB:B0
      entity_class: MiotLightEntity
      home_room: 2853687717 서재
      miot_type: urn:miot-spec-v2:device:light:0000A001:yeelink-ceil26:1
      light.on: true
      light.mode: 0
      light.brightness: 100
      light.color_temperature: 6494
      light.flow: 0
      state_updater: lan
      friendly_name: 천정등 Light
      supported_features: 36
      state: 'on'
    light.seumateu_raiteu_seuteurib:
      min_color_temp_kelvin: 2500
      max_color_temp_kelvin: 6500
      min_mireds: 153
      max_mireds: 400
      effect_list:
      - bubblingcauldron
      - aurora
      - candycane
      - christmas
      - flicker
      - christmaslight
      - hanukkah
      - hauntedmansion
      - icicle
      - lightning
      - ocean
      - rainbow
      - raindrop
      - spring
      - sunrise
      - sunset
      - valentines
      supported_color_modes:
      - brightness
      - color_temp
      - hs
      - onoff
      color_mode: color_temp
      brightness: 255
      color_temp_kelvin: 6535
      color_temp: 153
      hs_color:
      - 54.768
      - 1.6
      rgb_color:
      - 255
      - 254
      - 250
      xy_color:
      - 0.326
      - 0.333
      effect:
      friendly_name: 스마트 라이트 스트립
      supported_features: 4
      state: 'on'
    light.ct_light:
      effect_list:
      - Night
      - Read
      - Working
      - Leisure
      - Soft
      - Colorful
      - Dazzling
      - Music
      supported_color_modes:
      - hs
      color_mode:
      brightness:
      hs_color:
      rgb_color:
      xy_color:
      effect:
      raw_state: false
      friendly_name: ct_light
      supported_features: 21
      state: 'off'
  icon: mdi:lightbulb
  metadata: {}
- id: '1700051332339'
  name: Light_off
  entities:
    light.caegsang_seumateu_jeongu:
      min_color_temp_kelvin: 2500
      max_color_temp_kelvin: 6500
      min_mireds: 153
      max_mireds: 400
      supported_color_modes:
      - brightness
      - color_temp
      - hs
      - onoff
      color_mode:
      brightness:
      color_temp_kelvin:
      color_temp:
      hs_color:
      rgb_color:
      xy_color:
      friendly_name: '책상 스마트 전구 '
      supported_features: 0
      state: 'off'
    light.seumateu_raiteu_seuteurib:
      min_color_temp_kelvin: 2500
      max_color_temp_kelvin: 6500
      min_mireds: 153
      max_mireds: 400
      effect_list:
      - bubblingcauldron
      - aurora
      - candycane
      - christmas
      - flicker
      - christmaslight
      - hanukkah
      - hauntedmansion
      - icicle
      - lightning
      - ocean
      - rainbow
      - raindrop
      - spring
      - sunrise
      - sunset
      - valentines
      supported_color_modes:
      - brightness
      - color_temp
      - hs
      - onoff
      color_mode:
      brightness:
      color_temp_kelvin:
      color_temp:
      hs_color:
      rgb_color:
      xy_color:
      effect:
      friendly_name: 스마트 라이트 스트립
      supported_features: 4
      state: 'off'
    light.yeelink_strip6_0fa8_light:
      supported_color_modes:
      - brightness
      - hs
      - onoff
      color_mode:
      brightness:
      hs_color:
      rgb_color:
      xy_color:
      model: yeelink.light.strip6
      lan_ip: 192.168.0.104
      mac_address: 58:B6:23:3B:0F:A8
      entity_class: MiotLightEntity
      home_room: 2853687717 서재
      miot_type: urn:miot-spec-v2:device:light:0000A001:yeelink-strip6:1
      light.on: false
      light.brightness: 100
      light.color: 16777215
      state_updater: lan
      friendly_name: Yeelight LED Lightstrip 1S Light
      supported_features: 32
      state: 'off'
    light.curtain_strip_light:
      effect_list:
      - Night
      - Read
      - Working
      - Leisure
      - Soft
      - Colorful
      - Dazzling
      - Music
      - Music
      supported_color_modes:
      - hs
      color_mode:
      brightness:
      hs_color:
      rgb_color:
      xy_color:
      effect:
      raw_state: false
      friendly_name: curtain strip light
      supported_features: 21
      state: 'off'
    light.yeelink_ceil26_abb0_light:
      min_color_temp_kelvin: 2702
      max_color_temp_kelvin: 6493
      min_mireds: 154
      max_mireds: 370
      effect_list:
      - Day
      - Night
      supported_color_modes:
      - brightness
      - color_temp
      - onoff
      color_mode:
      brightness:
      color_temp_kelvin:
      color_temp:
      hs_color:
      rgb_color:
      xy_color:
      effect:
      model: yeelink.light.ceil26
      lan_ip: 192.168.0.105
      mac_address: 64:90:C1:A3:AB:B0
      entity_class: MiotLightEntity
      home_room: 2853687717 서재
      miot_type: urn:miot-spec-v2:device:light:0000A001:yeelink-ceil26:1
      light.on: false
      light.mode: 0
      light.brightness: 100
      light.color_temperature: 6494
      light.flow: 0
      state_updater: lan
      friendly_name: 천정등 Light
      supported_features: 36
      state: 'off'
  icon: mdi:lightbulb-off
  metadata: {}
- id: '1700051627723'
  name: Light_Night_mood
  entities:
    light.caegsang_seumateu_jeongu:
      min_color_temp_kelvin: 2500
      max_color_temp_kelvin: 6500
      min_mireds: 153
      max_mireds: 400
      supported_color_modes:
      - brightness
      - color_temp
      - hs
      - onoff
      color_mode: hs
      brightness: 43
      color_temp_kelvin:
      color_temp:
      hs_color:
      - 5
      - 73
      rgb_color:
      - 255
      - 84
      - 68
      xy_color:
      - 0.627
      - 0.315
      friendly_name: '책상 스마트 전구 '
      supported_features: 0
      state: 'on'
    light.yeelink_strip6_0fa8_light:
      supported_color_modes:
      - brightness
      - hs
      - onoff
      color_mode: hs
      brightness: 92
      hs_color:
      - 9.02
      - 60
      rgb_color:
      - 255
      - 125
      - 102
      xy_color:
      - 0.556
      - 0.331
      model: yeelink.light.strip6
      lan_ip: 172.30.1.72
      mac_address: 58:B6:23:3B:0F:A8
      entity_class: MiotLightEntity
      home_room: 2853687717 서재
      miot_type: urn:miot-spec-v2:device:light:0000A001:yeelink-strip6:1
      light.on: true
      light.brightness: 36
      light.color: 16743782
      state_updater: lan
      friendly_name: Yeelight LED Lightstrip 1S Light
      supported_features: 32
      state: 'on'
    light.yeelink_ceil26_abb0_light:
      min_color_temp_kelvin: 2702
      max_color_temp_kelvin: 6493
      min_mireds: 154
      max_mireds: 370
      effect_list:
      - Day
      - Night
      supported_color_modes:
      - brightness
      - color_temp
      - onoff
      color_mode:
      brightness:
      color_temp_kelvin:
      color_temp:
      hs_color:
      rgb_color:
      xy_color:
      effect:
      model: yeelink.light.ceil26
      lan_ip: 172.30.1.1
      mac_address: 64:90:C1:A3:AB:B0
      entity_class: MiotLightEntity
      home_room: 2853687717 서재
      miot_type: urn:miot-spec-v2:device:light:0000A001:yeelink-ceil26:1
      light.on: false
      light.mode: 0
      light.brightness: 100
      light.color_temperature: 5000
      light.flow: 0
      state_updater: lan
      friendly_name: 천정등 Light
      supported_features: 36
      state: 'off'
    light.ct_light:
      effect_list:
      - Night
      - Read
      - Working
      - Leisure
      - Soft
      - Colorful
      - Dazzling
      - Music
      supported_color_modes:
      - hs
      color_mode: hs
      brightness: 64
      hs_color:
      - 329
      - 77.3
      rgb_color:
      - 255
      - 57
      - 159
      xy_color:
      - 0.519
      - 0.234
      effect:
      raw_state: true
      friendly_name: ct_light
      supported_features: 21
      state: 'on'
    light.seumateu_raiteu_seuteurib:
      min_color_temp_kelvin: 2500
      max_color_temp_kelvin: 6500
      min_mireds: 153
      max_mireds: 400
      effect_list:
      - bubblingcauldron
      - aurora
      - candycane
      - christmas
      - flicker
      - christmaslight
      - hanukkah
      - hauntedmansion
      - icicle
      - lightning
      - ocean
      - rainbow
      - raindrop
      - spring
      - sunrise
      - sunset
      - valentines
      supported_color_modes:
      - brightness
      - color_temp
      - hs
      - onoff
      friendly_name: 스마트 라이트 스트립
      supported_features: 4
      color_mode: hs
      brightness: 87
      hs_color:
      - 24
      - 62
      rgb_color:
      - 255
      - 160
      - 96
      xy_color:
      - 0.526
      - 0.374
      state: 'on'
  icon: mdi:power-sleep
  metadata: {}
- id: '1700051942056'
  name: Light_lang
  entities:
    light.caegsang_seumateu_jeongu:
      min_color_temp_kelvin: 2500
      max_color_temp_kelvin: 6500
      min_mireds: 153
      max_mireds: 400
      supported_color_modes:
      - brightness
      - color_temp
      - hs
      - onoff
      friendly_name: '책상 스마트 전구 '
      supported_features: 0
      color_mode: color_temp
      brightness: 255
      hs_color:
      - 27.028
      - 18.905
      rgb_color:
      - 255
      - 228
      - 206
      xy_color:
      - 0.371
      - 0.349
      color_temp_kelvin: 5025
      color_temp: 199
      state: 'on'
    light.seumateu_raiteu_seuteurib:
      min_color_temp_kelvin: 2500
      max_color_temp_kelvin: 6500
      min_mireds: 153
      max_mireds: 400
      effect_list:
      - bubblingcauldron
      - aurora
      - candycane
      - christmas
      - flicker
      - christmaslight
      - hanukkah
      - hauntedmansion
      - icicle
      - lightning
      - ocean
      - rainbow
      - raindrop
      - spring
      - sunrise
      - sunset
      - valentines
      supported_color_modes:
      - brightness
      - color_temp
      - hs
      - onoff
      friendly_name: 스마트 라이트 스트립
      supported_features: 4
      color_mode: color_temp
      brightness: 255
      hs_color:
      - 27.001
      - 19.243
      rgb_color:
      - 255
      - 228
      - 205
      xy_color:
      - 0.372
      - 0.35
      color_temp_kelvin: 5000
      color_temp: 200
      state: 'on'
    light.yeelink_strip6_0fa8_light:
      supported_color_modes:
      - brightness
      - hs
      - onoff
      color_mode: hs
      brightness: 255
      hs_color:
      - 24.706
      - 20
      rgb_color:
      - 255
      - 225
      - 204
      xy_color:
      - 0.375
      - 0.348
      model: yeelink.light.strip6
      lan_ip: 172.30.1.72
      mac_address: 58:B6:23:3B:0F:A8
      entity_class: MiotLightEntity
      home_room: 2853687717 서재
      miot_type: urn:miot-spec-v2:device:light:0000A001:yeelink-strip6:1
      light.on: true
      light.brightness: 100
      light.color: 16769484
      state_updater: lan
      friendly_name: Yeelight LED Lightstrip 1S Light
      supported_features: 32
      state: 'on'
    light.yeelink_ceil26_abb0_light:
      min_color_temp_kelvin: 2702
      max_color_temp_kelvin: 6493
      min_mireds: 154
      max_mireds: 370
      effect_list:
      - Day
      - Night
      supported_color_modes:
      - brightness
      - color_temp
      - onoff
      friendly_name: 천정등 Light
      supported_features: 36
      color_mode: color_temp
      brightness: 255
      color_temp_kelvin: 5000
      color_temp: 200
      hs_color:
      - 27.001
      - 19.243
      rgb_color:
      - 255
      - 228
      - 205
      xy_color:
      - 0.372
      - 0.35
      effect: Day
      model: yeelink.light.ceil26
      lan_ip: 172.30.1.1
      mac_address: 64:90:C1:A3:AB:B0
      entity_class: MiotLightEntity
      home_room: 2853687717 서재
      miot_type: urn:miot-spec-v2:device:light:0000A001:yeelink-ceil26:1
      light.on: true
      light.mode: 0
      light.brightness: 100
      light.color_temperature: 5000
      light.flow: 0
      state_updater: lan
      state: 'on'
    light.ct_light:
      effect_list:
      - Night
      - Read
      - Working
      - Leisure
      - Soft
      - Colorful
      - Dazzling
      - Music
      supported_color_modes:
      - hs
      color_mode:
      brightness:
      hs_color:
      rgb_color:
      xy_color:
      effect:
      raw_state: false
      friendly_name: ct_light
      supported_features: 21
      state: 'off'
  icon: mdi:lightbulb
  metadata: {}
- id: '1700052153032'
  name: Air_clean_on
  entities:
    fan.gonggi_ceongjeonggi:
      preset_modes:
      - Auto
      - Silent
      - Favorite
      - Idle
      preset_mode: Auto
      extra_features: 0
      turbo_mode_supported: false
      button_pressed:
      sleep_time: 75641
      sleep_mode_learn_count: 30
      use_time: 20411400
      sleep_mode: poweroff
      friendly_name: 공기 청정기
      supported_features: 8
      state: 'on'
  icon: mdi:fan
  metadata: {}
- id: '1700052201217'
  name: Air_clean_off
  entities:
    fan.gonggi_ceongjeonggi:
      preset_modes:
      - Auto
      - Silent
      - Favorite
      - Idle
      preset_mode:
      extra_features: 0
      turbo_mode_supported: false
      button_pressed:
      sleep_time: 75641
      sleep_mode_learn_count: 30
      use_time: 20411100
      sleep_mode: poweroff
      friendly_name: 공기 청정기
      supported_features: 8
      state: 'off'
  icon: mdi:fan-off
  metadata: {}
- id: '1700058560282'
  name: A/C_on
  entities:
    climate.eeokeon:
      hvac_modes:
      - 'off'
      - dry
      - cool
      min_temp: 16
      max_temp: 30
      target_temp_step: 1
      fan_modes:
      - LOW
      - MID
      - HIGH
      current_temperature: 22
      temperature: 28
      current_humidity: 38
      fan_mode:
      friendly_name: 에어컨
      supported_features: 9
      state: cool
  icon: mdi:air-conditioner
  metadata: {}
- id: '1700058630186'
  name: A/C_off
  entities:
    climate.eeokeon:
      hvac_modes:
      - 'off'
      - dry
      - cool
      min_temp: 16
      max_temp: 30
      target_temp_step: 1
      fan_modes:
      - LOW
      - MID
      - HIGH
      current_temperature: 22
      temperature: 28
      current_humidity: 56
      fan_mode:
      friendly_name: 에어컨
      supported_features: 9
      state: 'off'
  icon: mdi:air-conditioner
  metadata: {}
- id: '1700899891674'
  name: veranda_off
  entities:
    switch.0x54ef44100054b30f_top:
      friendly_name: aq_sw2 Top
      state: 'on'
    switch.0x54ef44100054b30f_bottom:
      friendly_name: aq_sw2 Bottom
      state: 'off'
    select.0x54ef44100054b30f_mode_switch:
      options:
      - anti_flicker_mode
      - quick_mode
      friendly_name: aq_sw2 Mode switch
      state: unknown
  icon: mdi:ceiling-light-outline
  metadata: {}
- id: '1700899918359'
  name: veranda_on
  entities:
    switch.0x54ef44100054b30f_top:
      friendly_name: aq_sw2 Top
      state: 'on'
    switch.0x54ef44100054b30f_bottom:
      friendly_name: aq_sw2 Bottom
      state: 'off'
    select.0x54ef44100054b30f_mode_switch:
      options:
      - anti_flicker_mode
      - quick_mode
      friendly_name: aq_sw2 Mode switch
      state: unknown
  icon: mdi:ceiling-light
  metadata: {}
- id: '1701664817219'
  name: curtain_on
  entities:
    cover.curtain_motor:
      current_position: 100
      friendly_name: curtain_motor
      supported_features: 15
      state: open
  icon: mdi:curtains
  metadata: {}
- id: '1701664849550'
  name: curtain_off
  entities:
    cover.curtain_motor:
      current_position: 2
      friendly_name: curtain_motor
      supported_features: 15
      state: open
  icon: mdi:curtains-closed
  metadata: {}
- id: '1701852160315'
  name: ct_light_on
  entities:
    light.ct_light:
      effect_list:
      - Night
      - Read
      - Working
      - Leisure
      - Soft
      - Colorful
      - Dazzling
      - Music
      supported_color_modes:
      - hs
      color_mode: hs
      brightness: 69
      hs_color:
      - 320
      - 68.8
      rgb_color:
      - 255
      - 79
      - 196
      xy_color:
      - 0.456
      - 0.216
      effect:
      raw_state: true
      friendly_name: ct_light
      supported_features: 21
      state: 'on'
  icon: mdi:led-strip-variant
  metadata: {}
- id: '1701852189331'
  name: ct_light_off
  entities:
    light.ct_light:
      effect_list:
      - Night
      - Read
      - Working
      - Leisure
      - Soft
      - Colorful
      - Dazzling
      - Music
      supported_color_modes:
      - hs
      color_mode:
      brightness:
      hs_color:
      rgb_color:
      xy_color:
      effect:
      raw_state: false
      friendly_name: ct_light
      supported_features: 21
      state: 'off'
  icon: mdi:led-strip-variant-off
  metadata: {}
jjy9331 commented 10 months ago

This code is "scenes.yaml".

If the solution is complete to some extent In Korea's Home Assistance community I would like to introduce your application.

I look forward to hearing from you.

Thank you.

philipabbey commented 10 months ago

Hello, apologies for not seeing this sooner. Github does not seem to be sending me notifications about new issues. Thanks for posting on community.home-assistant.io as I saw that.

Before we go further, I'm away and limited in the support I can presently provide. I do however note that your JSON in the first post fails schema checking. To see for yourself, try pasting the JSON into https://vscode.dev/, You will see there is an extra comma three lines up from the end. Please can you amend that and reply to this comment with an update on the pass/fail status?

Thanks.

JosephAbbey commented 10 months ago

Hello,

For no. 2 it is due to needing URL encoding, we are looking into encoding it automatically but for now you can fix this by URL encoding the entity name manually. For no. 3 this may be due to the Garmin Connect app needing to be open on IOS for web requests, this is a limitation of ConnectIQ and IOS. For no. 1 I currently have no hypothesis (sorry).

Let me know if this helps 😃.

philipabbey commented 10 months ago

We think we may be able to fix no. 2 with some judicious use of Communications.encodeURL(), by encoding the entity name. We're unable to do this until next week, but if you can encode it manually in your JSON as requested above and then let us know if it works we'll have confidence we have a solution for the next release.

jjy9331 commented 10 months ago

@philipabbey


{
  "$schema": "https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json",
  "title": "gm_ha",
  "items": [
    {
      "entity": "scene.AC_off",
      "name": "AC_off",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.AC_on",
      "name": "AC_on",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.Air_clean_off",
      "name": "Air_clean_off",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.Air_clean_on",
      "name": "Air_clean_on",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.ct_light_off",
      "name": "ct_light_off",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.ct_light_on",
      "name": "ct_light_on",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.curtain_off",
      "name": "curtain_off",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.curtain_on",
      "name": "curtain_on",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.Light_lang",
      "name": "Light_lang",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.Light_math_science",
      "name": "Light_math_science",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.Light_Night_mood",
      "name": "Light_Night_mood",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.Light_off",
      "name": "Light_off",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.veranda_off",
      "name": "veranda_off",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    },
    {
      "entity": "scene.veranda_on",
      "name": "veranda_on",
      "type": "tap",
      "tap_action": {
        "service": "scene.turn_on"
      }
    }
  ]
}

As you requested, I deleted the 3rd comma below and fixed the A/C to AC, so there is no error. However, in addition to the three previously executed scenes, the rest of the scenes are output from the clock as "executed," but are not executed.

jjy9331 commented 10 months ago

@JosephAbbey

Is it an opinion that you don't know the reason or problem of symptoms for question 1?

philipabbey commented 10 months ago

We're away from home presently using mobile phones for IT. Yes we're guessing presently because our setup works, and we don't have access to yours to work the problem. We'll be able to investigate more in a few days.

Patrick44fr commented 10 months ago

Hello, for question 1 it is not simply a problem of uppercase, lowercase. HA only supports lower case in scene names

philipabbey commented 10 months ago

@Patrick44fr> HA only supports lower case in scene names

If this proves to be the solution we really need some feedback and confirmation @jjy9331. It means we need to address this problem in our documentation and amend the JSON schema to fail on uppercase.

Edit: I'm not finding any Home Assistant documentation limit scene names to lowercase, but there does seem to be plenty of self imposed "convention".

philipabbey commented 10 months ago

@jjy9331> However, the rest will be printed as "executed" but will not work.

Going through the code, the "executed" text is displayed as a 'toast' here: https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/source/HomeAssistantService.mc#L85. (Please overlook the failure to internationalise that string for now... noted at #42). Now this is significant because it means the Home Assistant API call was successful, That code is executed in the callback function on receipt of the API response, with HTTP response code 200. That means your scene name must have been matched surely? So this means that as far as the Garmin Home Assistant app is concerned, the call really was successful.

Apologies for asking this but... please can you confirm the same scene names (or entity IDs) work via another means, e.g. the Home Assistant app on your phone or via the web interface.

philipabbey commented 10 months ago

@jjy9331> iPhone is SE_lte.ver

@JosephAbbey> For no. 3 this may be due to the Garmin Connect app needing to be open on IOS for web requests, this is a limitation of ConnectIQ and IOS.

Here's a link to the post about the known issue with iPhones: https://community.home-assistant.io/t/home-assistant-app-for-garmin/637348/61. This connection issue is outside of our control and we simply cannot offer a solution to Apple's technical issues.

philipabbey commented 10 months ago

@jjy9331 have you had a chance to review the above yet?

jjy9331 commented 9 months ago

@Patrick44fr @philipabbey

Yes, I changed the name to lowercase When you first enter the application The bouncing phenomenon has disappeared.

Question No.3 has been solved.

I changed the name of the scene to uppercase and lowercase letters, The symptoms for question number 1 are the same. Do you know how to check the log for the api call?

jjy9331 commented 9 months ago

@philipabbey

I configured HA configuration to https through duckdns and Communication has been configured so that it can be easily connected to the outside through port forwarding.

Therefore, I can run the scene by accessing the MacBook Pro 2015 in the form of dns:fort.

I can control the scene by connecting to the iPhone se_lte and based on the address connected to the iPhone.

Apple Watch 3 is also controlled through the HA app.

It also includes a scene that currently works in Question 1 of the Garmin app.

jjy9331 commented 9 months ago

@philipabbey @JosephAbbey

The symptoms for question 1 appear the same in other apps, HassControl apps.

Is it Garmin's own problem?

If I can click on the scene and check the log to see if the results are good or wrong, it will help me a lot to fix the problem.

jjy9331 commented 9 months ago

Error: Array Out Of Bounds Error Details: 'Failed invoking ' Time: 2024-01-05T13:10:59Z Part-Number: 006-B4341-00 Firmware-Version: '15.77' Language-Code: kor ConnectIQ-Version: 4.2.4 Store-Id: 61c91d28-ec5e-438d-9f83-39e9f45b199d Store-Version: 12 Filename: E1225038 Appname: HomeAssistant Stack:

KakaoTalk_Photo_2024-01-12-22-02-37

KakaoTalk_Photo_2024-01-12-22-02-23

jjy9331 commented 9 months ago

I talked to the developer about the app log for ConnectIQ other apps.

From WindowsOS>Enduro2>Garmin>Apps Copy the name of the app to create a .txt file WindowsOS>Enduro2>Garmin>Apps>LOGS If you save it, the log will accumulate.

However, the logarithms did not build up. Is there a problem?

When I rebooted, the log did not accumulate.

But through CIQ_LOG.BAK I found a meaningful log.

In response to this, there is a problem Can it be a solution?

Just in case, E1225038.txt I checked it by putting it in the LOGS folder Logs have not piled up.

philipabbey commented 9 months ago

Error: Array Out Of Bounds Error

I understand there's an error, but that about all, there's not a lot to go on here.

I found a meaningful log.

Is this something you intended to share with us for debug?

jjy9331 commented 9 months ago

@philipabbey

Yes, that's right. I shared the log that I have now.

I'll check more I will try to provide you with additional logs.

philipabbey commented 7 months ago

@jjy9331 Is there any further help you are seeking from us at present? If we don't hear from you I will close this issue in 48 hours.

philipabbey commented 7 months ago

Closed as per previous comment.