Skip to content

Commit

Permalink
Add host config option
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Oct 24, 2023
1 parent ea3b657 commit ca726a3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions assist_microphone/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.2.3

- Add `host` config option

## 2.2.2

- Use supervisor API to get HA IP address
Expand Down
4 changes: 4 additions & 0 deletions assist_microphone/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ Path to WAV file to play when wake word is detected (empty to disable).

Path to WAV file to play when voice command is finished (empty to disable).

### Option: `host`

Name or IP address of Home Assistant server (default: `homeassistant`)

### Option: `debug_logging`

Enable debug logging.
Expand Down
4 changes: 3 additions & 1 deletion assist_microphone/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 2.2.2
version: 2.2.3
slug: assist_microphone
name: Assist Microphone
description: Stream microphone audio to Assist
Expand All @@ -22,6 +22,7 @@ options:
wake_buffer_seconds: 0.0
udp_mic: false
pipeline: ""
host: "homeassistant"
debug_logging: false
debug_recording_dir: ""
schema:
Expand All @@ -36,6 +37,7 @@ schema:
wake_buffer_seconds: float
udp_mic: bool
pipeline: str
host: str
debug_logging: bool
debug_recording_dir: str
init: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$(bashio::core.ssl)" == 'true' ]; then
fi

exec python3 -m homeassistant_satellite \
--host "$(bashio::core.ip_address)" \
--host "$(bashio::config 'host')" \
--port "$(bashio::core.port)" \
--token "$(bashio::config 'token')" \
--volume "$(bashio::config 'volume')" \
Expand Down
4 changes: 4 additions & 0 deletions assist_microphone/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ configuration:
name: Done Sound
description: >-
Path to WAV file to play when voice command is finished (empty to disable)
host:
name: Host
description: >-
Name or IP address of Home Assistant server (default: `homeassistant`)
debug_logging:
name: Debug logging
description: >-
Expand Down

0 comments on commit ca726a3

Please sign in to comment.