Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: Increment alarm volume
- trigger:
- platform: time_pattern
- seconds: '/5'
- condition:
- - condition: template
- value_template: "{{ state_attr('media_player.ampli_onkyo','volume_level') | float < (states('input_number.alarm_volume') | float) / 100 }}"
- - condition: state
- entity_id: input_boolean.alarm_ongoing
- state: 'on'
- - condition: state
- entity_id: input_boolean.woken_up
- state: 'off'
- action:
- - service: media_player.volume_up
- data:
- entity_id: media_player.ampli_onkyo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement