icanos / hassio-plejd

Hass.io add-on for Plejd home automation devices
Apache License 2.0
126 stars 37 forks source link

Error 404 #306

Open ivers1en opened 1 month ago

ivers1en commented 1 month ago

image image

Hello

I tried everything for days trying to find my plejd devices. Im running HA on a RPI4

I have tried to set the plejd addon up with the MQTT in 100 different ways. Changing the name of the MQTT host, trying with IP adresses, with or without the MQTT://

Login info works on the app so thats not the problem, i tried changing the MQTT user name and passowrd.

I dont know anymore

irisityvictorhagelback commented 1 month ago

Can you reach the internet from Home assistant? Can you reach the login URL (listed in the log above).

Works from here, so I think it's probably something local (or Plejd's servers were down for a while)

(btw, the error is with respect to logging in to the Plejd API so it has nothing to do with MQTT)

ivers1en commented 1 month ago

I actually cant reach the adresse from my internet browser.

image

I guess il send Plejd a email to ask whats going on. I took over the Plejd site from a different user when he moved out. Might be something there.

Thank you for guiding me on the right path.

ivers1en commented 1 month ago

Can you reach the internet from Home assistant? Can you reach the login URL (listed in the log above).

Works from here, so I think it's probably something local (or Plejd's servers were down for a while)

(btw, the error is with respect to logging in to the Plejd API so it has nothing to do with MQTT)

The guy i talked to at Plejd had no idea, but he assumed i needed the GWY-01 gateway. Is that true?

thedalrok commented 3 weeks ago

You do not need the gateway when running HA but Plejd support won’t help you since this is an unofficial plugin. Your error code 404 from your log suggests you’re not reaching Plejd cloud when trying to get a token for authorization, are you sure your HA installation can reach it. Your other screen dump showing your browser, is that from the same machine as where you are running HA? That response is expected when trying to reach the api directly from a browser and looks ok.

ivers1en commented 3 weeks ago

You do not need the gateway when running HA but Plejd support won’t help you since this is an unofficial plugin. Your error code 404 from your log suggests you’re not reaching Plejd cloud when trying to get a token for authorization, are you sure your HA installation can reach it. Your other screen dump showing your browser, is that from the same machine as where you are running HA? That response is expected when trying to reach the api directly from a browser and looks ok.

My HA is running on a RPI. The photos are from my browser on the computer where i access HA trough a tunnel using cloudflare.

The last picture witht the error is from my computers browser and when i think about it seems silly to post that.

When you asked if i am sure that my HA can access the plejd api, i am not sure how to test this? I used my login information that i use on the app " and the info is correct"

I am abit lost

SweVictor commented 3 weeks ago

So - The browser response you get (403) means unauthorized, which is expected. Meaning "it's working". (from the browser on the computer).

Trying from my HA instance to reach the same path I got the below. I used the "Terminal" addon (from the sidebar in the UI ), but you could do it over SSH or similar as well.

image

If you restart the Plejd addon - do you get the same? (404) 404 means "not found" which is a bit strange. That typically means you reach the server (Plejd's API) but that the specific path is not found.

As thedalrok wrote the plugin is unsupported, meaning Plejd won't help...