Class Automation


  • public class Automation
    extends BaseOpenMessage
    OpenWebNet Automation messages (WHO=2)
    Author:
    M. Valla - Initial contribution
    • Constructor Detail

      • Automation

        protected Automation​(String value)
    • Method Detail

      • requestStop

        public static Automation requestStop​(String w)
        OpenWebNet message request to send STOP *2*0*WHERE##.
        Parameters:
        w - WHERE string
        Returns:
        message
      • requestMoveUp

        public static Automation requestMoveUp​(String w)
        OpenWebNet message request to send UP *2*1*WHERE##.
        Parameters:
        w - WHERE string
        Returns:
        message
      • requestMoveDown

        public static Automation requestMoveDown​(String w)
        OpenWebNet message request to send DOWN *2*2*WHERE##.
        Parameters:
        w - WHERE string
        Returns:
        message
      • requestStatus

        public static Automation requestStatus​(String w)
        OpenWebNet message request automation status *#2*WHERE##.
        Parameters:
        w - WHERE string
        Returns:
        message
      • isStop

        public boolean isStop()
        Verify OpenWebNet message is STOP (WHAT=0).
        Returns:
        true if message is "STOP"
      • isUp

        public boolean isUp()
        Verify OpenWebNet message is UP (WHAT=1).
        Returns:
        true if message is "UP"
      • isDown

        public boolean isDown()
        Verify OpenWebNet message is DOWN (WHAT=2).
        Returns:
        true if message is "DOWN"
      • convertUpDown

        public static Automation convertUpDown​(Automation autMsg)
                                        throws FrameException
        Convert an Automation message UP<>DOWN
        Parameters:
        autMsg - message to convert
        Returns:
        converted Automation message
        Throws:
        FrameException - in case of error in frame