|
楼主 |
发表于 2020-5-21 17:19:06
|
显示全部楼层
配置文件:
/ N# Z8 M) V: z. i
" Z6 }, p4 Z. h: l/ Oesphome:* }4 [" V6 `, F
name: home_power_monitor1 \4 l: s+ W# N4 R9 p
platform: ESP8266
% c1 X& P8 i+ z% N8 A( u board: nodemcuv2
, p4 k' Z6 f" x* S' y- b4 C5 r
7 U7 ?- H: Y7 y: f) T! m# napi:
& @) b U" U% h1 ?9 m6 S% E reboot_timeout: 600s
8 e' D" ?1 p- ~& j: S- t/ Z3 M' s8 g
ota:
' P. u6 W5 I9 j8 _6 n( fcaptive_portal:5 {+ _( V6 K* Q P
4 K( n$ {' B4 e" T7 Wweb_server:2 Y- |4 h8 @+ y' [4 t; X
) h2 c' O* F- N* s
wifi:* k8 l5 Z! h! Q F7 n$ h! O
ssid: XXXXX; ]* Z2 B* i3 K( t9 Y3 i
password: XXXXXXXXXXX
6 c: D+ M6 ?" P* n- K, G reboot_timeout: 180s. F$ `. g& ~( f+ K+ X& g" M
power_save_mode: none
6 H% e" B* w5 o) y; U5 M( ?2 ?! w: v
+ t1 `( A5 A0 e) @" huart:' ^0 Z# h% {( a: Q n$ h8 `
tx_pin: D1; h m* N& m- h* t- t
rx_pin: D20 t4 [% `, Z) X; v$ q Q
baud_rate: 9600; ?7 Q5 Y" \, W2 U/ g) c
stop_bits: 1, t' B4 K9 _2 y. T% p& P+ q- M
, M0 v' q1 k: y' P" H9 y
sensor:
% P- i/ m" A' n; I# _+ P: l - platform: pzemac
0 W/ k$ G' p y6 b& K7 ]4 ]2 B0 ~ current:* }% S9 J7 m& i/ E% }/ a* x
id: "current"4 |) J6 ?4 t+ j
name: "Home Power Monitor Current"
0 A5 G u5 N. i6 I* j* b' S" Y& j voltage:
4 k! X; l1 j7 b% x! C4 y( r0 B1 J: ? name: "Home Power Monitor Voltage"
$ ?! f* c9 m# ? a power:
9 ^6 I: J, J2 C& T! l- r& M G name: "Home Power Monitor Power"
: Q Y- p9 J" ^/ z2 V( U6 Q# \; S energy:" D$ y% S5 y7 f! O, o" B* B& }1 j3 r
name: "Home Power Monitor Energy"
" |! K$ G: p: y# o frequency:( |( r9 ]" e, F, {& g
name: "Home Power Monitor Frequency"
- U, b2 ~% h8 u power_factor:7 I e5 Z& {4 R6 o/ c
name: "Home Power Monitor PowerFactor"
9 L, t* I, k! U; j& ~3 t update_interval: 1s& x c& g8 N( D$ H( m
4 ^5 m2 Z3 j1 R! F M* F/ y
binary_sensor:$ B: Z. _" K1 ?1 V/ ?' H: D& u
- platform: homeassistant
0 _2 j1 N1 g* E: q name: "Input Boolean From Home Assistant"2 }6 B, C! S( @8 U: Q
entity_id: input_boolean.state_home7 E# S/ R# C' o: P
on_press: B1 K4 T0 ^( H* a8 l6 \
- sensor.integration.reset: current |
|