Git Product home page Git Product logo

mmm-homeassistant-webrtc's Introduction

MMM-HomeAssistant-WebRTC

Module for viewing IP cameras RTSP stream in real time using WebRTC technology.

Depends on Home Assistant WebRTC Camera component.

Configuration

Option Default value Description
host hassio.local Home Assistant host
port 8123 Home Assistant port
https false Use https for Home Assistant
width 50% Max video width
token Home Assistant API token
url RTSP camera URL

Enjoy my work? Help me out for a couple of ๐Ÿป or a โ˜•!

coffee

mmm-homeassistant-webrtc's People

Contributors

anonym-tsk avatar shbatm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mmm-homeassistant-webrtc's Issues

Adapting to RTSPToWeb

There is now an RTSPtoWebRTC integration in core which relies on the RTSPtoWeb service which is also available as an addon in HACS.
It looks to me like this is the official solution which will probably be better supported in HA than AlexxIT/WebRTC.
Do you have any plans to adapt this plugin so that it will work with RTSPtoWeb?

Magic mirror config

Hi, Can anyone share their working MMM config?
How do we obtain the token?

Go2Rtc

Hi all,
Just to know if anybody made this module to work with go2rtc

It works with rtsptoweb and webrtc card 2.x, but no with the upgraded card to 3.x an go2rtc.

Any possibility?

Thanks in advance

no video with error "Failed to set remote answer sdp: Called in wrong state: stable"

Setup:

  1. AlexxIT/WebRTC installed via HACS in HA. Added the integration in "Devices & Services"
  2. Added a Lovelace WebRTC card with my rtsp stream. It's working fine.
  3. Installed MMM-HomeAssistant-WebRTC in mm (manually because I couldn't find it in mmpm).
  4. Added the MMM-HomeAssistant-WebRTC in the mm configuration

my configuration (some entries altered like ip and credentials):

        {
            module: "MMM-HomeAssistant-WebRTC",
            position: "middle_center",
            disabled: false,
            header: "Vorgarten",
            config: {
                host: "192.168.xx.xx",
                port: 8123,
                https: false,
                width: "100%",
                token:
                "my-actual-token",
                url: "rtsp://user:[email protected]:554/h264Preview_01_main",
            }
        },

It is a reolink RLC-520A.

Problems:

After starting mm no video is shown and in the logs I see the following messages:

[94:0220/114522.154802:ERROR:sdp_offer_answer.cc(3053)] Called in wrong state: stable (INVALID_STATE)                                                        
[94:0220/114522.167953:ERROR:sdp_offer_answer.cc(2186)] Failed to set remote answer sdp: Called in wrong state: stable

The message only repeats when I reload the mm page.

I have enabled logging for WebRTC in Homeassistant and get the following entries when reloading the mm page.

Feb 20 12:08:02 homeassistant b39fa0ff62a3[739]: 2022-02-20 12:08:02 DEBUG (webrtc) [custom_components.webrtc.utils] 2022/02/20 12:08:02 Set ICEServers [stun:stun.l.google.com:19302]
Feb 20 12:08:02 homeassistant b39fa0ff62a3[739]: 2022-02-20 12:08:02 DEBUG (webrtc) [custom_components.webrtc.utils] 2022/02/20 12:08:02 WebRTC Ignore Audio Track codec not supported WebRTC support only PCM_ALAW or PCM_MULAW
Feb 20 12:08:02 homeassistant b39fa0ff62a3[739]: 2022-02-20 12:08:02 DEBUG (webrtc) [custom_components.webrtc.utils] 2022/02/20 12:08:02 websocket.JSON.Receive EOF
Feb 20 12:08:02 homeassistant b39fa0ff62a3[739]: 2022-02-20 12:08:02 DEBUG (webrtc) [custom_components.webrtc.utils] [GIN] 2022/02/20 - 12:08:02 | 200 |  127.713905ms |       127.0.0.1 | GET      "/ws?url=rtsp://user:[email protected]:554/h264Preview_01_main"

Any hints for me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.