How is the connection setup to MyDomoicz

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
joostvanderlinde
Posts: 46
Joined: Tuesday 23 June 2015 23:06
Target OS: Linux
Domoticz version: 2023.2
Location: NL + SE
Contact:

How is the connection setup to MyDomoicz

Post by joostvanderlinde »

Today I tried to setup MyDomoicz for the Domoicz that is in our holidayhome 1500km away.
This Domoticz is connected to the internet via 4G. The issue with that is that you cannot access any device on the local lan through the public IP (because of NAT that the telco's use for 4G). S what I used to do is setup a VPN from that Domoticz to my router at home and access it from there.
Drawback: My router assigns the VPN IP 'radomly'so after a connection-drop I have to figure out via which VPN Ip I can access the remote Domoticz.

From the description n he Wiki I understood that MyDomoricz works the other way around: Remote Domoticz connects to MyDomoticz. This should work over 4G (it does for my heatpump in the same location).

But since I do not see my remote Domoticz appearing in MyDomoticz (but I noticed the remote Domoticz received the instance ID) I might be wrong.
In which case MyDmoticz is no solution for me.

Can someone clarify how the connection between a remote Donmoticz and the MyDomoticz service is setup:
- From remote Domoticz -> MyDomoticz
OR
- From MyDomoticz -> remote Domoticz
Domoticz on BPI-M2-Pro (compiled on Ubuntu 22.04) and RPI (binary on Raspian 10)
RFXCom, Sonoff Zigbee stick, eBusd Adapter 5, P1, S0, Husdata H60 integration
Zigbee2MQTT AD, MQTT local, AirconWithMe, Ebusd, VolvoRecharge, PSA Car Controller
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: How is the connection setup to MyDomoicz

Post by emme »

I do have exactely the same issue that I do not fixed yet.

My intention will be to install a DD-WRT router with a 4gCard and setup a VPN client to my home router (my home router is a DDwrt OpenVPN Server with a reachable dDNS already)
I don't know how it works outside Italy, but here, the mobile carriers use to disconnect the data SIM that creates traffic on the same cell for a long time, so I will also add a scheduled reboot every 24 hours.

This way I'm quite sure the router reboots and restart the VPN Client

On my home side, the VPN clients are fully visible within my LAN (but on a different Layer), so they can be used as any opther availabe IP
Broadcast will be unavailble, but if you point an IP you will see it.

ciao
M
The most dangerous phrase in any language is:
"We always done this way"
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest