Remote Access
Moderators: grovkillen, Stuntteam, TD-er
Remote Access
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
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
Re: Remote Access
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.
I'm suspecting the software, for some reasons is not answering the good answer.
Re: Remote Access
Do you use cloud HQTT broker or only http requests?
Regards,
Regards,
Re: Remote Access
Default settings block external traffic.
See "Client IP filtering" on the config tab.
See "Client IP filtering" on the config tab.
Re: Remote Access
I don't have this function "Client IP filtering" on my installed firmware. I'm using v2.0-20180221
Re: Remote Access
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.
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.
Re: Remote Access
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
. 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
).
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.
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

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

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.
Re: Remote Access
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?
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?
Re: Remote Access
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)
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)
Re: Remote Access
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.
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.
Re: Remote Access
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.
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.
Re: Remote Access
-
- Normal user
- Posts: 21
- Joined: 21 Nov 2022, 07:40
Re: Remote Access
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
>> 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
Re: Remote Access
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:
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.
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
Who is online
Users browsing this forum: No registered users and 16 guests