Hi,
TLDR: Is there a way to open a URL on the client side (i.e. the device I use to access the frontend) via a service?
Long Version:
I’m running Home Assistant OS on a RasPi. I access the lovelace front via a web browser from a local PC.
Currently, I’m trying to configure a custom:vacuum-card for my Roborock vacuum running Valetudo. I want to add a button to this card that opens the vacuum’s web interface, which is accessible via its local IP. The vacuum-card only allows service calls for button actions, so I need a service that can open a URL on the client machine. However, I can only find ways to open URLs on the host machine. I already tried the Browser integration, shell_command and REST, but all of them only seem to open URLs on the host machine (i.e. the RasPi).
After an intensive forum search I also tried browser_mod, but the issue there seems to be that
- I have to specify a target device, but I want it to dynamically open the URL on the calling/clicking device.
- From my understanding, this would make browsers accessible to other family members via HA, which I don’t want.
In short, I would like a functionality similar to ‘weblinks’ in the entities card but as service. It feels like this should be something others tried before, but for some reason I can’t find anything in the forums. Is the solution so obvious and I’m just too stupid?