• 1
  • 11
  • 12
  • 13(current)
  • 14
  • 15
[RELEASE] X10 - lights (Domotica Commander)
Wishlist
- make it that my lights wouldn't turn when watching something during daytime

Enable/Disable determined by system clock would be great. Can't tell you how many times I manually turn off lights in the daytime.

Sadly, I've found the only function reliable is On/Off which is perfect. Dim/Bright (With or without Free Definable) often yields incorrect value for event.
Imo, the reason why is because of the time it takes to execute the command(s). On/Off is 1 quick command allowing more commands to execute in succession. Dim/Bright is a succession of commands in increments which does not allow other commands to execute within the time period.

Without getting too complicated:
I use a Harmony remote turning my devices on including my TV for an XBMC activity.
My devices consist of X10 Appliance Modules, IR543, CM19a using X10 Commander.

XMBC start event =

Device 1 (Lights) Off
Device 2 (PC Monitor) Off
Device 3 (Bass Shakers) On
This works perfectly.

XBMC start event =

Device 1 (Lights) Dim 100% = Yes
Device 2 Fails to execute
Device 3 Fails to execute
If I enter any Dim/Bright value for an event, the add-on is so busy executing the % increments, it bypasses the other commands.
X10 Commander log shows Status, Queries, Send plc's correct although they did not execute since the CM19a was busy executing the % values instead and over road the other 2 device commands. It's like they get lost in the shuffle. I can watch my IR light on the CM19a. 1 flash for on or off. Multiple flashes and a lot of time executing a % value.

I think if a 'Pause' value between executing devices and their events could be implemented, interaction would be improved. Maybe I'm the only user facing this limitation.....perhaps not?

This is still a great add-on even if On/Off is all that works for me. Thank you for creating it.
HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players iso menus
DIY HOME THEATER WIND EFFECT

W11 Pro 24H2 MPC-BE\HC madVR KODI 22 GTX960-4GB/RGB 4:4:4/Desktop 60Hz 8bit Video Matched Refresh rates 23,24,50,60Hz 8/10/12bit/Samsung 82" Q90R Denon S720W
Reply
I had problems with logging on to my domoticz server with this addon, I dont know why but did a fix in the code. The Author is free to use it if he wants i have myself snagged it from here: http://www.voidspace.org.uk/python/artic...tion.shtml

Search for
Code:
X10CommanderRequest = urllib2.urlopen(URL + ActionData)
in the default.py in the addon script directory.

Add the following before it, make sure its on the same tab space since python use that:

Code:
passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
passman.add_password(None, URL + ActionData, __addon__.getSetting("USER"), __addon__.getSetting("PASS"))
authhandler = urllib2.HTTPBasicAuthHandler(passman)
opener = urllib2.build_opener(authhandler)
urllib2.install_opener(opener)

After that go and disable login in the addon settings, you can rewrite the code more if you know python and remove the user:password@ further down but its easiest just to disable it for now. (Make sure you have the right user and password there first since this fix will still use whats written there)

Hope this helps someone that has the same problem as I, I'm not sure if this is a better way o handle logins to http pages or not but the other way only gave me 401 errors.

Peace!

/Magnus
Reply
Hi,

I have some issues with the X10 - lights Domotica Commander

First of all my setup:

Raspberry Pi with Domoticz
RFXcomm 433MHz transreceiver
Intel NUC with Openelec 4.0.7 (XBMC)

I installed the add-on manually because the zip file showed some strange error with "Afhankelijkheden komen niet overeen. neem contact op"
So the add-on was working.
Then I configured the add-on and added a device to the configuration.
Started a movie and nothing happened with the lights Sad

so I reviewed the log files, and the XBMC log shows me this:

20:59:45 T:140133214963456 NOTICE: X10-Lights: *************** Handeling an Event **************
20:59:45 T:140133214963456 NOTICE: X10-Lights: Event Type = P_Resume
20:59:45 T:140133214963456 NOTICE: X10-Lights: Domoticz, Dim lights with 20% converted to: 3
20:59:45 T:140133214963456 NOTICE: X10-Lights: Domoticz, URL: http://username:[email protected]&level=3
20:59:45 T:140133214963456 NOTICE: X10-Lights: Domoticz, The DIM Event Failed
20:59:45 T:140133214963456 NOTICE: X10-Lights: Event Device ID = 12
20:59:45 T:140133214963456 NOTICE: X10-Lights: Event Action = DIM
20:59:45 T:140133214963456 NOTICE: X10-Lights: Event Value = 20
20:59:45 T:140133214963456 NOTICE: X10-Lights: Event Free CMD = False
20:59:45 T:140133214963456 NOTICE: X10-Lights: *************************************************
20:59:45 T:140133214963456 NOTICE: X10-Lights: PLAYBACK RESUMED
20:59:45 T:140131679852288 WARNING: CActiveAEStream::AddData - timeout waiting for buffer, paused: 0, cache time: 0.512000, free buffers: 0
20:59:51 T:140133214963456 NOTICE: X10-Lights: *************** Handeling an Event **************
20:59:51 T:140133214963456 NOTICE: X10-Lights: Event Type = P_Pause
20:59:51 T:140133214963456 NOTICE: X10-Lights: Domoticz, Brighten lights with 80% converted to: 12
20:59:51 T:140133214963456 NOTICE: X10-Lights: Domoticz, URL: http://username:[email protected]&level=12
20:59:51 T:140133214963456 NOTICE: X10-Lights: Domoticz, The BRIGHT Event Failed
20:59:51 T:140133214963456 NOTICE: X10-Lights: Event Device ID = 12
20:59:51 T:140133214963456 NOTICE: X10-Lights: Event Action = BRIGHT
20:59:51 T:140133214963456 NOTICE: X10-Lights: Event Value = 80
20:59:51 T:140133214963456 NOTICE: X10-Lights: Event Free CMD = False
20:59:51 T:140133214963456 NOTICE: X10-Lights: *************************************************
20:59:51 T:140133214963456 NOTICE: X10-Lights: PLAYBACK PAUSED

Then I tried to copy the urls and paste it in Google Chrome.
That worked well!
Why is XBMC not able to execute this commands? Any ideas?
Reply
Never mind got it working already.
The changes in the add-on where applied after a reboot of the system.
That was the trick.
Reply
(2014-07-05, 22:14)Znubbis Wrote: I had problems with logging on to my domoticz server with this addon, I dont know why but did a fix in the code. The Author is free to use it if he wants i have myself snagged it from here: http://www.voidspace.org.uk/python/artic...tion.shtml

Search for
Code:
X10CommanderRequest = urllib2.urlopen(URL + ActionData)
in the default.py in the addon script directory.

Add the following before it, make sure its on the same tab space since python use that:

Code:
passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
passman.add_password(None, URL + ActionData, __addon__.getSetting("USER"), __addon__.getSetting("PASS"))
authhandler = urllib2.HTTPBasicAuthHandler(passman)
opener = urllib2.build_opener(authhandler)
urllib2.install_opener(opener)

After that go and disable login in the addon settings, you can rewrite the code more if you know python and remove the user:password@ further down but its easiest just to disable it for now. (Make sure you have the right user and password there first since this fix will still use whats written there)

Hope this helps someone that has the same problem as I, I'm not sure if this is a better way o handle logins to http pages or not but the other way only gave me 401 errors.

Peace!

/Magnus

I will try to check this and if I find a similar problem I will add it to the new release, thanx for your info.

(2014-07-17, 09:05)ben9519 Wrote: Never mind got it working already.
The changes in the add-on where applied after a reboot of the system.
That was the trick.

That is good
Reply
(2014-07-16, 11:17)ben9519 Wrote: Hi,

I have some issues with the X10 - lights Domotica Commander

First of all my setup:

Raspberry Pi with Domoticz
RFXcomm 433MHz transreceiver
Intel NUC with Openelec 4.0.7 (XBMC)

I installed the add-on manually because the zip file showed some strange error with "Afhankelijkheden komen niet overeen. neem contact op"
So the add-on was working.
Then I configured the add-on and added a device to the configuration.
Started a movie and nothing happened with the lights Sad

so I reviewed the log files, and the XBMC log shows me this:

20:59:45 T:140133214963456 NOTICE: X10-Lights: *************** Handeling an Event **************
20:59:45 T:140133214963456 NOTICE: X10-Lights: Event Type = P_Resume
20:59:45 T:140133214963456 NOTICE: X10-Lights: Domoticz, Dim lights with 20% converted to: 3
20:59:45 T:140133214963456 NOTICE: X10-Lights: Domoticz, URL: http://username:[email protected]&level=3
20:59:45 T:140133214963456 NOTICE: X10-Lights: Domoticz, The DIM Event Failed
20:59:45 T:140133214963456 NOTICE: X10-Lights: Event Device ID = 12
20:59:45 T:140133214963456 NOTICE: X10-Lights: Event Action = DIM
20:59:45 T:140133214963456 NOTICE: X10-Lights: Event Value = 20
20:59:45 T:140133214963456 NOTICE: X10-Lights: Event Free CMD = False
20:59:45 T:140133214963456 NOTICE: X10-Lights: *************************************************
20:59:45 T:140133214963456 NOTICE: X10-Lights: PLAYBACK RESUMED
20:59:45 T:140131679852288 WARNING: CActiveAEStream::AddData - timeout waiting for buffer, paused: 0, cache time: 0.512000, free buffers: 0
20:59:51 T:140133214963456 NOTICE: X10-Lights: *************** Handeling an Event **************
20:59:51 T:140133214963456 NOTICE: X10-Lights: Event Type = P_Pause
20:59:51 T:140133214963456 NOTICE: X10-Lights: Domoticz, Brighten lights with 80% converted to: 12
20:59:51 T:140133214963456 NOTICE: X10-Lights: Domoticz, URL: http://username:[email protected]&level=12
20:59:51 T:140133214963456 NOTICE: X10-Lights: Domoticz, The BRIGHT Event Failed
20:59:51 T:140133214963456 NOTICE: X10-Lights: Event Device ID = 12
20:59:51 T:140133214963456 NOTICE: X10-Lights: Event Action = BRIGHT
20:59:51 T:140133214963456 NOTICE: X10-Lights: Event Value = 80
20:59:51 T:140133214963456 NOTICE: X10-Lights: Event Free CMD = False
20:59:51 T:140133214963456 NOTICE: X10-Lights: *************************************************
20:59:51 T:140133214963456 NOTICE: X10-Lights: PLAYBACK PAUSED

Then I tried to copy the urls and paste it in Google Chrome.
That worked well!
Why is XBMC not able to execute this commands? Any ideas?

I have a similar issue
With similar log entries


Also try the URL in chrome and switch turned off and on


I hope it will be fixed in a future release
Reply
(2014-06-20, 10:54)Drtran84 Wrote:
(2014-05-05, 05:35)Shoop_NL Wrote:
(2014-05-04, 22:09)brazen1 Wrote: Dependencies Not Met when installing 1.03 from a zip.
Using latest Gotham nightly on Windows 8.1.
Not sure if it's on my end or if the add-on is not compatible with Gotham yet?
Perhaps there is another way to install?
Any help appreciated.

Never mind, manually unzipped to folder and working now.

I Will check the zip file.
Maybe someting changed for gotham.
Manual install is described in the manual.
But you found it out yourself.

I've encountered the same issue in both frodo and Gotham. For Gotham the fix for meeting the dependencies is changing the xbmc version in the addon.xml file to version 2.1.0 instead of the current 1.0

for XBMC Gotham 13.2 still got Dependencies are not met when installing 1.03 from a zip, also changed the xbmc version in the addon.xml file to version 2.1.0 and 2.14.0 (see http://wiki.xbmc.org/index.php?title=addon.xml).
we are now getting "Add-on does not have the correct structure".
Reply
i found a workaround if Authenticate won't work (working with domoticz)

in domoticz go to application settings en define your local network (for example 192.168.1.*) save your settings

after that, disable authentication in the plugin and you got it working.

(this only works if you got XBMC and domoticz working in the same subnet.
Reply
I have just released V1.0.4
Add-On
Manual

Release notes
1.0.4 - 09OKT14
Kodi Ready
- Added: LightWaveRF.
- Added: fanart.jpg
- Added: The directories lib, data and media to the resources directory.
- Changed: [CORE] X10-Commander handling API calls via UDP Broadcasts.
- Changed: default.py file name to addon.py
- Fixed: Dependencies not met error in XBMC V13.x (Gotham).
- Fixed: Addon does not have the correct structure error in XBMC V13.x (Gotham).
- Updated: The addon.xml
- Updated: The Manual
Reply
(2014-09-12, 17:29)bifi36 Wrote: i found a workaround if Authenticate won't work (working with domoticz)

in domoticz go to application settings en define your local network (for example 192.168.1.*) save your settings

after that, disable authentication in the plugin and you got it working.

(this only works if you got XBMC and domoticz working in the same subnet.

Thanx,
I have added your workaround to the Manual of the V1.0.4. Release.
See page 15.
Reply
Hello, I'm using Domoticz in Rpi and Kodi in a desktop linux. I installed this addon, configure it but nothing happens. One question, I'm using Virtual X10 switchs in Domoticz to turn ON/OFF lamps, with scripts. In configuration of XBMC - X-10 Lights Addon, Where it asks for Device ID 01 I should set the IDX from domoticz or the ID and UNIT?

Here is an example:

Image

Already tried with 64 and A9 but not working. Also need to know, to access my Domoticz webpage i'm using http://domoticz-ip:8080, in X10 Add-on what port should I use? 8080 or 8086?

Thanks
Hope you can help me.
Reply
(2014-10-27, 02:28)Morcegolas Wrote: Hello, I'm using Domoticz in Rpi and Kodi in a desktop linux. I installed this addon, configure it but nothing happens. One question, I'm using Virtual X10 switchs in Domoticz to turn ON/OFF lamps, with scripts. In configuration of XBMC - X-10 Lights Addon, Where it asks for Device ID 01 I should set the IDX from domoticz or the ID and UNIT?

Here is an example:

Image

Already tried with 64 and A9 but not working. Also need to know, to access my Domoticz webpage i'm using http://domoticz-ip:8080, in X10 Add-on what port should I use? 8080 or 8086?

Thanks
Hope you can help me.

Hi Morcegolas,

If you have selected Domoticz as Device Application under the Host settings
Image

Then for your Device ID you should use the idx number from Domiticz, in your case 64.
Image

Furthermore you need to be sure that you have the correct domoticz ip and portnumber (8080is domoticz default, but you should be able to see it at your domoticz installation) configured (and it should work)
See in the manual for details
Reply
Is this compatible with Limitless LED smart lights? I'm looking for a cheaper alternative to Philips HUE bulbs and wondered if the starter kit from LimitlessLED would work or if anyone could recommend any other alternatives to Philips HUE that are compatible with this plug-in, it would be greatly appreciated.

http://www.limitlessled.com/
Reply
(2014-10-09, 18:50)Shoop_NL Wrote: I have just released V1.0.4
Add-On
Manual

Release notes
1.0.4 - 09OKT14
Kodi Ready
- Added: LightWaveRF.
- Added: fanart.jpg
- Added: The directories lib, data and media to the resources directory.
- Changed: [CORE] X10-Commander handling API calls via UDP Broadcasts.
- Changed: default.py file name to addon.py
- Fixed: Dependencies not met error in XBMC V13.x (Gotham).
- Fixed: Addon does not have the correct structure error in XBMC V13.x (Gotham).
- Updated: The addon.xml
- Updated: The Manual

1.04 is working great with XBMC V13.2 in combination with Homewizard!

is it possible to add support for homwizard scenes?
Code:
http://<ip-homewizard>/<password>/gp/<scene-number>/<on|off>

or edit the FreeCmd command to allow
Code:
if FreeCmd:
    ActionData = '/' + Action + ID + '/' + Value
    if (debuging): xbmc.log('X10-Lights: HomeWizard, Action: ' + Action + ', with value: ' + Value + '.')

istead of:
Code:
if FreeCmd:
    ActionData = '/sw/' + Action + ID + '/' + Value
    if (debuging): xbmc.log('X10-Lights: HomeWizard, Action: ' + Action + ', with value: ' + Value + '.')

to allow / as root element in order to allow gp/ as Action.
Reply
hello,
I installed this add-on that works great with video player.
However, it appears not to be operating with the music player (I'd like to turn my stereo with)
is this normal?
Thank you in advance
Reply
  • 1
  • 11
  • 12
  • 13(current)
  • 14
  • 15

Logout Mark Read Team Forum Stats Members Help
[RELEASE] X10 - lights (Domotica Commander)4