plugin: Dovado UMR 3G router with SMS and Tellstick actions
Posted: Sat Feb 20, 2010 3:03 pm
Here is a new plugin for the Dovado UMR 3G router (www.dovado.com). The router has built-in support for the Telldus Tellstick as well as numerous SMS text message functions. The plugin uses the router telnet API and this provides a couple of new interesting possibilities for EventGhost users:
1. It provides an alternative to the Tellstick plugin for those who prefer to have the Tellstick in the router rather than in the PC (The tellstick is a USB dongle that controls RF switches and other devices. www.telldus.se)).
2. It provides SMS text message send and receive capabilities to EventGhost. This means you can control your home by sending text messages from your phone and also get notification messages sent when some event occurs.
The plugin has actions for SMS send/receive and Tellstick On/Off plus some admin actions.
The plugin polls the SMS inbox in the router at configurable interval and generates an event when a new SMS is found. Using a macro script, you can check the content of the message and use that to trigger whatever action/macro you want. SMS messages can be logged to file by setting config option.
I am a total novice in Python programming and there are probably a lot of things that can be improved in the code. Please provide feedback!
Known limitations:
- Very little error handling
- The SMS Delete action is not yet functional
- Non ascii characters in SMS not supported
- Sometimes, the last character in SMS is omitted, not sure why
In order to use the plugin, the API must be enabled in the router and the corresponding Tellstick and SMS functions must be configured.
Most of the code is "borrowed" from other sources, in particular from Krambriws excellent plugins. I hope I can provide as great support as he does!
Hope this is useful!
/Michael
1. It provides an alternative to the Tellstick plugin for those who prefer to have the Tellstick in the router rather than in the PC (The tellstick is a USB dongle that controls RF switches and other devices. www.telldus.se)).
2. It provides SMS text message send and receive capabilities to EventGhost. This means you can control your home by sending text messages from your phone and also get notification messages sent when some event occurs.
The plugin has actions for SMS send/receive and Tellstick On/Off plus some admin actions.
The plugin polls the SMS inbox in the router at configurable interval and generates an event when a new SMS is found. Using a macro script, you can check the content of the message and use that to trigger whatever action/macro you want. SMS messages can be logged to file by setting config option.
I am a total novice in Python programming and there are probably a lot of things that can be improved in the code. Please provide feedback!
Known limitations:
- Very little error handling
- The SMS Delete action is not yet functional
- Non ascii characters in SMS not supported
- Sometimes, the last character in SMS is omitted, not sure why
In order to use the plugin, the API must be enabled in the router and the corresponding Tellstick and SMS functions must be configured.
Most of the code is "borrowed" from other sources, in particular from Krambriws excellent plugins. I hope I can provide as great support as he does!
Hope this is useful!
/Michael