Skip to content

Commit

Permalink
Cloud home-assistant and wyze bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbovbel committed Jun 18, 2024
1 parent a661fec commit 59a1ea0
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 44 deletions.
6 changes: 0 additions & 6 deletions roles/caddy/templates/Caddyfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,3 @@

{% endfor %}
}

{% for subdomain in caddy.subdomains.values() %}

# TODO(pbovbel) implement

{% endfor %}
59 changes: 30 additions & 29 deletions roles/homeassistant/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,36 +25,37 @@ docker_homeassistant:
volumes:
- "{{ app_folder }}/matter-server:/data"
- /run/dbus:/run/dbus:ro
whisper:
container_name: whisper
image: rhasspy/wyoming-whisper
wyze-bridge:
container_name: wyze-bridge
# network_mode: host # Required for mDNS to work correctly
networks:
- apps
image: mrlt8/wyze-bridge:latest
restart: "no"
volumes:
- "{{ app_folder }}/whisper:/data"
ports:
- 10300:10300
command: --model tiny-int8 --language en
piper:
container_name: piper
image: rhasspy/wyoming-piper
networks:
- apps
restart: "no"
volumes:
- "{{ app_folder }}/piper:/data"
ports:
- 10200:10200
command: --voice en_US-lessac-medium


caddy_homeassistant:
subdomains:
homeassistant:
type: proxy
auth: null
subdomain: homeassistant.bovbel.com
host: media.bovbel.com
port: 8123
role: admin
- 1935:1935 # RTMP
- 8554:8554 # RTSP
- 8888:8888 # HLS
- 8889:8889 #WebRTC
- 8189:8189/udp # WebRTC/ICE
- 5000:5000 # WEB-UI
environment:
# [OPTIONAL] Credentials can be set in the WebUI
# API Key and ID can be obtained from the wyze dev portal:
# https://developer-api-console.wyze.com/#/apikey/view
WYZE_EMAIL: "{{ ansible_email }}"
WYZE_PASSWORD: !vault |
$ANSIBLE_VAULT;1.1;AES256
63666331623761326537613530666430663334346661333664646532383034393766343230613434
3935356335666531356434393133303166313030306464390a353432636134383365313031353761
30626362383339363936393336343431633033363139343461656163313464393536353362333063
3562636133373866330a663261376230663462353833333632366532333465306365353164396462
6436
API_ID: 20f6d458-93d2-4173-bb69-e4ed7e64af2f
API_KEY: ZNrna31H5TBwerrTfBc47sB65U0WHIqWco6XzlhLtBMEUucqmTrEsChIdfiB
# [OPTIONAL] IP Address of the host to enable WebRTC e.g.,:
# - WB_IP=192.168.1.122
# WebUI and Stream authentication:
WB_AUTH: false # Set to false to disable web and stream auth.
# WB_USERNAME=
# WB_PASSWORD=n_US-lessac-medium
1 change: 0 additions & 1 deletion roles/homeassistant/meta/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
dependencies:
- docker
- caddy
8 changes: 0 additions & 8 deletions roles/homeassistant/tasks/00-homeassistant.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
---
- name: configure homeassistant caddy
set_fact:
caddy: "{{ caddy | combine(caddy_homeassistant, recursive=True, list_merge='append') }}"
cacheable: true
changed_when: true
notify: configure caddy
tags: caddy

- name: configure homeassistant docker
set_fact:
docker: "{{ docker | combine(docker_homeassistant, recursive=True, list_merge='append') }}"
Expand Down

0 comments on commit 59a1ea0

Please sign in to comment.