forked from ewallis/parkingsensor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
esp.yaml
81 lines (80 loc) · 1.85 KB
/
esp.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
73
74
75
76
77
78
79
80
81
sensor:
- platform: wifi_signal
name: "Attached Garage Sensor WiFi Signal"
update_interval: 60s
- platform: dht
pin: D7
temperature:
name: "Attached Garage Sensor Temperature"
humidity:
name: "Attached Garage Sensor Humidity"
update_interval: 60s
model: DHT22
- platform: ultrasonic
trigger_pin: D1
echo_pin: D2
update_interval: 1s
name: "Attached Garage Ultrasonic"
id: ultrasonic_id
filters:
filter_out: nan
timeout: 4m
on_value_range:
- below: 0.2
then:
- light.turn_on:
id: parkingled
brightness: 100%
red: 100%
green: 0%
blue: 0%
- above: 0.2
below: 0.3
then:
- light.turn_on:
id: parkingled
brightness: 100%
red: 100%
green: 100%
blue: 0%
- above: 0.3
below: 0.4
then:
- light.turn_on:
id: parkingled
brightness: 100%
red: 0%
green: 100%
blue: 0%
- above: 0.5
then:
- light.turn_off:
id: parkingled
- below: 0.1
then:
- light.turn_on:
id: parkingled
effect: "Red Strobe"
light:
- platform: fastled_clockless
chipset: WS2812B
pin: GPIO12
num_leds: 21
rgb_order: GRB
name: "Attached Garage Parking LED"
restore_mode: ALWAYS_OFF
default_transition_length: 0s
id: parkingled
effects:
- strobe:
- strobe:
name: Red Strobe
colors:
- state: True
brightness: 100%
red: 100%
green: 0%
blue: 0%
duration: 100ms
- state: False
duration: 100ms