ESPHome-Devices/devices/patio_lights.yaml
Chris Nussbaum adc77d67d9
Energy monitoring fixes (#17)
* Fix energy monitoring for feit dimmers

* More energy reporting fixes/updates

* More energy monitoring updates

* Include missed readme update

* Final power monitoring updates

Co-authored-by: Chris Nussbaum <chris.nussbaum@protolabs.com>
2021-08-17 21:55:21 -05:00

51 lines
1.0 KiB
YAML

substitutions:
device_id: patio_lights
device_name: Patio Lights
platform: ESP8266
board: d1_mini
ip_address: !secret patio_lights_ip
ota_pwd: !secret patio_lights_ota_pwd
api_pwd: !secret patio_lights_api_pwd
ap_wifi_pwd: !secret patio_lights_ap_wifi_pwd
packages:
device_base: !include ../packages/device_base.yaml
external_components:
- source:
type: local
path: ../components
components: [ binary_light_with_power, total_daily_energy ]
- source: github://cbpowell/ESPSense
components: [ espsense ]
espsense:
plugs:
- name: ${device_name}
power_sensor: power
voltage: 120
light:
- platform: binary_light_with_power
name: ${device_name}
output: patio_lights_output
power:
id: power
name: ${device_name} Power
light_wattage: 15.3
output:
- platform: gpio
id: patio_lights_output
pin: D1
sensor:
- platform: total_daily_energy
name: ${device_name}
power_id: power
method: left
min_save_interval: 10min
time:
- platform: homeassistant