I have an automation that I have intentionally set to single, with a pause at the end to prevent circular calls. (the automation is designed to sync a set of smart bulbs with a z-wave dimmer that is in “smart bulb” mode).
The automation is working as designed - which I turn on/off the bulbs it sets the the switch to the same state and visa-versa.
My problem is that I get a WARNING in my log every time this automation executes - which is stupid. At most this should be an INFO and probably just a DEBUG (IMHO). Is there any way to suppress these WARNINGS? I plan on replicating this pattern for a lot of my lights and it is going to end up making a total mess of my log file.
Sample log message
2023-07-09 16:52:35.713 WARNING (MainThread) [homeassistant.components.automation.kitchen_sync_island_group_and_wall_switch] Kitchen - Sync Island Group and Wall Switch: Already running
Here is the automation YAML
alias: Kitchen - Sync Island Group and Wall Switch
description: ""
trigger:
- platform: state
entity_id:
- light.kitchen_island_wall_switch
to: "on"
id: wall_switch_on
- platform: state
entity_id:
- light.kitchen_island_wall_switch
to: "off"
id: wall_switch_off
- platform: state
entity_id:
- light.kitchen_island
to: "on"
id: island_on
- platform: state
entity_id:
- light.kitchen_island
to: "off"
id: island_off
- platform: state
entity_id:
- light.kitchen_island_wall_switch
attribute: brightness
id: wall_switch_bright
- platform: state
entity_id:
- light.kitchen_island
attribute: brightness
id: island_bright
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- wall_switch_on
- condition: state
entity_id: light.kitchen_island
state: "off"
sequence:
- service: light.turn_on
data: {}
target:
entity_id: light.kitchen_island
- conditions:
- condition: trigger
id:
- wall_switch_off
- condition: state
entity_id: light.kitchen_island
state: "on"
sequence:
- service: light.turn_off
data: {}
target:
entity_id: light.kitchen_island
- conditions:
- condition: trigger
id:
- island_on
- condition: state
entity_id: light.kitchen_island_wall_switch
state: "off"
sequence:
- service: light.turn_on
data: {}
target:
entity_id: light.kitchen_island_wall_switch
- conditions:
- condition: trigger
id:
- island_off
- condition: state
entity_id: light.kitchen_island_wall_switch
state: "on"
sequence:
- service: light.turn_off
data: {}
target:
entity_id: light.kitchen_island_wall_switch
- conditions:
- condition: trigger
id:
- wall_switch_bright
- condition: template
value_template: >-
{{ state_attr('light.kitchen_island_wall_switch',
'brightness')|int != state_attr('light.kitchen_island',
'brightness')|int }}
sequence:
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 275
- service: light.turn_on
data:
brightness: >-
{{state_attr('light.kitchen_island_wall_switch',
'brightness')|int}}
target:
entity_id: light.kitchen_island
- conditions:
- condition: trigger
id:
- island_bright
- condition: template
value_template: >-
{{ state_attr('light.kitchen_island_wall_switch',
'brightness')|int != state_attr('light.kitchen_island',
'brightness')|int }}
sequence:
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 275
- service: light.turn_on
data:
brightness: "{{state_attr('light.kitchen_island', 'brightness')|int}}"
target:
entity_id: light.kitchen_island_wall_switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 375
enabled: true
trace:
stored_traces: 15
mode: single