-
Notifications
You must be signed in to change notification settings - Fork 0
/
lights.yaml
35 lines (33 loc) · 1.16 KB
/
lights.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
- platform: switch
name: Living Main
entity_id: switch.0x847127fffea207cd_switch # living main light button
- platform: switch
name: Bedroom Main
entity_id: switch.0x847127fffea205d5_switch # bedroom main light button
- platform: mqtt
name: bedroom_light
state_topic: 'bedroom/light/switch_state'
payload_on: "ON"
payload_off: "OFF"
command_topic: 'bedroom/light/switch'
brightness_state_topic: "bedroom/light/state"
brightness_command_topic: 'bedroom/light/dimm'
brightness_scale: 2
qos: 1
retain: true
optimistic: false
## Виртуальные диммеры. Переключение уровней света
# - platform: template
# lights:
# hallway_lights:
# friendly_name: "Hallway Lights"
# level_template: "{{ state_attr('sensor.theater_brightness', 'lux')|int }}"
# value_template: "{{ state_attr('sensor.theater_brightness', 'lux')|int > 0 }}"
# turn_on:
# service: script.theater_lights_on
# turn_off:
# service: script.theater_lights_off
# set_level:
# service: script.theater_lights_level
# data:
# brightness: "{{ brightness }}"