-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathlight.yaml
executable file
·76 lines (57 loc) · 2.04 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
###############KITCHEN CABINET LIGHTS
- platform: flux_led
devices:
10.10.10.110:
name: kitchen_cabinet_lights
################MASTER BEDROOM LIGHTS
- platform: mqtt
name: "Master Bedroom Light"
command_topic: "sonoff/cmnd/br_light/POWER"
state_topic: "sonoff/stat/br_light/POWER"
state_value_template: "{{value_json.POWER}}"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Gameroom Fan Light"
command_topic: "sonoff/cmnd/gameroom-fan-light/POWER"
state_topic: "sonoff/stat/gameroom-fan-light/POWER"
retain: true
payload_on: "ON"
payload_off: "OFF"
#################FOYER DOWNLIGHT
- platform: mqtt
name: "Foyer Downlight"
command_topic: "tuya/cmnd/foyer_downlight/POWER"
state_topic: "tuya/stat/foyer_downlight/RESULT"
state_value_template: "{{value_json.POWER}}"
brightness_state_topic: "tuya/stat/foyer_downlight/RESULT"
brightness_command_topic: "tuya/cmnd/foyer_downlight/Dimmer"
brightness_scale: 100
brightness_value_template: "{{value_json.Dimmer}}"
white_value_state_topic: "tuya/stat/foyer_downlight/RESULT"
white_value_command_topic: "tuya/cmnd/foyer_downlight/Channel4"
white_value_scale: 100
white_value_template: "{{value_json.Channel[3]}}"
payload_on: "ON"
payload_off: "OFF"
rgb_command_topic: "tuya/cmnd/foyer_downlight/Color2"
rgb_state_topic: "tuya/stat/foyer_downlight/RESULT"
rgb_value_template: "{{value_json.Color.split(',')[0:3]|join(',')}}"
#########################################################
- platform: group
name: Gameroom Lights
entities:
- light.03571318807d3a635442
- light.6760761084f3eb750a88
#########################################################
- platform: mqtt
name: "Office Light"
command_topic: "sonoff/cmnd/office-switch/POWER3"
state_topic: "sonoff/stat/office-switch/POWER3"
state_value_template: "{{value_json.POWER3}}"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true