mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
Remove logging and clear up some general cruft
This commit is contained in:
@@ -10,6 +10,8 @@ trigger:
|
||||
- person.clint
|
||||
- group.person_clint
|
||||
from: "home"
|
||||
for:
|
||||
seconds: 30
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -20,8 +20,29 @@ action:
|
||||
target:
|
||||
entity_id: climate.thermostat
|
||||
|
||||
- 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: "auto"
|
||||
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"
|
||||
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -59,3 +63,5 @@ logger:
|
||||
# - ".*last_used.*"
|
||||
homeassistant.components.roku.coordinator:
|
||||
- ".*Timeout occurred.*"
|
||||
homeassistant.components.mobile_app.webhook:
|
||||
- "update_sensor_states"
|
||||
|
||||
@@ -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
|
||||
# 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
|
||||
@@ -2,5 +2,5 @@ zone:
|
||||
name: Home
|
||||
latitude: !secret home_lat
|
||||
longitude: !secret home_long
|
||||
radius: 40
|
||||
radius: 80
|
||||
icon: mdi:account-multiple
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user