Closes # 117 - Thanks @VDRainer for the awesome Log Level automation - Change log levels using an input_select!
parent
6ee5d7a3dc
commit
30f4bbe1b4
@ -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 }}"
|
||||
@ -0,0 +1,12 @@
|
||||
log_level:
|
||||
name: Log Level
|
||||
options:
|
||||
- critical
|
||||
- fatal
|
||||
- error
|
||||
- warning
|
||||
- warn
|
||||
- info
|
||||
- debug
|
||||
- notset
|
||||
initial: warn
|
||||
Loading…
Reference in new issue