dermotduffy / frigate-hass-card

A Lovelace card for Frigate in Home Assistant
MIT License
470 stars 52 forks source link

Dev version doens't work on Fully Kiosk on Android 12 #1426

Open mhoogenbosch opened 1 month ago

mhoogenbosch commented 1 month ago

Because of my PTZ requirement (see also: https://github.com/dermotduffy/frigate-hass-card/issues/1420) I have installed the DEV version of this card.

Now I know there is no support for the DEV version and that's fine. But on my Android tablet (wallboard) i'm getting the following issue:

No cameras support this view. Check troubleshooting

{
  "view": "live",
  "cameras_capabilities": {}
}

On my other devices (Windows 11, iPhone), but also on the same device but with Chrome, it does work.

I'm using Version 1.55.1-play version of Fully Kiosk. The HA companion doesn't work either btw, of that i'm running 2024.1.5-full

The issue is there with the most minimalist card config:

type: custom:frigate-card
cameras:
  - camera_entity: camera.deurbel

The card does work with the lastest official release.

dermotduffy commented 1 month ago

Now I know there is no support for the DEV version

For the record, bug reports for the dev branch are very welcome since it's the only way I'll get it ready for prime time. Thank you!

The HA companion doesn't work either btw, of that i'm running 2024.1.5-full

So, for the same config, it does work in:

But does not work in:

Is that right?

{
  "view": "live",
  "cameras_capabilities": {}
}

... this should never happen, and suggests somehow the camera is not being initialized correctly. It's odd that it works on some devices but not others, and sounds like it could conceivably be the same as #1407. Guess: Some sort of initialization race condition that is only being triggered on some devices...

mhoogenbosch commented 1 month ago

In Windows 11 it works fine indeed. But there is no Companion and Fully kiosk. In iPhone it works on both the app and the browser In Android 12 tablet device, it works on Chrome browser, but doesn't on companion app and fully kiosk

Now I found an Android 12 phone too laying around. With that device it works on both the Chrome and Companion app. Didn't have fully kiosk installed.

While typing this it doesn't make sense for me, so tomorrow i'll confirm these tests. But if I have confirmed this, only the screensize could have something to do with it, right? As both the companion app and fully kiosk take over the device.

dermotduffy commented 1 month ago

But if I have confirmed this, only the screensize could have something to do with it, right?

That's certainly one difference, but I fear/suspect this is the kind of subtle issue where device speed / latency could cause one async operation to complete before another changing the result subtly between devices / reloads. The other bug I linked to had something similar -- worked on one device, but not another despite identical configuration.

Obviously, I have never been able to reproduce this, but that error message is certainly "wrong" so there is no chance this is user error of some kind.

mhoogenbosch commented 1 month ago

Confirmed. On my phone based on Android 12 it just works.

So the tablet doesn't work. But only in Companion app and Fully Kiosk. On chrome it does work.

dermotduffy commented 3 weeks ago

FYI: I found an initialization related issue that I fixed as a side-effect in #1448 . I wasn't trying to fix this issue, but there's a chance I did ... if someone could take a look to confirm/deny that would be great!

mhoogenbosch commented 2 weeks ago

Just tested it and unfortunately it doesn't work. Same behavior.