streamdeck-homeassistant
streamdeck-homeassistant copied to clipboard
Feature Request: Show sensor stats/switch/etc. status on buttons
Being able to display if a switch is on/off or temps of a room would be super nice to have! Hope you can somehow implement this :)
Will be included in the refactor, but unfortunately I don't have much time to work on that right now
@tobimori I played with this a little today, seems like using home-assistant-js-websocket is not a good option as it is not possible to use modules in streamdecks SDK, since their internal file loading does not set the mime type correctly for the js engine to accept it.... did you stumble over this already ? any Ideas what to do about it ?
@tobimori I played with this a little today, seems like using home-assistant-js-websocket is not a good option as it is not possible to use modules in streamdecks SDK, since their internal file loading does not set the mime type correctly for the js engine to accept it.... did you stumble over this already ? any Ideas what to do about it ?
You'd need to setup a build process, e.g. using vercel/ncc to compile the js files.
ok, sounds kind of straight forward... I did play with HAs websocket API yesterday, it is actually really straight forward to implement... but I guess using the complete implementation makes sense... thanks
Hm but ncc looks like a tool mainly intended for usage with node.... but streamdeck uses a browser instance... so many things ncc assumes do not work...
did it with webpack therefore ;-)