How to use the plugwise.protocol.StringVal 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, second=0, minute=0, hour=0):
        CompositeType.__init__(self)
        self.second = StringVal(second, 2)
        self.minute = StringVal(minute, 2)
        self.hour = StringVal(hour, 2)
        self.contents += [self.second, self.minute, self.hour]
github SevenW / Plugwise-2-py / plugwise / protocol.py View on Github external
def __init__(self, mac, dt):
        PlugwiseRequest.__init__(self, mac)
        self.args.append(StringVal(dt.second, 2))
        self.args.append(StringVal(dt.minute, 2))
        self.args.append(StringVal(dt.hour, 2))
        self.args.append(StringVal(dt.weekday() + 1, 2))
        self.args.append(StringVal(dt.day, 2))
        self.args.append(StringVal(dt.month, 2))
        self.args.append(StringVal((dt.year-PLUGWISE_EPOCH), 2))
github SevenW / Plugwise-2-py / plugwise / protocol.py View on Github external
def __init__(self, mac, dt):
        PlugwiseRequest.__init__(self, mac)
        self.args.append(StringVal(dt.second, 2))
        self.args.append(StringVal(dt.minute, 2))
        self.args.append(StringVal(dt.hour, 2))
        self.args.append(StringVal(dt.weekday() + 1, 2))
        self.args.append(StringVal(dt.day, 2))
        self.args.append(StringVal(dt.month, 2))
        self.args.append(StringVal((dt.year-PLUGWISE_EPOCH), 2))
github SevenW / Plugwise-2-py / plugwise / protocol.py View on Github external
def __init__(self, day=0, month=0, year=0):
        CompositeType.__init__(self)
        self.day = StringVal(day, 2)
        self.month = StringVal(month, 2)
        self.year = StringVal(year, 2)
        self.contents += [self.day, self.month, self.year]
github SevenW / Plugwise-2-py / plugwise / protocol.py View on Github external
def __init__(self, second=0, minute=0, hour=0):
        CompositeType.__init__(self)
        self.second = StringVal(second, 2)
        self.minute = StringVal(minute, 2)
        self.hour = StringVal(hour, 2)
        self.contents += [self.second, self.minute, self.hour]
github SevenW / Plugwise-2-py / plugwise / protocol.py View on Github external
def __init__(self, day=0, month=0, year=0):
        CompositeType.__init__(self)
        self.day = StringVal(day, 2)
        self.month = StringVal(month, 2)
        self.year = StringVal(year, 2)
        self.contents += [self.day, self.month, self.year]
github SevenW / Plugwise-2-py / plugwise / protocol.py View on Github external
def __init__(self, mac, dt):
        PlugwiseRequest.__init__(self, mac)
        self.args.append(StringVal(dt.second, 2))
        self.args.append(StringVal(dt.minute, 2))
        self.args.append(StringVal(dt.hour, 2))
        self.args.append(StringVal(dt.weekday() + 1, 2))
        self.args.append(StringVal(dt.day, 2))
        self.args.append(StringVal(dt.month, 2))
        self.args.append(StringVal((dt.year-PLUGWISE_EPOCH), 2))
github SevenW / Plugwise-2-py / plugwise / protocol.py View on Github external
def __init__(self, mac, dt):
        PlugwiseRequest.__init__(self, mac)
        self.args.append(StringVal(dt.second, 2))
        self.args.append(StringVal(dt.minute, 2))
        self.args.append(StringVal(dt.hour, 2))
        self.args.append(StringVal(dt.weekday() + 1, 2))
        self.args.append(StringVal(dt.day, 2))
        self.args.append(StringVal(dt.month, 2))
        self.args.append(StringVal((dt.year-PLUGWISE_EPOCH), 2))
github SevenW / Plugwise-2-py / plugwise / protocol.py View on Github external
def __init__(self, mac, dt):
        PlugwiseRequest.__init__(self, mac)
        self.args.append(StringVal(dt.second, 2))
        self.args.append(StringVal(dt.minute, 2))
        self.args.append(StringVal(dt.hour, 2))
        self.args.append(StringVal(dt.weekday() + 1, 2))
        self.args.append(StringVal(dt.day, 2))
        self.args.append(StringVal(dt.month, 2))
        self.args.append(StringVal((dt.year-PLUGWISE_EPOCH), 2))
github SevenW / Plugwise-2-py / plugwise / protocol.py View on Github external
def __init__(self, day=0, month=0, year=0):
        CompositeType.__init__(self)
        self.day = StringVal(day, 2)
        self.month = StringVal(month, 2)
        self.year = StringVal(year, 2)
        self.contents += [self.day, self.month, self.year]