mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
3cffad99dd
* Update most everything to report power and energy to Home Assistant and Sense * ESPSense is pulled from GitHub Co-authored-by: Chris Nussbaum <chris.nussbaum@protolabs.com>
34 lines
621 B
YAML
34 lines
621 B
YAML
substitutions:
|
|
platform: ESP8266
|
|
board: esp01_1m
|
|
|
|
external_components:
|
|
- source:
|
|
type: local
|
|
path: ../components
|
|
components: [ tuya, tuya_light_plus ]
|
|
- source: github://cbpowell/ESPSense
|
|
components: [ espsense ]
|
|
|
|
espsense:
|
|
plugs:
|
|
- name: ${device_name}
|
|
power_sensor: power
|
|
voltage: 120
|
|
|
|
packages:
|
|
base: !include device_base.yaml
|
|
logger: !include logger/logger_no_serial.yaml
|
|
uart: !include uart/tuya.yaml
|
|
|
|
sensor:
|
|
- platform: total_daily_energy
|
|
name: ${device_name}
|
|
power_id: power
|
|
state_class: measurement
|
|
|
|
time:
|
|
- platform: homeassistant
|
|
|
|
tuya:
|