Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EDIT: 3.x broke mobile access using nabucasa and HO Mobile #418

Open
Claudio1L opened this issue Feb 5, 2023 · 13 comments
Open

EDIT: 3.x broke mobile access using nabucasa and HO Mobile #418

Claudio1L opened this issue Feb 5, 2023 · 13 comments
Labels
question Further information is requested

Comments

@Claudio1L
Copy link

Claudio1L commented Feb 5, 2023

HI
I'm having this issue:

with Nabucasa and 3.x update, images stuck in loading2 using webrtc-card on Android mobile. Using RTC only. It works with Apple in the same conditions. No significant logs. Just black screen. Going back to 2.3.1 works perfectly.

Tried multiple times with different 4g conditions and different device.
Works with wifi but also there, very often, one or two card stuck in loading in a page where there are 4.

Following an example of the webrtc card config:

type: custom:webrtc-camera
entity: camera.cam_strada
mode: webrtc
ui: true
background: true

Any advice? Have you devices in similar condition (Nabu+Android+RTC) ?

@Claudio1L
Copy link
Author

Claudio1L commented Feb 5, 2023

definitively 2.3.1 seems smoother also on iphone

@AlexxIT AlexxIT added the question Further information is requested label Feb 5, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 5, 2023

WebRTC on Android is no different from iPhone. You may have a different 4G network configuration. I guess you did not set up external access for WebRTC? Have you read docs? FAQ?

@Claudio1L
Copy link
Author

Claudio1L commented Feb 6, 2023

ok, thanks.

I read everything related I found, also outside the official docs, but I was not able to solve.
I did some more tests, instead, and I think is something related to my mobile operator. The issue is the same with any iphone and any android. At the time of the previous question I didn't swap sims. With the operator "HO mobile" works till 2.3.1, not 3.x. With "TIM" works 3.x also. Consistently.
Any advice on what I can check? Tested both webrtc and MSE

@PablaV
Copy link

PablaV commented Feb 6, 2023

Try removing mode: webrtc from your card config and restart HA and the addon and see if that helps. I am experiencing issues when I set mode: webrtc so that could be the case for you too.

@Claudio1L Claudio1L changed the title 3.x broke android access using nabucasa. EDIT: 3.x broke mobile access using nabucasa and HO Mobile Feb 7, 2023
@Claudio1L
Copy link
Author

Upgraded again to 3.0.2, removed mode: webrtc. no changes, same issue. There is something different between 3.x and 2.x that the mobile operator is filtering. TCP/UDP ports? no idea

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 8, 2023

#378

@Claudio1L
Copy link
Author

#378

yes thanks, already seen. There is nothing I can use to solve. If it's a simmetric nat issue of the mobile operator, it should work at least with MSE+android, instead nothing. There is something else

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 9, 2023

Check if MSE works for you in LAN. MSE may not work for some buggy cameras.

@Claudio1L
Copy link
Author

yes

immagine
immagine

the first one is an hikvision, the second one is a reolink camera

in Lan and via TIM 4G connections everything working, from desktop (firefox+Macos), android and iphone.

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 10, 2023

So can you describe again your issue?

@Claudio1L
Copy link
Author

Claudio1L commented Feb 10, 2023

sure.

  • 2.3.1, everything working.

    • LAN/Wifi: ok Desktop, ok android app, ok iphone app (webrtc)
    • 4G/Nabucasa: ok Android/iphone apps with 2x operators (TIM and HO Mobile) (webrtc)
  • 3.x:

  • LAN/Wifi: ok Desktop, ok android app, ok iphone app (webrtc/MSE)

  • 4G/Nabucasa: ok Android/iphone apps with TIM (webrtc/MSE)

  • 4G/Nabucasa: NOK Android/iphone apps with HO Mobile (webrtc/MSE)

basically, with 3.x black screen with HO Mobile regardless the device or the protocol I try to use.
without significant logs.

@Claudio1L
Copy link
Author

of course, for me 2.3.1 is perfect. The only concern is about issues with future HA releases

@Dc1975
Copy link

Dc1975 commented Jul 17, 2023

Hello, i have a similar problem. Maybe i can attach it to this, but i am not using Nabucasa.

HA Mobile App in my WLan => No Stream
HA Mobile Browser in my WLan => Stream
HA Desktop Browser in my Lan => Stream

HA Mobile App with 4G => No Stream
HA Mobile Browser with 4G => Stream

The system configuration is:
Home Assistant 2023.7.2
Supervisor 2023.07.1
Operating System 10.3
Frontend 20230705.1 - latest

The card configuration is:
type: custom:webrtc-camera
url: rtsp://user:pw@IP:554/h264Preview_01_sub
webrtc: true

I have changed webrtc true/false and url/entity in every condition with the same result described above.

grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants