Disable automation if lovelace card used

Trigger on the state or attributes of the climate device changing.

Check the context in the conditions to make sure it was an adjustment from the frontend, see: State.context to UI automation - #24 by mbuscher

      - conditions: # Only passes for HA user interface as source of change
          - condition: template
            value_template: '{{ trigger.to_state.context.id != none }}'
          - condition: template
            value_template: '{{ trigger.to_state.context.parent_id == none }}'
          - condition: template
            value_template: '{{ trigger.to_state.context.user_id != none }}'

Use the homeassistant.turn_off to turn off the automation.

1 Like