|
楼主 |
发表于 2020-5-21 17:19:06
|
显示全部楼层
配置文件:2 }/ e& t0 m! @; o2 }0 [
2 j% d" d- I3 L8 R6 S T
esphome:
0 n Y8 C" O7 C2 ^! [ name: home_power_monitor3 W1 V5 d; m# e. J6 B- w
platform: ESP8266( W: j# s/ S" L q9 ]
board: nodemcuv2
5 H& y( I$ w5 u5 h, J4 b8 x
& |* q! U8 |1 K( x) P* ^api:8 X" m6 `; i5 V1 `' Y# V( @0 k
reboot_timeout: 600s
$ e8 g: _% N/ }2 D3 C3 b" T: J0 H; \8 K* s
ota:
3 z w0 e f) B/ G+ v% l& Icaptive_portal:/ a& Y" T9 N6 `( B( w& v( r
" E7 Q, b% ~" _9 gweb_server:
$ `; j, T7 ^, C' s3 j2 J, A. Z L/ C: ]+ I0 I4 W( u" H
wifi:
' o/ Z' {- }+ w8 K ssid: XXXXX# k2 n5 b1 y X: L w5 J
password: XXXXXXXXXXX
2 D' Z! E7 u7 c3 i reboot_timeout: 180s- P& b. [* `+ J' S9 ]0 r& X
power_save_mode: none7 v5 a) l8 M5 x' X8 r3 x
' O8 V$ U3 l3 M& H
uart:4 A0 m& [# p. P
tx_pin: D1
5 D1 P, L; q- k' U, Y rx_pin: D29 o! O& f; |5 V8 [$ ]
baud_rate: 9600
5 p: e" w1 Z& R4 @ stop_bits: 14 K2 u. c D5 {
: P, r7 B- D" j4 [9 Rsensor:
$ {6 x( I4 ^( G% Y- a- l8 i& R - platform: pzemac
- y9 G8 z2 j8 n& B5 G9 V current:
! Y! U7 o+ q: n$ E id: "current"
8 b& \3 r5 {+ |3 k name: "Home Power Monitor Current"# M7 `, L" n! y. C
voltage:, z9 h# B" ~- l5 P# b" L: e7 B
name: "Home Power Monitor Voltage"9 J1 \* Y5 m8 C: y! f7 p
power:
( q# i0 W. P% W3 L name: "Home Power Monitor Power"
: i% O9 x0 U" X1 \7 u. \ energy:! S, M( K L" P; L1 L: R' w) I
name: "Home Power Monitor Energy"7 H% {+ o' n, I# }7 M
frequency:. f. M- R8 K0 M4 M1 a
name: "Home Power Monitor Frequency"
2 q7 t3 z; B( N$ K' F+ e+ E) H" ^ power_factor:
! V* |8 |% @9 ?9 {1 ]6 v9 k name: "Home Power Monitor PowerFactor"
# g8 l$ s$ W7 l S# N update_interval: 1s7 G9 y4 o; g1 s0 P- c
5 k# r3 G1 a9 C, K" ?binary_sensor:
) V2 T" H- r; J+ } - platform: homeassistant7 B/ J4 x. @! E1 B' j; J
name: "Input Boolean From Home Assistant"
4 E& U- @( P A' K: W- n entity_id: input_boolean.state_home
, K; @1 n4 M& u! x on_press:
. I0 v* _& n8 f5 Q9 l4 ]/ S' Y - sensor.integration.reset: current |
|