Page 1 of 1

Phytonscript to recive a dim-value and send to tellstick

Posted: Tue Apr 24, 2012 2:21 pm
by nilsme
Hey.
I need a simple python script that I wondered if anyone could help me with.

I use eventghost to controll a tellstick Duo, but actually uses homeseer as the main program for my home automation
I have therefore set up a XAP-XPL server that sends messages from homeseer to eventpro so i can control the tellstick in eventpro from homeseer.

Works very well with devices that only have on/off, but need a script for the units that can be dimmed.

The problem is that the tellstick-plugin in eventghost is not able to retrieve a dimvalue from the XPL message from homeseer, and dim to that level. Its only possible to make events i eventghost with a preset dimvalue.
I would be possible to make an event for each dimvalue, but this would take to much time (100 events for each device).

Here is an example of a "dim" message from homeseer to eventghost!
xPL.XPL-TRIG: {: MI4-homeseer.computer_1.Master: *: Event = Dim, Count = 60, Device = C1,

(here homeseer tells eventpro to dim Device C1 to 60%)

Can anybody help me with a script to do this in eventghost, so that the unit be dimmed to the level it receives from homeseer?