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

Automation Condition Not Working (Ignored)

$
0
0

@aaronseaton wrote:

Hi Everyone,

I have a very simple automation that is designed to notify me via SMS notification if my garage door is open at 11:00pm. For some reason, no matter what I do, the condition is ignored and I always get the notification. And, no I am NOT manually triggering this, so I am expecting the condition to be evaluated. I have tried using a separate condition, or embedding the condition directly into the action, as the below show. No matter what I do, the problem persists. I have checked the state of the object and it seems fine and the correct value is in the condition for evaluation. Nothing is in the logs, so those are not much help. I am assuming that when HA goes to evaluate the condition, it is returning true, which doesn’t make sense. Please help, this has been going on for months and now I have finally had a chance to investigate and experiment.

- id: '1577286579874'
  alias: Notify - Garage Open at Night
  description: ''
  trigger:
  - at: '23:00'
    platform: time
  condition: []
  action:
  - condition: state
    entity_id: binary_sensor.vision_zg8101_garage_door_detector_sensor
    state: 'on'
  - data:
      message: 'Home: Garage Door is Open at Night'
      target: '+16471234567'
    service: notify.home_notifier

The above code is from my automations.yaml file, but it was configured through the UI.

Any help would be appreciated. Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 102594

Trending Articles



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