-
Notifications
You must be signed in to change notification settings - Fork 0
/
powermeasure.yaml
62 lines (55 loc) · 1.16 KB
/
powermeasure.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
esphome:
name: powermeasure
platform: ESP8266
board: nodemcuv2
wifi:
ssid: "iot"
password: !secret wifipassword
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
safe_mode: True
password: !secret otapassword
i2c:
scl: GPIO5 #D1
sda: GPIO4 #D2
scan: True
# display:
# - platform: lcd_pcf8574
# dimensions: 16x2
# address: 0x27
# update_interval: 1s
# lambda: |-
# it.printf("water: %g gas: %g", id(water).state,id(gas).state);
# it.printf(0,1,"%gA %gA", id(phase_1).state,id(phase_2).state);
ads1115:
- address: 0x48
sensor:
# - platform: pulse_counter
# pin: GPIO13 #D7
# unit_of_measurement: 'm3'
# name: 'water'
# absolute_count_mode: true
# id: water
# update_interval: 1s
# internal_filter: 100us
# - platform: pulse_counter
# pin: GPIO2 #D4
# unit_of_measurement: 'm3'
# name: 'gas'
# absolute_count_mode: true
# id: gas
# update_interval: 1s
# internal_filter: 100us
- platform: ads1115
multiplexer: 'A0_A1'
gain: 6.144
name: "phase 1"
id: phase_1
- platform: ads1115
multiplexer: 'A2_A3'
gain: 6.144
name: "phase 2"
id: phase_2