Add changeable logging settings

This commit is contained in:
2023-03-09 13:45:49 -05:00
parent d7abcf6569
commit fba4ea3baa

View File

@ -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:
- platform: command_line
name: Lines of Code
@ -94,3 +109,14 @@ binary_sensor:
name: Internet
host: 8.8.8.8
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') }}"