by justinsaccount · 3y ago · 0 comments
I'd have preferred another language, but what I want to do is ultimately so simple that TS should be fine.
Ironically I have 4 chromecasts, but they are connected to real amplifiers and speakers, so I never felt the need to get one of the smart speakers which can act as a hub.
You can create virtual devices using Homebridge plug-ins. Here's an example: https://www.npmjs.com/package/homebridge-dummy
// establish new websocket connection
const socket = new WebSocket(`wss://homebridge-gsh.iot.oz.nu/socket?${querystring.stringify(qs)}`);
big YIKES from me there, especially because this is not really documented or even mentioned at all.