Skip to content

Commit a8eca6f

Browse files
committed
Remove backups.yaml configuration file and update llmvision.yaml for garbage can detection, including renaming entities and adjusting automation logic. Modify air quality condition in briefing.yaml to display only when the index exceeds 50.
1 parent 02a554a commit a8eca6f

File tree

3 files changed

+21
-49
lines changed

3 files changed

+21
-49
lines changed

config/packages/backups.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

config/packages/llmvision.yaml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
# LLM Vision test package: checks the garage camera for garbage cans in the upper-right corner.
2-
# Trigger with input_button.llmvision_garbage_check to update input_boolean.garbage_cans_in.
1+
######################################################################
2+
# @CCOSTAN - Follow Me on X
3+
# For more info visit https://www.vcloudinfo.com/click-here
4+
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
5+
# -------------------------------------------------------------------
6+
# LLM Vision - Garage Cans X Check - detects reflective X on right wall
7+
# Trigger with input_button.llmvision_garbage_check to update garbage_cans_out.
8+
# -------------------------------------------------------------------
9+
# Notes: LLMVision analyzes camera.garagecam; expects strict "on"/"off" output.
10+
# Docs: https://llmvision.gitbook.io/getting-started/usage/image-analyzer
11+
######################################################################
312

413
input_button:
514
llmvision_garbage_check:
615
name: "LLM Vision: Garage cans check"
716
icon: mdi:delete-variant
817

918
input_boolean:
10-
garbage_cans_in:
11-
name: "Garbage cans in upper right"
19+
garbage_cans_out:
20+
name: "Garbage Cans Out"
1221
icon: mdi:trash-can
1322

1423
input_text:
@@ -27,34 +36,34 @@ input_datetime:
2736

2837
template:
2938
- binary_sensor:
30-
- name: "Garbage cans in"
31-
unique_id: llmvision_garbage_cans_in
39+
- name: "Garbage Cans Out"
40+
unique_id: llmvision_garbage_cans_out
3241
device_class: presence
33-
state: "{{ is_state('input_boolean.garbage_cans_in', 'on') }}"
42+
state: "{{ is_state('input_boolean.garbage_cans_out', 'on') }}"
3443
attributes:
3544
last_run: "{{ states('input_datetime.llmvision_garbage_last_run') }}"
3645
last_response: "{{ states('input_text.llmvision_garbage_last_response') }}"
3746
last_key_frame: "{{ states('input_text.llmvision_garbage_last_keyframe') }}"
3847
source_camera: camera.garagecam
3948

4049
automation:
41-
- alias: LLM Vision - Garage cans upper right
50+
- alias: LLM Vision - Garbage cans out
4251
id: d88a2e6d-78f3-4bb7-9d9f-c4d06e6eb5a9
4352
mode: restart
4453
trigger:
4554
- platform: state
4655
entity_id: input_button.llmvision_garbage_check
4756
variables:
4857
prompt_text: >
49-
Examine ONLY the upper-right quadrant of the image (top half + right half). Ignore everything else (car, floor text, door, bikes, bottles, bags). If you see a black garbage can in that upper-right quadrant, respond exactly "on". If none are present there, respond exactly "off". Do not add any other words.
58+
Examine the image. I have taped a reflective X on the right wall. Look for the reflective X on the right wall. If you clearly see the X, respond exactly: on. If you cannot see the X, respond exactly: off. No other words.
5059
action:
5160
- service: llmvision.data_analyzer
5261
response_variable: llmvision_result
5362
data:
5463
provider: !secret llmvision_provider_entry
55-
model: gpt-4o-mini
64+
model: gpt-4.1-nano
5665
message: "{{ prompt_text }}"
57-
sensor_entity: input_boolean.garbage_cans_in
66+
sensor_entity: input_boolean.garbage_cans_out
5867
image_entity:
5968
- camera.garagecam
6069
include_filename: false

config/templates/speech/briefing.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
[Here is the current weather outside]
3636
{% set aq_description = state_attr('sensor.bear_stone_common_air_quality_index', 'description') | default('') %}
3737
{% set aq_index = states('sensor.bear_stone_common_air_quality_index') | int(0) %}
38-
{% if aq_index >= 15 %}
38+
{% if aq_index >= 50 %}
3939
[Air Quality: {{ aq_description }}]
4040
{% endif %}
4141
{% set pirateweather_metrics = states.sensor

0 commit comments

Comments
 (0)