Skip to content

Pairing with Alexa not working #159

Closed

Description

@JimBuzbee

Log file attached.
alexa.txt

Activity

  1. mfucci commented on Jan 2, 2023

    @mfucci
    Owner

    Can you try if you can pair with the branch containing the iOs fixes?
    "support-ios"

    I was able to pair with iOs with this branch but most of the fixes in it are too hacky to be able to merge them as is

  2. JimBuzbee commented on Jan 2, 2023

    @JimBuzbee
    ContributorAuthor

    Log from from the iOS branch. In the app, it takes quite a while before it finally fails up with: "Is this device set up for control with another assistant or app?"

    Log File attached
    alexa1.txt

  3. mfucci commented on Jan 2, 2023

    @mfucci
    Owner

    The commissioning seems to have been successful per node-matter logs:
    GeneralCommissioningClusterHandler Commissioning completed on fabric #43153954716076642 as node #009E91B49E9051D0.

    iOs actually does multiple commissioning in a row, so maybe this is what is failing.

    The last action seems to read the features of the NetworkCommissioningCluster to check which connectivity is supported on the device.
    Not implemented yet in the main branch, I will send a MR shortly to fix this.

  4. mfucci commented on Jan 2, 2023

    @mfucci
    Owner

    Created #162

    Can you try with this branch "define-network-cluster"?
    Now the last read of attribute 0/49/65532 should return the correct value.

    I don't have an Alexa device on my side so I will rely on you for the testing. Hopefully I will be able to debug all the issues in 3 / 4 rounds of fixing.

  5. JimBuzbee commented on Jan 2, 2023

    @JimBuzbee
    ContributorAuthor

    Here's a run from the "define-network-cluster" branch. I'm still getting the same failure message from the app.

    If it would help, I'd be glad to send you an Alexa "Dot" as thanks for your work. Just send me your info.

    alexa2.txt

  6. mfucci commented on Jan 2, 2023

    @mfucci
    Owner

    Thanks for offering to send me a "Dot"!
    Let me merge down all the fixes I did to support iOs and there is some chance that it will work as well for Alexa.
    I will let you know when pairing with an iPhone is working in master, probably in a couple of days.

  7. mfucci commented on Jan 2, 2023

    @mfucci
    Owner

    I remember that I was stuck at the same step you are now with Alexa when debugging iOs...
    And Android / iOs / Alexa are all using the same codebase to implement the controller so behave in a similar way.

  8. JimBuzbee commented on Jan 5, 2023

    @JimBuzbee
    ContributorAuthor

    Nice work! I just cloned add-android-support and Alexa now works! Very cool to say "Alexa, turn on light" and have it reply "ok" and see node-matter respond appropriately.

    I do see an error in the log (attached) and I would guess persistence is not there yet? i.e. I have to delete the Alexa device and re-commission every time I start the node-matter server. If I don't, I see messages like the following:

    2023-0-4 7:42:3.619 INFO Device [email protected]
    2023-0-4 7:42:3.698 INFO Device Listening
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    █ ▄▄▄▄▄ ██▀▄▀▄█ ▄▄▄▄▄ █
    █ █ █ █▄▀▄▀▄█ █ █ █
    █ █▄▄▄█ ██ ▀▀▄█ █▄▄▄█ █
    █▄▄▄▄▄▄▄█ █ ▀▄█▄▄▄▄▄▄▄█
    █▄ ▄█▄ ▄▄ ▀ █ ▄▀██ █▀█
    ██ █▀▀ ▄▄█ █ ▀▄▄██ ▀█▀█
    █▄▄████▄▄▄▀▄▀ ▀██▄▄▀▄▀█
    █ ▄▄▄▄▄ █ ▄█▄█▄▄█▄ █ █
    █ █ █ █▄▀▀█▄ ▄▀▀▄ ▀██
    █ █▄▄▄█ █ ▀█▄█ ▀█ ▀ █
    █▄▄▄▄▄▄▄█▄█▄█▄██▄██▄█▄█
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

    QR Code URL: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT:Y.K90AFN00KA0648G00
    Manual pairing code: 34970112332
    2023-0-4 7:42:3.919 ERROR ExchangeManager Error: Cannot find a session for ID 55274

    2023-0-4 7:42:5.412 DEBUG MessageExchange onMessageReceived id:0/54877/205441394 t:0/48 reqAck:true payload: 15300120a999c1636e2e6fe11c50a11e93cb79461048b590671d8d2c8d9c596eb4e8f2ee2502a5d8300320d9fb5c54de33a95e712719af9b6626a4835691cc16d81a6fa8b09fc1e5c51bdf300441047a593180860c4037c83c12749845c8ee1424dd297fadcb895e358255d2c7d2b2a8ca25580f2626fe579062ff1b99ff91c24a0da06fb32b5be20148c9249f565030061013fccb420c8fa77b3fcc3065e5f4e43c300710c62512664d0c3821b5d48539b0d94ad218
    2023-0-4 7:42:5.418 INFO CaseServer Case server: Received pairing request from udp://192.168.1.44:5541
    2023-0-4 7:42:5.427 ERROR CaseServer An error occured during the commissioning Error: Fabric cannot be found from destinationId
    2023-0-4 7:42:5.433 DEBUG ExchangeManager sending id:0/54877/3773895937 t:0/64 acked:205441394 reqAck:true payload: 0100000000000200
    2023-0-4 7:42:5.487 DEBUG MessageExchange onMessageReceived id:0/54877/205441395 t:0/16 acked:3773895937 reqAck:false payload:

    ....

    alexa3.txt

  9. Apollon77 commented on Jan 5, 2023

    @Apollon77
    Collaborator

    woo ... awesome!

  10. mfucci commented on Jan 7, 2023

    @mfucci
    Owner

    @JimBuzbee : correct, persistence is not implemented yet...
    I will close as fixed then.

    Is there a screenshot of some interface showing node-matter paired that you can take and attach here? Just to prove to non-believer that it indeed works :-)

  11. JimBuzbee commented on Jan 7, 2023

    @JimBuzbee
    ContributorAuthor

    Here's an Android Alexa screenshot after node-matter has been added.
    image

  12. mfucci commented on Jan 7, 2023

    @mfucci
    Owner

    Thanks!

  13. Apollon77 commented on Jan 7, 2023

    @Apollon77
    Collaborator

    @JimBuzbee Is it the "normal" Alexa App on Android? which version exactly is that? Maybe I can also try if my "one alexa device in the whole house" can install that one? ;-)

  14. JimBuzbee commented on Jan 7, 2023

    @JimBuzbee
    ContributorAuthor

    @Apollon77 Yes, that is the normal Alexa app, version 2022.21. It is also the only Alexia device i have in the house for me as I typically use Google Home.

    I'm not clear on the Matter infrastructure. Does anyone know if we'll be able to control a node-matter "device" from both the Alexa app and Google home app? And what is the vision for commissioning multiple virtual devices through node-matter? Multiple QR codes?

  15. 28 remaining items

  16. JimBuzbee commented on Feb 5, 2023

    @JimBuzbee
    ContributorAuthor

    @s-hadinger - The only Alexa device I have on my network is an Echo Dot.

    @Apollon77 - I went back to version 2022.21 and still failed The "adb logcat" file looks the same or similar during an attempt. I see a call to "checkPairingStatus" on https://alexa.amazon.com/api/... followed by a debug message of failureReason":"COMMISSIONER_FAILURE_UNSUPPORTED_DEVICE" - Leads me to believe the significant change was on the Amazon server side - wonder if they started using a similar "developer" setup to Google where you need to register your development "device"

    discord - have not used it.

  17. Apollon77 commented on Feb 5, 2023

    @Apollon77
    Collaborator

    I would more asume a "Firware update of the Echo devices" ... but yes :-( Difficult ... I did not heared of any dev dloper account things so far.

    Discord more like a "chat tool"

  18. JimBuzbee commented on Feb 7, 2023

    @JimBuzbee
    ContributorAuthor

    FYI - I successfully paired "Device.js" with Alexa using main as of Feb 7 - Not sure what to make of the inconsistencies.

  19. JimBuzbee commented on Feb 7, 2023

    @JimBuzbee
    ContributorAuthor

    Alexa app version 2023.3 build 2.2.495391.0

  20. s-hadinger commented on Feb 7, 2023

    @s-hadinger

    Thanks for reporting this good news. I can't test this week, but I'm eager to see what changed. Could you also report the version of your echo device?

  21. JimBuzbee commented on Feb 7, 2023

    @JimBuzbee
    ContributorAuthor

    It's an Echo Dot 3rd Gen, software version:

    8289070468

  22. s-hadinger commented on Feb 7, 2023

    @s-hadinger

    Thanks. Mine is still at 8289069444

  23. Apollon77 commented on Feb 7, 2023

    @Apollon77
    Collaborator

    I will check tomorrow ...

  24. Apollon77 commented on Feb 8, 2023

    @Apollon77
    Collaborator

    Ok, for me he used the oldest device I had an Echo dot ... with 8289072516 as FW and it did not worked ... so it seems to be really then devices and their FWs to make the difference

  25. JimBuzbee commented on Feb 8, 2023

    @JimBuzbee
    ContributorAuthor

    I kind of expected it to fail this morning, but I was able to pair and control a node-matter "light".

    I still can't pair "sensor" devices, but I think the message has been updated. It now says "This device can't connect to Alexa. We're working on ways to connect this device to Alexa, but right now it's not compatible"

  26. Apollon77 commented on Feb 8, 2023

    @Apollon77
    Collaborator

    Ok, why not sensor is clear, please check the Alexa Infos in Readme ... they only have OnOff and Light implemented so far!

  27. s-hadinger commented on Feb 11, 2023

    @s-hadinger

    Good news, I updated the Alexa Android App, and I can now pass the CSR Request and have the device fully commissioned.

  28. Apollon77 commented on Feb 11, 2023

    @Apollon77
    Collaborator

    hhuui .... which version? then I check later (again) too ;-) Was it now asking if you want to add a inofficial device?

  29. s-hadinger commented on Feb 11, 2023

    @s-hadinger

    The App asked to update as soon as I selected the Matter button.
    Now the app version is:

    • Client version: 1.24.208499.0
    • Build version: 2.2.495949.0
    • App version: 2023.3
  30. Apollon77 commented on Feb 11, 2023

    @Apollon77
    Collaborator

    I verified it ... also works again for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions