Example #1
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({
         'on': {
             'type': 'boolean',
             'access': 'rw'
         },
         'manufacturer': {
             'type': 'string'
         }
     })
     self.state.update({'on': True, 'manufacturer': 'Bulbs, inc.'})
Example #2
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     threading.Thread.__init__(self)
Example #3
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({'open': {'type': 'boolean'}})
     self.state.update({'open': True})
Example #4
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({ 't': { 'type': 'float' }})
     self.state.update({'t': 25.0})
Example #5
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({'t': {'type': 'float'}})
     self.state.update({'t': 25.0})
Example #6
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({ 'open': { 'type': 'boolean' }})
     self.state.update({'open': True})        
Example #7
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     threading.Thread.__init__(self)
Example #8
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({ 'on': { 'type': 'boolean', 'access':'rw'}, 'manufacturer': { 'type': 'string'}})
     self.state.update({'on': True, 'manufacturer': 'Bulbs, inc.'})