-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdirect.yaml
51 lines (40 loc) · 865 Bytes
/
direct.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
esphome:
name: ikea-ansluta-example
platform: ESP8266
board: d1_mini
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "Ikea Ansluta Fallback Hotspot"
password: !secret ap_password
captive_portal:
logger:
api:
ota:
external_components:
- source: ../components
spi:
clk_pin: GPIO14
miso_pin: GPIO12
mosi_pin: GPIO13
ikea_ansluta:
cs_pin: GPIO15
on_remote_click:
address: 0xdead
then:
- light.toggle: my_light
# Using a switch to enable/disable pairing mode
switch:
- platform: template
name: "Ikea Ansluta Pairing Mode"
optimistic: true
turn_on_action:
- ikea_ansluta.enable_pairing_mode: my_light
turn_off_action:
- ikea_ansluta.disable_pairing_mode: my_light
light:
- platform: ikea_ansluta
id: my_light
name: 'IKEA Ansluta'
address: 0xbeef