def __init__(self,
              deviceCategory=DeviceType.UNKNOWN,
              name=DeviceType.UNKNOWN,
              description=DeviceType.UNKNOWN,
              dataType=None,
              allowedStates=None):
     DeviceType.__init__(self, deviceCategory, name, description)
     self._allowedStates = allowedStates
     self._dataType = dataType
     if self._deviceCategory is None:
         self._deviceCategory = 'Actuator'  # TODO: i18n
Example #2
0
 def __init__(self,
              deviceCategory=DeviceType.UNKNOWN,
              name=DeviceType.UNKNOWN,
              description=DeviceType.UNKNOWN,
              dataType=None,
              units=None):
     DeviceType.__init__(self, deviceCategory, name, description)
     self._dataType = dataType
     self._units = units
     if self._deviceCategory is None or self._deviceCategory == DeviceType.UNKNOWN:
         self._deviceCategory = 'Sensor'  # TODO: i18n
 def __init__(
     self,
     deviceCategory=DeviceType.UNKNOWN,
     name=DeviceType.UNKNOWN,
     description=DeviceType.UNKNOWN,
     dataType=None,
     allowedStates=None,
 ):
     DeviceType.__init__(self, deviceCategory, name, description)
     self._allowedStates = allowedStates
     self._dataType = dataType
     if self._deviceCategory is None:
         self._deviceCategory = "Actuator"  # TODO: i18n
Example #4
0
 def _registerDeviceMetadata(self):
     self._deviceManager.registerDeviceType(
         DeviceType(deviceCategory='Interface',
                    name='W800RF',
                    description='W800 X10 RF Receiver',
                    busType='X10'))
Example #5
0
 def __init__(self, deviceCategory=DeviceType.UNKNOWN, name=DeviceType.UNKNOWN, description=DeviceType.UNKNOWN, dataType=None, units=None):
     DeviceType.__init__(self, deviceCategory, name, description)
     self._dataType = dataType
     self._units = units
     if self._deviceCategory is None or self._deviceCategory == DeviceType.UNKNOWN:
         self._deviceCategory = 'Sensor' # TODO: i18n