#Adjust volume morning alarm via an automation to the phone.

1 messages · Page 1 of 1 (latest)

last sleet
#

Can you please review my code. It looks like it is working for the automation however the command is not triggering on my phone. I elevated the permissions of the companion app on my phone. This seems to be either a permision issue of some sort as the command does not seemt o do anything but I am getting the notification message on the phones. Tried with two phones.

alias: Increase phone volumes weekday mornings
triggers:
  - at: "09:00:00"
    trigger: time
conditions:
  - condition: time
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
  - condition: state
    entity_id: device_tracker.Phone
    state: home
actions:
  - data:
      message: command_volume_level
      data:
        command: 8
        media_stream: notification
    action: notify.mobile_app_Phone
    alias: Increase Notification Volume Phone
  - data:
      message: command_volume_level
      data:
        command: 8
        media_stream: alarm
    action: notify.mobile_app_Phone
    alias: Increase Alarm Volume Phone
  - data:
      message: command_volume_level
      data:
        command: 8
        media_stream: ring
    action: notify.mobile_app_Phone
    alias: Increase Ringer Volume Phone
mode: single

idle sky
#

the command requires special permissions and will guide you through how to grant it upon receiving the first notification, it should direct you to open the app and send the notification again so the app can take you to the appropriate permission screen to grant

last sleet
#

Pretty sure I enabled the permissions. Nothing pops up when I run the triggers other then the notification. When I click on it, it opens the companion app to my default view nothing more

idle sky
#

if the notification appears on your device then that means there was an error or it was not formatted properly

#

ah looks like your media_stream is not correct