-
Notifications
You must be signed in to change notification settings - Fork 4
/
tuya_light.yaml
42 lines (39 loc) · 1.05 KB
/
tuya_light.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This exposes a light entity to the frontend (like Home Assistant).
# Tuya datapoints thanks of https://github.com/SirMrDexter/skyfandc
#
# **WARNING**
# Untested and incomplete.
---
substitutions:
light_name: "SkyFan DC Light"
light:
- id: skyfan_light
platform: tuya
name: ${light_name}
switch_datapoint: 15
dimmer_datapoint: 16
min_value: 0
max_value: 5
# color_temperature_datapoint: 19
# color_temperature_max_value: 2
# color_temperature_invert: true
# color_mode: BRIGHTNESS # [color_mode] is an invalid option for [light.tuya].
restore_mode: ALWAYS_ON
disabled_by_default: true
# select:
# - id: datapoint_light_color_temperature
# platform: tuya
# tuya_id: tuyamcu
# name: ${light_name} Color Temperature
# enum_datapoint: 19
# options:
# 0: 'WARM WHITE (3000K)'
# 1: 'NATURAL WHITE (4200K)'
# 2: 'COOL WHITE (6500K)'
# disabled_by_default: true
# tuya:
# id: tuyamcu
# on_datapoint_update:
# - sensor_datapoint: 15
# datapoint_type: bool
# then: []