[RELEASE] KNX Commander or how to control KNX home with XBMC video player

  Thread Rating:
  • 1 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
adm1024 Offline
Junior Member
Posts: 17
Joined: Apr 2009
Reputation: 0
Location: FR
Post: #1
[NEW VERSION 0.1.1]
real debug option to reduce info in xbmc.log
The previous version didn't use the function correctly.

NEW VERSION : 0.1.0
New version for the summer.
Compatibility with preFrodo version of XBMC.
Debug mode
verbosity reduction
back to the icon (not xmas one).

NEW VERSION : 0.0.8
Last version for this year.
Compatibility with Eden beta 1 version.

NEW VERSION : 0.0.7

Hello,
Based on a very good idea from Shoop_NL and some others guys on the forum, I wrote a XBMC service to link XBMC and a KNX home automation solution.
The link between XBMC and KNX network is linKNX and EIBd, free solutions for home automation.

Like X10 Commander Lights, you can choose for each action on XBMC, which light you want to control, and at which level or state (on/off).
Every actions must be define as an object in linKNX with the correct DPT (datapoint type).

You can install the addon, like the others (from a zip file).
You can configure it directly, but to use this addon you must restart XBMC.

You can test it and give me a feedback. The documentation is still in progress.

The project is on Google code : http://code.google.com/p/knx-commander/


INFORMATION : You need a pre-Eden version to use it.

Download : all public versions

Link to X10 Commander Lights : http://forum.xbmc.org/showthread.php?tid=110392
Link to linKNX : http://linknx.sourceforge.net/
Link to EIBd : http://www.auto.tuwien.ac.at/~mkoegler/index.php/eibd

Have a good test.

XBMC AddOn to control your lights with XBMC
(This post was last modified: 2012-09-04 18:27 by adm1024.)
find quote
avjui Offline
Junior Member
Posts: 24
Joined: Sep 2011
Reputation: 0
Post: #2
Hi

Is ther any Change to modified the addon for IP-symcon.

IP Symcon is much more flexible because you can integrate much more hardware. Have a look at here. The comunication can be done over SOAP.

Links:

http://www.ip-symcon.de/service/dokument...nfuehrung/

and for Soap

http://www.ip-symcon.de/service/dokument...erbereich/

P.s.: download not working.

mfg
find quote
adm1024 Offline
Junior Member
Posts: 17
Joined: Apr 2009
Reputation: 0
Location: FR
Post: #3
Hello and sorry for the missing link.

I really sorry but the site of IP-symcon is in german without translation is english.
Based on my experience, I think it is possible to adapt KNX Commander (or X10 Commander Lights) to work with your system.
I will study the IP-symcon this week-end to understand his behavior.
Regards

XBMC AddOn to control your lights with XBMC
find quote
adm1024 Offline
Junior Member
Posts: 17
Joined: Apr 2009
Reputation: 0
Location: FR
Post: #4
Hello I try to understant the product.
I think it is probably possible to build a new xxx Comander that use IP-symcon.
You need to modify the configuration structure and the way to send orders to IP-symcon, so it will be an other addon.

Regards

XBMC AddOn to control your lights with XBMC
find quote
avjui Offline
Junior Member
Posts: 24
Joined: Sep 2011
Reputation: 0
Post: #5
adm1024 Wrote:Hello I try to understant the product.
I think it is probably possible to build a new xxx Comander that use IP-symcon.
You need to modify the configuration structure and the way to send orders to IP-symcon, so it will be an other addon.

Regards

Hi

Thanks for answer. But I don´t can do this because I am not a coder.
I have also a look on this product but I don´t understand SOAP.

Perhaps anywone else will also have a addon for it.

mfg
find quote
RaGeS Offline
Junior Member
Posts: 11
Joined: Jul 2010
Reputation: 0
Post: #6
Hi,

This was also my idea to incorporate knx and xbmc, unfortunately my lack of familiarity with python blocked me.
If you need help regarding knx and eibd linknx and I can give you help as I use them.
My idea was instead to create a real display and control for home automation.

Emanuele
find quote
chin Offline
Junior Member
Posts: 1
Joined: Oct 2011
Reputation: 0
Post: #7
Hi, adm1024

Trying to install the add-on, but no pop-up window in my XBMC...
Other .zip add-on's do give a pop-up.
Do I need to prepare something before installing?

Regards
find quote
adm1024 Offline
Junior Member
Posts: 17
Joined: Apr 2009
Reputation: 0
Location: FR
Post: #8
Hello.
Like X10 commander, you need a pre-Eden version to use this addon.
The addon is build as a XBMC service only present on pre-Eden version.
Sorry for the missing information.

Regards

XBMC AddOn to control your lights with XBMC
(This post was last modified: 2011-10-21 17:33 by adm1024.)
find quote
adm1024 Offline
Junior Member
Posts: 17
Joined: Apr 2009
Reputation: 0
Location: FR
Post: #9
New version : 0.0.7
Fix on startup actions
Fix : avoid python error stack on XBMC log when linknx is offline (warning)
Fix : for windows version at initialisation

XBMC AddOn to control your lights with XBMC
find quote
adm1024 Offline
Junior Member
Posts: 17
Joined: Apr 2009
Reputation: 0
Location: FR
Post: #10
This a new version of this addon to enforce the compatibility with Eden beta 1 version.

See the first port for more informations.

Regards

XBMC AddOn to control your lights with XBMC
find quote
panzaeron Offline
Junior Member
Posts: 39
Joined: Jun 2009
Reputation: 0
Post: #11
I would say, ab big thank you for your great plugin.

My Platform is OpenELEC PVR and it works without any problems. It is a nice feeling, when the movie starts and the lights dimm down and at the movie end up again Smile
find quote
adm1024 Offline
Junior Member
Posts: 17
Joined: Apr 2009
Reputation: 0
Location: FR
Post: #12
New version
A new version released : 0.1.0
The changes are :
  1. Debug mode
  2. verbosity reduction
  3. return to the normal icon (not xmas icon)
  4. preFrodo compatible


Regards

XBMC AddOn to control your lights with XBMC
(This post was last modified: 2012-08-13 22:53 by adm1024.)
find quote
adm1024 Offline
Junior Member
Posts: 17
Joined: Apr 2009
Reputation: 0
Location: FR
Post: #13
[NEW VERSION]
VERSION 0.1.1 : real debug option to reduce info in xbmc.log
The previous version didn't use the function correctly.

XBMC AddOn to control your lights with XBMC
find quote
leechguy Offline
Senior Member
Posts: 114
Joined: Aug 2009
Reputation: 5
Location: The Netherlands
Post: #14
I had a peek into the code (v.0.1.1) and noticed the following:

Code:
my_xevstop = __addon__.getSetting("XEVSTART")

'XEVSTART' should be 'XEVSTOP'.


Code:
while (xbmc.abortRequested):
    #Execute XBMC STOP Event settings on Device
    if my_xevend=="true":
    linknx_send(my_ip,my_port,my_xevstopcmd,my_xevstopval)
    
    xbmc.log('KNX-Commander: Bye')

Should the 'while' not be a simple 'if' statement instead? When shutting down, xbmc.abortRequested will be true so the 'while' will loop until the script gets killed by XBMC. The 'KNX-Commander: Bye' message appears multiple times in you log I guess..
Thinking about it... you don't need the while (or an if for that matter) at all.

Also, there seems to be only one reference to the 'my_xevend' variable. Basically you are comparing an uninitialized variable with the word "true". The result of this compare will be false so the linknx_send() statement will never be executed. (When disabling the addon, XBMC also complains and writes the error message to the xbmc.log)
When looking at the code I reckon the 'my_xevend' should be 'my_xevstop'.

In the English strings.xml "<string id="69500">LinKNX serveur</string>" should be "<string id="69500">LinKNX Server</string>".

Other than that, cool stuff Smile Now if only this KNX stuff wasn't so @#$# expensive... I haven't decided yet what technology to use, but I'm leaning towards z-wave.
(This post was last modified: 2012-11-09 01:12 by leechguy.)
find quote
adm1024 Offline
Junior Member
Posts: 17
Joined: Apr 2009
Reputation: 0
Location: FR
Post: #15
Hello Leechguy and thanks a lot for your feedback.

I have considered your suggestions and they will be incorporated in the next version with your name.
For information, I started the addon by using the 'X10 Commander' and changing only the X10 part to KNX/LinKNX one. I have not seen the code completely. About Stop XBMC for part I do not use it personally, so I did not tested it. I'll do in the future.

I made some improvements in the FRODO Xbmc alpha version and the future version of the addon will be launch only after FRODO Release Candidate.

Regards

XBMC AddOn to control your lights with XBMC
find quote
Post Reply