Page 1 of 1

X10 Dimmers implementation

Posted: Friday 20 January 2017 14:37
by Persisto
I know X10 is not respected hardware (I agree, but that is what I and a lot of other DOmoticz users have) and the X10 protocol is not an example of clarity but

Code: Select all

PL A1 xdim xx
(where 0 =< xx <= 63) works on Marmitek LW11 modules -the most common I believe- and would be fairly easy to implement:

Liberate the slider on the png, send " xdim & int(slidervalue *.63)" to the dimmer when it changes

I've made a hack: http://www.domoticz.com/forum/viewtopic ... 23&t=15575 for which Domoticz reports non-existing Mochad errors :)

I'd be happy to test in beta if that is what it takes.

Re: X10 Dimmers implementation

Posted: Saturday 21 January 2017 11:21
by franzelare
I do see the code when changing a dimmer status manually on a 2 way dimmer being received by domoticz but not able to process:
like this for different raw levels of the same dimmer
2017-01-21 11:17:34.572 Error: Mochad: Cannot decode 'Rx PL HouseUnit: G7 Func: Ext code 1, data, control Data: 2D Command: 31'
2017-01-21 11:18:38.366 Error: Mochad: Cannot decode 'Rx PL HouseUnit: G7 Func: Ext code 1, data, control Data: 2E Command: 31'
2017-01-21 11:19:12.323 Error: Mochad: Cannot decode 'Rx PL HouseUnit: G7 Func: Ext code 1, data, control Data: 20 Command: 31'

so the dimmer level is in the control data part

Re: X10 Dimmers implementation

Posted: Tuesday 24 January 2017 0:40
by Persisto
@franzelare Maybe the X10 dimmer issue can be solved step by step.

Implementing what I propose, solves the problem of dimming: Setting the dimmer slide to 50% will set the lamp to 50% (or as near as it would using any other hardware.) which would be a big step.

Your readback of 2 way dimmers, if and when a solution is clearly identified, can maybe dealt with as a follow up