mike-grant / haaska

Home Assistant Alexa Skill Adapter that supports v3 of the Alexa Smart Home Skill API
MIT License
539 stars 118 forks source link

SKILL_DISABLED_EXCEPTION after enabling proactive events #250

Closed garethhowell closed 2 years ago

garethhowell commented 2 years ago

I followed the process to use haaska, with some changes as the Amazon Developer Console has changed since the wiki was last updated. I an control my devices from Alexa and I am successfully sending events (I had to fiddle about to get past authentication issues).

However, I am now getting SKILL_DISABLED_EXCEPTION when HA reports a change. For example:

2022-11-04 12:03:48.783 DEBUG (MainThread) [homeassistant.components.alexa.state_report] Sent: {"event": {"header": {"namespace": "Alexa.DoorbellEventSource", "name": "DoorbellPress", "messageId": "b3663816-f859-422f-9771-c83849111a12", "payloadVersion": "3"}, "payload": {"cause": {"type": "PHYSICAL_INTERACTION"}, "timestamp": "2022-11-04T12:03:48Z"}, "endpoint": {"scope": {"type": "BearerToken", "token": "redact"}, "endpointId": "binary_sensor#front_door_bell_ring"}}}
2022-11-04 12:03:48.783 DEBUG (MainThread) [homeassistant.components.alexa.state_report] Received (403): {"header":{"namespace":"System","name":"Exception","messageId":"e0de7d28-44a3-4b52-a924-d2b84b7f9ea0"},"payload":{"code":"SKILL_DISABLED_EXCEPTION","description":"The user does not have a valid enablement for your skill."}}
2022-11-04 12:03:48.783 ERROR (MainThread) [homeassistant.components.alexa.state_report] Error when sending DoorbellPress event for binary_sensor.front_door_bell_ring to Alexa: SKILL_DISABLED_EXCEPTION: The user does not have a valid enablement for your skill.
garethhowell commented 2 years ago

I've resolved it. I found the answer in another issue https://github.com/home-assistant/core/issues/35917. IN a response to that issue from @sjp770 on 10th Jan, 21, the answer was to change the endpoint in the HA config (I'm in the UK, so I needed to use https://api.eu.amazonalexa.com/v3/events