def setUp(self):
        """Set up test."""
        self.hex = "025806"
        self.message_id = MessageId(0x58)
        self.ack = AckNak(0x06)

        self.msg, self.msg_bytes = hex_to_inbound_message(self.hex)
        set_log_levels(
            logger="info",
            logger_pyinsteon="info",
            logger_messages="info",
            logger_topics=False,
        )
예제 #2
0
    def setUp(self):
        """Test set up."""
        self.hex = "027003"
        self.hex_ack = "02700306"
        self.message_id = MessageId(0x70)
        self.cmd2 = int(0x03)
        self.ack = AckNak(0x06)

        self.msg, self.msg_bytes = hex_to_inbound_message(self.hex_ack)
        set_log_levels(
            logger="info",
            logger_pyinsteon="info",
            logger_messages="info",
            logger_topics=False,
        )
예제 #3
0
    def setUp(self):
        """Test set up."""
        self.hex = "026B30"
        self.hex_ack = "026B3006"
        self.message_id = MessageId(0x6B)
        self.flags = IMConfigurationFlags(0x30)
        self.ack = AckNak(0x06)

        self.msg, self.msg_bytes = hex_to_inbound_message(self.hex_ack)
        set_log_levels(
            logger="info",
            logger_pyinsteon="info",
            logger_messages="info",
            logger_topics=False,
        )
예제 #4
0
    def setUp(self):
        """Set up the TestSendX10 tests."""
        self.hex = "02630180"
        self.hex_ack = "0263018006"
        self.message_id = MessageId(0x63)
        self.raw_x10 = int(0x01)
        self.x10_flag = int(0x02)
        self.ack = AckNak(0x06)

        self.msg, self.msg_bytes = hex_to_inbound_message(self.hex_ack)
        set_log_levels(
            logger="info",
            logger_pyinsteon="info",
            logger_messages="info",
            logger_topics=False,
        )
예제 #5
0
    def setUp(self):
        """Test set up."""
        self.hex = "02640304"
        self.hex_ack = "0264030406"
        self.message_id = MessageId(0x64)
        self.mode = AllLinkMode(0x03)
        self.group = int(0x04)
        self.ack = AckNak(0x06)

        self.msg, self.msg_bytes = hex_to_inbound_message(self.hex_ack)
        set_log_levels(
            logger="info",
            logger_pyinsteon="info",
            logger_messages="info",
            logger_topics=False,
        )
예제 #6
0
    def setUp(self):
        """Set up test."""
        self.hex = "0273"
        self.hex_ack = "027330040506"
        self.message_id = MessageId(0x73)
        self.flags = IMConfigurationFlags(0x30)
        self.spare1 = int(0x04)
        self.spare2 = int(0x05)
        self.ack = AckNak(0x06)

        self.msg, self.msg_bytes = hex_to_inbound_message(self.hex_ack)
        set_log_levels(
            logger="info",
            logger_pyinsteon="info",
            logger_messages="info",
            logger_topics=False,
        )
예제 #7
0
    def setUp(self):
        """Set up test."""
        self.hex = "0261031122"
        self.hex_ack = "026103112206"
        self.message_id = MessageId(0x61)
        self.group = int(0x03)
        self.cmd1 = int(0x11)
        self.cmd2 = int(0x22)
        self.ack = AckNak(0x06)

        self.msg, self.msg_bytes = hex_to_inbound_message(self.hex_ack)
        set_log_levels(
            logger="info",
            logger_pyinsteon="info",
            logger_messages="info",
            logger_topics=False,
        )
예제 #8
0
    def setUp(self):
        """Test set up."""
        self.hex = "0266030405"
        self.hex_ack = "026603040506"
        self.message_id = MessageId(0x66)
        self.cat = DeviceCategory(0x03)
        self.subcat = int(0x04)
        self.firmware = int(0x05)
        self.ack = AckNak(0x06)

        self.msg, self.msg_bytes = hex_to_inbound_message(self.hex_ack)
        set_log_levels(
            logger="info",
            logger_pyinsteon="info",
            logger_messages="info",
            logger_topics=False,
        )
    def setUp(self):
        """Set up test."""
        self.hex = "0260"
        self.hex_ack = "026003040507070806"
        self.message_id = MessageId(0x60)
        self.address = Address("030405")
        self.cat = DeviceCategory(0x07)
        self.subcat = int(0x07)
        self.firmware = int(0x08)
        self.ack = AckNak(0x06)

        self.msg, self.msg_bytes = hex_to_inbound_message(self.hex_ack)
        set_log_levels(
            logger="info",
            logger_pyinsteon="info",
            logger_messages="info",
            logger_topics=False,
        )
    def setUp(self):
        """Set up test."""
        self.hex = "026F400405060708090a0b"
        self.hex_ack = "026F400405060708090a0b06"
        self.message_id = MessageId(0x6F)
        self.action = ManageAllLinkRecordAction(0x40)
        self.flags = AllLinkRecordFlags(0x04)
        self.group = int(0x05)
        self.address = Address("060708")
        self.data1 = int(0x09)
        self.data2 = int(0x0A)
        self.data3 = int(0x0B)
        self.ack = AckNak(0x06)

        self.msg, self.msg_bytes = hex_to_inbound_message(self.hex_ack)
        set_log_levels(
            logger="info",
            logger_pyinsteon="info",
            logger_messages="info",
            logger_topics=False,
        )