Tellstick

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
jaaahaaa
Posts: 16
Joined: Mon May 24, 2010 3:10 pm

Tellstick

Post by jaaahaaa » Mon May 24, 2010 3:14 pm

I'm trying to dim my lights using a python script. I found this one:
eg.plugins.TellStick.Dim(, )

and tried just putting in some numbers but I'm getting errors, how do I use it? Can't really find any documentation on this.

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Tellstick

Post by krambriw » Tue May 25, 2010 6:21 am

eg.plugins.TellStick.Dim(a,b)
a = device number as configured with Telldus Center
b = 1....254 (dim level)

I can also provoke an error message when executing the script too fast. Must be that the device is not ready from previous transmit

Code: Select all

08:19:54                raise eg.Exception("An error occurred while trying to transmit")

jaaahaaa
Posts: 16
Joined: Mon May 24, 2010 3:10 pm

Re: Tellstick

Post by jaaahaaa » Tue May 25, 2010 9:39 am

I'm getting:

Traceback (most recent call last):
Python script "0", line 1, in <module>
eg.plugins.TellStick.Dim(1, 90)
File "C:\PROGRA~1\EVENTG~1\plugins\TellStick\__init__.py", line 148, in __call__
Exception: An error occurred while trying to transmit

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Tellstick

Post by krambriw » Wed May 26, 2010 6:48 am

If you are using Telldus Center, you should try my updated Tellstick plugin here:
http://www.eventghost.org/forum/viewtop ... f=9&t=2081

It might be that you still get some error messages if you send too many commands with short delay in between but this has nothing to do with EG. It might be that this can be improved in the plugin, please report back in the plugin thread for TS your feedback

Post Reply