Accessing Hubitat VIA the Internet (Remotely)

These two tasks are simple to do with built-in dashboards, no other workarounds needed.

This is more of an administrative task and may require a solution that allows for access to the hubā€™s admin interface, like a VPN. Iā€™m not hugely familiar with smart locks and how to change/update codes, so itā€™s conceivable thereā€™s a way to do this without having to directly access the hubā€™s admin interface.

2 Likes

Thanks @marktheknife so if you are saying that app functionality could add the lock code feature to the dashboard this would be perfect for me. Can anyone suggest how this can be done?

My guess would be itā€™s not possible to change lock codes from the dashboard directly (though my experience with locks is limited).

Someone else may have a better idea than me though.

I believe this feature was added by the use of variables to dashboards and rule machine. I'm sure it was something that one of the HE team showed in one of their YouTube videos. I don't have locks so can't test. I would have a look at their channel (they are worth a watch anyway) and see if there is something on there.

1 Like

Yep, I remember that live chat. I think it was Bruce that showed it. I want to say it was from last year (2019)?

Here is the youtube channel.

3 Likes

There was something on Hubitat Live! (as alluded to by @BorrisTheCat and @neonturbo), but I can't find it right now. That being said, I know that @damon.dinsmore posted instructions on how to do it using variables. Here is a link to his post:

3 Likes

For the least path of resistance, I used to use TeamViewer on my windows server (where I run Plex as well), but have actually migrated over to Chrome Remote Desktop. It's a bit lower in quality, less features, etc. but for what I need it is great, and to be frank the Mobile (iOS) client is fantastic in bringing in both Mouse or Touch support to be able to do something from your small phone.

1 Like

@jacobwtyler I have the same hardware as you. Were you able to get this working, any suggestions before I set up PiVPN on a RPi? Did you have to do anything special on your Velop?

Yeah everything is working perfectly now

I used the OpenVPN with my Asus router. its just like being on my home network from anywhere. using my hubitat is just one thing. allows me to remote into one of my computers and watch my home cable. access my home Nas to store videos of grandbaby. whatever I an do from home I can do from states away. I can do it from my computer or android cellphone. just one click away.

3 Likes

I used to do that but recently switched to cellular home internet. There is no public IP address and thus no way to get to the vpn. I donā€™t always have a computer running so TeamViewer is not a viable solution. I wish HE would open up remote access like the dashboards are.

1 Like

I'm not understanding how this works. Without an IPv4/IPv6 address, how does your router route packets to the "internet"?

Or is it something like double-NAT, where your cellular router gets a private IP address, and then assigns local addresses in a different private subnet?

I donā€™t fully understand it myself. But the cellular has a public and private ips which cause the issue. There are other folks on this forum who understands it better than me.

1 Like

This can be done with a rule and a string global variable connector.

Here's the rule:

That uses a Custom Action to set or delete the lock code (on a virtual lock called "a lock", in this case). The first parameter is a number, and identifies the slot for the code to be set. The second parameter is a string, the code itself. That can be set from a Dashboard, using a Variable template on the global variable connector called "Lock Code". When you set it to a code, that becomes the code; when you set it to 0 it removes the code from the lock.

Here is the state of that lock device right after setting it from the Dashboard.

Screen Shot 2020-12-26 at 5.34.56 PM

Variants of this could be done to allow multiple lock codes to be set/cleared, using multiple variables to convey the code number and code. The key things going on are that the global variable connectors can be set from a Dashboard, and can cause a rule to be triggered when changed. Their value can be referenced in the rule and used in Custom Actions as shown.

3 Likes

Iā€™d guess itā€™s carrier grade NAT.

2 Likes

@bravenel documented how to do this here: Use Dashboard to Manage Lock Codes and with me a newbie at this asking dumb questions, perhaps the thread might be helpful to others. It works on my Schlage Connect z-wave lock.

2 Likes

I did port forward on Google Wifi. Now I can access Dafang hacked cameras just fine remotely but not Hubitat. Public address works on home network but not outside. Any idea why I cannot access Hubitat? No moral or security preach, please.

This is Hubitat Incā€™s design decision in the hub platform as of 2.2.9.

Either access your hub via some secure mechanism like a VPN (or TeamViewer etc), or use a reverse proxy, or purchase a subscription to Remote Access.

Correct. Hubitat has made it clear this design decision is not up for debate. And does not limit secure hub access via the internet. Nor does it necessitate a Remote Access subscription.

5 Likes

That is exactly why they fixed this, it was a huge security flaw. If you could access your hub in this way, everyone in the world potentially could too.

:+1:

4 Likes

This recent thread pretty much summarizes what went into the decision. Itā€™s short because the OP really insisted on acting conspiratorial and aggrieved, so the thread ended up closed.

2 Likes