From: Giorgio Ravera Date: Sun, 3 May 2020 09:31:25 +0000 (+0200) Subject: Created a dedicated folder for logging X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=6bc72502f3c674bdea2352ea29aed3b11aad6e9b;p=homeassistant.git Created a dedicated folder for logging --- diff --git a/configuration.yaml b/configuration.yaml index fc9ad8ac..b2589b4a 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -61,16 +61,16 @@ discovery: #conversation: # Enables support for tracking state changes over time -history: !include history.yaml +history: !include log/history.yaml # View all events in a logbook -logbook: !include logbook.yaml +logbook: !include log/logbook.yaml # Log Management -logger: !include logger.yaml +logger: !include log/logger.yaml # Record Management -recorder: !include recorder.yaml +recorder: !include log/recorder.yaml # Enables a map showing the location of tracked devices map: @@ -107,7 +107,7 @@ input_datetime: !include_dir_merge_named input_datetime/ #input_number: !include_dir_merge_list input_number/ # Shell commands -shell_command: !include_dir_merge_named shell_command +shell_command: !include_dir_merge_named shell_command/ # Device Tracker device_tracker: !include_dir_merge_list device_tracker/ diff --git a/history.yaml b/history.yaml deleted file mode 100644 index 427d17e3..00000000 --- a/history.yaml +++ /dev/null @@ -1,64 +0,0 @@ -###################################################################### -# History Configuration -###################################################################### - -exclude: - entities: - # Device Trackers - - device_tracker.a3 - - device_tracker.a5 - - device_tracker.s9 - # Time & Date - - sensor.date - - sensor.time - - sensor.time_date - # Sun & Weather - - sun.sun - - sensor.yr_symbol - # Hacs - - sensor.hacs - # System - - sensor.home_assistant_current_version - - sensor.cert_expiry_home_giorgioravera_it - # Shelly - - sensor.shelly1_status - - sensor.shelly2_status - - sensor.shelly3_status - - sensor.shelly4_status - - sensor.shelly5_status - - sensor.shelly6_status - - sensor.shelly7_status - - sensor.shelly8_status - - sensor.shelly9_status - - sensor.shelly10_status - - sensor.shelly11_status - - sensor.shellybulb_status - - sensor.shellyem_status - - sensor.shellydw_status - - sensor.shellyplugs_status - # Energy Sensors - - sensor.potenza_reattiva - - sensor.tensione - # Zigbee2mqtt - - sensor.porta_casa_batteria - - sensor.porta_casa_stato_link - - sensor.porta_casa_2_batteria - - sensor.porta_casa_2_stato_link - - sensor.pulsante_batteria - - sensor.pulsante_stato_link - # pfSense - - sensor.freebsd_router_bytes_received - - sensor.freebsd_router_bytes_sent - - sensor.freebsd_router_packets_received - - sensor.freebsd_router_packets_sent - - sensor.freebsd_router_packets_sec_received - - sensor.freebsd_router_packets_sec_sent - domains: - - automation - - group - - input_boolean - - input_datetime - - input_select - - input_text - - script - - switch diff --git a/log/history.yaml b/log/history.yaml new file mode 100644 index 00000000..427d17e3 --- /dev/null +++ b/log/history.yaml @@ -0,0 +1,64 @@ +###################################################################### +# History Configuration +###################################################################### + +exclude: + entities: + # Device Trackers + - device_tracker.a3 + - device_tracker.a5 + - device_tracker.s9 + # Time & Date + - sensor.date + - sensor.time + - sensor.time_date + # Sun & Weather + - sun.sun + - sensor.yr_symbol + # Hacs + - sensor.hacs + # System + - sensor.home_assistant_current_version + - sensor.cert_expiry_home_giorgioravera_it + # Shelly + - sensor.shelly1_status + - sensor.shelly2_status + - sensor.shelly3_status + - sensor.shelly4_status + - sensor.shelly5_status + - sensor.shelly6_status + - sensor.shelly7_status + - sensor.shelly8_status + - sensor.shelly9_status + - sensor.shelly10_status + - sensor.shelly11_status + - sensor.shellybulb_status + - sensor.shellyem_status + - sensor.shellydw_status + - sensor.shellyplugs_status + # Energy Sensors + - sensor.potenza_reattiva + - sensor.tensione + # Zigbee2mqtt + - sensor.porta_casa_batteria + - sensor.porta_casa_stato_link + - sensor.porta_casa_2_batteria + - sensor.porta_casa_2_stato_link + - sensor.pulsante_batteria + - sensor.pulsante_stato_link + # pfSense + - sensor.freebsd_router_bytes_received + - sensor.freebsd_router_bytes_sent + - sensor.freebsd_router_packets_received + - sensor.freebsd_router_packets_sent + - sensor.freebsd_router_packets_sec_received + - sensor.freebsd_router_packets_sec_sent + domains: + - automation + - group + - input_boolean + - input_datetime + - input_select + - input_text + - script + - switch diff --git a/log/logbook.yaml b/log/logbook.yaml new file mode 100644 index 00000000..9351f93c --- /dev/null +++ b/log/logbook.yaml @@ -0,0 +1,64 @@ +###################################################################### +# Logbook Configuration +###################################################################### + +exclude: + entities: + # Device Trackers + - device_tracker.a3 + - device_tracker.a5 + - device_tracker.s9 + # Time & Date + - sensor.date + - sensor.time + - sensor.time_date + # Sun & Weather + - sun.sun + - sensor.yr_symbol + # Hacs + - sensor.hacs + # System + - sensor.home_assistant_current_version + - sensor.cert_expiry_home_giorgioravera_it + # Shelly + - sensor.shelly1_status + - sensor.shelly2_status + - sensor.shelly3_status + - sensor.shelly4_status + - sensor.shelly5_status + - sensor.shelly6_status + - sensor.shelly7_status + - sensor.shelly8_status + - sensor.shelly9_status + - sensor.shelly10_status + - sensor.shelly11_status + - sensor.shellybulb_status + - sensor.shellyem_status + - sensor.shellydw_status + - sensor.shellyplugs_status + # Energy Sensors + - sensor.potenza_reattiva + - sensor.tensione + # Zigbee2mqtt + - sensor.porta_casa_batteria + - sensor.porta_casa_stato_link + - sensor.porta_casa_2_batteria + - sensor.porta_casa_2_stato_link + - sensor.pulsante_batteria + - sensor.pulsante_stato_link + # pfSense + - sensor.freebsd_router_bytes_received + - sensor.freebsd_router_bytes_sent + - sensor.freebsd_router_packets_received + - sensor.freebsd_router_packets_sent + - sensor.freebsd_router_packets_sec_received + - sensor.freebsd_router_packets_sec_sent + domains: + - automation + - group + - input_boolean + - input_datetime + - input_select + - input_text + - script + - switch diff --git a/log/logger.yaml b/log/logger.yaml new file mode 100644 index 00000000..476bd890 --- /dev/null +++ b/log/logger.yaml @@ -0,0 +1,15 @@ +###################################################################### +# Logger Configuration +# Log Severities: critical, fatal, error, warning, warn, info, debug, notset +###################################################################### + +default: info +logs: + homeassistant.components.automation: info + homeassistant.components.device_tracker: warn + homeassistant.components.nmap_tracker.device_tracker: warn + homeassistant.components.discovery: warn + homeassistant.components.input_text: info + homeassistant.components.sensor: warn + homeassistant.components.websocket_api: info + custom_components.mercedesmeapi: warn diff --git a/log/recorder.yaml b/log/recorder.yaml new file mode 100644 index 00000000..720af8f3 --- /dev/null +++ b/log/recorder.yaml @@ -0,0 +1,66 @@ +###################################################################### +# Recorder Configuration +###################################################################### + +purge_keep_days: 10 +purge_interval: 1 +exclude: + entities: + # Device Trackers + - device_tracker.a3 + - device_tracker.a5 + - device_tracker.s9 + # Time & Date + - sensor.date + - sensor.time + - sensor.time_date + # Sun & Weather + - sun.sun + - sensor.yr_symbol + # Hacs + - sensor.hacs + # System + - sensor.home_assistant_current_version + - sensor.cert_expiry_home_giorgioravera_it + # Shelly + - sensor.shelly1_status + - sensor.shelly2_status + - sensor.shelly3_status + - sensor.shelly4_status + - sensor.shelly5_status + - sensor.shelly6_status + - sensor.shelly7_status + - sensor.shelly8_status + - sensor.shelly9_status + - sensor.shelly10_status + - sensor.shelly11_status + - sensor.shellybulb_status + - sensor.shellyem_status + - sensor.shellydw_status + - sensor.shellyplugs_status + # Energy Sensors + - sensor.potenza_reattiva + - sensor.tensione + # Zigbee2mqtt + - sensor.porta_casa_batteria + - sensor.porta_casa_stato_link + - sensor.porta_casa_2_batteria + - sensor.porta_casa_2_stato_link + - sensor.pulsante_batteria + - sensor.pulsante_stato_link + # pfSense + - sensor.freebsd_router_bytes_received + - sensor.freebsd_router_bytes_sent + - sensor.freebsd_router_packets_received + - sensor.freebsd_router_packets_sent + - sensor.freebsd_router_packets_sec_received + - sensor.freebsd_router_packets_sec_sent + domains: + - automation + - group + - input_boolean + - input_datetime + - input_select + - input_text + - script + - switch diff --git a/logbook.yaml b/logbook.yaml deleted file mode 100644 index 9351f93c..00000000 --- a/logbook.yaml +++ /dev/null @@ -1,64 +0,0 @@ -###################################################################### -# Logbook Configuration -###################################################################### - -exclude: - entities: - # Device Trackers - - device_tracker.a3 - - device_tracker.a5 - - device_tracker.s9 - # Time & Date - - sensor.date - - sensor.time - - sensor.time_date - # Sun & Weather - - sun.sun - - sensor.yr_symbol - # Hacs - - sensor.hacs - # System - - sensor.home_assistant_current_version - - sensor.cert_expiry_home_giorgioravera_it - # Shelly - - sensor.shelly1_status - - sensor.shelly2_status - - sensor.shelly3_status - - sensor.shelly4_status - - sensor.shelly5_status - - sensor.shelly6_status - - sensor.shelly7_status - - sensor.shelly8_status - - sensor.shelly9_status - - sensor.shelly10_status - - sensor.shelly11_status - - sensor.shellybulb_status - - sensor.shellyem_status - - sensor.shellydw_status - - sensor.shellyplugs_status - # Energy Sensors - - sensor.potenza_reattiva - - sensor.tensione - # Zigbee2mqtt - - sensor.porta_casa_batteria - - sensor.porta_casa_stato_link - - sensor.porta_casa_2_batteria - - sensor.porta_casa_2_stato_link - - sensor.pulsante_batteria - - sensor.pulsante_stato_link - # pfSense - - sensor.freebsd_router_bytes_received - - sensor.freebsd_router_bytes_sent - - sensor.freebsd_router_packets_received - - sensor.freebsd_router_packets_sent - - sensor.freebsd_router_packets_sec_received - - sensor.freebsd_router_packets_sec_sent - domains: - - automation - - group - - input_boolean - - input_datetime - - input_select - - input_text - - script - - switch diff --git a/logger.yaml b/logger.yaml deleted file mode 100644 index 476bd890..00000000 --- a/logger.yaml +++ /dev/null @@ -1,15 +0,0 @@ -###################################################################### -# Logger Configuration -# Log Severities: critical, fatal, error, warning, warn, info, debug, notset -###################################################################### - -default: info -logs: - homeassistant.components.automation: info - homeassistant.components.device_tracker: warn - homeassistant.components.nmap_tracker.device_tracker: warn - homeassistant.components.discovery: warn - homeassistant.components.input_text: info - homeassistant.components.sensor: warn - homeassistant.components.websocket_api: info - custom_components.mercedesmeapi: warn diff --git a/recorder.yaml b/recorder.yaml deleted file mode 100644 index 720af8f3..00000000 --- a/recorder.yaml +++ /dev/null @@ -1,66 +0,0 @@ -###################################################################### -# Recorder Configuration -###################################################################### - -purge_keep_days: 10 -purge_interval: 1 -exclude: - entities: - # Device Trackers - - device_tracker.a3 - - device_tracker.a5 - - device_tracker.s9 - # Time & Date - - sensor.date - - sensor.time - - sensor.time_date - # Sun & Weather - - sun.sun - - sensor.yr_symbol - # Hacs - - sensor.hacs - # System - - sensor.home_assistant_current_version - - sensor.cert_expiry_home_giorgioravera_it - # Shelly - - sensor.shelly1_status - - sensor.shelly2_status - - sensor.shelly3_status - - sensor.shelly4_status - - sensor.shelly5_status - - sensor.shelly6_status - - sensor.shelly7_status - - sensor.shelly8_status - - sensor.shelly9_status - - sensor.shelly10_status - - sensor.shelly11_status - - sensor.shellybulb_status - - sensor.shellyem_status - - sensor.shellydw_status - - sensor.shellyplugs_status - # Energy Sensors - - sensor.potenza_reattiva - - sensor.tensione - # Zigbee2mqtt - - sensor.porta_casa_batteria - - sensor.porta_casa_stato_link - - sensor.porta_casa_2_batteria - - sensor.porta_casa_2_stato_link - - sensor.pulsante_batteria - - sensor.pulsante_stato_link - # pfSense - - sensor.freebsd_router_bytes_received - - sensor.freebsd_router_bytes_sent - - sensor.freebsd_router_packets_received - - sensor.freebsd_router_packets_sent - - sensor.freebsd_router_packets_sec_received - - sensor.freebsd_router_packets_sec_sent - domains: - - automation - - group - - input_boolean - - input_datetime - - input_select - - input_text - - script - - switch