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
|
- person.clint
|
||||||
- group.person_clint
|
- group.person_clint
|
||||||
from: "home"
|
from: "home"
|
||||||
|
for:
|
||||||
|
seconds: 30
|
||||||
|
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
event: start
|
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:
|
target:
|
||||||
entity_id: climate.thermostat
|
entity_id: climate.thermostat
|
||||||
|
|
||||||
- action: climate.set_preset_mode
|
- choose:
|
||||||
target:
|
- conditions:
|
||||||
entity_id: climate.thermostat
|
- condition: state
|
||||||
data:
|
entity_id: input_boolean.home_occupied
|
||||||
preset_mode: "auto"
|
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"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,14 +3,6 @@ input_boolean:
|
|||||||
name: "Sprinkler: Is Winterized"
|
name: "Sprinkler: Is Winterized"
|
||||||
icon: mdi:sprinkler
|
icon: mdi:sprinkler
|
||||||
|
|
||||||
log_precipitation:
|
|
||||||
name: "Log Precipitation"
|
|
||||||
icon: mdi:file
|
|
||||||
|
|
||||||
log_soil_moisture:
|
|
||||||
name: "Log Soil Moisture"
|
|
||||||
icon: mdi:file
|
|
||||||
|
|
||||||
input_datetime:
|
input_datetime:
|
||||||
sprinkler_last_reset:
|
sprinkler_last_reset:
|
||||||
name: "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') }}"
|
# state: "{{ iif(is_state('binary_sensor.sprinkler_in_season', 'on'), iif(is_state('input_boolean.sprinkler_is_winterized', 'on'), 'on', 'off'), 'off') }}"
|
||||||
|
|
||||||
automation:
|
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"
|
- alias: "Sprinkler: Reset After Automatic Run"
|
||||||
id: automation_sprinkler_reset_after_automatic_run
|
id: automation_sprinkler_reset_after_automatic_run
|
||||||
trigger:
|
trigger:
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
# keep_days: 180
|
# keep_days: 180
|
||||||
|
|
||||||
recorder:
|
recorder:
|
||||||
purge_keep_days: 7
|
purge_keep_days: 14
|
||||||
auto_purge: true
|
auto_purge: true
|
||||||
db_url: !secret recorder_url
|
db_url: !secret recorder_url
|
||||||
#db_url: !secret recorder_url_nas
|
#db_url: !secret recorder_url_nas
|
||||||
@@ -108,10 +108,7 @@ recorder:
|
|||||||
- scene
|
- scene
|
||||||
- button
|
- button
|
||||||
- remote
|
- remote
|
||||||
- automation
|
|
||||||
- script
|
|
||||||
- media_player
|
- media_player
|
||||||
- device_tracker
|
|
||||||
|
|
||||||
# include:
|
# include:
|
||||||
# domains:
|
# domains:
|
||||||
|
|||||||
@@ -24,11 +24,15 @@ logger:
|
|||||||
#homeassistant.components.python_script: warning
|
#homeassistant.components.python_script: warning
|
||||||
|
|
||||||
# log level for the device_tracker component
|
# log level for the device_tracker component
|
||||||
homeassistant.components.device_tracker: warning
|
homeassistant.components.device_tracker: debug
|
||||||
|
|
||||||
# homeassistant.components.rest_command: 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
|
#homeassistant.components.http: debug
|
||||||
|
|
||||||
@@ -59,3 +63,5 @@ logger:
|
|||||||
# - ".*last_used.*"
|
# - ".*last_used.*"
|
||||||
homeassistant.components.roku.coordinator:
|
homeassistant.components.roku.coordinator:
|
||||||
- ".*Timeout occurred.*"
|
- ".*Timeout occurred.*"
|
||||||
|
homeassistant.components.mobile_app.webhook:
|
||||||
|
- "update_sensor_states"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
device_tracker:
|
# device_tracker:
|
||||||
- platform: synology_srm
|
# - platform: synology_srm
|
||||||
host: 192.168.1.1
|
# host: 192.168.1.1
|
||||||
username: !secret router_username
|
# username: !secret router_username
|
||||||
password: !secret router_password
|
# password: !secret router_password
|
||||||
new_device_defaults:
|
# new_device_defaults:
|
||||||
track_new_devices: true
|
# track_new_devices: true
|
||||||
@@ -2,5 +2,5 @@ zone:
|
|||||||
name: Home
|
name: Home
|
||||||
latitude: !secret home_lat
|
latitude: !secret home_lat
|
||||||
longitude: !secret home_long
|
longitude: !secret home_long
|
||||||
radius: 40
|
radius: 80
|
||||||
icon: mdi:account-multiple
|
icon: mdi:account-multiple
|
||||||
@@ -125,4 +125,4 @@ cards:
|
|||||||
cards:
|
cards:
|
||||||
- type: custom:mushroom-title-card
|
- type: custom:mushroom-title-card
|
||||||
subtitle: Cameras
|
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
|
- height: 45px
|
||||||
tap_action:
|
tap_action:
|
||||||
action: navigate
|
action: navigate
|
||||||
navigation_path: /ai-yml/ai-cam18
|
navigation_path: /ai-yml/ai-cam19
|
||||||
|
|
||||||
- type: state-icon
|
- type: state-icon
|
||||||
entity: group.front_yard_plants
|
entity: group.front_yard_plants
|
||||||
|
|||||||
Reference in New Issue
Block a user