From 098ebd69bc50b79e2a08dcebe5366c31394f6a21 Mon Sep 17 00:00:00 2001 From: CeeWeasel Date: Tue, 2 Jul 2024 12:20:03 -0400 Subject: [PATCH] various updates and fixes --- .gitignore | 4 ++++ automations/rooms/garage/garage_lights_to_off.yaml | 5 +++-- .../binary_sensors/rooms/front_room_occupied.yaml | 10 +++++----- components/notifies/mindsdb_responses.yaml | 6 +++--- components/notifies/precipitation.yaml | 8 ++++---- components/notifies/soil_moisture.yaml | 8 ++++---- components/packages/automatic_sprinkler_system.yaml | 8 ++++++-- components/packages/features.yaml | 2 +- .../packages/openmindsai/update_response_log.yaml | 4 +++- configuration.yaml | 1 + esphome/common/device_base.yaml | 1 + esphome/furnace-room-multisensor.yaml | 6 +++--- groups.yaml | 1 + 13 files changed, 39 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 802a56e..c72975f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,10 @@ www/Default Profile.properties .watchman_report.txt watchman_report.txt .vacuum +.exports +.jwt_secret +.version +backup_config.yaml .storage/ .cloud/ diff --git a/automations/rooms/garage/garage_lights_to_off.yaml b/automations/rooms/garage/garage_lights_to_off.yaml index ab27804..1f908ef 100644 --- a/automations/rooms/garage/garage_lights_to_off.yaml +++ b/automations/rooms/garage/garage_lights_to_off.yaml @@ -31,8 +31,9 @@ condition: - condition: state entity_id: - - binary_sensor.inner_garage_door - - binary_sensor.outer_garage_door + # Disabled these top two while I work on fixing the door sensors + # - binary_sensor.inner_garage_door + # - binary_sensor.outer_garage_door #- binary_sensor.garage_door - input_boolean.garage_occupied state: 'off' diff --git a/components/binary_sensors/rooms/front_room_occupied.yaml b/components/binary_sensors/rooms/front_room_occupied.yaml index d2bf31a..e54aa28 100644 --- a/components/binary_sensors/rooms/front_room_occupied.yaml +++ b/components/binary_sensors/rooms/front_room_occupied.yaml @@ -30,8 +30,8 @@ observations: prob_given_false: 0.01 to_state: 'off' - - entity_id: binary_sensor.front_room_person_occupancy - prob_given_true: .99 - prob_given_false: 0.01 - platform: state - to_state: 'on' + # - entity_id: binary_sensor.front_room_person_occupancy + # prob_given_true: .99 + # prob_given_false: 0.01 + # platform: state + # to_state: 'on' diff --git a/components/notifies/mindsdb_responses.yaml b/components/notifies/mindsdb_responses.yaml index 64b40b5..105bcb5 100644 --- a/components/notifies/mindsdb_responses.yaml +++ b/components/notifies/mindsdb_responses.yaml @@ -1,3 +1,3 @@ -name: MindsDB Responses -platform: file -filename: /config/custom_logs/mindsdb_responses.log \ No newline at end of file +# name: MindsDB Responses +# platform: file +# filename: /config/custom_logs/mindsdb_responses.log \ No newline at end of file diff --git a/components/notifies/precipitation.yaml b/components/notifies/precipitation.yaml index ffca838..9b13f25 100644 --- a/components/notifies/precipitation.yaml +++ b/components/notifies/precipitation.yaml @@ -1,4 +1,4 @@ -name: Precipitation -platform: file -filename: /config/custom_logs/precipitation.csv -timestamp: false \ No newline at end of file +# name: Precipitation +# platform: file +# filename: /config/custom_logs/precipitation.csv +# timestamp: false \ No newline at end of file diff --git a/components/notifies/soil_moisture.yaml b/components/notifies/soil_moisture.yaml index 7d312c4..b50dcd9 100644 --- a/components/notifies/soil_moisture.yaml +++ b/components/notifies/soil_moisture.yaml @@ -1,4 +1,4 @@ -name: Soil Moisture -platform: file -filename: /config/custom_logs/soil_moisture.csv -timestamp: false \ No newline at end of file +# name: Soil Moisture +# platform: file +# filename: /config/custom_logs/soil_moisture.csv +# timestamp: false \ No newline at end of file diff --git a/components/packages/automatic_sprinkler_system.yaml b/components/packages/automatic_sprinkler_system.yaml index 0d7c31f..53e4111 100644 --- a/components/packages/automatic_sprinkler_system.yaml +++ b/components/packages/automatic_sprinkler_system.yaml @@ -438,7 +438,9 @@ automation: entity_id: input_boolean.log_precipitation state: "on" action: - - service: notify.precipitation + - service: notify.send_message + target: + entity_id: notify.precipitation data: message: "{{now().strftime('%Y-%m-%d')}}T{{now().strftime('%H:%M:%S.%f')}},{{states('sensor.ecowitt_wh40_21917_precipitation')}},{{states('binary_sensor.is_raining')}},{{state_attr('binary_sensor.is_raining','sample_count')}},{{state_attr('binary_sensor.is_raining','sample_duration')}},{{state_attr('binary_sensor.is_raining','min_gradient')}},{{state_attr('binary_sensor.is_raining','gradient')}}" @@ -474,7 +476,9 @@ automation: entity_id: input_boolean.log_soil_moisture state: "on" action: - - service: notify.soil_moisture + - service: notify.send_message + target: + entity_id: notify.soil_moisture data: message: "{{now().strftime('%Y-%m-%d')}}T{{now().strftime('%H:%M:%S.%f')}},{{states('sensor.fineoffset_wh51_00f935_moisture')}},{{states('sensor.fineoffset_wh51_0ce593_moisture')}},{{states('sensor.fineoffset_wh51_0d1e11_moisture')}}" diff --git a/components/packages/features.yaml b/components/packages/features.yaml index 9ca0fc4..15a400e 100644 --- a/components/packages/features.yaml +++ b/components/packages/features.yaml @@ -1,6 +1,6 @@ counter: system_health: -media_extractor: +#media_extractor: media_source: mobile_app: my: diff --git a/components/packages/openmindsai/update_response_log.yaml b/components/packages/openmindsai/update_response_log.yaml index 23a1a35..2fb7df0 100644 --- a/components/packages/openmindsai/update_response_log.yaml +++ b/components/packages/openmindsai/update_response_log.yaml @@ -8,7 +8,9 @@ automation: attribute: response_text condition: [] action: - - service: notify.mindsdb_responses + - service: notify.send_message + target: + entity_id: notify.mindsdb_responses data: message: > "input":"{{ states('input_text.gpt_prompt') }}","output":"{{ state_attr('sensor.hassio_mindsdb_response','response_text')}}" diff --git a/configuration.yaml b/configuration.yaml index 5d35489..5b7a8c1 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -28,6 +28,7 @@ homeassistant: #- /config/image/ - /config/tmp/ - /config/tmp/snapshots/ + - /config/custom_logs/ #- /config/www/audio/ customize: !include_dir_merge_named customizations/entities diff --git a/esphome/common/device_base.yaml b/esphome/common/device_base.yaml index 4b71e1e..9e80fd9 100644 --- a/esphome/common/device_base.yaml +++ b/esphome/common/device_base.yaml @@ -16,6 +16,7 @@ api: reboot_timeout: 15min ota: + - platform: esphome binary_sensor: - <<: !include binary_sensor/status_sensor.config.yaml diff --git a/esphome/furnace-room-multisensor.yaml b/esphome/furnace-room-multisensor.yaml index 135697c..c67f1e2 100644 --- a/esphome/furnace-room-multisensor.yaml +++ b/esphome/furnace-room-multisensor.yaml @@ -8,7 +8,7 @@ substitutions: packages: #wifi: !include common/wifi.yaml - ethernet: !include common/olimex-poe.yaml + ethernet: !include common/olimex-evb.yaml device_base: !include common/device_base.yaml ble_proxy: !include common/ble_proxy.yaml @@ -161,7 +161,7 @@ sensor: - platform: template unit_of_measurement: "cm" - state_class: measurement + state_class: measurement id: distance_from_top name: "Salt Level From Top in CM" #update_interval: 5s @@ -170,7 +170,7 @@ sensor: - platform: template unit_of_measurement: "bags" - state_class: measurement + state_class: measurement id: level_in_bags name: "Salt Level in Bags" #update_interval: 5s diff --git a/groups.yaml b/groups.yaml index 2cef26a..7b07995 100644 --- a/groups.yaml +++ b/groups.yaml @@ -60,6 +60,7 @@ front_room_motion: name: Front Room Motion icon: mdi:motion-sensor entities: + - binary_sensor.front_room_motion_switch_home_security_motion_detection - binary_sensor.front_room_motion_sensor_home_security_motion_detection - binary_sensor.front_room_motion