404 error /api/alexa/smart_home

Hi all,

I’m stumped: I did a vanilla install. Everything works locally. I’m trying to re-setup haaska, it was working fine prior to re-installing. The issue is this:

I can confirm locally api is up and running:
https://domain.duckdns.org:8123/api/

I can confirm the connection is properly set up through aws-lambda (see modified event_handler() below) as i get:
{\"message\": \"API running.\"}

But I keep getting 404 when the endpoint is set to alexa/smart_home:
404 Client Error: Not Found for url: https://domain.duckdns.org:8123/api/alexa/smart_home"

I get 404 whether I access it locally or from the outside, through curl/python/lambda.

I’m at a loss for why I keep getting 404. Anyone run into this?

Thanks in advance

###########################################################################

Homeassistant version: 0.84.6

configuration.yaml

http:
  api_password: !secret api_password
  ssl_certificate: /srv/homeassistant/dehydrated/dehydrated/XXXXXXXXXXXXX.com/fullchain.pem
  ssl_key: /srv/homeassistant/dehydrated/dehydrated/XXXXXXXXXXXXX.com/privkey.pem
  base_url: https://XXXXXXXXXXXXX.com:8123

alexa:
  smart_home:
    filter:
      include_entities:
        - switch.ge_14291_inwall_smart_switch_switch_2
      include_domains:
        - switch
    entity_config:
      switch.ge_14291_inwall_smart_switch_switch_2:
        name: LightSwitch
        description: The light in the Living Room

haaska config

{
  "url": "https://XXXXXXXXXXXXX:8123/api",
  "bearer_token": "XXXXXXXXXXXXXXXXX",
  "debug": true,
  "ssl_verify": true,
  "ssl_client": []
}

modified event_handler() to test internet connection

event_handler():
    url_hass = 'https://XXXXXXXXXXXXX:8123/api/'
    headers = {'Authorization': "Bearer ABV",}
    r = requests.get(url_hass, headers = headers)
    return r.text

fixed my own issue. was just editing an configuration.yaml in an older directory/location. i’m an idiot.

2 Likes

THX for this