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.

Phytonscript to recive a dim-value and send to tellstick

Questions and comments specific to a particular plugin should go here.
Post Reply
nilsme
Posts: 3
Joined: Sat Apr 21, 2012 1:30 pm

Phytonscript to recive a dim-value and send to tellstick

Post 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?
Post Reply