ualex73 / slide

Slide Component for Home Assistant
Apache License 2.0
25 stars 8 forks source link

Errors when adding Slide integration #8

Closed pietervanharen closed 4 months ago

pietervanharen commented 1 year ago

Despite the fix mentioned in #4 I still get errors when adding this integration to Home Assistant:

Error during setup of component slide

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 257, in _async_setup_component
    result = await task
  File "/config/custom_components/slide/__init__.py", line 146, in async_setup
    username = config[DOMAIN][CONF_USERNAME]
KeyError: 'slide'

Unable to prepare setup for platform slide.cover: Unable to set up component.

I've made sure I installed the integration before adding the credentials to the configuration.yaml. I also made sure the Slide is set to use the Local API

sschouten commented 1 year ago

i have the same error

MightyRhapsody commented 1 year ago

Seems like the fix was not yet merged to main/master. There is 1.1b1 release though.

But unfortunately, after switching to v1.1b1 a new error occured;

2023-09-29 11:08:45.216 ERROR (MainThread) [goslideapi.goslideapi] Failed request with Local API. Received HTTPCode=200, expected HTTPCode=401
2023-09-29 11:08:45.218 ERROR (MainThread) [custom_components.slide.cover] Unable to setup Slide Local 'ip'

Don't really understand what is wrong, as my Slide is at the 'ip' shown in the error message. I do get a response when I perform a GET request to http://ip/rpc/Slide.GetInfo

{
    "slide_id": "slide_ABCDEF",
    "mac": "123ABC456DEF",
    "board_rev": 1,
    "device_name": "Slide",
    "zone_name": "",
    "curtain_type": 0,
    "calib_time": 25482,
    "pos": 0.04,
    "touch_go": true
}
LuukDomhof commented 9 months ago

@MightyRhapsody I'm running into the same issue. Have you managed to find a fix? The cloud configuration from both this integration and the official Slide integration both don't work either...

Would love to get back remote control of my curtains again :)

MightyRhapsody commented 9 months ago

@LuukDomhof unfortunately not. I'm still using the cloud API. I increased the scan_interval in my Home Assistant configuration, and that works for now.

Though I received an e-mail a couple of days ago from the Slide team;

Er is een grote update in de maak. Na deze update zal de verbinding tussen je telefoon en Slide standaard via je eigen lokale netwerk lopen.

Wat betekent dit? Ben je met je telefoon verbonden met hetzelfde WiFi-netwerk als Slide? Dan loopt de verbinding direct via het lokale netwerk.
Ben je niet thuis? dan maakt je telefoon verbinding via onze server. Ook buitenshuis kan je dus gewoon je Slide blijven bedienen.

Wat merk ik hiervan? Je zal niks merken van de update. Wel zorgt deze update ervoor Slide nog sneller reageert op je commando's als je thuis bent, én je hebt geen verbinding meer nodig met het internet om deze commando's uit te voeren.

Valt je internetverbinding uit? Met deze update kan je nog steeds de gordijnen open en sluiten via de app.