mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
* Move device files from devices folder to root * Update relative file references to match new relative paths * Update README with new folder structure
34 lines
621 B
YAML
34 lines
621 B
YAML
substitutions:
|
|
board: esp01_1m
|
|
log_baud_rate: '0'
|
|
|
|
external_components:
|
|
- source:
|
|
type: local
|
|
path: ./components
|
|
components: [ tuya_dimmer_as_fan ]
|
|
|
|
packages:
|
|
base: !include device_base_esp8266.yaml
|
|
uart: !include uart/tuya.yaml
|
|
|
|
fan:
|
|
- platform: tuya_dimmer_as_fan
|
|
id: tuya_fan
|
|
name: ${device_name}
|
|
switch_datapoint: 1
|
|
dimmer_datapoint: 2
|
|
dimmer_max_value: 1000
|
|
power:
|
|
id: power
|
|
name: ${device_name} Power
|
|
fan_wattage: ${fan_wattage}
|
|
|
|
sensor:
|
|
- platform: total_daily_energy
|
|
name: ${device_name}
|
|
power_id: power
|
|
method: left
|
|
|
|
tuya:
|