Home-AssistantConfig/config/packages/logger.yaml

38 lines
946 B
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
#-------------------------------------------
# Realtime Debugging Related Packages
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
#-------------------------------------------
2018-01-02 00:00:45 +00:00
input_select:
log_level:
name: Log Level
options:
- critical
- fatal
- error
- warning
- warn
- info
- debug
- notset
initial: warn
2020-08-22 03:24:10 +00:00
icon: mdi:bug
2018-01-02 00:00:45 +00:00
###################################
## Dynamically set the log levels without having to restart HASS or edit configuration.yaml
#- Thanks @VDRainer
###################################
automation:
- alias: Log Level
2020-07-20 18:33:03 +00:00
id: 8196e9d4-5174-492e-8523-6ef70ccbd8dd
2018-01-02 00:00:45 +00:00
trigger:
platform: state
entity_id:
- input_select.log_level
# - input_select.log_component
action:
- service: logger.set_level
data:
2018-01-02 00:00:45 +00:00
homeassistant.components: "{{ states.input_select.log_level.state }}"