Skip to content

Commit

Permalink
use yml for HA config and make credentials optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed May 6, 2024
1 parent 2824ff1 commit 3b691ac
Show file tree
Hide file tree
Showing 5 changed files with 257 additions and 292 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,12 @@ jobs:
TAG_NAME=${GITHUB_REF##*/v}
if [[ $TAG_NAME =~ ^[0-9]+\.[0-9]+\.[0-9]+(-.*)?$ ]]; then
sed -i "s/^VERSION=.*/VERSION=${TAG_NAME}/" ./app/.env
jq --arg VERSION "${TAG_NAME}" '.version = $VERSION' ./home_assistant/config.json > updated.json
mv updated.json ./home_assistant/config.json
sed -i "s/^version: .*/version: ${TAG_NAME}/" ./home_assistant/config.yaml
echo "tag=${TAG_NAME}" >> $GITHUB_OUTPUT
fi
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: 'Bump Version to v${{ steps.version_bump.outputs.tag }}'
file_pattern: 'app/.env home_assistant/config.json'
file_pattern: 'app/.env home_assistant/config.yaml'
151 changes: 0 additions & 151 deletions home_assistant/config.json

This file was deleted.

128 changes: 128 additions & 0 deletions home_assistant/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: Docker Wyze Bridge
description: WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
slug: docker_wyze_bridge_dev
url: https://github.com/mrlt8/docker-wyze-bridge
image: mrlt8/wyze-bridge,
version: 2.8.3
arch:
- armv7
- aarch64
- amd64
startup: application
boot: auto
apparmor: false
hassio_api: true
ports:
1935/tcp: 1935
8554/tcp: 8554
8888/tcp: 8888
8189/udp: 8189
8889/tcp: 8889
5000/tcp: 5000
ports_description:
1935/tcp: RTMP streams
8554/tcp: RTSP streams
8888/tcp: HLS streams
8189/udp: WebRTC ICE
8889/tcp: WebRTC streams
5000/tcp: Web-UI/Snapshots
environment:
IMG_DIR: media/wyze/img/
RECORD_PATH: media/wyze/{CAM_NAME}
map:
- addon_config:rw
- media:rw
- ssl:ro
services:
- mqtt:want
ingress: true
ingress_port: 5000
panel_icon: mdi:bridge
options:
ENABLE_AUDIO: true
ON_DEMAND: true
MOTION_API: true
MQTT_DTOPIC: homeassistant
CAM_OPTIONS: []
schema:
WYZE_EMAIL: email?
WYZE_PASSWORD: password?
API_ID: match([a-fA-F0-9-]{36})?
API_KEY: match([a-zA-Z0-9]{60})?
WB_IP: str?
REFRESH_TOKEN: str?
ACCESS_TOKEN: str?
NET_MODE: list(LAN|P2P|ANY)?
SNAPSHOT: list(API|RTSP|RTSP15|RTSP30|RTSP60|RTSP180|RTSP300|Disable)?
SNAPSHOT_FORMAT: str?
IMG_TYPE: list(jpg|png)?
IMG_DIR: str?
ENABLE_AUDIO: bool?
ON_DEMAND: bool?
MOTION_API: bool?
MOTION_INT: float(1.1,)?
MOTION_START: bool?
MOTION_WEBHOOKS: str?
SUBSTREAM: bool?
AUDIO_CODEC: list(COPY|AAC|MP3|LIBOPUS)?
AUDIO_FILTER: str?
LLHLS: bool?
DISABLE_CONTROL: bool?
RTSP_FW: bool?
RECORD_ALL: bool?
RECORD_LENGTH: int?
RECORD_PATH: str?
RECORD_FILE_NAME: str?
MQTT_HOST: str?
MQTT_AUTH: str?
MQTT_TOPIC: str?
MQTT_DTOPIC: str?
MQTT_RETRIES: int?
FILTER_NAMES: str?
FILTER_MODELS: str?
FILTER_MACS: str?
FILTER_BLOCK: bool?
ROTATE_DOOR: bool?
H264_ENC: str?
FORCE_ENCODE: bool?
IGNORE_OFFLINE: bool?
OFFLINE_WEBHOOKS: bool?
FRESH_DATA: bool?
URI_MAC: bool?
URI_SEPARATOR: list(-|_|#)?
QUALITY: str?
SUB_QUALITY: str?
SUB_RECORD: bool?
FFMPEG_FLAGS: str?
FFMPEG_CMD: str?
LOG_LEVEL: list(INFO|DEBUG)?
LOG_FILE: bool?
LOG_TIME: bool?
FFMPEG_LOGLEVEL: list(quiet|panic|fatal|error|warning|info|verbose|debug)?
IGNORE_RES: int?
BOA_ENABLED: bool?
BOA_INTERVAL: int?
BOA_TAKE_PHOTO: bool?
BOA_PHOTO: bool?
BOA_ALARM: bool?
BOA_MOTION: str?
BOA_COOLDOWN: int?
CAM_OPTIONS:
- CAM_NAME: str?
AUDIO: bool?
FFMPEG: str?
LIVESTREAM: str?
NET_MODE: str?
ROTATE: bool?
QUALITY: str?
SUB_QUALITY: str?
RECORD: bool?
SUB_RECORD: bool?
SUBSTREAM: bool?
MOTION_WEBHOOKS: str?
MEDIAMTX:
- match(^\w+=.*)?
WB_HLS_URL: str?
WB_RTMP_URL: str?
WB_RTSP_URL: str?
WB_WEBRTC_URL: str?
Loading

0 comments on commit 3b691ac

Please sign in to comment.