Add changeable logging settings
This commit is contained in:
@ -1,3 +1,18 @@
|
|||||||
|
input_select:
|
||||||
|
log_level:
|
||||||
|
name: Log Level
|
||||||
|
options:
|
||||||
|
- critical
|
||||||
|
- fatal
|
||||||
|
- error
|
||||||
|
- warning
|
||||||
|
- warn
|
||||||
|
- info
|
||||||
|
- debug
|
||||||
|
- notset
|
||||||
|
initial: error
|
||||||
|
icon: mdi:bug
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: command_line
|
- platform: command_line
|
||||||
name: Lines of Code
|
name: Lines of Code
|
||||||
@ -94,3 +109,14 @@ binary_sensor:
|
|||||||
name: Internet
|
name: Internet
|
||||||
host: 8.8.8.8
|
host: 8.8.8.8
|
||||||
scan_interval: 5
|
scan_interval: 5
|
||||||
|
|
||||||
|
automation:
|
||||||
|
- id: 22b034d3-a7c2-4499-9db5-6e36dd1c8be4
|
||||||
|
alias: Log Level
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_select.log_level
|
||||||
|
action:
|
||||||
|
- service: logger.set_level
|
||||||
|
data:
|
||||||
|
homeassistant.components: "{{ states('input_select.log_level') }}"
|
Reference in New Issue
Block a user