]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Created a dedicated folder for logging
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 3 May 2020 09:31:25 +0000 (11:31 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 3 May 2020 09:31:25 +0000 (11:31 +0200)
configuration.yaml
history.yaml [deleted file]
log/history.yaml [new file with mode: 0644]
log/logbook.yaml [new file with mode: 0644]
log/logger.yaml [new file with mode: 0644]
log/recorder.yaml [new file with mode: 0644]
logbook.yaml [deleted file]
logger.yaml [deleted file]
recorder.yaml [deleted file]

index fc9ad8ac211f615de712e81ce8e3ee6a9437fd4c..b2589b4aa0ccc6b2e8d706c083e7a7ab663b87b3 100644 (file)
@@ -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 (file)
index 427d17e..0000000
+++ /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 (file)
index 0000000..427d17e
--- /dev/null
@@ -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 (file)
index 0000000..9351f93
--- /dev/null
@@ -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 (file)
index 0000000..476bd89
--- /dev/null
@@ -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 (file)
index 0000000..720af8f
--- /dev/null
@@ -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 (file)
index 9351f93..0000000
+++ /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 (file)
index 476bd89..0000000
+++ /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 (file)
index 720af8f..0000000
+++ /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