How to use the plugwise.protocol.LogAddr function in plugwise

To help you get started, we’ve selected a few plugwise examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SevenW / Plugwise-2-py / plugwise / protocol.py View on Github external
def __init__(self, seqnr = None):
        PlugwiseResponse.__init__(self, seqnr)
        self.raw = String(None, length=64)
        self.logaddr = LogAddr(0, length=8)
        self.params += [self.raw, self.logaddr
        ]
github SevenW / Plugwise-2-py / plugwise / protocol.py View on Github external
def __init__(self, seqnr = None):
        PlugwiseResponse.__init__(self, seqnr)
        self.datetime = DateTime()
        self.last_logaddr = LogAddr(0, length=8)
        self.relay_state = Int(0, length=2)
        self.hz = Int(0, length=2)
        self.hw_ver = String(None, length=12)
        self.fw_ver = UnixTimestamp(0)
        self.type = Int(0, length=2)
        self.params += [
            self.datetime,
            self.last_logaddr, self.relay_state, 
            self.hz, self.hw_ver, self.fw_ver, self.type
        ]
github SevenW / Plugwise-2-py / plugwise / protocol.py View on Github external
def __init__(self, mac, log_address):
        PlugwiseRequest.__init__(self, mac)
        self.args.append(LogAddr(log_address, 8))