Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102651

Specific Integration Logger Automation

$
0
0

@Eeeeeediot wrote:

Hi,

I would like to set the logger to debug a specific integration on the fly. Is there any way to get something like this to work?

input_text:
 log_level_integration:
   name: Integration
   initial: doods

input_boolean:
  log_level_integration:
    name: Log Level Integration
    initial: off

automation:
  - alias: Log Level Integration
    trigger:
      platform: state
      entity_id: input_boolean.log_level_integration
      to: 'on'
    action:
      service: logger.set_level
      data_template:
        homeassistant.components."{{states('input_text.log_level_integration')}}": debug

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 102651

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>