2020-11-20 14:07:51 +00:00
|
|
|
substitutions:
|
|
|
|
platform: ESP8266
|
|
|
|
board: esp01_1m
|
|
|
|
|
2021-07-13 12:55:29 +00:00
|
|
|
external_components:
|
|
|
|
- source:
|
|
|
|
type: local
|
|
|
|
path: ../components
|
|
|
|
components: [ tuya, tuya_dimmer_as_fan ]
|
2020-11-20 14:07:51 +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-11-20 14:07:51 +00:00
|
|
|
|
2021-06-18 19:44:49 +00:00
|
|
|
tuya:
|
|
|
|
|
2021-07-13 12:55:29 +00:00
|
|
|
fan:
|
|
|
|
- platform: tuya_dimmer_as_fan
|
|
|
|
id: tuya_fan
|
|
|
|
name: ${device_name}
|
|
|
|
switch_datapoint: 1
|
|
|
|
dimmer_datapoint: 2
|
|
|
|
dimmer_max_value: 1000
|