-
Notifications
You must be signed in to change notification settings - Fork 10
/
home-assistant-voice.factory.yaml
72 lines (63 loc) · 2.18 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
60
61
62
63
64
65
66
67
68
69
70
71
72
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/home-assistant-voice-pe/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
switch:
- platform: template
id: beta_firmware
name: Beta firmware
icon: "mdi:test-tube"
disabled_by_default: true
entity_category: diagnostic
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
on_turn_on:
- logger.log: "OTA updates set to use Beta firmware"
- lambda: id(update_http_request).set_source_url("https://firmware.esphome.io/home-assistant-voice-pe/home-assistant-voice/manifest-beta.json");
- component.update: update_http_request
on_turn_off:
- logger.log: "OTA updates set to use Production firmware"
- lambda: id(update_http_request).set_source_url("https://firmware.esphome.io/home-assistant-voice-pe/home-assistant-voice/manifest.json");
- component.update: update_http_request