-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnodemcu-ps4iot-v1.yaml
68 lines (57 loc) · 1.61 KB
/
nodemcu-ps4iot-v1.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
esphome:
name: nodemcu-ps4iot-v1
platform: ESP8266
board: nodemcuv2
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "yourOTApassword"
ota:
password: "yourOTApassword"
wifi:
ssid: "yourSSID"
password: "yourSSIDpassword"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Nodemcu-Ps4Iot-V1"
password: "ssYO7zyBVJEl"
captive_portal:
switch:
- platform: gpio
pin: D5
name: "NodeMCU PS4IoT Bat Charge Enable"
restore_mode: RESTORE_DEFAULT_OFF
- platform: shutdown
name: "NodeMCU PS4IoT Node Infinite Shutdown"
- platform: restart
name: "NodeMCU PS4IoT Node Software Restart"
binary_sensor:
- platform: gpio
name: "NodeMCU PS4IoT RED Charge In progress"
pin:
number: D1
inverted: true
- platform: gpio
name: "NodeMCU PS4IoT BLUE Charge Completed"
pin:
number: D2
inverted: true
- platform: gpio
name: "NodeMCU PS4IoT External Power Supply Detector"
pin:
number: D6
- platform: status
name: "NodeMCU PS4IoT Node Status"
sensor:
- platform: adc
pin: A0
name: "NodeMCU Battery Voltage Level"
icon: "mdi:sine-wave"
unit_of_measurement: "V"
device_class: "voltage"
state_class: "measurement"
update_interval: 1s
filters:
- multiply: 5.0
#License record: IoT-devices, LLC : EO/zaD7NcdSfHLgB/OlzLx/6De/N5thMJ1PCZSsxhxqd3J4OoHK84QQgNlKVSh5X1lrEp0a0/8fRyTThM649FZNcQPydSrHadjHNH3pMPb6q4sDRHzsmt4vE18M3cfG+Rd7cMNqqlTl2IUu5J7mLiclji8di0FSBIB7UOnf14JxJ71oruGPkEiqK9yLAw4or