42 lines
989 B
YAML
Executable File
42 lines
989 B
YAML
Executable File
substitutions:
|
|
device_name: "zemismart-curtain"
|
|
friendly_name: "zemismart curtain"
|
|
comment: "esp8266 tuya mcu curtain"
|
|
location: "overloop"
|
|
api_password: !secret zemismart_curtain
|
|
ota_password: !secret ota_password
|
|
wifi_ssid: !secret wifi_ssid
|
|
wifi_password: !secret wifi_password
|
|
gateway: !secret ip_gateway
|
|
subnet: !secret ip_subnet
|
|
ip: !secret zemismart_curtain_ip
|
|
pin_curtain_rx: GPIO13
|
|
pin_curtain_tx: GPIO15
|
|
|
|
|
|
packages:
|
|
board: !include boards/esp01.yaml
|
|
device_base: !include common/common.yaml
|
|
connection: !include common/wifi.yaml
|
|
logger: !include templates/nologger.yaml
|
|
|
|
uart:
|
|
- !include interfaces/uart_tywe1s.yaml
|
|
|
|
esphome:
|
|
includes:
|
|
- include/bcm500ds.h
|
|
|
|
cover:
|
|
- platform: custom
|
|
lambda: |-
|
|
auto curtain = new CustomCurtain();
|
|
App.register_component(curtain);
|
|
return {curtain};
|
|
covers:
|
|
- name: Curtain
|
|
device_class: curtain
|
|
|
|
custom_component:
|
|
- lambda: |-
|
|
return { new CustomAPI() }; |