camera - mikey0000/Mammotion-HA GitHub Wiki

Camera Setup (Unsupported)

Warning

No Frigidaire/Frigate Support. This implementation uses WebRTC and will not work with standard NVR platforms.

1. Reconfigure the Entity

Ensure your camera entity is properly configured. It should appear in your entities list as: camera.your_mower_name_none

2. Add JavaScript Resource to Lovelace

To enable the WebRTC client, you must add the Agora library to your Home Assistant resources:

  1. Navigate to Settings > Dashboards.
  2. Click the three dots (overflow menu) in the top right corner.
  3. Select Resources.
  4. Click Add Resource.
  5. Enter the following details:
    • URL: /mammotion_webrtc/agora-client.js
    • Type: JavaScript module
  6. Click Save.
  7. Hard refresh your browser (usually Ctrl + F5 or Cmd + Shift + R) to load the new resource.

3. Add Custom Card to Lovelace

Create the UI component to view the stream:

  1. Open your dashboard and enter Edit Mode.
  2. Click + Add Card.
  3. Scroll down and select the Manual card.
  4. Replace the default YAML with the following (update the entity ID to match your mower):
type: custom:camera-agora-card
entity: camera.your_mower_name_none
enableJoystick: true
use_wifi: true # affects joystick controls as most models only work over BLE
speed: 0.2
  1. Click Save.

The WebRTC video stream card should now be visible and operational on your dashboard.

⚠️ **GitHub.com Fallback** ⚠️