Class SpecificX10Light

  • All Implemented Interfaces:
    java.lang.Comparable<NamedBean>, AnalogIO, PropertyChangeProvider, DigitalIO, Light, NamedBean, VariableLight

    public class SpecificX10Light
    extends SerialX10Light
    Implementation of the Light Object for X10 receivers on Insteon 2412S interfaces.

    Uses X10 dimming commands to set intensity unless the value is 0.0 or 1.0, in which case it uses on/off commands only.

    Since the dim/bright step of the hardware is unknown then the Light object is first created, the first time the intensity (not state) is set to other than 0.0 or 1.0, the output is run to it's maximum dim or bright step so that we know the count is right.

    Keeps track of the controller's "dim count", and if not certain forces it to zero to be sure.

    • Constructor Detail

      • SpecificX10Light

        public SpecificX10Light​(java.lang.String systemName,
                                SerialTrafficController tc)
        Create a Light object, with only system name.

        'systemName' was previously validated in SerialLightManager

        Parameters:
        systemName - text for systemName of light
        tc - tc for connection
      • SpecificX10Light

        public SpecificX10Light​(java.lang.String systemName,
                                SerialTrafficController tc,
                                java.lang.String userName)
        Create a Light object, with both system and user names.

        'systemName' was previously validated in SerialLightManager

        Parameters:
        systemName - text for systemName of light
        tc - tc for connection
        userName - text for userName of light
    • Method Detail

      • sendIntensity

        protected void sendIntensity​(double intensity)
        Send a Dim/Bright commands to the X10 hardware to reach a specific intensity. Acts immediately, and changes no general state.

        This sends "Extended Cmd Dim" commands.

        Overrides:
        sendIntensity in class SerialX10Light
        Parameters:
        intensity - new intensity