VNC Viewer

I would love to see a VNC Viewer component integrated to HA. :slight_smile:

I would add this as regular tile (like a camera for example). In my case i would use this to control the central heating in my house which is running a VNC server.

Well that is not really a home assistant function IMHO, but of course VNC will run in a browser, so add it in a panel.

I’m not exactly sure what you mean with “add it in a panel”. VNC is not running native in any browser afaik, you have to rely on plugins
 If using Plugins you also need a direct network connection to the server which is not really a useful approach.

Your post makes no sense.

Thats probably because you don’t have an understanding about how a browser and VNC Viewer<>Server are able to interact together

In the normal method of operation a viewer connects to a port on the server (default port: 5900). Alternatively (depending on the implementation) a browser can connect to the server (default port: 5800).

From the vnc wikipedia page.

Correct - but it does say nothing about using a VNC Viewer inside a browser. If you want to do so you do need additional software. noVNC is a good example: https://github.com/novnc/noVNC

It’s important that not the client is initiating the connection. For example: My VNC server is running internally and that’s fine, it should not be possible to connect to it from a public network (internet). Hence, HA (whose frontend is reachable from the internet) needs to take care about the connection. It has to act as a kind of “VNC Viewer Proxy”.

Can you see the server in your browser by going to

http://ipaddressofvncserver:5900/

?

1 Like

Did you have any progress here? :slight_smile:

No,
 I have implemented what I need with noVNC and it is working prefect for 2 years now. Just integrate it in HA as iframe and use nginx as revers proxy and you are done. I can control my heating now via the webgui from everywhere, but it is still protected behind the HA WebGUI

1 Like

Hi there, I was also looking for an VNC Viewer to get the display of the central heating into HA.
I have already a working prototype as HA Addon. I’m still working on the Ingress support and after that it will allow access to a VNC server of your choice through the side panel.

Just finished it: https://github.com/Poeschl/Hassio-Addons/tree/master/vnc-viewer

1 Like

Hi Poeschl
Thanks so much for doing this, it is a huge benefit!!
I tried to install the addon using the repositories in the Add-on Store and got the following error
image

Any help would be greatly appreciated. I have 3 VNC servers that control my battery guages on a small Bahamian island, and being able to see these would be of immense benefit.

Thanks
Wayne

Did you add my repository in the addon store? If not use this link: Link to Supervisor: Add Repository – My Home Assistant

That worked!! Thanks for the amazingly quick response!!!

But my VNC server requires a user and password. I only see an option to provide a password.

Right now the addon only supports the “classic” authentication via an password.

To use the addon with other methods it needs to be adjusted to it (also made sure noVNC supports the authentication).

Or using an other authentication method on the VNC server side.

1 Like

This is working amazingly, thanks! Any way to have 3 different servers? I have 3 RPis that I monitor via VNC Viewer, and if I could access them via 3 different nav items on Home Assistant, this would be a HUGE benefit.

Hi Markus.
Your VNC Home Assistant viewer looks exactly what I need (similar to some of the other posts - it’s to show my heating controls in HA).

I’ve got your Add-On working and from the Add-On controls I can select ‘OPEN WEB UI’ and I get the working VNC view.

However, when I try to enter the URL indicated in the logs into a ‘Webpage’ card in Lovelace it just displays a Firefox error (“We Cant connect to the server”) .
In my example the URL I’m aiming for is “http://68413af6-vnc-viewer:6080/vnc.html?host=68413af6-vnc-viewer&port=6080”

I must be doing something wrong as it’s obviously very nearly working.
Does anyone have any clues?
Many thanks (and well done for creating this in the first place!)
John