Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.55 KB | None | 0 0
  1. - alias: Increment alarm volume
  2.   trigger:
  3.     platform: time_pattern
  4.     seconds: '/5'
  5.   condition:
  6.     - condition: template
  7.       value_template: "{{ state_attr('media_player.ampli_onkyo','volume_level') | float < (states('input_number.alarm_volume') | float) / 100 }}"
  8.     - condition: state
  9.       entity_id: input_boolean.alarm_ongoing
  10.       state: 'on'
  11.     - condition: state
  12.       entity_id: input_boolean.woken_up
  13.       state: 'off'
  14.   action:
  15.     - service: media_player.volume_up
  16.       data:
  17.         entity_id: media_player.ampli_onkyo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement