Initial device configuration
Add a new device
Navigate to the devices section and click “Add Device” to create a new device entry.
Configure basic information
Provide the following basic device information:
- Name: A unique identifier for the device
- Model: The device model type
- Host: The IP address or hostname of the device
- Phone: Optional phone number for SMS-based control
Set device credentials
Configure authentication credentials if required by your device:
- Username and password for device access
- API keys or tokens for secure communication
Configure stream settings
Set up the streaming configuration:
- Stream name (typically matches device name)
- Protocol (RTSP, WebRTC, etc.)
- Port configuration
Dual slot configuration
Devices can be configured with dual connection slots for high availability and automatic failover.Configure secondary connection
Provide the secondary connection details:
- Secondary Host: Backup IP address or hostname
- Secondary Phone: Optional backup phone number
Enable automatic slot switching
Enable “Enable automatic slot switching” to allow the system to automatically failover between slots based on health checks.
Device actions
Device actions are configurable commands that can be executed on devices remotely.Creating custom actions
Create a new action
Define a new action with:
- Name: Action identifier (e.g.,
reboot,capture-image) - Command: The actual command to execute
- Device: Link to specific device or leave empty for global actions
- Description: Human-readable description
Common actions
Here are some common device actions you might configure: Health Check (slot-check)
Device status monitoring
Devices can be in one of the following states:- on: Device is online and streaming
- off: Device is offline or not streaming
- waiting: Device is attempting to connect
- error: Device encountered an error
Environment variables
The following environment variables affect device management:Troubleshooting
Device not connecting
-
Verify the device host is reachable:
- Check device credentials are correct
- Verify the stream configuration matches the device output
-
Check Joystick service logs:
Slot switching not working
- Verify both primary and secondary slots are configured
-
Check that
autoSlotSwitchis enabled for the device -
Verify the
slot-checkaction exists in the database -
Check Switcher service health endpoint:
Status not updating
-
Verify Baker service is running:
-
Check MediaMTX API is accessible:
- Verify device stream name matches configuration