diff --git a/automations/people/Clint/Clint_away.yaml b/automations/people/Clint/Clint_away.yaml index ab974d4..d556f0d 100644 --- a/automations/people/Clint/Clint_away.yaml +++ b/automations/people/Clint/Clint_away.yaml @@ -10,6 +10,8 @@ trigger: - person.clint - group.person_clint from: "home" + for: + seconds: 30 - platform: homeassistant event: start diff --git a/automations/people/Clint/Clint_home.yaml b/automations/people/Clint/Clint_home.yaml index af89662..e69de29 100644 --- a/automations/people/Clint/Clint_home.yaml +++ b/automations/people/Clint/Clint_home.yaml @@ -1,65 +0,0 @@ -alias: Clint Home -id: automation_clint_home -mode: restart -#description: - -trigger: - - platform: state - entity_id: - - device_tracker.pixel_10_pro - - person.clint - - group.person_clint - - device_tracker.pixel_10_pro_wifi - to: "home" - - - platform: state - id: car_home - entity_id: - - binary_sensor.gray_suv_east_side - - binary_sensor.gray_suv_west_side - - group.traverse - from: "off" - to: "on" - - - platform: homeassistant - event: start - -action: - - choose: - - conditions: - - condition: or - conditions: - - condition: numeric_state - entity_id: group.person_clint - above: 0 - value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_clint', 'entity_id'))|list)|groupby('state'))['home']|count }}" - - condition: state - entity_id: sensor.pixel_10_pro_wi_fi_connection - state: "DreamWeaver" - - condition: state - entity_id: sensor.pixel_10_pro_wi_fi_connection - state: "DreamIoT-2G" - - condition: state - entity_id: sensor.pixel_10_pro_wi_fi_connection - state: "pozfam" - - condition: state - entity_id: sensor.pixel_10_pro_wi_fi_connection - state: "pozfam-2.4G" - - condition: trigger - id: "car_home" - sequence: - - action: input_boolean.turn_on - entity_id: input_boolean.clint_home - - action: automation.turn_on - entity_id: automation.clint_at_work - - action: script.pixel_10_to_normal_mode - data: {} - - action: notify.mobile_app_pixel_10_pro - data: - message: command_volume_level - data: - media_stream: notification_stream - command: 4 - - - - delay: "00:00:30" diff --git a/automations/things/reset_climate.yaml b/automations/things/reset_climate.yaml index eb7f793..dade3a2 100644 --- a/automations/things/reset_climate.yaml +++ b/automations/things/reset_climate.yaml @@ -20,8 +20,29 @@ action: target: entity_id: climate.thermostat - - action: climate.set_preset_mode - target: - entity_id: climate.thermostat - data: - preset_mode: "auto" + - choose: + - conditions: + - condition: state + entity_id: input_boolean.home_occupied + state: "on" + + sequence: + - action: climate.set_preset_mode + target: + entity_id: climate.thermostat + data: + preset_mode: "home" + + - conditions: + - condition: state + entity_id: input_boolean.home_occupied + state: "off" + + sequence: + - action: climate.set_preset_mode + target: + entity_id: climate.thermostat + data: + preset_mode: "away" + + diff --git a/components/packages/automatic_sprinkler_system.yaml b/components/packages/automatic_sprinkler_system.yaml index 7bc6b81..31fa8ab 100644 --- a/components/packages/automatic_sprinkler_system.yaml +++ b/components/packages/automatic_sprinkler_system.yaml @@ -3,14 +3,6 @@ input_boolean: name: "Sprinkler: Is Winterized" icon: mdi:sprinkler - log_precipitation: - name: "Log Precipitation" - icon: mdi:file - - log_soil_moisture: - name: "Log Soil Moisture" - icon: mdi:file - input_datetime: sprinkler_last_reset: name: "Sprinkler: Last Reset" @@ -407,34 +399,6 @@ template: # state: "{{ iif(is_state('binary_sensor.sprinkler_in_season', 'on'), iif(is_state('input_boolean.sprinkler_is_winterized', 'on'), 'on', 'off'), 'off') }}" automation: - - alias: "Log Precipitation" - id: 1f133cd1-7e69-4eb9-ba5f-7fa967dd869d - trigger: - - platform: state - entity_id: input_boolean.log_precipitation - from: "off" - to: "on" - - - platform: state - entity_id: sensor.rain_gauge_precipitation - not_to: - - "unknown" - - "unavailable" - - - platform: state - entity_id: binary_sensor.is_raining - - condition: - - condition: state - entity_id: input_boolean.log_precipitation - state: "on" - action: - - action: notify.send_message - target: - entity_id: notify.precipitation - data: - message: "{{now().strftime('%Y-%m-%d')}}T{{now().strftime('%H:%M:%S.%f')}},{{states('sensor.rain_gauge_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')}}" - - alias: "Sprinkler: Reset After Automatic Run" id: automation_sprinkler_reset_after_automatic_run trigger: diff --git a/components/packages/databases.yaml b/components/packages/databases.yaml index 76e95bb..16373eb 100644 --- a/components/packages/databases.yaml +++ b/components/packages/databases.yaml @@ -10,7 +10,7 @@ # keep_days: 180 recorder: - purge_keep_days: 7 + purge_keep_days: 14 auto_purge: true db_url: !secret recorder_url #db_url: !secret recorder_url_nas @@ -108,10 +108,7 @@ recorder: - scene - button - remote - - automation - - script - media_player - - device_tracker # include: # domains: diff --git a/components/packages/logger.yaml b/components/packages/logger.yaml index b5b17a4..aeb3883 100644 --- a/components/packages/logger.yaml +++ b/components/packages/logger.yaml @@ -24,11 +24,15 @@ logger: #homeassistant.components.python_script: warning # log level for the device_tracker component - homeassistant.components.device_tracker: warning + homeassistant.components.device_tracker: debug # homeassistant.components.rest_command: debug - homeassistant.components.http.ban: warning + homeassistant.components.http.ban: debug + + homeassistant.components.mobile_app: debug + + homeassistant.components.mobile_app.entity: warning #homeassistant.components.http: debug @@ -58,4 +62,6 @@ logger: # custom_components.grocy: # - ".*last_used.*" homeassistant.components.roku.coordinator: - - ".*Timeout occurred.*" \ No newline at end of file + - ".*Timeout occurred.*" + homeassistant.components.mobile_app.webhook: + - "update_sensor_states" diff --git a/components/packages/synology_srm.yaml b/components/packages/synology_srm.yaml index c5541c1..0037121 100644 --- a/components/packages/synology_srm.yaml +++ b/components/packages/synology_srm.yaml @@ -1,7 +1,7 @@ -device_tracker: - - platform: synology_srm - host: 192.168.1.1 - username: !secret router_username - password: !secret router_password - new_device_defaults: - track_new_devices: true \ No newline at end of file +# device_tracker: +# - platform: synology_srm +# host: 192.168.1.1 +# username: !secret router_username +# password: !secret router_password +# new_device_defaults: +# track_new_devices: true \ No newline at end of file diff --git a/components/packages/zone.yaml b/components/packages/zone.yaml index 86d05f6..33d0363 100644 --- a/components/packages/zone.yaml +++ b/components/packages/zone.yaml @@ -2,5 +2,5 @@ zone: name: Home latitude: !secret home_lat longitude: !secret home_long - radius: 40 + radius: 80 icon: mdi:account-multiple \ No newline at end of file diff --git a/lovelace/phone/front-yard.yaml b/lovelace/phone/front-yard.yaml index e4ebc08..40be036 100644 --- a/lovelace/phone/front-yard.yaml +++ b/lovelace/phone/front-yard.yaml @@ -125,4 +125,4 @@ cards: cards: - type: custom:mushroom-title-card subtitle: Cameras - - !include /config/lovelace/cameras/view-camera-18.yaml + - !include /config/lovelace/cameras/view-camera-19.yaml diff --git a/lovelace/room_cards/front_yard.yaml b/lovelace/room_cards/front_yard.yaml index 09da2dc..4c40e8c 100644 --- a/lovelace/room_cards/front_yard.yaml +++ b/lovelace/room_cards/front_yard.yaml @@ -154,7 +154,7 @@ elements: - height: 45px tap_action: action: navigate - navigation_path: /ai-yml/ai-cam18 + navigation_path: /ai-yml/ai-cam19 - type: state-icon entity: group.front_yard_plants