Remote Access

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
hans65
Normal user
Posts: 38
Joined: 19 Mar 2018, 17:01

Remote Access

#1 Post by hans65 » 16 Apr 2018, 12:13

Hi to all

I have a FritzBox 7390 and would like to have remote access to my sonoff switch. I've configured everything in my FritzBox but unfortunately remote access is not working.
I've also install a webcam and this is perfect working. Is it not possible for sonoff devices?

Thanks

Hans

gilles06
New user
Posts: 6
Joined: 04 May 2018, 20:39

Re: Remote Access

#2 Post by gilles06 » 13 Jun 2018, 14:34

Hi, I have exactly the same problem also. I have a Sonoff, working fine in local, but as soon as I try to access (or send commands) remotely the access is blocked (or refused). I've defined the Sonoff exactly the same way as some cameras I have on the same network, which are working fine, but not the Sonoff (using the Espeasy mega software version 05/24/2018).
I'm suspecting the software, for some reasons is not answering the good answer.

danmero
Normal user
Posts: 64
Joined: 11 May 2017, 01:19

Re: Remote Access

#3 Post by danmero » 16 Jun 2018, 17:50

Do you use cloud HQTT broker or only http requests?

Regards,

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Remote Access

#4 Post by TD-er » 16 Jun 2018, 21:28

Default settings block external traffic.
See "Client IP filtering" on the config tab.

hans65
Normal user
Posts: 38
Joined: 19 Mar 2018, 17:01

Re: Remote Access

#5 Post by hans65 » 18 Jun 2018, 19:53

I don't have this function "Client IP filtering" on my installed firmware. I'm using v2.0-20180221

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Remote Access

#6 Post by TD-er » 18 Jun 2018, 21:00

Those Fritzboxes support creating a VPN to home, don't they?
My Fritzbox is one generation newer, but I think it was introduced in FritzOS 6.50.
Then you can add VPN functionality to your mobile and you don't have to go through the hassle (and danger) of opening ports to the ESP unit from the internet.

I guess that's what you're missing here. Port forwards to the ESP node. But I strongly advice you not to open ports to the ESP unit, since you will allow anyone to apply settings and do all kind of stuff on your node.

Meek
Normal user
Posts: 59
Joined: 31 Oct 2017, 15:50
Contact:

Re: Remote Access

#7 Post by Meek » 19 Jun 2018, 09:23

I am also in process of looking for a cloud solution to provide a service for the for the Meek/ESPEasy users.

I want to build/hire a VPS/VPN server with a Linux distribution on it and we could equip it with cloud MQTT?, Node-Red?, MQTT websocket?, … all open for suggestions.
I was not able to find a solution that was able to coop with multiple users.

Goal: I want a server that once registered, you will get a link to your own dashboard. The MQTT server must have a "MQTT discovery" function and a beautiful, adaptable web interface :D . So once you put your credentials in ESPEasy, your dashboard will be automatically updated with the connected ESPEasy devices.

Due to my other ongoing project, time is a limiting factor for me. But we could consider to open a new topic on this matter, offcourse, if there is animo for a solution like this (I bet it does 8-) ).
I am willing to hire a VPS/VPN and give access to whomever if willing to contribute to this project.

Thank you for your thoughts.

Smotek7
Normal user
Posts: 142
Joined: 01 Aug 2020, 16:18
Location: SK

Re: Remote Access

#8 Post by Smotek7 » 05 Jul 2023, 22:20

Hi,
I don't want to start a new topic, so I'll ask here.
Is it possible to access ESPeasy from the Internet if I don't have a fixed IP?
I need to get to one ESPeasy where there are a couple of sensors and it will be connected to the TP-LINK Archer MR200 4G router.
Is there any service?
"Cloud" which can then be used?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Remote Access

#9 Post by TD-er » 05 Jul 2023, 22:48

Well.... you can but....

Let's first make clear you should absolutely not make an ESPEasy device accessible from the internet as the amount of security present is next to zero.

You could let the ESP connect to a MQTT broker and use specifically crafted messages/topics to send commands to ESPEasy.
This can even be used to let ESPEasy fetch config or rules files or even a new firmware build if needed.


I don't know this router, but would it be possible to let this router create a VPN to your home network?
This would make the ESPEasy node be accessible as if it were on your local LAN (only in another subnet)

Smotek7
Normal user
Posts: 142
Joined: 01 Aug 2020, 16:18
Location: SK

Re: Remote Access

#10 Post by Smotek7 » 05 Jul 2023, 23:17

I don't know if the router can handle VPN, I will check.
But I didn't want a VPN because of the amount of data.
As an example, I will mention the cottage when I need to check the temperature there, how much water is in the tank, how the battery is charged.
The idea was to use the ESP32 and the EasyFetch website.
The only problem for me is the connection via the Net.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Remote Access

#11 Post by TD-er » 06 Jul 2023, 00:20

A VPN shouldn't need that much traffic.
As long as you limit what to route through it.

I think the only feasible way for you to make such a setup is to let it connect to some host online and not open up ports.
The changing IP is probably the least of your problems. More likely that the provider won't allow you to open up ports as you're essentially behind a very large NAT router of your 4G provider.

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: Remote Access

#12 Post by chromo23 » 06 Jul 2023, 09:17

Smotek7 wrote: 05 Jul 2023, 23:17 As an example, I will mention the cottage when I need to check the temperature there, how much water is in the tank, how the battery is charged.
For this i created easy2ntfy.
See the thread here: viewtopic.php?p=63516

Riewekooche
Normal user
Posts: 21
Joined: 21 Nov 2022, 07:40

Re: Remote Access

#13 Post by Riewekooche » 12 Aug 2023, 10:35

Good morning TD-er,

>> You could let the ESP connect to a MQTT broker and use specifically crafted messages/topics to send commands to ESPEasy.
>> This can even be used to let ESPEasy fetch config or rules files or even a new firmware build if needed.

Do you have an example for that?

Kind regards
Thomas

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Remote Access

#14 Post by TD-er » 12 Aug 2023, 11:44

It is best to trigger events via MQTT.
See the documentation here: https://espeasy.readthedocs.io/en/lates ... d-handling
N.B. this only works for controller C005.

Some example to use in the rules:

Code: Select all

On updateSettings Do
  provisionprovision
  provisionconfig
Endon

On updateCredentials Do
  provisionsecurity  
Endon

On updateRules Do
  provisionrules,1
  provisionrules,2
  provisionrules,3
Endon

On updateRulesSettings Do
  AsyncEvent,updateSettings
  AsyncEvent,updateRules
  Reboot
Endon

// e.g.
// event,PerformFirmwareUpdate=firmware_max_ESP32_16M8M_LittleFS.bin
On PerformFirmwareUpdate=* Do
  pwm,2,100,0,8
  provisionfirmware,%eventvalue1%
Endon

On provisionfirmware#success=* Do
  gpio,2,0
  Reboot
Endon

On provisionfirmware#failure Do
  gpio,2,0
  Reboot  
Endon
On the Settings Archive page you need to set the host base URL to fetch files from (HTTP only, no HTTPS) and check the checkboxes which files are allowed to be fetched.

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests