63 lines
1.4 KiB
YAML
Executable File
63 lines
1.4 KiB
YAML
Executable File
kitchen:
|
|
module: room_control
|
|
class: RoomController
|
|
loki_url: http://192.168.1.107:3100/loki/api/v1/push
|
|
dependencies:
|
|
- rich_logging
|
|
# rich: DEBUG
|
|
off_duration: '00:10:00'
|
|
# ha_button: input_button.activate_kitchen
|
|
sleep: input_boolean.sleeping
|
|
sleep_state:
|
|
scene:
|
|
light.kitchen:
|
|
state: on
|
|
brightness: 1
|
|
states:
|
|
- time: sunrise
|
|
scene:
|
|
light.kitchen:
|
|
state: on
|
|
color_temp: 200
|
|
brightness: 25
|
|
- time: '12:00:00'
|
|
scene:
|
|
light.kitchen:
|
|
state: on
|
|
color_temp: 300
|
|
brightness: 75
|
|
- time: sunset
|
|
scene:
|
|
light.kitchen:
|
|
state: on
|
|
color_temp: 450
|
|
brightness: 100
|
|
- time: '22:00:00'
|
|
off_duration: '00:02:00'
|
|
scene:
|
|
light.kitchen:
|
|
state: on
|
|
color_temp: 650
|
|
brightness: 25
|
|
|
|
kitchen_button:
|
|
module: room_control
|
|
class: Button
|
|
loki_url: http://192.168.1.107:3100/loki/api/v1/push
|
|
dependencies:
|
|
- kitchen
|
|
# rich: DEBUG
|
|
app: kitchen
|
|
button: Kitchen Button
|
|
ref_entity: light.kitchen
|
|
|
|
kitchen_motion:
|
|
module: room_control
|
|
class: Motion
|
|
loki_url: http://192.168.1.107:3100/loki/api/v1/push
|
|
dependencies:
|
|
- kitchen
|
|
# rich: DEBUG
|
|
app: kitchen
|
|
sensor: binary_sensor.kitchen_motion_occupancy
|
|
ref_entity: light.kitchen |