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

Condition ignored in one automation

$
0
0

@luisrival wrote:

Hi

can some one help me saying me why my automation isn´t working as desire?

I have this automation:

- id: '1582257001151'
  alias: Apagar Cuarto Luis
  description: ''
  trigger: []
  condition:
  - condition: zone
    entity_id: person.luis
    zone: zone.home
  action:
  - data:
      payload: LVOFF
      topic: LV-Automation/cuarto/luis/apagador
    service: mqtt.publish

And I trigger with this button:

cards:
      - entity: switch.portones_luis
        tap_action:
          action: call-service
          service: automation.trigger
          service_data:
            entity_id: automation.porton_test
        type: entity-button

I want that only when I´m home the automation make that mqtt publish, but in this moment this don´t happend, it no matters were I´m it always make the mqtt publish.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



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