The Haaska Super Thread

Hi,

Just finished setting up Haaska, I have run the Lambda test which was successful showing devices as expected with no errors.
I have then enabled the Haaska skill in my Alexa app on my mobile and tried to discover devices and none were found, I tried forgetting and devices and it was only finding the devices I had linked previously (5 sonos speakers)

I cannot figure out why it can’t seem to find anything, I followed the guide without issue until this point.

Any help would be appreciated.

Hi all, does really nobody have an idea, what could be wrong?
When the lambda test is successful and the skill is registered and activated, what could be the problem when alexa does’nt detect the entities?

Hi, sorry - I’m not 100% sure what’s happening, but yes, the test should return all devices that you can control. If that doesn’t show more than the one script, then something needs to be changed in your configuration.

It’s probably better if you can post it in a way that keeps the original formatting. On these forums, that means putting it in side of three ` symbols, like this:

```
My code here
```

You could also try any paste website as well.

Does the test return many results?

No, I have restricted the possible entities to 5. Some scripts and some input_booleans.
They are reported in the result as shown 7 posts before.

This is the complete lambda test result:

Response:
{
  "event": {
    "header": {
      "messageId": "6313f22a-72d1-43ad-845f-27b08d78ebe8",
      "name": "Discover.Response",
      "namespace": "Alexa.Discovery",
      "payloadVersion": "3"
    },
    "payload": {
      "endpoints": [
        {
          "capabilities": [
            {
              "interface": "Alexa.SceneController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": false,
                "supported": []
              },
              "supportsDeactivation": true,
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "script.command_bright_light",
          "displayCategories": [
            "ACTIVITY_TRIGGER"
          ],
          "endpointId": "script#command_bright_light",
          "friendlyName": "command_bright_light",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.SceneController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": false,
                "supported": []
              },
              "supportsDeactivation": true,
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "script.command_dim_light",
          "displayCategories": [
            "ACTIVITY_TRIGGER"
          ],
          "endpointId": "script#command_dim_light",
          "friendlyName": "command_dim_light",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.SceneController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": false,
                "supported": []
              },
              "supportsDeactivation": true,
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "script.command_halogen_light",
          "displayCategories": [
            "ACTIVITY_TRIGGER"
          ],
          "endpointId": "script#command_halogen_light",
          "friendlyName": "command_halogen_light",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.PowerController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "powerState"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.EndpointHealth",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "input_boolean.turn_on_bright_light",
          "displayCategories": [
            "OTHER"
          ],
          "endpointId": "input_boolean#turn_on_bright_light",
          "friendlyName": "Helles Licht an",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.PowerController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "powerState"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.EndpointHealth",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "input_boolean.turn_on_dim_light",
          "displayCategories": [
            "OTHER"
          ],
          "endpointId": "input_boolean#turn_on_dim_light",
          "friendlyName": "Dunkles Licht an",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.PowerController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "powerState"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.EndpointHealth",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "input_boolean.turn_on_halogen_light",
          "displayCategories": [
            "OTHER"
          ],
          "endpointId": "input_boolean#turn_on_halogen_light",
          "friendlyName": "Halogen Licht an",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.PowerController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "powerState"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.EndpointHealth",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "input_boolean.turn_on_tv_light",
          "displayCategories": [
            "OTHER"
          ],
          "endpointId": "input_boolean#turn_on_tv_light",
          "friendlyName": "Fernseh Licht an",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.PowerController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "powerState"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.EndpointHealth",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "input_boolean.whereisjoerg",
          "displayCategories": [
            "OTHER"
          ],
          "endpointId": "input_boolean#whereisjoerg",
          "friendlyName": "whereisjoerg",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.PowerController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "powerState"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.EndpointHealth",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "input_boolean.holiday_mode",
          "displayCategories": [
            "OTHER"
          ],
          "endpointId": "input_boolean#holiday_mode",
          "friendlyName": "Urlaubsmodus",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.PowerController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "powerState"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.EndpointHealth",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "input_boolean.howlongwashing",
          "displayCategories": [
            "OTHER"
          ],
          "endpointId": "input_boolean#howlongwashing",
          "friendlyName": "how_long_washing",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.PowerController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "powerState"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.EndpointHealth",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "input_boolean.backup_needed",
          "displayCategories": [
            "OTHER"
          ],
          "endpointId": "input_boolean#backup_needed",
          "friendlyName": "Execute Backup",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.PowerController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "powerState"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.BrightnessController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "brightness"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.ColorTemperatureController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "colorTemperatureInKelvin"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.EndpointHealth",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "light.hue_ambiance_spot_1",
          "displayCategories": [
            "LIGHT"
          ],
          "endpointId": "light#hue_ambiance_spot_1",
          "friendlyName": "Treppe unten",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.PowerController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "powerState"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.BrightnessController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "brightness"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.ColorTemperatureController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "colorTemperatureInKelvin"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.EndpointHealth",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "light.hue_ambiance_spot_2",
          "displayCategories": [
            "LIGHT"
          ],
          "endpointId": "light#hue_ambiance_spot_2",
          "friendlyName": "Treppe oben",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.PowerController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "powerState"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.BrightnessController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "brightness"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.ColorController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "color"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.ColorTemperatureController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "colorTemperatureInKelvin"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa.EndpointHealth",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "light.hgrp_1073741822",
          "displayCategories": [
            "LIGHT"
          ],
          "endpointId": "light#hgrp_1073741822",
          "friendlyName": "hgrp-1073741822",
          "manufacturerName": "Home Assistant"
        }
      ]
    }
  }
}

Request ID:
"7e4b9ed9-efc7-4872-b183-e357dced1fa5"

Function Logs:
START RequestId: 7e4b9ed9-efc7-4872-b183-e357dced1fa5 Version: $LATEST
END RequestId: 7e4b9ed9-efc7-4872-b183-e357dced1fa5
REPORT RequestId: 7e4b9ed9-efc7-4872-b183-e357dced1fa5	Duration: 699.32 ms	Billed Duration: 700 ms 	Memory Size: 128 MB	Max Memory Used: 58 MB	

Hi Anthony,
From what I can tell the test picks up everything (without checking each and every item is there one at a time), There are all my automations and devices, etc.
Thanks :slight_smile:

Its difficult to say what may be the cause of your problem, but since Haaska is seeing the devices from HA, it could be that Alexa’s Haaska Skill/App did not get linked properly with your developer skill. May want to disable the Haaska Skill in Alexa and re-enable it to see what happens.

Hi wmaker. Did not work.
Do I may have to search for a certain kind of devices?

Hi,
I followed this threads instructions: https://github.com/mike-grant/haaska/issues/91
alexa:
smart_home:
endpoint: https://api.amazonalexa.com/v3/events
client_id: ‘client id from permissions page’
client_secret: ‘client secret from permissions page’
filter:
include_entities:
- script.command_bright_light
- script.command_dim_light
- script.command_halogen_light
- script.command_tv_light
- input_boolean.whereisjoerg
- input_boolean.howlongwashing
- input_boolean.holiday_mode
- switch.toggle
exclude_entities:
- automation.activate_holiday_modes
- automation.activate_hue_sonnenuntergang
I reactivated the skill and graned permissions on postal code and region

nothing worked. It seems, that its not possible, to get the component running.
By the way, the installation instruction on the wiki fit by far not to the installation steps, you have to do on aws console in order to built the skill.

I have no further idea, what to do.

Ok, moved to the cloud solution.
That works.

Hey, sorry I couldn’t help further. It’s been a very busy time for me personally. I’m glad to hear you have a working solution, even in the cloud option.

I took great care to write the instructions that are present. Would you mind sending me a PM so I can know what parts need to be updated?

Thank you.

Hello, last night I was able to get Haaska up and running. All of my devices were identified in the Alexa web interface. Although, I have three GE Zwave devices won’t fully appear. I am able to control the devices directly in Home Assistant, the only issue is they aren’t fully making it through haaska.

  1. Online web interface - https://alexa.amazon.com - all devices appear under the haaska skill
  2. When I go into the iOS app, and click “Devices” in the bottom right corner, all of my devices appear Except my three GE Zwave devices.
  3. If I try to ask Alexa to turn on or off one of these devices, it says that it can’t find any of the devices.
  4. I returned to the Alexa web interface, and the devices are still there. I’ve tried forgetting the devices and re-adding them with no luck.

Any thoughts?

For anyone else having this problem, the Emulated Hue Bridge allowed my z-wave devices to be seen by Alexa.

Hrm… that’s strange. I have Z-Wave devices, but they’re through Wink, so I’ve never tested anything else.

Oh I didn’t specify, I’m using the HUSBZB-1 Z-wave stick. Not sure if that makes a difference or not, but they aren’t coming through an external hub.

A suggestion would be to run the Haaska Test on Lambda and take a look at the results to see how the device is presented (in JSON) and maybe compare it to what is documented here:
https://developer.amazon.com/docs/smarthome/understand-the-smart-home-skill-api.html

Hello everyone,

Firstly thank you @anthonylavado for your awesome work here and continuing support.

Having (probably needlessly) been struggling to achieve the following I thought I would share now it’s working perfectly.

I have a Neos SmartCam (£19.99) with Dafang Hacks Firmware installed which produces MQTT posts for motion detection fairly reliably. After I set up HASSKA I realised that this MQTT Binary Sensor (autodiscovered) appeared in Alexa and I could run Alexa routines off it… all the power of Alexa devices triggered by a £19.99 motion sensor via Mosquitto running on Hassio… good so far… then I got thinking…

I created a MQTT binary sensor in my config:

binary_sensor:
  - platform: mqtt
    name: "Virtual Motion Sensor"
    state_topic: "home-assistant/virtual/motion"
    payload_on: "ON"
    payload_off: "OFF"
    qos: 0
    device_class: motion   

I then created a curl command using a great little app called http shortcuts [“This app is open source, find it on Github: https://github.com/Waboodoo/HTTP-Shortcuts. It’s also completely free and contains no ads, because who wants those anyway.”] but you could also call this any curl way you like:

curl https://myinstance.duckdns.org:8123/api/services/mqtt/publish -X POST -m 10000 -H "Authorization: Bearer horriblylongtoken" -d "{\"payload\":\"ON\",
\"topic\":\"home-assistant/virtual/motion\",
\"retain\":\"true\"}"

Then I set up a little automation in HA to reset the Virtual Sensor with the MQTT payload message:

- id: ''
  alias: Virtual Sensor Reset
  trigger:
  - payload: 'ON'
    platform: mqtt
    topic: home-assistant/virtual/motion
  condition: []
  action:
  - delay: 00:00:01
  - data:
      payload: 'OFF'
      retain: 'true'
      topic: home-assistant/virtual/motion
    service: mqtt.publish

So, I can now set up any routine I like in the Alexa eco system to be triggered from anything that can fire a curl - including other automations. I can create multiple sensors to do different things - play a particular song, announce I am on my way home from work based on device tracking etc.

It’s not pretty but it works.

Any suggestions on how I could have done this differently/simpler to achieve the same without adding any other custom components?

Thanks again!

Hi all,
After a year and a half of supporting this project, I’m going to be stepping away from it. My apologies that some of the instructions are incomplete, but I now see that both the Home Assistant component pages and other places have long since moved on - they now include instructions of their own, and there are more advanced, faster relay scripts available out there (see mike-grant/hasska#104 for an example).

It’s been a fun ride. I’ll leave issues up on the GitHub for whatever may need to be filled in, and I’ll occasionally check in, but I’m going to stop actively watching this thread.

For more details, you can read https://github.com/mike-grant/haaska/issues/109, or send me message :slight_smile:

Thank you for your efforts! Sad :cry: to see you going!

Thank you :heart: and best of luck!

1 Like