def setUp(self):
     """Test set up."""
     self.hex = "0273"
     self.bytes_data = unhexlify(self.hex)
     self.message_id = MessageId(0x73)
     super(TestGetImConfiguration, self).base_setup(MessageId(0x73),
                                                    unhexlify(self.hex))
     set_log_levels(
         logger="info",
         logger_pyinsteon="info",
         logger_messages="info",
         logger_topics=False,
     )
 def setUp(self):
     self.hex = "026C"
     super(TestGetAllLinkRecordForSender,
           self).base_setup(MessageId(0x6C), unhexlify(self.hex))
     set_log_levels(
         logger="info",
         logger_pyinsteon="info",
         logger_messages="info",
         logger_topics=False,
     )
Exemple #3
0
 def setUp(self):
     """Set up test."""
     self.hex = "0269"
     super(TestGetFirstAllLinkRecord,
           self).base_setup(MessageId(0x69), unhexlify(self.hex))
     set_log_levels(
         logger="info",
         logger_pyinsteon="info",
         logger_messages="info",
         logger_topics=False,
     )
    def setUp(self):
        """Test set up."""
        self.hex = "0255"
        self.message_id = MessageId(0x55)

        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,
        )
Exemple #5
0
    def setUp(self):
        """Set up the test."""
        self.hex = "025403"
        self.message_id = MessageId(0x54)
        self.event = ImButtonEvents(0x03)

        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,
        )
    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,
        )
    def setUp(self):
        """Set up the TextX10Received tests."""
        self.message_id = MessageId(0x52)
        self.hex = "02520380"
        self.raw_x10 = int(0x03)
        self.x10_flag = int(0x04)

        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,
        )
Exemple #8
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,
        )
Exemple #9
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,
        )
Exemple #10
0
    def setUp(self):
        """Set up test."""
        self.hex = "02560304050607"
        self.message_id = MessageId(0x56)
        self.error = int(0x03)
        self.group = int(0x04)
        self.address = Address("050607")

        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,
        )
    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,
        )
Exemple #12
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,
        )
Exemple #13
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,
        )
Exemple #14
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,
        )
Exemple #15
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 the test."""
        self.hex = "0257030405060708090a"
        self.message_id = MessageId(0x57)
        self.flags = AllLinkRecordFlags(0x03)
        self.group = int(0x04)
        self.address = Address("050607")
        self.data1 = int(0x08)
        self.data2 = int(0x09)
        self.data3 = int(0x0A)

        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,
        )
    def setUp(self):
        """Set up the test."""
        self.message_id = MessageId(0x53)
        self.hex = "0253030405060708090a"
        self.mode = AllLinkMode(0x03)
        self.group = int(0x04)
        self.address = Address("050607")
        self.cat = DeviceCategory(0x08)
        self.subcat = int(0x09)
        self.firmware = int(0x0A)

        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,
        )
    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,
        )
Exemple #20
0
 def setUp(self):
     """Set up the TestCancelAllLinking tests."""
     self.hex = "0265"
     super(TestSendStandard, self).base_setup(MessageId(0x65),
                                              unhexlify(self.hex))
    def setUp(self):

        self.hex = "0265"
        super(TestCancelAllLinking, self).base_setup(MessageId(0x65),
                                                     unhexlify(self.hex))