Monitoring your Internet connection
-
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Monitoring your Internet connection
The following plugins are used for this setup:
- SchedulGhost
- MQTT Client
- TellStickDuo (or the RFXtrx or any other plugin able to operate a main power switch)
This is part of a configuration tree showing the actual sample configuration needed
In essence, it works like this:
0) When EventGhost starts up, a power on command is sent to the mains power switch and the macro for the 5 min check is enabled
1) Every 15 seconds (this can be altered of course) a message is published to a specific topic on the MQTT broker somewhere on Internet
2) A response is received more or less instantly and this is received by the MQTT Client that is subscribing to the same topic on the same broker
3) The response is stopping an egg timer and then restarting the same egg timer again as well as disabling the macro for the 5 minute check
4) If the responses stops coming, the egg timer will fire and the TellStickDuo will cycle the power supply to the router. In addition the macro for the 5 minute check will be enabled again
5) Hopefully the internet connection will be re-established when the router has booted up again and then also the macro for the 5 minute check once again will be disabled
In the sample configuration seen above, we are publishing a message to the MQTT broker every 15 seconds and the egg timer will fire if it doesn't get stopped within 1 minute. This can of course be configured differently if you prefer. Maybe publishing once a minute with an egg timer running for 5 minutes is good enough.
Also, when publishing to a public broker, define a topic name that is rather unique to you and your needs
The following pictures will show you the individual settings needed
SchedulGhost: the 2 timers you need to configure
MQTT Client:
The guide is continued in the next post....
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Monitoring your Internet connection
SchedulGhost: Abort egg timer
SchedulGhost: Start egg timer
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Monitoring your Internet connection
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
- Experienced User
- Posts: 81
- Joined: Sun May 03, 2015 2:17 pm
Re: Monitoring your Internet connection
SchedulGhost is very difficult to configure I am looking forward for a tutorial done on this plugin
Thanks you again
Cheers

Re: Monitoring your Internet connection
Can i maybe increase the lime for the ,MQTT event 'MQTT.Check_Internet? if that is the case?
and if its possible, were do i change the time?
-
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Monitoring your Internet connection
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Monitoring your Internet connection
-
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Monitoring your Internet connection
https://github.com/mqtt/mqtt.github.io/ ... ic_brokers
Maybe try with iot.eclipse.org
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Monitoring your Internet connection
i have been using this plugin for a while now and it seems to work pretty well, exept for some strange problems that occurs sometimes.
Sometimes when we loose internet connection the plugin can still send the MQTT message, i have looked into this and the whole house , every computer is down, but still the MQTT can send and recive the message, i cant figure it out, how is that possible?
-
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Monitoring your Internet connection
Could it be that you just are losing some services/ports in your internet connection??? But I do not know if this is even possible that such a thing could happen...
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
- Experienced User
- Posts: 177
- Joined: Mon Feb 03, 2014 10:36 pm
Re: Monitoring your Internet connection

