|
|
配置文件:
5 m4 o0 _) v% U' N1 w7 W5 [
$ o/ D4 y$ k. u2 `$ w' n' t7 [esphome:9 k3 n4 K9 S A
name: home_power_monitor% s% M% o9 ?- p% Y
platform: ESP8266. H) z; f* [. o1 p7 T( U6 e
board: nodemcuv2
% J' X2 U# ?. L+ a8 S) e
2 S- {7 F! s* Papi:
/ S% z" U, R# E reboot_timeout: 600s e9 N. G0 i+ i: i# {5 H1 {5 H
* b" E5 d1 q, j; I) y" h
ota:. @# U9 l# ^' ^6 ^& S
captive_portal:
9 R9 |$ e: O* z0 z5 H5 l
5 t% g5 a5 G. s2 jweb_server:# W& ^! J" p! D; C1 H
$ |$ D8 K9 w) \* @. d
wifi:: E7 |. u6 Y, U* L' q- ? G
ssid: XXXXX
$ h" R# d$ v& I2 |0 Y I password: XXXXXXXXXXX+ l; w v5 k- ^3 O" y
reboot_timeout: 180s
" v" g" e, P, T& e: M8 f. S power_save_mode: none
; t. X8 d" H; u' l1 s/ a
8 @ |: ?* P! V$ auart:
* h0 f0 P& r7 F' @- H tx_pin: D1) `8 G8 O( k# t8 t$ \, {! u* c' V
rx_pin: D2
! r: S; H# V8 k) A% }2 C baud_rate: 9600! Q- r: _4 v/ l3 o
stop_bits: 1
' @! i3 R& j; `8 m9 {; e
4 M& g) d7 v* t5 m" p l/ v) o( D' @sensor:: ~/ f. j9 D0 ?2 J9 g# G; J }
- platform: pzemac; c) j& T ^$ ~+ f' Z7 }, V
current:( n/ {! ]$ E; e6 R. D* R! t+ r
id: "current"
. y/ @& r6 u, j4 O name: "Home Power Monitor Current"# [* Y" V9 f8 B" j; J
voltage:
/ D$ R6 e& S1 u; F6 }3 C2 H+ H name: "Home Power Monitor Voltage"6 |$ U- J K7 q
power:
% [) n% G4 V a, N+ P' S$ | name: "Home Power Monitor Power"0 a4 y8 _ Y) d, O6 p
energy:
3 |. d0 @# c# u) x- A( w, g# _$ B name: "Home Power Monitor Energy"4 [: x3 j0 u: z; M
frequency:
1 x: C3 @. ]9 H, f5 R name: "Home Power Monitor Frequency"! ?3 q4 f* Y" w. E' b! Q
power_factor:
: P! x3 _% \# w& A/ ]6 F name: "Home Power Monitor PowerFactor"
; ~% g6 O0 @: R9 P update_interval: 1s
( O. v- v% d8 |# v5 J0 n' _+ s, I2 F4 |0 d* ^
binary_sensor:0 L+ Y6 p( s4 z: }& C
- platform: homeassistant2 G2 x& s( ?3 q0 o
name: "Input Boolean From Home Assistant"
. [2 S# E' S- p: B9 }' j( R entity_id: input_boolean.state_home5 P& y2 H" Q$ E* c7 j: S
on_press:/ g8 o4 c+ _4 n2 w
- sensor.integration.reset: current |
|