Advertisement
Hoekeren

Pause/play når der tales i mobil

Sep 2nd, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.86 KB | None | 0 0
  1. - id: '1599032944571'
  2.   alias: 1. phonecall - sonos mute
  3.   description: ''
  4.   trigger:
  5.   - entity_id: sensor.cs_mobil_phone_state
  6.     platform: state
  7.     to: offhook
  8.   condition:
  9.   - condition: zone
  10.     entity_id: person.christian
  11.     zone: zone.home
  12.   action:
  13.   - data: {}
  14.     entity_id: media_player.kontoret
  15.     service: sonos.snapshot
  16.   - timeout: 00:00:01
  17.     wait_template: ''
  18.   - data: {}
  19.     entity_id: media_player.kontoret
  20.     service: media_player.media_pause
  21.   mode: single
  22.  
  23.  
  24. - id: '1599033393434'
  25.   alias: 3. phonecall end - resume sonos
  26.   description: ''
  27.   trigger:
  28.   - entity_id: sensor.cs_mobil_phone_state
  29.     from: offhook
  30.     platform: state
  31.   condition:
  32.   - condition: zone
  33.     entity_id: person.christian
  34.     zone: zone.home
  35.   action:
  36.   - data: {}
  37.     entity_id: media_player.kontoret
  38.     service: sonos.restore
  39.   mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement