DevelopmentalOctopus / ha-buttplug

Buttplug.io Integration for Home Assistant
10 stars 2 forks source link

Make it work like a server instead of like a client #4

Open catqwe opened 6 months ago

catqwe commented 6 months ago

Right now, this plugin works like a client, you have the Intiface in your phone connected to the toy, and then the plugin connects to it. But it just works if you are in the same network, so if I leave my home with the phone and the toy it does no longuer work, you could make workarounds using VPN but then they mess up with Android Auto, etc. Would be much easier to make the plugin work as a server open to the internet and the phone would connect to the public URL of HA.

And I understand that the new 'Repeater Mode' from Intiface allowes to pass the toy to another server.

I'm just not sure how to make it work with this plugin.

Any idea?

catqwe commented 6 months ago

I also asked this question in the buttplug forum: https://discuss.buttplug.io/t/make-repeater-mode-work-both-ways/327

Bvdmgg commented 2 months ago

Did you find a solution for this? Having the same issue.

catqwe commented 2 months ago

No, I haven't found a solution and nobody answered me in the forum neither. @Bvdmgg Maybe add a comment there in the forum, it will get more visibility than here, seems like this project has been abandoned. "Repeater Mode" should allow this kind of usage, we have to figure out how to modify this component to adapt it to this new mode I guess.

catqwe commented 2 months ago

Maybe we could open an issue in this project also: https://github.com/intiface/intiface-engine

catqwe commented 1 week ago

The "Repeater Mode" just allows to pass a connection from one engine to another (like a proxy), but not a device, so it works in the inverted direction of what we need.

@Bvdmgg seems like the solution for this will be to have a Intiface Engine server running on another server, connect this home assistant integration to it.

And when this issue (https://github.com/intiface/intiface-central/issues/159) gets fixed, pass the device from the Intiface Central running in the phone to the Intiface Engine server. At that point it should work.

Until then the only option is to connect through a VPN connection.

catqwe commented 1 week ago

But making it work like a server would avoid the use of a server in the middle, so this feature request is still valid.