set up dependencies and rich logging
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -6,3 +6,5 @@ secrets.yaml
|
|||||||
.python-version
|
.python-version
|
||||||
|
|
||||||
*.ipynb
|
*.ipynb
|
||||||
|
|
||||||
|
logs/
|
||||||
@@ -2,6 +2,10 @@ hello_world:
|
|||||||
module: hello_world
|
module: hello_world
|
||||||
class: HelloWorld
|
class: HelloWorld
|
||||||
|
|
||||||
|
rich_logging:
|
||||||
|
module: console
|
||||||
|
global: true
|
||||||
|
|
||||||
living_room_tv:
|
living_room_tv:
|
||||||
module: tv
|
module: tv
|
||||||
class: SoundBar
|
class: SoundBar
|
||||||
|
|||||||
Submodule apps/room_control updated: 02726b0766...fe0b3057ed
@@ -1,6 +1,8 @@
|
|||||||
bathroom:
|
bathroom:
|
||||||
module: room_control
|
module: room_control
|
||||||
class: RoomController
|
class: RoomController
|
||||||
|
dependencies:
|
||||||
|
- rich_logging
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
off_duration: '00:05:00'
|
off_duration: '00:05:00'
|
||||||
states:
|
states:
|
||||||
@@ -35,6 +37,8 @@ bathroom:
|
|||||||
bathroom_button:
|
bathroom_button:
|
||||||
module: button
|
module: button
|
||||||
class: Button
|
class: Button
|
||||||
|
dependencies:
|
||||||
|
- bathroom
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
app: bathroom
|
app: bathroom
|
||||||
button: Bathroom Button
|
button: Bathroom Button
|
||||||
@@ -43,6 +47,8 @@ bathroom_button:
|
|||||||
bathroom_motion:
|
bathroom_motion:
|
||||||
module: motion
|
module: motion
|
||||||
class: Motion
|
class: Motion
|
||||||
|
dependencies:
|
||||||
|
- bathroom
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
app: bathroom
|
app: bathroom
|
||||||
sensor: binary_sensor.bathroom_motion_occupancy
|
sensor: binary_sensor.bathroom_motion_occupancy
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
bedroom:
|
bedroom:
|
||||||
module: room_control
|
module: room_control
|
||||||
class: RoomController
|
class: RoomController
|
||||||
|
dependencies:
|
||||||
|
- rich_logging
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
off_duration: '00:05:00'
|
off_duration: '00:05:00'
|
||||||
states:
|
states:
|
||||||
@@ -77,6 +79,8 @@ bedroom:
|
|||||||
bedroom_buttons:
|
bedroom_buttons:
|
||||||
module: button
|
module: button
|
||||||
class: Button
|
class: Button
|
||||||
|
dependencies:
|
||||||
|
- bedroom
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
app: bedroom
|
app: bedroom
|
||||||
ref_entity: light.bedroom
|
ref_entity: light.bedroom
|
||||||
@@ -87,6 +91,8 @@ bedroom_buttons:
|
|||||||
bedroom_motion:
|
bedroom_motion:
|
||||||
module: motion
|
module: motion
|
||||||
class: Motion
|
class: Motion
|
||||||
|
dependencies:
|
||||||
|
- bedroom
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
app: bedroom
|
app: bedroom
|
||||||
sensor: binary_sensor.bedroom_motion_occupancy
|
sensor: binary_sensor.bedroom_motion_occupancy
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
closet:
|
closet:
|
||||||
module: room_control
|
module: room_control
|
||||||
class: RoomController
|
class: RoomController
|
||||||
|
dependencies:
|
||||||
|
- rich_logging
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
off_duration: '00:02:00'
|
off_duration: '00:02:00'
|
||||||
states:
|
states:
|
||||||
@@ -28,6 +30,8 @@ closet:
|
|||||||
closet_motion:
|
closet_motion:
|
||||||
module: motion
|
module: motion
|
||||||
class: Motion
|
class: Motion
|
||||||
|
dependencies:
|
||||||
|
- closet
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
app: closet
|
app: closet
|
||||||
sensor: binary_sensor.closet_motion_occupancy
|
sensor: binary_sensor.closet_motion_occupancy
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
kitchen:
|
kitchen:
|
||||||
module: room_control
|
module: room_control
|
||||||
class: RoomController
|
class: RoomController
|
||||||
|
dependencies:
|
||||||
|
- rich_logging
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
off_duration: '00:10:00'
|
off_duration: '00:10:00'
|
||||||
# ha_button: input_button.activate_kitchen
|
# ha_button: input_button.activate_kitchen
|
||||||
@@ -40,6 +42,8 @@ kitchen:
|
|||||||
kitchen_button:
|
kitchen_button:
|
||||||
module: button
|
module: button
|
||||||
class: Button
|
class: Button
|
||||||
|
dependencies:
|
||||||
|
- kitchen
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
app: kitchen
|
app: kitchen
|
||||||
button: Kitchen Button
|
button: Kitchen Button
|
||||||
@@ -48,6 +52,8 @@ kitchen_button:
|
|||||||
kitchen_motion:
|
kitchen_motion:
|
||||||
module: motion
|
module: motion
|
||||||
class: Motion
|
class: Motion
|
||||||
|
dependencies:
|
||||||
|
- kitchen
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
app: kitchen
|
app: kitchen
|
||||||
sensor: binary_sensor.kitchen_motion_occupancy
|
sensor: binary_sensor.kitchen_motion_occupancy
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
laundry:
|
laundry:
|
||||||
module: room_control
|
module: room_control
|
||||||
class: RoomController
|
class: RoomController
|
||||||
|
dependencies:
|
||||||
|
- rich_logging
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
off_duration: '00:02:00'
|
off_duration: '00:02:00'
|
||||||
states:
|
states:
|
||||||
@@ -28,6 +30,8 @@ laundry:
|
|||||||
laundry_motion:
|
laundry_motion:
|
||||||
module: motion
|
module: motion
|
||||||
class: Motion
|
class: Motion
|
||||||
|
dependencies:
|
||||||
|
- laundry
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
rich: DEBUG
|
rich: DEBUG
|
||||||
app: laundry
|
app: laundry
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
living_room:
|
living_room:
|
||||||
module: room_control
|
module: room_control
|
||||||
class: RoomController
|
class: RoomController
|
||||||
|
dependencies:
|
||||||
|
- rich_logging
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
off_duration: 00:30:00
|
off_duration: 00:30:00
|
||||||
states:
|
states:
|
||||||
@@ -69,6 +71,8 @@ living_room:
|
|||||||
front_door:
|
front_door:
|
||||||
module: door
|
module: door
|
||||||
class: Door
|
class: Door
|
||||||
|
dependencies:
|
||||||
|
- living_room
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
app: living_room
|
app: living_room
|
||||||
door: binary_sensor.front_contact
|
door: binary_sensor.front_contact
|
||||||
@@ -76,6 +80,8 @@ front_door:
|
|||||||
living_room_button:
|
living_room_button:
|
||||||
module: button
|
module: button
|
||||||
class: Button
|
class: Button
|
||||||
|
dependencies:
|
||||||
|
- living_room
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
app: living_room
|
app: living_room
|
||||||
button: Living Room Button
|
button: Living Room Button
|
||||||
@@ -84,6 +90,8 @@ living_room_button:
|
|||||||
living_room_motion:
|
living_room_motion:
|
||||||
module: motion
|
module: motion
|
||||||
class: Motion
|
class: Motion
|
||||||
|
dependencies:
|
||||||
|
- living_room
|
||||||
# rich: DEBUG
|
# rich: DEBUG
|
||||||
app: living_room
|
app: living_room
|
||||||
sensor: binary_sensor.living_room_motion_occupancy
|
sensor: binary_sensor.living_room_motion_occupancy
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ services:
|
|||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- config:/conf:ro
|
- config:/conf:ro
|
||||||
|
- logs:/logs
|
||||||
ports:
|
ports:
|
||||||
- 5050:5050
|
- 5050:5050
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -22,3 +23,9 @@ volumes:
|
|||||||
o: bind
|
o: bind
|
||||||
type: none
|
type: none
|
||||||
device: ./
|
device: ./
|
||||||
|
logs:
|
||||||
|
driver: local
|
||||||
|
driver_opts:
|
||||||
|
o: bind
|
||||||
|
type: none
|
||||||
|
device: ./logs
|
||||||
|
|||||||
Reference in New Issue
Block a user