Alexa Media Integration Reauthentication Notification

I have the same issue as everyone else where I need to reauthenticate the alexa media integration about once a week. I would like to get a notification on my phone when this is needed but I can’t figure out how to trigger this. I can get notifications on my phone without an issue but I can’t figure out what trigger to put into the automation for when the reauthentication happens.

this is the automation I use for that:

- alias: TTS Login Required
    id: tts_login_required
    trigger:
      - platform: event
        event_type: alexa_media_relogin_required 
    action:
      - service: input_boolean.turn_on
        entity_id: input_boolean.tts_alexa_relogin_required
      - service: notify.pushbullet_notify
        data:
          message: 'Alexa Media Player needs re-authenticated'

I created an input_boolean to display on my dashboard turned on by the above as well.

and this shouold clear it:

- alias: TTS Login Success
    id: tts_login_success
    trigger:
      - platform: event
        event_type: alexa_media_relogin_success
    action:
      - service: input_boolean.turn_off
        entity_id: input_boolean.tts_alexa_relogin_required

But I haven’t had to login in quite a while since I switched to using the built-in 2FA code so I’m not 100% sure that method still works.

1 Like

Do I need the input_boolean?

No, it’s just for a display on my dashboard.