- Added datetime attribute to
SensorValue
. - Fixed strange problem in
Library
where the class itself could sometimes be None in__del__
.
- Added option to
Library
to make it possible to select if strings should be decoded or not. - Made tellcore_tool not decode strings (i.e. convert to unicode) when running under Python 2.x to avoid unicode errors when printing non ascii characters.
- Fixed a bug that made tellcore_tool not work with Python 3.x.
- The callback dispatcher is no longer global, but tied to a
Library
instance. Applications wishing to use callbacks must now pass an explicit dispatcher instance to theTelldusCore
constructor.
- Made
last_sent_value
return an int instead of string.
- Work around crash in Telldus Core (< v2.1.2) when re-initalizing the library
after
tdClose
.
- Packaging fixes.
- Added
AsyncioCallbackDispatcher
class for integrating callbacks with the new event loop available in Python 3.4 (asyncio). - Include tools from bin/ when installing.
- Added high level support for device groups in the form of the new class
DeviceGroup
. - More complete documentation.
- Removed the methods process_callback and process_pending_callbacks from
TelldusCore
. Instead, callback_dispatcher is now a public attribute ofTelldusCore
and the default callback dispatcherQueuedCallbackDispatcher
implements the two methods instead.
- Telldus functions that used to return bool (
tdSetName
,tdSetProtocol
,tdSetModel
,tdSetDeviceParameter
andtdRemoveDevice
) now raise an exception instead of returning False. - Support for rain- and windsensors.
- Include data type in
SensorValue
.
- Improved callback handling to simplify integration with different event
loops. Parameter conversion is now done in the library code and the
adaptation to different event loops is done by a simple callback dispatch
class. The default dispatcher (when using
TelldusCore
) is still done using a queue. - New documentation for parts of the package. Can be read online at https://tellcore-py.readthedocs.org/.
- Fix problem with strings and python 3 (issue #2).
- First release.