streamdeck-homeassistant icon indicating copy to clipboard operation
streamdeck-homeassistant copied to clipboard

Feature Request: Show sensor stats/switch/etc. status on buttons

Open EpicLPer opened this issue 5 years ago • 6 comments
trafficstars

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 :)

EpicLPer avatar Jun 22 '20 20:06 EpicLPer

Will be included in the refactor, but unfortunately I don't have much time to work on that right now

tobimori avatar Jun 23 '20 11:06 tobimori

@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 ?

s00500 avatar Oct 09 '20 21:10 s00500

@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.

tobimori avatar Oct 10 '20 07:10 tobimori

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

s00500 avatar Oct 10 '20 08:10 s00500

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...

s00500 avatar Oct 10 '20 08:10 s00500

did it with webpack therefore ;-)

s00500 avatar Oct 11 '20 20:10 s00500