Hi,
I was thinking of listening to GlobalSync UDP broadcast on a domoticz server with python plugin to enable discovery. Have anyone tried it yet. Or maybe any other way to achieve auto discovery? for a installation with 4/5 or more espeasy and a domoticz server, auto-discovery could be a real gem. For last few days I am trying this with very little success. Any heads up would be appreciated.
Regards
Jimi
GlobalSync expansion.
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 1156
- Joined: 03 Sep 2016, 23:27
- Location: Bielefeld / Germany
Re: GlobalSync expansion.
Sounds like a good idea.
Just i'm not sure if UDP protocol is a good idea for that as it is insecure.
Anyways - I'm using FHEM and the FHEM ESPEasy bridge. It's a fully automated plugin that discovers
every ESPEasy device on the fly with the first data transmission to the controller.
The FHEM plugin for ESPEasy and for FHEM use a name/password so it is more secure then global sync.
Anyways it is transferred plain text as ESPEasy does not support https but better this then nothing.
I can confirm this being a real gem.
Once the bridge is configured once I can start any ESP device, open the FHEM website and go on with the data.
No further config is needed.
Regards
Shardan
Just i'm not sure if UDP protocol is a good idea for that as it is insecure.
Anyways - I'm using FHEM and the FHEM ESPEasy bridge. It's a fully automated plugin that discovers
every ESPEasy device on the fly with the first data transmission to the controller.
The FHEM plugin for ESPEasy and for FHEM use a name/password so it is more secure then global sync.
Anyways it is transferred plain text as ESPEasy does not support https but better this then nothing.
I can confirm this being a real gem.
Once the bridge is configured once I can start any ESP device, open the FHEM website and go on with the data.
No further config is needed.
Regards
Shardan
Regards
Shardan
Shardan
-
- New user
- Posts: 2
- Joined: 16 Dec 2017, 10:44
Re: GlobalSync expansion.
Sharden,
Thanks!
I know UDP in insecure, but in my home network I might take the risk
, I never tried FHEM, mostly because of language... However form your post, I feel an urge to try it, before jumping on to ESPeasy-Domoticz discovery tryout.... Will post my experience here.
N:B: Is EspEasy bridge built into FHEM or do I need to install it separately? Can you direct me to some English tutorial for FHEM/Espeasy bridge?
regards
Jimi
Thanks!
I know UDP in insecure, but in my home network I might take the risk

N:B: Is EspEasy bridge built into FHEM or do I need to install it separately? Can you direct me to some English tutorial for FHEM/Espeasy bridge?
regards
Jimi
-
- Normal user
- Posts: 1156
- Joined: 03 Sep 2016, 23:27
- Location: Bielefeld / Germany
Re: GlobalSync expansion.
Hello,
an english howto - sorry, no.
Most things can be found in the documentation: https://fhem.de/commandref.html#ESPEasy.
FHEM specific: All changes a temporary! if you reboot, they are gone.
To make changes permanent click "Save Config" on top left under the FHEM Logo.
If you see a question mark "Save Config?" there are some changes not saved yet.
The plugin isn't in the last released .deb packet, but no worries:
Install the fhem pack and the possibly needed additional software, then reboot
With FHEM running (Webbrowse: http://<ip-adress>:8083 ) just enter update into the command line on top.
After update has run - takes some minutes at first run - enter shutdown restart in the command line to restart FHEM.
After the update the ESPEasy bridge is installed.
Now you can define your ESP bridge (Everything inside FHEM is defined first):
In the command line at the top of the window enter the definition:
For example:
for a standard IPv4 on port 8383.
Click "Save cconfig" on top left (beneath the logo)
Then in the menu on the left the ESPBridge appears.
Click "ESPEasy" or "MyESP" or what you named your bridge to open the insight to the module.
Set a password and a name:
From the pulldown menu next to the set button choose "name", enter a name and click set-button.
Select password from the menu, type a password and again click set.
Click "Save Config" to store permanently.
With the actual version you might need to define an IP range for your devices (See documentation).
This can be donw down in the ESPEasy Bridge web page. Procedure is same as with setting passwords:
Near the "Attr" button chose "IP-Range" from the menu, type an IP range and click "attr".
Don't forget "Save config".
Done. Open the page of an ESP device, in controller menu set the IP, Port name and password and activate the controller.
As soon as the ESP sends data the FHEM bridge should respond.
A little hint:
ESP devices may be shown as "absent" in the bridge's webpage. This depends on the presence detection time in FHEM bridge.
If an ESP does not send data within this time, it is marked as absent until next data are received.
This might be nasty for some purposes. I've set detection time to 300 sec and set one task on all my ESP's to send "System Status --> RSSI" every 120 Seconds.
The detection time can be set or detection can be completely disabled. I won't recommend disabling it anyways.
I wrote this short howto while taking my break i office, i hope i didn't miss anything
Regards
Shardan
an english howto - sorry, no.
Most things can be found in the documentation: https://fhem.de/commandref.html#ESPEasy.
FHEM specific: All changes a temporary! if you reboot, they are gone.
To make changes permanent click "Save Config" on top left under the FHEM Logo.
If you see a question mark "Save Config?" there are some changes not saved yet.
The plugin isn't in the last released .deb packet, but no worries:
Install the fhem pack and the possibly needed additional software, then reboot
With FHEM running (Webbrowse: http://<ip-adress>:8083 ) just enter update into the command line on top.
After update has run - takes some minutes at first run - enter shutdown restart in the command line to restart FHEM.
After the update the ESPEasy bridge is installed.
Now you can define your ESP bridge (Everything inside FHEM is defined first):
In the command line at the top of the window enter the definition:
Code: Select all
define <name> ESPEasy bridge <[IPV6:]port>
Code: Select all
define MyESP ESPEasy bridge 8383
Click "Save cconfig" on top left (beneath the logo)
Then in the menu on the left the ESPBridge appears.
Click "ESPEasy" or "MyESP" or what you named your bridge to open the insight to the module.
Set a password and a name:
From the pulldown menu next to the set button choose "name", enter a name and click set-button.
Select password from the menu, type a password and again click set.
Click "Save Config" to store permanently.
With the actual version you might need to define an IP range for your devices (See documentation).
This can be donw down in the ESPEasy Bridge web page. Procedure is same as with setting passwords:
Near the "Attr" button chose "IP-Range" from the menu, type an IP range and click "attr".
Don't forget "Save config".
Done. Open the page of an ESP device, in controller menu set the IP, Port name and password and activate the controller.
As soon as the ESP sends data the FHEM bridge should respond.
A little hint:
ESP devices may be shown as "absent" in the bridge's webpage. This depends on the presence detection time in FHEM bridge.
If an ESP does not send data within this time, it is marked as absent until next data are received.
This might be nasty for some purposes. I've set detection time to 300 sec and set one task on all my ESP's to send "System Status --> RSSI" every 120 Seconds.
The detection time can be set or detection can be completely disabled. I won't recommend disabling it anyways.
I wrote this short howto while taking my break i office, i hope i didn't miss anything

Regards
Shardan
Regards
Shardan
Shardan
Who is online
Users browsing this forum: Anthropic Claude Bot [bot] and 12 guests