ha-fusion icon indicating copy to clipboard operation
ha-fusion copied to clipboard

Camera view not working, URL points to incorrect IP (192.168.1.241)

Open Plawasan opened this issue 1 year ago • 6 comments

Running Fusion as addon, currently on 2023.12.4.

When I add a camera view, I don't actually an image - when I inspect the DOM, I see the object URL points to an incorrect IP (192.168.1.241, while my instance is running at 192.168.1.10)

background-image: url("http://192.168.1.241:8123/api/camera_proxy/camera.garage_camera?token=xxx")

I noticed the same IP pop up when I opened the fusion web from mobile... possibly a forgotten hardcoded IP in the source code? I assume this is you DEV IP :)

https://github.com/search?q=repo%3Amatt8707%2Fha-fusion%20%20192.168.1.241&type=code

Plawasan avatar Dec 26 '23 12:12 Plawasan

Try to reinstall/rebuild to pull latest commit https://github.com/matt8707/ha-fusion/commit/49c7ea12e6cf7c12ba5c7c43aa77b3908b76bad5

matt8707 avatar Dec 26 '23 13:12 matt8707

Camera works now but still getting an error when I open the dashboard from mobile:

Screenshot_20231226_170726_Home Assistant.jpg

Plawasan avatar Dec 26 '23 16:12 Plawasan

I get the same but straight on the add-on "home" (ingress), both on Firefox and Safari (both updated). It only kinda works on Chrome but it gets stuck when trying to configure buttons. No errors on logs.

Edit: on mobile app (iOS), when I open the dashboard I see only a plain black page. Edit 2: '192.168.1.241' is in the 2 compose yaml's

HA Core 2023.12.3 Supervisor 2023.12.0 Operating System 11.2 Frontend 20231208.2 Fusion Current version: 2023.12.5

Screenshot 2023-12-27 alle 10 51 33

paparapapapapa avatar Dec 27 '23 09:12 paparapapapapa

Can you clear cache and write the steps on how to replicate getting 192.168.1.241?

matt8707 avatar Dec 27 '23 20:12 matt8707

Can you clear cache and write the steps on how to replicate getting 192.168.1.241?

In my case it's just opening the fusion web from the app..

https://imgur.com/a/3tuCNS7

I'm also having an issue on my tablet (running under a different account than my primary user), there the frontend opens, loads the layout with all buttons etc however there are all Unknown and I get a "ERR_CANNOT_CONNECT" message. If that's a separate issue, I will create an entry for it.

Plawasan avatar Dec 27 '23 20:12 Plawasan

In my case it's just opening the fusion web from the app..

Same for me. I did nothing but:

  1. Installing the add on
  2. Opening the ingress address by clicking on the side bar in Firefox
  3. Repeating point 2 also in Safari and Chrome
  4. When I saw the dashboard working in Chrome I tried to add a button and didn’t work.

paparapapapapa avatar Dec 27 '23 21:12 paparapapapapa

Please try addon 2023.12.6

matt8707 avatar Dec 28 '23 05:12 matt8707

Progress...? I no longer get the auth error but I'm getting the connection error now on mobile (same user as PC) and tablet (different user) while it works ok from my PC.

https://imgur.com/a/8dcAP6V

Plawasan avatar Dec 28 '23 07:12 Plawasan

omg i published the addon before pushing the fix, sorry please try 2023.12.7 when it's available

matt8707 avatar Dec 28 '23 07:12 matt8707

omg i published the addon before pushing the fix, sorry please try 2023.12.7 when it's available

Is it meant to take me to the HA login page now? Because that's what it does... at least from the two devices which were previously getting the error, PC still works OK. Both my mobile and tablet are logged in and can navigate the rest of the HA app no problem.

Plawasan avatar Dec 28 '23 09:12 Plawasan

OK great now it seems to work I'm going to test it next week

paparapapapapa avatar Dec 28 '23 10:12 paparapapapapa

Is it meant to take me to the HA login page now? Because that's what it does...

Yeah, it's not ideal but at least no errors

https://developers.home-assistant.io/docs/add-ons/presentation?_highlight=ingress#ingress

Users are previously authenticated via Home Assistant. Authentication is not required

Sounds good, but there are zero examples of it anywhere..

matt8707 avatar Dec 28 '23 16:12 matt8707