1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add support for Tuya Switches (#1074)

* Add tuya component to test4.yaml

* Add support for tuya switches

* Better config dump
This commit is contained in:
Jesse Hills
2020-07-12 08:52:29 +12:00
committed by GitHub
parent f3158c8b24
commit ef9e6e4d6e
4 changed files with 95 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ web_server:
username: admin
password: admin
tuya:
sensor:
- platform: homeassistant
entity_id: sensor.hello_world
@@ -71,3 +74,8 @@ sensor:
# - platform: apds9960
# type: blue
# name: APDS9960 Blue
switch:
- platform: tuya
id: tuya_switch
switch_datapoint: 1