Skip to content

Commit

Permalink
Update christmas stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarb committed Dec 29, 2024
1 parent 886d370 commit da99e92
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 15 deletions.
6 changes: 3 additions & 3 deletions automations/christmas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
condition:
- condition: state
entity_id: input_boolean.is_christmas_time
state: "on"
state: 'on'
action:
- service: homeassistant.turn_on
data:
Expand All @@ -22,7 +22,7 @@
condition:
- condition: state
entity_id: input_boolean.is_christmas_time
state: "on"
state: 'on'
action:
- service: homeassistant.turn_off
data:
Expand All @@ -36,7 +36,7 @@
condition:
- condition: state
entity_id: input_boolean.is_christmas_time
state: "on"
state: 'on'
action:
- service: homeassistant.turn_off
data:
Expand Down
1 change: 1 addition & 0 deletions configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ light:
- light.living_room_window_sill
- light.living_room_ceiling
- light.cabinet
- light.living_room_christmas_star
- platform: relative_brightness_light_group
name: Office
entities:
Expand Down
19 changes: 8 additions & 11 deletions groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ bedroom:
name: Bedroom
entities:
- light.bedroom_ceiling
- switch.bedroom_bedside_table_1
- switch.bedroom_bedside_table_2
- switch.bedroom_sideboard_light

- light.bedroom_bedside_table_1
- light.bedroom_bedside_table_2
- light.bedroom_sideboard
bathroom:
name: Bathroom
entities:
Expand All @@ -15,7 +15,6 @@ hallway:
name: Hallway
entities:
- switch.hallway_sideboard_light
- media_player.hallway_speaker
- switch.magic_mirror

kids_room:
Expand All @@ -31,19 +30,13 @@ kitchen:
entities:
- light.kitchen_ceiling
- light.cabinet
- media_player.kitchen_display
- sensor.kitchen_humidity
- sensor.kitchen_temperature

living_room:
name: Living room
entities:
- light.living_room_ceiling
- light.living_room_window_ceiling
- light.living_room_window_sill
- media_player.google_tv
- media_player.living_room_speaker
- media_player.tv

office:
name: Office
Expand All @@ -52,6 +45,10 @@ office:
- light.office_top_corner
- light.office_desk_lamp

balcony:
entities:
- switch.balcony_lights

all_lamps:
entities:
# Balcony
Expand Down
41 changes: 40 additions & 1 deletion scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ smart_living_room_toggle:
{% if is_state('light.living_room', 'on') %}
light.living_room
{% else %}
['light.living_room_window_sill', 'light.cabinet']
['light.living_room_window_sill', 'light.cabinet', 'light.living_room_christmas_star']
{% endif %}
test_script:
Expand Down Expand Up @@ -288,3 +288,42 @@ cast_goodnight_playlist:
| from_json()
| random() }}
analyze_camera_image:
alias: Analyze camera image
sequence:
- action: llmvision.image_analyzer
data:
remember: false
include_filename: false
target_width: 1280
detail: low
max_tokens: 100
temperature: 0.2
expose_images: false
provider: 01JFSR6DB480BQ1J8WXBVWF8EG
message: Describe this image
image_entity:
- camera.magic_mirror_camera
response_variable: Response

analyze_camera_stream:
sequence:
- action: llmvision.stream_analyzer
data:
remember: false
duration: 5
max_frames: 3
include_filename: true
target_width: 1280
detail: low
max_tokens: 100
temperature: 0.2
expose_images: false
provider: 01JFSR6DB480BQ1J8WXBVWF8EG
message: >-
Tell me how many people are leaveing and entering the video frame to
left respective right
image_entity:
- camera.magic_mirror_camera
response_variable: response

0 comments on commit da99e92

Please sign in to comment.