The Haaska Super Thread

Hi set up haaska, went easy and smooth and in general works really really well!!
I’m having a weird issue - I have about 50 shellys (mixture of shelly 2.5 as covers and shelly dimmer and dimmer 2 for dimming). Open/close of shutters works great with haaska/alexa as does turn off and turn on lights with the dimmers, BUT when I tell a dimmer (that’s off) to dim X% (e.g. Alexa, set kitchen 20%) the lights go on to the correct dim but then turn off automatically after about 5 seconds. It happens consistently across all my dimmers. If I say Alexa, turn on kitchen - it works fine, just the dimming is the problem - any help would be greatly appreciated!

I’ve made good progress, and have added 38 “devices”; but lots more are missing. Is it possible to add additional devices / entities / automations to the haaska skill?

TIA

Couple of things to look at:

  1. in your configuration.yaml, do you use filters with include or exclude?
  2. Device Types. In the early days only a few simple device types were supported (for example contact sensor or motion sensor were not supported) but more and more device types are now supported by the HA Alexa component, and 0.117 in particular added even more. What types of devices are not being discovered?

Thanks for your reply. I am running HA Core 0.117.0

Only these lines contain the word include (none exclude) - should I alter or add to these lines?

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

api:

alexa:
  smart_home:
  
homeassistant:
  customize: !include customize.yaml

My Integrations are

  • Google Cast (not yet Configured or included
  • IKEA
  • Met.no
  • Mobile App
  • Hue
  • Raspberry Pi Power
  • Roon
  • Shelly
  • Sonos
  • Synology DSM
  • Tado
  • Tuya

I have also added the following manually

  • Brunt Blind Motors (ie covers)
  • OpenGarage (door opener)

Within the Dev Skill, it looks like the Hue Devices & Scenes are there, as are the Sonos Devices, & my Amazon Dot.

But the Brunt blind motors, IKEA blinds, Shelly 1 “switches”, Roon Devices, Tuya smart plugs, & Tado smart radiator valves / thermostat are not showing up

I’m not sure what is wrong, but here are a couple of things of interest:

This link says filter is required. Apparently it is not required if some of your devices are being discovered, but you may want to add it anyway as the default value for filter is to include everything.

This link tells you what platforms are supported.

Hi all

could someone please help me with Haaska + Alexa integration?
I’ve followed DrZzs’s great video “Alexa with Home Assistant without Nabu Casa Subscription - it’s free but it ain’t easy” and set the AWS Lambda function up.
When I press test, I got HTTP 200 response and the JSON answer where I see my devices etc.

but when I try to discover devices with Alexa I got nothing :frowning:

I’ve read several pages above this thread and found out that people had problems with Denon AVRs
So I powered mine off and deleted integration (both Denon and HEOS)

It didn’t help.

I also deleted Kodi integration (just in case).
Still no luck :frowning:

I even see no HTTP requests from amazon cloud when I push “discover” on Alexa web page.
It seems that they do not send anything. But the test of lambda function is OK (I see POST request).

The only thing that is “not standard” in my setup is that I have nginx server on my router and I have letsencrypt key/cert there, I am not using DuckDNS as I have my own domain and I simply added A DNS record there and get the proper key/certificate with certbot.
The home assistant server is on my LAN and as use nginx as proxy pass.

Please help me debug the problem, I can provide any information needed (logs, configs etc.)

Thanks!

Hi Everyone,

I set it all up however I also encountered the issue with no devices discovered on Alexa

I am on Ireland and Language for the Alexa skill is English (UK).

Testing the lambda is successful and returns the list of devices in Home Assistant.

What I realized is that when I try to discover the devices in alexa … the lambda itself is not actually running as I couldn’t find any logs in Cloudwatch for the run.

So the issue seems to be that the lambda is not being triggered… Why? no idea

Update: I Changed to everything to US Region and it worked… not ideal since i’m in Europe

possibly related to this
https://forums.developer.amazon.com/questions/178655/alexa-smart-home-skill-not-triggering-lambda.html

Resolved:

Managed to fix this and I’m putting my findings here for other to see.

For some weird reason my amazon account was set as a US account in terms of Alexa and Kindle devices. I couldn’t have noticed before as I just bought my first Echo and never did any purchases for Kindle.

As such when I was creating the skill… even though I was choosing English (UK) … the skill I was creating was still getting marked as devUS

image

Previous this said devUS and not devGB.

To fix you need to go to the normal Amazon website you need to set it up on… (my case I used amazon.co.uk)

  • Go to Manage your Content and Devices
  • Change Country Settings
  • Then I was given the option to transfer my Device account ( i think it was called) to amazon.co.uk

Explained also here at the bottom https://www.amazon.com/gp/help/customer/display.html?nodeId=201248840

After I transferred my account I noticed that when I logged in alexa.amazon.com I was immediately re-directed to alexa.amazon.co.uk and had to re-set everything in my Alexa (thankfully I didn’t have alot)

After the above I re did the whole process (not sure if it was required but I had played with some things so to be safe I started the process from scratch)

After doing the whole process all worked as it should and apart from my devices being discovered… You’ll notice that the haaska skill is marked according to your locale devUS, devGB, devDE etc…

2 Likes

HI I have been getting some errors when testing out haaska on hassio. I believe it is caused by the ssl encryption but I am out of ideas. Any help would be much appreciated.

Thanks.

Log

{
  "errorMessage": "401 Client Error: Unauthorized for url: https://xxxxxxxx.duckdns.org:8123/api/alexa/smart_home",
  "errorType": "HTTPError",
  "stackTrace": [
    [
      "/var/task/haaska.py",
      111,
      "event_handler",
      "return ha.post('alexa/smart_home', event, wait=True)"
    ],
    [
      "/var/task/haaska.py",
      66,
      "post",
      "r.raise_for_status()"
    ],
    [
      "/var/task/requests/models.py",
      940,
      "raise_for_status",
      "raise HTTPError(http_error_msg, response=self)"
    ]
  ]
}

Having an error message when testing my final Haaska setup. Not discovering any devices after installing the skill. Can anyone shed some light on the error below?

{
“errorMessage”: “HTTPConnectionPool(host=‘localhost’, port=8123): Max retries exceeded with url: /api/alexa/smart_home (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7fc527a9b048>: Failed to establish a new connection: [Errno 111] Connection refused’,))”,
“errorType”: “ConnectionError”,
“stackTrace”: [
[
“/var/task/haaska.py”,
111,
“event_handler”,
“return ha.post(‘alexa/smart_home’, event, wait=True)”
],
[
“/var/task/haaska.py”,
65,
“post”,
“timeout=(None, read_timeout))”
],
[
“/var/task/requests/sessions.py”,
581,
“post”,
“return self.request(‘POST’, url, data=data, json=json, **kwargs)”
],
[
“/var/task/requests/sessions.py”,
533,
“request”,
“resp = self.send(prep, **send_kwargs)”
],
[
“/var/task/requests/sessions.py”,
646,
“send”,
“r = adapter.send(request, **kwargs)”
],
[
“/var/task/requests/adapters.py”,
516,
“send”,
“raise ConnectionError(e, request=request)”
]
]
}

Have you found a solution for this? I’m getting the same error.

Did you get this figured out? I am getting the same error message when testing. Thanks.

hey @galpd320,
I am @jezzard but i do not have access to that account anymore so moved to this one.
Yes i found the error was actually nothing to do with Nginx or the SSL but actually came down to an issue with a rogue IP camera trying to take port 80 and present its own certificate rather the lets encrypt one.
I found it by checking the SSL on the domain and it was reporting an error of a name mismatch as it was seeing the cameras certificate. Sionce fixed my network.
Let me know if i can help more.
Cheers
Ross

I was able to configure haaska and managed to get some of my devices to be discovered (only after specifically “including” them through the home assistant config). However, the Paradox Alarm System that I have at home and successfully control through MQTT via Home Assistant is not being discovered, no matter what I try. Any ideas what I can do and if it is supposed to work that way. Here is the config part in Hassio (the rest of the devices are discovered properly):

alexa:
  smart_home:
    filter:
       include_entities:
         - alarm_control_panel.mqtt_alarm
         - climate.living_room_ac
         - media_player.samsung_ue46f6500
         - switch.living_room_floor_led
         - switch.bedroom2_ceiling_led
         - switch.m365_charger
         - binary_sensor.0x00158d00045a54ac_water_leak_2
         - binary_sensor.door_contact_sensor
         - binary_sensor.entrance_motion_sensor
         - sensor.main_bedroom_temp
         - sensor.kids_bedroom_temp
    entity_config:
      alarm_control_panel.mqtt_alarm:
        name: Home Alarm
        description: Control the Paradox Alarm System
        display_categories: SECURITY_PANEL

Hi,
i have a short question in the hope that one of you can give me a tip:
If i search for new devices in Alexa with discovery, they will be found without any problems. Now I have accidentally deleted a device from Alexa and now it is no longer found when searching again…
Does anyone know how to get the deleted device back? I would be very grateful for any help!

Best regards
Chris

Hi guys and Happy New Year!

Hope you are healthy and safe.

I’m trying to exclude entities and domains in my config but the Haaska seems to just completely ignore my filters.

Do you have any suggestions?

# Alexa Cloud (Haaska)
alexa:
  smart_home:
    filter:
      include_entities:
        - switch.bedroom_bookshelf_lights_bedroom_bookshelf_lights
        - switch.tasmota_tasmota
        - climate.living_room_a_c
        - switch.bedroom_mirror_lights_bedroom_mirror_lights
        - switch.living_room_reading_light_living_room_reading_light
        - switch.bedroom_nightstands_bedroom_nightstands
        - light.tall_lamp
        - climate.bedroom_a_c
        - light.tv_light 
        - switch.tv_bookshelf_tv_bookshelf
        - switch.boiler
        - light.office_lamp
        - switch.bedroom_reading_lights_bedroom_reading_lights
        - light.ball_lamp
        - media_player.soundbar
        - media_player.living_room
        - switch.bedroom_heater
        - switch.christmas_tree
        - switch.hallway_light
        - switch.kitchen_lights
        - switch.bed_heat
        - switch.balcony_christmas_lights
        - alarm_control_panel.alarmo
      include_domains:
        - switch
        - light
        - fan
        - media_player
        - climate
      exclude_entities:
        - switch.adaptive_lighting_adapt_brightness_adaptivelights
        - switch.adaptive_lighting_adapt_color_adaptivelights
        - switch.adaptive_lighting_sleep_mode_adaptivelights
        - switch.adaptive_lighting_adaptivelights
        - switch.adguard_filtering
        - switch.adguard_parental_control
        - switch.adguard_protection
        - switch.adguard_safe_browsing
        - switch.adguard_safe_search
        - switch.adguard_query_log
        - media_player.kitchen_echo
        - media_player.everywhere
        - media_player.bedroom_echo_dot
        - media_player.living_room_2
        - media_player.living_room_echo_dot_left
        - media_player.living_room_echo_dot_right
        - media_player.manos_s_alexa_apps
        - media_player.manos_s_alexa_apps_2
        - media_player.this_device
        - media_player.this_device_2
        - media_player.this_device_3
        - media_player.this_device_4
        - media_player.lg_webos_smart_tv
        - switch.bedroom_echo_dot_do_not_disturb_switch
        - switch.bedroom_echo_dot_repeat_switch
        - switch.bedroom_echo_dot_shuffle_switch
        - switch.everywhere_do_not_disturb_switch
        - switch.everywhere_do_not_disturb_switch_2
        - switch.everywhere_repeat_switch
        - switch.everywhere_repeat_switch_2
        - switch.everywhere_shuffle_switch
        - switch.everywhere_shuffle_switch_2
        - switch.kitchen_echo_do_not_disturb_switch
        - switch.kitchen_echo_do_not_disturb_switch_2
        - switch.kitchen_echo_repeat_switch
        - switch.kitchen_echo_repeat_switch_2
        - switch.living_room_do_not_disturb_switch
        - switch.kitchen_echo_shuffle_switch
        - switch.kitchen_echo_shuffle_switch_2
        - switch.living_room_do_not_disturb_switch
        - switch.living_room_echo_dot_do_not_disturb_switch
        - switch.living_room_echo_dot_repeat_switch
        - switch.living_room_echo_dot_shuffle_switch
        - switch.living_room_repeat_switch
        - switch.living_room_shuffle_switch
        - switch.manos_echo_dot_do_not_disturb_switch
        - switch.manos_echo_dot_repeat_switch
        - switch.manos_echo_dot_shuffle_switch
        - switch.manos_s_alexa_apps_do_not_disturb_switch
        - switch.manos_s_alexa_apps_do_not_disturb_switch_2
        - switch.this_device_do_not_disturb_switch
        - switch.this_device_do_not_disturb_switch_2
        - switch.this_device_do_not_disturb_switch_3
        - switch.this_device_do_not_disturb_switch_4
        - switch.bedroom_heater_bedroom_heater
        - light.configuration_tool_1
        - light.h6159_1adb
        - media_player.plex_plex_for_apple_tv_living_room
        - media_player.plex_plex_web_chrome_windows
        - media_player.plex_plex_for_ios_marinosas_iphone
        - media_player.plex_plex_web_chrome
        - media_player.plex_plex_web_safari
        - media_player.spotify_manos_ioannidis
        - media_player.spotify_michael_papaeconomou
        - media_player.manoss_xbox
      exclude_domains:
        - group
        - automation
        - binary_sensor
        - sensor
        - script
        - camera
        - lock
        - scene
        - device_tracker
        - remote

Update:
seems that I’ve jumped the gun on this one.
This config I’ve posted was the latest try and WORKED! but I was dissapointed and thought that it wouldn’t…

So for anyone who needs the right format of filters, copy my config and replace with your own entities, just be careful not to change the order of the filters and be very careful of the syntax and placement.

Hi to everyone,

I ask some help, because i made all process to configure haaska, and in the moment to discover devices via Alexa App Skill, not find anything.

I selected region ireland in AWS as you can see

imagen

because i live in spain and my alexa are configured in spainsh language.

Doing the lambda test, all works fine, and i can see all devices discovered:

In the skill option, also i selected EU region

But when i search devices in the alexa app, nothing appear.

Do you know where the problem can be or where i failed?

thanks

@garvarma I had the same issue and managed to fix it… see my comment - The Haaska Super Thread

Thanks for reply.

So you recommend me try to change the lambda function to each US region?

The skill that i have it in Spanish, also need to change it?

imagen

@garvarma not don’t set a US region.

My issue was that my account was defaulting to US even though I’m in the EU.

In order to set it open amazon the shop in your case I think you should open amazon.es

Log in
Go to Manage your Content and Devices
Change Country Settings
Then I was given the option to transfer my Device account

Once I did the transfer I immediately noticed something changed as when I went on alexa.amazon.com I got redirected to .co.uk which is the region I chose…

After the above I had to re create the skill as even my developer account got transferred…

Hi,

You refer change country here in Preference options? (Sorry it’s in Spanish…)

imagen