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

Automation with motion + door sensors and timer problems

$
0
0

@henaa wrote:

Hi
What wrong with this automation?
Even motion state on. The light and media player turn off after 1:30 minute

I want the media player and light turn off only if no any motion and door close. after 1:30 minute.

timer:
  bathroom:
    duration: '00:01:30'
- id: '1576684838552'
  alias: Bathroom on Motion Timed
  description: ''
  trigger:
  - entity_id: binary_sensor.motion_sensor_158d0002f07f28
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      entity_id: timer.bathroom
    service: timer.start
- id: '1576685072616'
  alias: End of Timer in Bathroom
  description: ''
  trigger:
  - event_data:
      entity_id: timer.bathroom
    event_type: timer.finished
    platform: event
  condition:
  - condition: and
    conditions:
    - condition: state
      entity_id: binary_sensor.door_window_sensor_158d00035ac62a
      state: 'off'
  action:
  - data:
      entity_id: media_player.googlehome4082
    service: media_player.turn_off
  - data:
      entity_id: light.64341605b4e62d5e979e
    service: light.turn_off

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>