Sign inSign up

zackwag/channels2mqtt

By zackwag

β€’Updated 5 months ago

Bridges Channels DVR to Home Assistant via MQTT Discovery.

Image
Integration & delivery
Monitoring & observability
0

1.3K

zackwag/channels2mqtt repository overview

⁠Channels2MQTT

Channels2MQTT bridges your Channels DVR Server⁠ to MQTT, enabling seamless Home Assistant integration via MQTT Discovery.

Automatically creates and manages three sensors in Home Assistant:

  • πŸ“Ί Latest Recording β€” updates only when a genuinely new recording is completed
  • ⏸️ All Recordings β€” full library with count and metadata
  • πŸ“‘ Upcoming Recordings β€” scheduled recordings with full program details

⁠Features

  • Zero configuration in Home Assistant β€” sensors appear automatically via MQTT Discovery
  • Configurable watched filter for latest and all recordings
  • Optionally include in-progress recordings in latest recording
  • No false notifications when watched recordings are removed from the queue
  • Upcoming recordings automatically removed when their start time passes
  • Fully configurable via environment variables

⁠Quick Start

services:
  channels2mqtt:
    image: zackwag/channels2mqtt:latest
    container_name: channels2mqtt
    restart: unless-stopped
    environment:
      - CHANNELS_HOST=192.168.x.x
      - MQTT_HOST=192.168.x.x
      - MQTT_USER=your_mqtt_username
      - MQTT_PASS=your_mqtt_password

⁠Environment Variables

VariableRequiredDefaultDescription
CHANNELS_HOSTβœ…β€”Channels DVR server IP address
CHANNELS_PORT❌8089Channels DVR server port
MQTT_HOSTβœ…β€”MQTT broker IP address
MQTT_PORT❌1883MQTT broker port
MQTT_USERβœ…β€”MQTT username
MQTT_PASSβœ…β€”MQTT password
MQTT_TOPIC❌channels2mqtt/latest_recordingTopic for latest recording
UPCOMING_TOPIC❌channels2mqtt/upcoming_recordingsTopic for upcoming recordings
ALL_RECORDINGS_TOPIC❌channels2mqtt/all_recordingsTopic for all recordings
POLL_INTERVAL❌60Poll interval in seconds
LATEST_INCLUDE_WATCHED❌falseInclude watched in latest recording
ALL_INCLUDE_WATCHED❌falseInclude watched in all recordings
LATEST_INCLUDE_IN_PROGRESS❌falseInclude in-progress recordings in latest

⁠Versions

TagDescription
latestMost recent stable release
1.2.0Fix false notifications when watched recordings shift queue position
1.1.0Fix notification firing on recording start; add LATEST_INCLUDE_IN_PROGRESS
1.0.0Initial release

Tag summary

Content type

Image

Digest

sha256:d0285d803…

Size

46.4 MB

Last updated

5 months ago

docker pull zackwag/channels2mqtt