-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathfire-pit-fountain.yaml
56 lines (53 loc) · 1.16 KB
/
fire-pit-fountain.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
substitutions:
device_id: fire-pit-fountain
device_name: Fire Pit and Fountain
board: d1_mini
ip_address: !secret fire_pit_fountain_ip
api_key: !secret fire_pit_fountain_key
pwd: !secret fire_pit_fountain_pwd
packages:
device_base: !include ./packages/device_base_esp8266.yaml
binary_sensor:
- platform: gpio
id: fountain_toggle
pin:
number: D6
mode: INPUT_PULLUP
inverted: True
filters:
- delayed_on: 100ms
on_press:
then:
- switch.toggle: fountain
- platform: gpio
id: fire_pit_toggle
pin:
number: D7
mode: INPUT_PULLUP
inverted: True
filters:
- delayed_on: 100ms
on_multi_click:
- timing:
- ON for at least 3s
- OFF for at least .1s
then:
- switch.toggle: fire_pit
- timing:
- ON for at most 3s
- OFF for at least .1s
then:
- switch.turn_off: fire_pit
switch:
- platform: gpio
id: fountain
name: "Fountain"
icon: mdi:fountain
pin: D1
inverted: true
- platform: gpio
id: fire_pit
name: "Fire Pit"
icon: mdi:fire
pin: D2
inverted: true