ualex73 / slide

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

Unable to setup Slide 'LOCAL IP' #19

Open Woutoud opened 3 weeks ago

Woutoud commented 3 weeks ago

I had to factory reset my slide, and add it as a new entity. But for some reason it doesn't want to integrate now. Even though nothing really changed. Also, it is working fine with the local API through the official app.

Log details (ERROR)

This error originated from a custom integration.

Logger: custom_components.slide.cover
Source: custom_components/slide/cover.py:132
integration: Slide
First occurred: August 27, 2024 at 20:35:09 (1 occurrences)
Last logged: August 27, 2024 at 20:35:09

Unable to setup Slide 'LOCAL IP'
This error originated from a custom integration.

Logger: goslideapi.goslideapi
Source: custom_components/slide/cover.py:111
integration: Slide
First occurred: August 27, 2024 at 20:35:09 (1 occurrences)
Last logged: August 27, 2024 at 20:35:09

Failed request Local API v2. HTTPCode=401

The code I'm running is the following:

#Slide
cover:
  - platform: slide
    host: LOCAL IP
    password: SLIDE PASSWORD
    api_version: 2

Does someone have a pointer for me to solve this issue?

werdlerk commented 2 weeks ago

You need to replace LOCAL IP in your configuration code with the actual IP address of your Slide device.

See for more information the README file:

To use this component in your installation With the Local API, add the following to your `configuration.yaml` file for each Slide: ```yaml # Example yaml entry cover: - platform: slide host: 192.168.1.1 password: 12345678 api_version: 2 ``` Configuration variables: - **host** (*Required*): The IP address or hostname of your local Slide - **password** (*Required*): The device code of your Slide (inside of the Slide or in the box, length is 8 characters). NOTE: With *api_version: 2* you can fill in anything here, it is not used by the local API - **invert_position** (*Optional*): If the position should be inverted e.g. 0% -> 100% and 100% -> 0% (default = False) - **api_version** (*Optional*): The local API version, this is 1 or 2. Firmware version 0.13.8 and 2.0 are using API version 2, all other are using API version 1. (default = 2) NOTE: You cannot determine the firmware yourself. If API version 2 does not work, try API version 1. In the following reddit there is a spreadsheet with all known slides and their firmeware version: https://www.reddit.com/r/slidecurtains/comments/1cwc5u2/which_firmware_version_does_your_slide_have/