-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtagtuner-core-comms.yaml
51 lines (45 loc) · 1.14 KB
/
tagtuner-core-comms.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
# API is a requirement of the dashboard import.
api:
# OTA is required for Over-the-Air updating
ota:
platform: esphome
wifi:
# Set up a wifi access point using the device name above
ap:
password: "12345678"
# In combination with the `ap` this allows the user
# to provision wifi credentials to the device.
captive_portal:
# Sets up the improv via serial client for Wi-Fi provisioning
improv_serial:
script:
- id: action_event
parameters:
action: string
mode: queued
max_runs: 3
then:
- homeassistant.event:
event: esphome.tagtuner
data:
magic: ${magic}
action: !lambda return action;
- id: tagtuner_event
parameters:
action: string
uid: string
uri: string
artist: string
playlist: string
mode: queued
max_runs: 3
then:
- homeassistant.event:
event: esphome.tagtuner
data:
magic: ${magic}
action: !lambda return action;
uid: !lambda return uid;
uri: !lambda return uri;
artist: !lambda return artist;
playlist: !lambda return playlist;