New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for MQTT & Home Assistant #61
Comments
As a long-time Home Assistant user myself it's something I've been wanting to add for a while now, but I've not yet had the time. At this point I can't say how soon it would be, as there are more things that still have higher priorities. However I can say it will likely be added in some future update. |
+1 As someone who uses a Quest 2 with PCVR, having lights on is a requirement for proper tracking with my controllers, and I really don't want to have the lights on if i'm asleep, it would be really nice to just have an automation trigger to HA to turn my lights on if motion is detected on my controllers. |
@AtryFox A very basic implementation of this is now in develop. It should land in the beta on Steam shortly. Currently, it only exposes the sleep mode to home assistant as a switch. |
It seems that right now, in release builds it doesn't really like dealing with insecure sockets. I'll have to see how I'm going to get around that some time later. Until then, you'll likely only be able to get this to work if you've got SSL enabled on your broker's websocket. |
That's really cool, thanks for the update! Works flawlessly for me so far. |
Correct, by default release builds seem to not allow for mixed security content, so even if you're using SSL, it's still considered to be insecure when the certificate is not valid. I found an option in Tauri to allow for mixed content. Since the only external connections OyasumiVR makes are either secure or local, and no external code is ever loaded/ran, I don't think enabling this has any security implications. The new beta build should have this fixed. |
A simple MQTT implementation publishing the sleeping state to a broker to allow control of things outside VR or your PC would be interesting.
With this users could run automations in Home Assistant or other home automation software to control lights/fans/ACs/window shutters/heating and so much more, bascially allowing endless possibilities.
Is anything like that in the pipeline? Would love to see it!
The text was updated successfully, but these errors were encountered: