Telldus Center xPL implementation

Moderator: Telldus

Post Reply
giantpopples
Posts: 14
Joined: Fri Mar 17, 2023 9:45 am

Telldus Center xPL implementation

Post by giantpopples »

Hello !

I know that Telldus Center support xPL (I have a xPL network, and I see every xPL messages sent by Telldus Center when changing the state of a device).

Apparently it uses the lightning gateway schema. I try to find documentation about what commands are supported by Telldus Center, but could not find any.
I looked at the source code, and found in the plugins directory, a xPL plugin, with scripts written in javascript. I looked at it and saw several functions made to instanciate the plugin and to send/receive messages to/from the xPL network. :D

Unfortunately, whatever message I send to Telldus Center through xPL, I have no response (I tried a lightning.request schema, with a request=devlist message, and a lightning.basic one).
It seems that xPL plugin does not receive anything.

What did I do wrong, or where can I find help to control Telldus Center with xPL ?

Thank you very much for your help ! :)
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Telldus Center xPL implementation

Post by micke.prag »

The xPL-plugin is currently unsupported. If you can find the issue please let us know so we can fix it.
Micke Prag
Software
Telldus Technologies
giantpopples
Posts: 14
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Center xPL implementation

Post by giantpopples »

Thank you for your answer

I don't know anything about c++ :? but I am a web programmer so javascript is not an issue for me.

I'll look at the source and see if I can find why it does not receive my xPL message.

Is there any doc on how the plugins are written ?

Thank you !
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Telldus Center xPL implementation

Post by micke.prag »

Unfortunately we do not have any more information than the source code.
The c++-code is quite tightly integrated with the javascrit code. The c++ code creates an object and this is used by the javascript.
The c++-part has just a generic xPL implementation. The lightning-scheme is all done in js.

I can send you the source for the c++-part since this is not included in our main repo if you are interested?
Micke Prag
Software
Telldus Technologies
giantpopples
Posts: 14
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Center xPL implementation

Post by giantpopples »

Yes I'd like he source code for the plugin, I'll read some tutorial for the basics of C++, and see what I can do !

Thank you very much for your help :)
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Telldus Center xPL implementation

Post by micke.prag »

We hade done several different xPL implementation so I pushed them all to our public repository. You can find the one used in TelldusCenter here:
http://developer.telldus.com/browser/xpl/qtxpl
Micke Prag
Software
Telldus Technologies
giantpopples
Posts: 14
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Center xPL implementation

Post by giantpopples »

Hello !
Apparently the problem was on my side.. :oops:

After some test i had issue with xPL messages sent from one of my PC..
So far it seems to work well, I can get all the DeviceID of my appliances and can easily commute my appliance On/off with xPL.

I also tried dimming and it works well !

I also get a Trigger message when the appliance status is actually changed, which is great !

So thank you for your work, and sorry for the inconvenience, the issue was on my side..

xPL support is great so we can use Tellstick with some 3rd party software that don't support it natively, and we can use it easily through the network, so tanks ! :D
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Telldus Center xPL implementation

Post by micke.prag »

Good news that it is working now!
Micke Prag
Software
Telldus Technologies
krambriw
Posts: 654
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Center xPL implementation

Post by krambriw »

What platform are you targeting for this xPL build?
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Telldus Center xPL implementation

Post by micke.prag »

This plugin was only available in a beta version for TelldusCenter and is not shipped in the stable versions.
Micke Prag
Software
Telldus Technologies
krambriw
Posts: 654
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Center xPL implementation

Post by krambriw »

Thanks Micke, I was actually thinking about what platform Giantpopples was targeting

Best regards, Walter
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Telldus Center xPL implementation

Post by micke.prag »

Windows, although the plugin should build on OS X and Linux as well.
Micke Prag
Software
Telldus Technologies
Post Reply