single apps per room again based on services update

This commit is contained in:
John Lancaster
2024-07-27 17:38:09 -05:00
parent dbdc088ca0
commit 689a9d0211
7 changed files with 32 additions and 144 deletions

View File

@@ -2,10 +2,12 @@ bathroom:
module: room_control module: room_control
class: RoomController class: RoomController
loki_url: http://192.168.1.107:3100/loki/api/v1/push loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- rich_logging
# rich: DEBUG
off_duration: '00:05:00' off_duration: '00:05:00'
motion:
sensor: binary_sensor.bathroom_motion_occupancy
ref_entity: light.bathroom
button: Bathroom Button
# rich: DEBUG
states: states:
- time: '05:00:00' - time: '05:00:00'
scene: scene:
@@ -34,25 +36,3 @@ bathroom:
light.bathroom: light.bathroom:
brightness: 1 brightness: 1
color_temp: 250 color_temp: 250
bathroom_button:
module: room_control
class: Button
loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- bathroom
# rich: DEBUG
app: bathroom
button: Bathroom Button
ref_entity: light.bathroom
bathroom_motion:
module: room_control
class: Motion
loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- bathroom
# rich: DEBUG
app: bathroom
sensor: binary_sensor.bathroom_motion_occupancy
ref_entity: light.bathroom

View File

@@ -2,10 +2,14 @@ bedroom:
module: room_control module: room_control
class: RoomController class: RoomController
loki_url: http://192.168.1.107:3100/loki/api/v1/push loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- rich_logging
# rich: DEBUG
off_duration: '00:05:00' off_duration: '00:05:00'
motion:
sensor: binary_sensor.bedroom_motion_occupancy
ref_entity: light.bedroom
button:
- Bedroom Button 1
- Bedroom Button 2
# rich: DEBUG
states: states:
- time: 'sunrise - 03:00:00' - time: 'sunrise - 03:00:00'
scene: scene:
@@ -76,28 +80,3 @@ bedroom:
color_name: blueviolet color_name: blueviolet
brightness: 255 brightness: 255
sleep: input_boolean.sleeping sleep: input_boolean.sleeping
bedroom_buttons:
module: room_control
class: Button
loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- bedroom
# rich: DEBUG
app: bedroom
ref_entity: light.bedroom
button:
- Bedroom Button 1
- Bedroom Button 2
bedroom_motion:
module: room_control
class: Motion
loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- bedroom
# rich: DEBUG
app: bedroom
sensor: binary_sensor.bedroom_motion_occupancy
off_duration: '00:05:00'
ref_entity: light.bedroom

View File

@@ -2,10 +2,11 @@ closet:
module: room_control module: room_control
class: RoomController class: RoomController
loki_url: http://192.168.1.107:3100/loki/api/v1/push loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- rich_logging
# rich: DEBUG
off_duration: '00:02:00' off_duration: '00:02:00'
motion:
sensor: binary_sensor.closet_motion_occupancy
ref_entity: light.closet
# rich: DEBUG
states: states:
- time: 'sunrise - 03:00:00' - time: 'sunrise - 03:00:00'
scene: scene:
@@ -27,14 +28,3 @@ closet:
light.closet: light.closet:
brightness: 100 brightness: 100
color_temp: 400 color_temp: 400
closet_motion:
module: room_control
class: Motion
loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- closet
# rich: DEBUG
app: closet
sensor: binary_sensor.closet_motion_occupancy
ref_entity: light.closet

View File

@@ -2,11 +2,12 @@ kitchen:
module: room_control module: room_control
class: RoomController class: RoomController
loki_url: http://192.168.1.107:3100/loki/api/v1/push loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- rich_logging
# rich: DEBUG
off_duration: '00:10:00' off_duration: '00:10:00'
# ha_button: input_button.activate_kitchen motion:
sensor: binary_sensor.kitchen_motion_occupancy
ref_entity: light.kitchen
button: Kitchen Button
# rich: DEBUG
sleep: input_boolean.sleeping sleep: input_boolean.sleeping
sleep_state: sleep_state:
scene: scene:
@@ -39,25 +40,3 @@ kitchen:
state: on state: on
color_temp: 650 color_temp: 650
brightness: 25 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

View File

@@ -2,10 +2,11 @@ laundry:
module: room_control module: room_control
class: RoomController class: RoomController
loki_url: http://192.168.1.107:3100/loki/api/v1/push loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- rich_logging
# rich: DEBUG
off_duration: '00:02:00' off_duration: '00:02:00'
motion:
sensor: binary_sensor.laundry_motion_occupancy
ref_entity: light.laundry
# rich: DEBUG
states: states:
- time: 'sunrise - 03:00:00' - time: 'sunrise - 03:00:00'
scene: scene:
@@ -27,15 +28,3 @@ laundry:
light.laundry: light.laundry:
brightness: 100 brightness: 100
color_temp: 400 color_temp: 400
laundry_motion:
module: room_control
class: Motion
loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- laundry
# rich: DEBUG
rich: DEBUG
app: laundry
sensor: binary_sensor.laundry_motion_occupancy
ref_entity: light.laundry

View File

@@ -2,10 +2,13 @@ living_room:
module: room_control module: room_control
class: RoomController class: RoomController
loki_url: http://192.168.1.107:3100/loki/api/v1/push loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies: off_duration: '00:30:00'
- rich_logging motion:
sensor: binary_sensor.living_room_motion_occupancy
ref_entity: light.living_room
button: Living Room Button
door: binary_sensor.front_contact
# rich: DEBUG # rich: DEBUG
off_duration: 00:30:00
states: states:
- time: sunrise - time: sunrise
scene: scene:
@@ -68,35 +71,3 @@ living_room:
state: 'on' state: 'on'
rgb_color: [255, 0, 0] rgb_color: [255, 0, 0]
brightness: 25 brightness: 25
front_door:
module: room_control
class: Door
loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- living_room
# rich: DEBUG
app: living_room
door: binary_sensor.front_contact
living_room_button:
module: room_control
class: Button
loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- living_room
# rich: DEBUG
app: living_room
button: Living Room Button
ref_entity: light.living_room
living_room_motion:
module: room_control
class: Motion
loki_url: http://192.168.1.107:3100/loki/api/v1/push
dependencies:
- living_room
# rich: DEBUG
app: living_room
sensor: binary_sensor.living_room_motion_occupancy
ref_entity: light.living_room