From 1ee475ee4a1594b907534fe8a173988b9c4f7b92 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Mon, 1 Sep 2025 21:36:09 +0200 Subject: [PATCH] Added HomeAssitant Voice. --- automations.yaml | 25 ++++++++++++++++++- esphome/home-assistant-voice-09c0e7.yaml | 31 ++++++++++++++++++++++++ esphome/kamera-balkon.yaml | 2 +- esphome/kamera-wohnzimmer.yaml | 2 +- 4 files changed, 57 insertions(+), 3 deletions(-) create mode 100644 esphome/home-assistant-voice-09c0e7.yaml diff --git a/automations.yaml b/automations.yaml index ccee019..6379930 100644 --- a/automations.yaml +++ b/automations.yaml @@ -145,10 +145,23 @@ target: entity_id: tts.piper action: tts.speak + - data: + cache: true + media_player_entity_id: media_player.home_assistant_voice_09c0e7_media_player + message: 4 20 lodere es, Lustknabe + target: + entity_id: tts.piper + action: tts.speak - data: qos: 0 retain: false - topic: awtrix_b8658c/notify + topic: awtrix_kitchen/notify + payload: '{"text": "420, lodere es, Lustknabe!"}' + action: mqtt.publish + - data: + qos: 0 + retain: false + topic: awtrix_desk/notify payload: '{"text": "420, lodere es, Lustknabe!"}' action: mqtt.publish mode: single @@ -496,6 +509,16 @@ entity_id: tts.piper enabled: true action: tts.speak + - data: + cache: true + media_player_entity_id: media_player.home_assistant_voice_09c0e7_media_player + message: '{{message}} + + ' + target: + entity_id: tts.piper + enabled: true + action: tts.speak - data: topic: awtrix_desk/notify payload: '{"text": "{{message}}", "icon": "clockcolor", "duration": 16}' diff --git a/esphome/home-assistant-voice-09c0e7.yaml b/esphome/home-assistant-voice-09c0e7.yaml new file mode 100644 index 0000000..b07cfdd --- /dev/null +++ b/esphome/home-assistant-voice-09c0e7.yaml @@ -0,0 +1,31 @@ +substitutions: + name: home-assistant-voice-09c0e7 + friendly_name: Home Assistant Voice 09c0e7 +packages: + Nabu Casa.Home Assistant Voice PE: github://esphome/home-assistant-voice-pe/home-assistant-voice.yaml +esphome: + name: ${name} + name_add_mac_suffix: false + friendly_name: ${friendly_name} + +wifi: + ssid: "Voltage-legacy" + password: !secret voltage_legacy_psk + #use_address: ${name}.home + #power_save_mode: high + #fast_connect: on + + # Enable fallback hotspot (captive portal) in case wifi connection fails + ap: + ssid: "HA Voice Fallback Hotspot" + password: !secret fallback_psk + +# Enable Home Assistant API +api: + encryption: + key: !secret apikey + +ota: + platform: esphome + password: !secret ota + \ No newline at end of file diff --git a/esphome/kamera-balkon.yaml b/esphome/kamera-balkon.yaml index 3ad3291..7bf4411 100644 --- a/esphome/kamera-balkon.yaml +++ b/esphome/kamera-balkon.yaml @@ -70,7 +70,7 @@ esp32_camera: idle_framerate: 0.2 fps jpeg_quality: 30 agc_mode: auto - agc_gain_ceiling: 2x + agc_gain_ceiling: 4x wb_mode: auto vertical_flip: true horizontal_mirror: true diff --git a/esphome/kamera-wohnzimmer.yaml b/esphome/kamera-wohnzimmer.yaml index 429d463..d8f99ec 100644 --- a/esphome/kamera-wohnzimmer.yaml +++ b/esphome/kamera-wohnzimmer.yaml @@ -61,7 +61,7 @@ esp32_camera: idle_framerate: 0.2 fps jpeg_quality: 30 agc_mode: auto - agc_gain_ceiling: 2x + agc_gain_ceiling: 4x wb_mode: auto vertical_flip: true horizontal_mirror: true