ualex73 / slide

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

Error on setpos #9

Closed olafvs closed 6 months ago

olafvs commented 1 year ago

When trying to open or close the slide I get the following error:

Logger: goslideapi.goslideapi Source: custom_components/slide/cover.py:309 Integration: Slide First occurred: 21:41:42 (2 occurrences) Last logged: 21:41:42

RES-L9: API=http://x.x.x.x/rpc/Slide.SetPos, type=POST, HTTPCode=500, Data={"code":-1,"message":"{\"response\": \"bad request\"}"} Failed request with Local API. HTTPCode=500

My Config:

cover:

When I try to do this in postmen it works and when setting the position through the app Home Assistant also updates states.

weemaba999 commented 1 year ago

Hi @olafvs , I'm having the same issues:

RES-L13: API=http://X.X.X.X/rpc/Slide.SetPos, type=POST, HTTPCode=500, Data={"code":-1,"message":"{\"response\": \"bad request\"}"} Failed request with Local API. HTTPCode=500 RES-L15: API=http://X.X.X.X/rpc/Slide.SetPos, type=POST, HTTPCode=500, Data={"code":-1,"message":"{\"response\": \"bad request\"}"} RES-L25: API=http://X.X.X.X/rpc/Slide.SetPos, type=POST, HTTPCode=500, Data={"code":-1,"message":"{\"response\": \"bad request\"}"} RES-L59: API=http://X.X.X.X/rpc/Slide.SetPos, type=POST, HTTPCode=500, Data={"code":-1,"message":"{\"response\": \"bad request\"}"}

Did you manage to get it working ?

Thanks a lot for your feedback,

Kr,

Bart

olafvs commented 1 year ago

No not yet. Maybe I'll try to directly use the local api through nodered and completely bypass this integration.

I don't think the integration is actively maintained.

weemaba999 commented 1 year ago

Alright, thx for the feedback. I logged an incident at slidesupport myself, let's view from that angle if we can manage this.

Keep me posted on your findings, will you ?

Thx,

Bart

olafvs commented 1 year ago

This is not a slide issue. The local api works. It's this integration that doesn't.

I also managed to get it working through nodered.

Of course we wouldn't be in this mess if it wasn't for slide. They didn't give us a notice of setting restrictions on the refresh interval.

Stupid thing is they contacted me some months ago about why I was making so many requests. I told them about my use case and they acknowledged the imperfection of slide. No word about it being a problem. They just told me they understood why is polling that often.

And now a couple of weeks ago my curtains stopped functioning.