ESPHome-Devices/devices/computer_light.yaml

33 lines
827 B
YAML
Raw Normal View History

2020-05-13 21:36:37 +00:00
substitutions:
device_id: computer_light
device_name: Computer Light
ip_address: !secret computer-light-ip
ota_pwd: !secret computer-light-ota-pwd
api_pwd: !secret computer-light-api-pwd
ap_wifi_pwd: !secret computer-light-ap-pwd
2020-10-07 12:56:19 +00:00
packages:
feit_dimmer: !include ../packages/feit_dimmer.yaml
light:
- platform: tuya_light_plus
id: tuya_light
name: ${device_name}
switch_datapoint: 1
dimmer_datapoint: 2
max_value: 1000
linked_lights:
day_night:
sensor_id: sensor.day_night
sensor_type: text
sensor_day_value: Day
sensor_night_value: Night
day_default_brightness: 255
night_default_brightness: 1
day_auto_off_time: 0 min
night_auto_off_time: 15 min
power:
id: power
name: ${device_name} Power
light_wattage: 11.8