sh00t2kill / linktap_local_http_component

A Custom Component that uses the linktap local HTTP API
26 stars 3 forks source link

HA - Failed to Setup #5

Closed danbayliss closed 11 months ago

danbayliss commented 11 months ago

I've just received my D1 and I'm trying to get this working but it doesn't seem to want to connect. I've tried entering http://192.168.0.71 and just 192.168.0.71 but it's still the same. Attached are some screenshots and logs, can you help?

Gateway Is the Server URL meant to be the URL of my gateway or HA? At the moment it's my gateway h1TMpAR

HA Error V9FpV3j

Log


2023-09-09 17:56:09.262 DEBUG (MainThread) [custom_components.linktap.config_flow] Starting async_step_user of Linktap Local Integration
2023-09-09 17:56:09.283 DEBUG (MainThread) [custom_components.linktap] Found GW_ID: E597DB1D004B1200
2023-09-09 17:56:09.303 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Linktap Local Integration for linktap
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/linktap/__init__.py", line 50, in async_setup_entry
    "devs": gateway_config["end_dev"],
            ~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'end_dev'```
sh00t2kill commented 11 months ago

You enter just the IP, not http:// etc.

It looks like your gateway is out of date. Contact support and ask them to update it.

Note that the required version is in the readme

danbayliss commented 11 months ago

Thanks. I have emailed support. I don't see the required version in the readme?

sh00t2kill commented 11 months ago

@danbayliss apologies I got confused between the repo and the forum thread.

If you have a version of x060820” (x is S or G, indicating that the firmware belongs to GW-01 or GW-02, respectively) or higher, it should work.

danbayliss commented 11 months ago

My gateway has been updated to G060835 and the integration is now working, thanks!

sh00t2kill commented 11 months ago

Awesome. I'll add some error handling with a specific error to catch that.