Haaska and alexa discovery not working

Hi everyone

I couldn’t get hue emulation to work so I decided to see if I could get Haaska up and running but I didn’t manage it quite.

I managed to get Haaska up and running and connected with my home assistant. However, I can’t get Alexa to find the switches/scripts that I have set up and rather hoping that someone can point me where I am going wrong…

{
  "event": {
    "header": {
      "messageId": "a7429f26-5a81-4c7e-8fc1-bf6eff65850e",
      "name": "Discover.Response",
      "namespace": "Alexa.Discovery",
      "payloadVersion": "3"
    },
    "payload": {
      "endpoints": [
        {
          "capabilities": [
            {
              "interface": "Alexa.SceneController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": false,
                "supported": []
              },
              "supportsDeactivation": false,
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "script.switch_bt",
          "displayCategories": [
            "ACTIVITY_TRIGGER"
          ],
          "endpointId": "script#switch_bt",
          "friendlyName": "switch_bt",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.SceneController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": false,
                "supported": []
              },
              "supportsDeactivation": false,
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "script.denon_volume_up",
          "displayCategories": [
            "ACTIVITY_TRIGGER"
          ],
          "endpointId": "script#denon_volume_up",
          "friendlyName": "denon_volume_up",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.SceneController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": false,
                "supported": []
              },
              "supportsDeactivation": false,
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "script.tv_power_off",
          "displayCategories": [
            "ACTIVITY_TRIGGER"
          ],
          "endpointId": "script#tv_power_off",
          "friendlyName": "tv_power_off",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.SceneController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": false,
                "supported": []
              },
              "supportsDeactivation": false,
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "script.projector_off",
          "displayCategories": [
            "ACTIVITY_TRIGGER"
          ],
          "endpointId": "script#projector_off",
          "friendlyName": "projector_off",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.SceneController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": false,
                "supported": []
              },
              "supportsDeactivation": false,
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "script.tv_power_on",
          "displayCategories": [
            "ACTIVITY_TRIGGER"
          ],
          "endpointId": "script#tv_power_on",
          "friendlyName": "tv_power_on",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.SceneController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": false,
                "supported": []
              },
              "supportsDeactivation": false,
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "script.switch_shield",
          "displayCategories": [
            "ACTIVITY_TRIGGER"
          ],
          "endpointId": "script#switch_shield",
          "friendlyName": "switch_shield",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.SceneController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": false,
                "supported": []
              },
              "supportsDeactivation": false,
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "script.shield_on",
          "displayCategories": [
            "ACTIVITY_TRIGGER"
          ],
          "endpointId": "script#shield_on",
          "friendlyName": "shield_on",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.SceneController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": false,
                "supported": []
              },
              "supportsDeactivation": false,
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "script.shield_power_off",
          "displayCategories": [
            "ACTIVITY_TRIGGER"
          ],
          "endpointId": "script#shield_power_off",
          "friendlyName": "shield_power_off",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.SceneController",
              "properties": {
                "proactivelyReported": false,
                "retrievable": false,
                "supported": []
              },
              "supportsDeactivation": false,
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "script.shield_power_on",
          "displayCategories": [
            "ACTIVITY_TRIGGER"
          ],
          "endpointId": "script#shield_power_on",
          "friendlyName": "shield_power_on",
          "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": "group.all_scripts",
          "displayCategories": [
            "OTHER"
          ],
          "endpointId": "group#all_scripts",
          "friendlyName": "all scripts",
          "manufacturerName": "Home Assistant"
        },
        {
          "capabilities": [
            {
              "interface": "Alexa.EndpointHealth",
              "properties": {
                "proactivelyReported": false,
                "retrievable": true,
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {},
          "description": "binary_sensor.updater",
          "displayCategories": null,
          "endpointId": "binary_sensor#updater",
          "friendlyName": "Updater",
          "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": "group.all_switches",
          "displayCategories": [
            "OTHER"
          ],
          "endpointId": "group#all_switches",
          "friendlyName": "all switches",
          "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": "switch.tv_power",
          "displayCategories": [
            "SWITCH"
          ],
          "endpointId": "switch#tv_power",
          "friendlyName": "TV Power",
          "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": "switch.bt_power",
          "displayCategories": [
            "SWITCH"
          ],
          "endpointId": "switch#bt_power",
          "friendlyName": "BT Power",
          "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": "switch.projector_screen",
          "displayCategories": [
            "SWITCH"
          ],
          "endpointId": "switch#projector_screen",
          "friendlyName": "Projector Screen",
          "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": "switch.denon_power",
          "displayCategories": [
            "SWITCH"
          ],
          "endpointId": "switch#denon_power",
          "friendlyName": "Denon",
          "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": "switch.shield_input",
          "displayCategories": [
            "SWITCH"
          ],
          "endpointId": "switch#shield_input",
          "friendlyName": "Shield input",
          "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": "switch.projector_off",
          "displayCategories": [
            "SWITCH"
          ],
          "endpointId": "switch#projector_off",
          "friendlyName": "Projector",
          "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": "switch.living_room_lamp",
          "displayCategories": [
            "SWITCH"
          ],
          "endpointId": "switch#living_room_lamp",
          "friendlyName": "Living Room Lamp",
          "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": "switch.bt_input",
          "displayCategories": [
            "SWITCH"
          ],
          "endpointId": "switch#bt_input",
          "friendlyName": "BT input",
          "manufacturerName": "Home Assistant"
        }
      ]
    }
  }
}

is the haaska code

and this is what I have in my config file is hassio

api:

alexa:
  smart_home:
    filter:
      include_domains:
        - switch
        - script

here is an example of the switch

switch:
- platform: broadlink
  host: 192.168.**.**
  mac: 'b3:43:0d:**:**:**'
  timeout: 60
  type: rm2_pro_plus
  switches:
    # TV
    tv_power:
      friendly_name: "TV Power"
      command_on: 'sB40AAwAATwPIA0gDSAhDQ4gDSAhDSEMIQwhDQ4gDiANIA0gIQwhDSELIgwhDSEMIQwhDSELIg0AAAAA'
      command_off: 'rx80AAsAAT0NIA0gDSAiDA0gDSAhDSEMIQwhDA0gDSAOIA0gIQwhDCEMIQwhDCEMDSAhDCEMIA4AAAAA'

and of a script

denon_volume_up:
    sequence:
      - service: broadlink.send
        data:
          host: 192.168.86.25
          packet:
            - "JgA2AW44DQ8NDwssDQ8NKg0PDSsODQ0PDSoNDg0PDSwNKg0PDQ0OGg0ODRAODQ4PDA8NKg0ODikODg0ODg4NDg4ODg0ODg0qDSsOKQ0PDSoNDw0ODRANDg0qDioODg0AA4gLDwssDQ8LAAxXbTcLEQ0ODSoNDw0qDQ8NKw0ODQ8NKQ4PDg8MKg4pDQ8NDwwQDQ4ODg0PDQ4NDg4pDQ8OKQ0PDQ4ODg0ODg8NDg4ODSoOKQ0rDQ8NKw0PDw8KEQ0QCi0NKg4NDSsNDwwrDg4NAAlubjcODg0ODikODwwqDQ8OKQ4PDQ4NKg0PDg4NKg0qDQ4ODg4QDQ4ODg0ODg4NDwssDQ8NKw0ODQ8MDwsRDQ8NEAsTDQADhg0qDSoNDg4pDQ8NEQoRDRAMKw0rDQ4NKg4ODikNDw0ADQUAAA=="
            - "JgA2AW44DQ8NDwssDQ8NKg0PDSsODQ0PDSoNDg0PDSwNKg0PDQ0OGg0ODRAODQ4PDA8NKg0ODikODg0ODg4NDg4ODg0ODg0qDSsOKQ0PDSoNDw0ODRANDg0qDioODg0AA4gLDwssDQ8LAAxXbTcLEQ0ODSoNDw0qDQ8NKw0ODQ8NKQ4PDg8MKg4pDQ8NDwwQDQ4ODg0PDQ4NDg4pDQ8OKQ0PDQ4ODg0ODg8NDg4ODSoOKQ0rDQ8NKw0PDw8KEQ0QCi0NKg4NDSsNDwwrDg4NAAlubjcODg0ODikODwwqDQ8OKQ4PDQ4NKg0PDg4NKg0qDQ4ODg4QDQ4ODg0ODg4NDwssDQ8NKw0ODQ8MDwsRDQ8NEAsTDQADhg0qDSoNDg4pDQ8NEQoRDRAMKw0rDQ4NKg4ODikNDw0ADQUAAA=="
            - "JgA2AW44DQ8NDwssDQ8NKg0PDSsODQ0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4NKg0PDg4NKg0qDQ4ODg4QDQ4ODg0ODg4NDwssDQ8NKw0ODQ8MDwsRDQ8NEAsTDQADhg0qDSoNDg4pDQ8NEQoRDRAMKw0rDQ4NKg4ODikNDw0ADQUAAA=="

Could someone help me please? This is my way of ditching RM Plugin for my broadlink device so really keen on getting this working!! Thanks

Hi!

have you managed to fix Haaska + Alexa discovery?
Could you help me if you have, it seems that I have the same problem :frowning:
My test (from amazon cloud) works as expected, it returns my devices.
But Alexa cannot discover a thing…

Thanks!

Hi

i have got it working, and all i can point it to is not following the guide properly - i started over…the other thng i think i did was something to do with dmz into my google wifi but not sure if that was just a coincidence…good luck!