lovelylain / hass_ingress

Home Assistant ingress feature, add additional ingress panels to your Home Assistant frontend.
Apache License 2.0
31 stars 6 forks source link

Multiple (related? issues) Data not coming through from remote device UI / unable to log into another GUI / third one not loading at all #6

Closed sparkydave1981 closed 2 months ago

sparkydave1981 commented 3 months ago

I'm trying to log in to my local power meter but the UI of the device shows 'no configuration' as if the Ingress tab is unable to access it properly.

First one

Integration code

ingress:
  iotawatt:   # loads but has no access to device data
    title: IoTaWatt
    icon: mdi:meter-electric
    require_admin: true
    ui_mode: toolbar
    url: http://192.168.30.16

Ingress tab UI screenshot

image

Example screenshot using the Firefox add-on (logged in from same HA browsing window)

image

Second one

Integration code

ingress:
  nvr:   # loads but can't log in
    title: NVR
    icon: mdi:cctv
    require_admin: true
    ui_mode: toolbar
    url: http://192.168.0.100

Ingress tab UI screenshot

image

So with this one, I enter the username and password and then some popup appears (not something I get in a normal browser) but I can't see any text in the popup. I'm unable to log in to the NVR's UI.

Third potentially related issue...

Integration code

ingress:
  nas:   # not working
    title: NAS
    icon: cil:synology-nas
    require_admin: true
    ui_mode: toolbar
    url: http://192.168.0.15:5000

Ingress tab UI screenshot

image image

This one simply times out....

Sorry if I should have split these up into 3 issues but I have a feeling that they might all simply need some sort of additional config that I'm not savvy enough for.

lovelylain commented 3 months ago

please view the network log, if you use windows chrome you can press Ctrl+Shift+I.

sparkydave1981 commented 3 months ago

For the Iotawatt ingress tab:

image

image

sparkydave1981 commented 3 months ago

NVR:

image

image

sparkydave1981 commented 3 months ago

NAS:

image

image

lovelylain commented 3 months ago

iotawatt & NAS: it use absolute paths so will throw 404 error and cannot work with ingress mode, you can try work_mode: auth to work with another domain reverse proxied by nginx, or use nginx's sub_filter to fix the absolute paths in the response. NVR: it use two ports, so not support ingress mode, you can try configure two ingress items and use nginx's sub_filter to fix the paths.

sparkydave1981 commented 3 months ago

That's all a bit over my head unfortunately. I have zero experience with nginx.

lovelylain commented 3 months ago

You can use the nginx-proxy-manager addon, it's easy to use. If you later want to put the website in the sidebar, please use work_mode: iframe.