forked from glmnet/esphome_devices
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEHTanque.yaml
More file actions
49 lines (38 loc) · 722 Bytes
/
Copy pathEHTanque.yaml
File metadata and controls
49 lines (38 loc) · 722 Bytes
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
esphome:
name: eh_tanque
platform: ESP8266
board: nodemcu
includes:
- ape.h
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
api:
ota:
i2c:
id: i2ccomponent
logger:
level: DEBUG
custom_component:
- id: ape
lambda: |-
auto ape_component = new ArduinoPortExtender(i2ccomponent, 0x08);
return {ape_component};
output:
- platform: custom
type: binary
lambda: |-
return {ape_binary_output(ape, 4)};
outputs:
- id: gpio_relay_1
switch:
- platform: output
name: "Bomba Tanque"
id: bomba_tanque
output: gpio_relay_1
binary_sensor:
- platform: status
name: "Tanque Status"
on_release:
then:
- switch.turn_off: bomba_tanque