Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.61 KB | None | 0 0
  1. - alias: 'Play Sonos bad nede'
  2.   trigger:
  3.     - platform: state
  4.       entity_id: binary_sensor.fibaro_system_fgms001zw5_motion_sensor_sensor_3
  5.       from: 'off'
  6.       to: 'on'
  7.  
  8.   action:
  9.     - service: media_player.turn_on
  10.       entity_id: media_player.bad_nede
  11.  
  12.  
  13. - alias: 'Play Sonos bad oppe'
  14.   trigger:
  15.     - platform: state
  16.       entity_id: binary_sensor.fibaro_system_fgms001zw5_motion_sensor_sensor_4
  17.       from: 'off'
  18.       to: 'on'
  19.   condition:
  20.   - condition: time
  21.     after: '14:00'
  22.     before: '23:00'
  23.   action:
  24.     - service: media_player.turn_on
  25.       entity_id: media_player.bad_oppe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement