This page last changed on Feb 12, 2011 by fekete kamosh.

Hi all,

I want to ask what was the reason not to include also "All lights on" command for X10 devices among other X10 commands.

Do you have any clue why implementation com.jpeterson.x10.event.AllLightsOffEvent resp. AllLightsOffEvent is not functional? I tried to make use it within X10ControllerManager, added new X10CommandType and tuned X10CommandBuilder but my lights (within the same house code) are not willing to switch on

For switching multiple lights off there is "ALL UNITS OFF" but I would like the oposite command.

Fekete

I haven't played with X10 much so can't say really. If you find a solution, let us know. Modifying the X10 codebase would be fine (there are some rather dubious I/O use there that I would like to see eventually fixed anyway).

One workaround might be to create a macro with all individual X10 addresses being turned off. However, this might give you a somewhat of a sequential effect rather than immediate due to the nature of X10 and the fact it is not very fast.

Posted by juha at Feb 13, 2011 06:33

Exactly as you said, using macro is not fast enough (I am using it instead of All lights on). If I succeed with X10 code I will let you now. Now I am fighting little bit with local installation of modeller as it is written in GWT that I am not familiar with especially from debugging point of view.

Posted by fekete kamosh at Feb 13, 2011 13:17

I got further with investigation.

I realized that AllLightsOffEvent is understood by standard receivers LW10 (http://www.powerhouse.eu/wallmounted-dimmer-p-39.html?language=en). But I have only 2 of these and for the rest of my home installation I am using TAYITO's (http://www.taiyito.com/english/ProductView.asp?ID=94&SortID=58) TDXE4404. Seems that TDXE4404 do not accept All lights on/All lights off commands (luckily they accept All units off).

Anyway could be X10 command events extended for other possibilities that X10 protocol provides (eg. DIM, BRIGHT, All lights on) within X10CommandBuilder and the other stuff around? Implementation in com.jpeterson.x10 seems to be OK.

Fekete

Posted by fekete kamosh at Feb 13, 2011 19:12

Sure,

would you be able to provide patches for these yourself? (would help a lot at this point)

– Juha

Posted by juha at Feb 13, 2011 20:02

Two questions:

  • must be DIM and BRIGHT commands connected somehow to slider or implementation to create command with magic constants such as new BrightEvent(this, houseCodeChar, 5, 22); is sufficient for now?
  • might be users allowed to specify only House code and no device code in case of ALL UNITS OFF or ALL LIGHTS ON commands?

Fekete

Posted by fekete kamosh at Feb 15, 2011 21:24

must be DIM and BRIGHT commands connected somehow to slider or implementation to create command with magic constants such as new BrightEvent(this, houseCodeChar, 5, 22); is sufficient for now?

If you want to connect the commands to a slider, you can retrieve the slider value in the X10 command builder implementation with:

public XXX implements CommandBuilder {

  public Command build(Element element) {
    String paramValue = element.getAttributeValue(Command.DYNAMIC_VALUE_ATTR_NAME);

    ...
  }

If you want static buttons for specific dim value commands, you could allow for example DIM-nn as command format (e.g. DIM-20 to set a DIM to a fixed value on a press button).

might be users allowed to specify only House code and no device code in case of ALL UNITS OFF or ALL LIGHTS ON commands?

Makes sense, the validation rules for X10 address should be different for these commands.

Posted by juha at Feb 16, 2011 00:01

Could it be a safety feature ? Maybe the X10 founding fathers did not want you to blow the fuses by switching everything on at the same time.

Posted by filipc at Feb 16, 2011 21:24

Hi Philippe,

For the 'ALL LIGHTS ON' command, it is part of the X10 protocol and as such it makes sense that only the house code is used, and no device code.

If turning all lights on is an issue, you can always create multiple zones within a building by using multiple house codes per installation.

See http://en.wikipedia.org/wiki/X10_%28industry_standard%29 for more information.

Posted by juha at Feb 17, 2011 15:23
Document generated by Confluence on Jun 05, 2016 09:32