forked from esphome/home-assistant-voice-pe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
home-assistant-voice.factory.yaml
59 lines (50 loc) · 1.51 KB
/
home-assistant-voice.factory.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
packages:
# This is an inline package to prefix the on_client_connected with the wait_until action
# It must appear before the actual package so it becomes the orignal config and the
# on_client_connected list from the package config is appended onto this one.
va_connected_wait_for_ble:
voice_assistant:
on_client_connected:
- wait_until:
not: ble.enabled
- delay: 2s
wifi:
on_disconnect:
- ble.enable:
home-assistant-voice: !include home-assistant-voice.yaml
esphome:
project:
name: Nabu Casa.Home Assistant Voice PE
version: dev
ota:
- platform: http_request
id: ota_http_request
http_request:
update:
- platform: http_request
name: None
id: update_http_request
source: https://firmware.esphome.io/home-assistant-voice-pe/home-assistant-voice/manifest.json
dashboard_import:
package_import_url: github://esphome/voice-kit/home-assistant-voice.yaml
wifi:
on_connect:
- delay: 5s # Gives time for improv results to be transmitted
- ble.disable:
- script.execute: control_leds
improv_serial:
esp32_improv:
authorizer: center_button
on_start:
- lambda: id(improv_ble_in_progress) = true;
- script.execute: control_leds
on_provisioned:
- lambda: id(improv_ble_in_progress) = false;
- script.execute: control_leds
on_stop:
- lambda: id(improv_ble_in_progress) = false;
- script.execute: control_leds
external_components:
- source: github://pr#7461
components: [esp32_improv]
refresh: 0s