2020-10-07 12:56:19 +00:00
|
|
|
substitutions:
|
|
|
|
platform: ESP8266
|
|
|
|
board: esp01_1m
|
2020-09-29 03:22:53 +00:00
|
|
|
|
2021-06-18 19:44:49 +00:00
|
|
|
external_components:
|
|
|
|
- source:
|
|
|
|
type: local
|
|
|
|
path: ../components
|
2021-07-12 13:33:37 +00:00
|
|
|
components: [ tuya, tuya_light_plus ]
|
2021-08-14 22:13:17 +00:00
|
|
|
- source: github://cbpowell/ESPSense
|
|
|
|
components: [ espsense ]
|
|
|
|
|
|
|
|
espsense:
|
|
|
|
plugs:
|
|
|
|
- name: ${device_name}
|
|
|
|
power_sensor: power
|
|
|
|
voltage: 120
|
2021-06-18 19:44:49 +00:00
|
|
|
|
2020-10-07 12:56:19 +00:00
|
|
|
packages:
|
2021-06-15 22:23:38 +00:00
|
|
|
base: !include device_base.yaml
|
|
|
|
logger: !include logger/logger_no_serial.yaml
|
|
|
|
uart: !include uart/tuya.yaml
|
2020-09-29 03:22:53 +00:00
|
|
|
|
2021-08-14 22:13:17 +00:00
|
|
|
sensor:
|
|
|
|
- platform: total_daily_energy
|
|
|
|
name: ${device_name}
|
|
|
|
power_id: power
|
|
|
|
state_class: measurement
|
|
|
|
|
|
|
|
time:
|
|
|
|
- platform: homeassistant
|
|
|
|
|
2021-06-18 19:44:49 +00:00
|
|
|
tuya:
|