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

Automation triggers when Conditions aren't met

$
0
0

@Maltavius wrote:

What am I doing wrong.
I want to trigger this when my own or my wife’s cell phone is left in the garage and the Hallway sensor triggers. But it seems to trigger although we are home.

- id: '1582752041728'
  alias: If Phone left at garage
  description: ''
  trigger:
  - entity_id: binary_sensor.sensor_hallen_motion
    platform: state
    to: 'on'
  condition:
  - condition: or
    conditions:
    - condition: zone
      entity_id: device_tracker.sm_g950f
      zone: zone.garaget
    - condition: zone
      entity_id: device_tracker.oneplus_a5000
      zone: zone.garaget
  action:
  - data:
      message: Mobilen är kvar i bilen
      title: Mobil i bilen!
    service: notify.mobile_app_oneplus_a5000

What the logg says:

image

The Zones

Posts: 1

Participants: 1

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>