WTH can I not change log verbosity from the UI

I’d love to be able to change log verbosity from the UI without having to modify the configuration.yml file and restart HA.

Service: logger.set_default_level && logger.set_level

You can automate it:

Untitled

Input_select:

logging_level:
  name: Logging Level
  options:
  - 'error'
  - 'warning'
  - 'info'
  - 'debug'

Automation:

- id: logging_level
  alias: 'Logging Level'
  initial_state: true
  trigger:
    platform: state
    entity_id: input_select.logging_level
  action:
    service: logger.set_default_level
    data_template:
      level: "{{ trigger.to_state.state }}"
5 Likes

this … WOW

Would be nice to have a “switch log level” button directly in the log UI page, without need to setup manually that stuff (I know HA already let us to do almost anything, at least with some smart workaround, but this is the WTH month! :sweat_smile:)

Changing it with a service call is the current solution.
Other than that see this topic https://community.home-assistant.io/t/logging-and-recorder-settings-via-the-ui/219485