mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-16 10:34:40 +00:00
Closes # 117 - Thanks @VDRainer for the awesome Log Level automation - Change log levels using an input_select!
This commit is contained in:
13
automation/System/log_levels.yaml
Executable file
13
automation/System/log_levels.yaml
Executable file
@@ -0,0 +1,13 @@
|
||||
###################################
|
||||
## Dynamically set the log levels without having to restart HASS or edit configuration.yaml
|
||||
#- Thanks @VDRainer
|
||||
###################################
|
||||
|
||||
- alias: Log Level
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_select.log_level
|
||||
action:
|
||||
service: logger.set_level
|
||||
data_template:
|
||||
homeassistant.components: "{{ trigger.to_state.state }}"
|
@@ -148,4 +148,5 @@ scene: !include_dir_merge_list scene
|
||||
switch: !include_dir_merge_list switch
|
||||
script: !include_dir_merge_named script
|
||||
input_boolean: !include_dir_merge_named input_boolean
|
||||
input_select: !include_dir_merge_named input_select
|
||||
shell_command: !include_dir_merge_named shell_command
|
||||
|
12
input_select/log_level.yaml
Executable file
12
input_select/log_level.yaml
Executable file
@@ -0,0 +1,12 @@
|
||||
log_level:
|
||||
name: Log Level
|
||||
options:
|
||||
- critical
|
||||
- fatal
|
||||
- error
|
||||
- warning
|
||||
- warn
|
||||
- info
|
||||
- debug
|
||||
- notset
|
||||
initial: warn
|
Reference in New Issue
Block a user