ualex73 / slide

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

Not adding to my HA #7

Open Ties1208 opened 1 year ago

Ties1208 commented 1 year ago

Hello,

I added this intergration to my HA. But my Slide is not popping up in the devices. how is this possible?

ualex73 commented 4 months ago

Where you able to fix it?

Ties1208 commented 4 months ago

no.. is used it all the time trough google home. but now that slide is closing the doors i cant use it anymore.. if added the local code with the password and the right ip adres in my yaml. but it isnt working.

ualex73 commented 4 months ago

What type of error are you getting in the home-assistant.log? Also, which version of the slide GitHub are you running (1.0/1.1/1.2/1.3)?

Ties1208 commented 4 months ago

image this is the error im getting. im using version 1.3

ualex73 commented 4 months ago

Ok, your slides are still using api_version=1. Download v1.4 of this slide and try again.

Ties1208 commented 4 months ago

Exactly the same errors...

Ties1208 commented 4 months ago
Slide

This is what i got in my configuration file.. am i doing something wrong?

ualex73 commented 4 months ago

Change api_version: 2 to api_version: 1 and try again. Btw the password is not that interesting anymore without the cloud.

Ties1208 commented 4 months ago

Well... that work bro! thank you so much for helping! btw i tried without password but that isnt working. he needs the device code. Afbeelding van WhatsApp op 2024-05-24 om 10 24 44_a5ec889a

ualex73 commented 4 months ago

Good it works now with ap_version=1, but the password error is strange... I will try to reproduce it.

wesaidso commented 4 months ago

I read that only from ap_version=2 the password is no longer required. Just ordered a few slides and playing around with it. Thanks for this custom plugin, integrates easily in HA!

sandervandegeijn commented 3 months ago

Afraid I'm having the same problem. Running home assistant 2024.6.2 in docker, I have a slide with fw 2.0 according to the slide of Kaj

Config:

image

Custom components dir contents:

image

This is from inside the home assistant docker container:

5124435a4cab:/config# curl -X POST http://192.168.3.10/rpc/Slide.SetPos -H "Content-Type: application/json" -d '{"pos": 0}'
{"response":"success"}
5124435a4cab:/config# curl -X POST http://192.168.3.10/rpc/Slide.SetPos -H "Content-Type: application/json" -d '{"pos": 1}'
{"response":"success"}

So I have connectivity, ip address is correct and curtains are responding to the commands.

HA, Slide doesn't show up:

image image

HA logs:


2024-06-14 21:03:49.779 INFO (MainThread) [custom_components.slide] Slide Cloud API not configured
2024-06-14 21:03:49.780 DEBUG (MainThread) [custom_components.slide.cover] Initializing Slide cover(s)
2024-06-14 21:03:49.781 DEBUG (MainThread) [custom_components.slide.cover] Trying to setup Slide '192.168.3.10', config={'platform': 'slide', 'host': '192.168.3.10', 'password': '12345678', 'api_version': 2, 'invert_position': False}
2024-06-14 21:03:49.781 DEBUG (MainThread) [goslideapi.goslideapi] REQ-L1: API=http://192.168.3.10/rpc/Slide.GetInfo, type=POST, data=null
2024-06-14 21:03:50.089 DEBUG (MainThread) [goslideapi.goslideapi] RES-L1: API=http://192.168.3.10/rpc/Slide.GetInfo, type=POST, HTTPCode=200, Data={"slide_id": "slide_246F28496968", "mac": "246F28496968", "board_rev": 1, "device_name": "Slide", "zone_name": "", "curtain_type": 0, "calib_time": 26385, "pos": 0.01, "touch_go": true}
2024-06-14 21:03:50.090 DEBUG (MainThread) [custom_components.slide.cover] Setup Slide '192.168.3.10' successful
ualex73 commented 3 months ago

I will update the README, because the custom component Slide does not pop up under "Devices". You can find it in "Developer tools" -> "States".

sandervandegeijn commented 3 months ago

You are right! Thanks!

Two things threw me off:

  1. There is still a Slide under devices, but that would be the original implementation with the same name. This is a bit confusing
  2. I did search under states, but as slide. Didn't think to search for cover. Kind of stupid, still, the slide name in the device name would be helpful.
ualex73 commented 3 months ago

It is added to the README now.