Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

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

Open
EpicLPer opened this issue Jun 22, 2020 · 6 comments
Open

Comments

@EpicLPer
Copy link

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

@tobimori
Copy link
Owner

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

@s00500
Copy link

s00500 commented Oct 9, 2020

@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
Copy link
Owner

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

@s00500
Copy link

s00500 commented Oct 10, 2020

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
Copy link

s00500 commented Oct 10, 2020

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
Copy link

s00500 commented Oct 11, 2020

did it with webpack therefore ;-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants