Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

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 »

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 »

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 »

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 »

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