Camera Setup - mikey0000/Mammotion-HA GitHub Wiki

(No Frigade Support, will not work, uses WebRTC)

  1. Reconfigure the Entity (if needed)

Make sure the camera entity is properly configured. It should appear as camera.your_mower_name_none.

  1. Add the JavaScript Resource to Lovelace

    1. Go to Settings.
    2. Select Dashboards.
    3. Click the three dots in the top right corner.
    4. Choose Resources.
    5. Click Add Resource.
    6. Fill in the fields as follows:
    URL: /mammotion_webrtc/agora-client.js
    Type: JavaScript module
    
    1. Save.
    2. Hard refresh your browser.
  2. Add the Custom Card to Lovelace

    1. Go to your dashboard.
    2. Click Edit Dashboard.
    3. Click the “+” button to add a new card.
    4. Choose Manual card.
    5. Enter the following YAML (make sure to replace the entity with the correct one):
    type: custom:camera-agora-card
    entity: camera.your_mower_name_none
    

Save the card.

WebRTC video stream card should now be visible and working.