Пример #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.'})
Пример #2
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     threading.Thread.__init__(self)
Пример #3
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({'open': {'type': 'boolean'}})
     self.state.update({'open': True})
Пример #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})
Пример #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})
Пример #6
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({ 'open': { 'type': 'boolean' }})
     self.state.update({'open': True})        
Пример #7
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     threading.Thread.__init__(self)
Пример #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.'})