Stream Deck XL is visble to hammerspoon (as a usb device), but it is visible to hs.streamdeck

41 views
Skip to first unread message

d mg

unread,
Jan 13, 2024, 1:56:32 AM1/13/24
to Hammerspoon
I just bought a Stream Deck XL. 

When I plug it, it gets recognized as a USB device (with the correct ids):
this is using a callback when a USB device is connected/disconnected:

2024-01-12 22:47:12: usbDeviceCallback: {
  eventType = "added",
  productID = 143,
  productName = "Stream Deck XL",
  vendorID = 4057,
  vendorName = "Elgato"
}

However, when I try to configure it, using the following code, my callback is never executed, and the number of decks remains zero. I have tried both hs.streamdeck.init and hs.streamdeck.discoveryCallback.

When I connect and disconnect the deck (the usb callbacks are executed), but never the streamdeck ones.

I am not running the elGato software (nor any other software to control this device). Is there something else I need to do before hammerspoon can recognize the deck?

thank you for any help,

print("streamdeck")
require("hs.streamdeck")
print("loaded streamdeck")

function streamdeck_init(connected, deck)
  print("init")
  print(connected)
  hs.inspect(deck)
  print("end of initt")
end

hs.streamdeck.init(streamdeck_init)

function streamdeck_discovery(connected, deck)
  print("discovering")
  print(connected)
  hs.inspect(deck)
  print("end of discovering")
end

hs.streamdeck.discoveryCallback(streamdeck_discovery)

print("finish loading")

Chris Jones

unread,
Jan 14, 2024, 8:08:38 AM1/14/24
to d mg, Hammerspoon
Hey

I think this relates to a PR we merged recently because Elgato updated the XL hardware somehow and changed the USB PID.

Annoyingly, our nightly CI is broken at the moment so there isn’t an easy build I can point you at to test it.

Cheers,
--
Chris Jones

On 13 Jan 2024, at 06:56, d mg <dmge...@gmail.com> wrote:

I just bought a Stream Deck XL. 
--
You received this message because you are subscribed to the Google Groups "Hammerspoon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hammerspoon...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/hammerspoon/0b14ea08-a5a3-4180-9d21-9c5110d65ff8n%40googlegroups.com.

.dmg

unread,
Jan 14, 2024, 2:35:11 PM1/14/24
to Chris Jones, Hammerspoon

Thank you. That was it. 

I built it from source and it is now recognized. 

> hs.streamdeck.numDevices()

1


again, thank you,
--
--dmg

---
Daniel M. German
http://turingmachine.org

Chris Jones

unread,
Jan 14, 2024, 2:35:56 PM1/14/24
to .dmg, Hammerspoon
Nice!

Could you let us know if it all works properly?

Cheers,
--
Chris Jones

On 14 Jan 2024, at 19:35, .dmg <dmge...@gmail.com> wrote:



dmg

unread,
Jan 14, 2024, 10:02:39 PM1/14/24
to Chris Jones, Hammerspoon
hi Chris, everybody,

After building from source, the StreamDeck XL seems to be working as expected.

Thank you Chris for your prompt help. 
--
--dmg

---
D M German
http://turingmachine.org

Chris Jones

unread,
Jan 15, 2024, 3:49:22 AM1/15/24
to dmg, Hammerspoon
Awesome, thanks!

Cheers,
--
Chris Jones

On 15 Jan 2024, at 03:02, dmg <d...@turingmachine.org> wrote:


Reply all
Reply to author
Forward
0 new messages