I'm getting an error trying to add my miniPurple (Purple Air) device to Homekit.
Expected Behavior
I expect to be able to add the sensor
Current Behavior
I'm getting an error in the Indigo Log
Steps to Reproduce (for bugs)
- Add Purple Air sensor (using the miniPurple plugin)
- Add the sensor to homekit
Versions
- Plugin:
YourVersion
HomeKit Bridge 1.0.2
miniPurple: 0.0.1
Homebridge Log / Command Output
HomeKit Bridge Error Exception in homekit.setAttributeValue line 1560: global name 'dev' is not defined
CODE: self.logger.error (u"Cannot set {} value of {} because it is not an attribute".format(attribute, dev.Alias.value))
HomeKit Bridge Error Exception in homekit.detCharacteristicValues line 1070: 'service_AirQualitySensor' object has no attribute 'AirQuality'
CODE: if characteristic not in self.characterDict: self.characterDict[characteristic] = getattr (self, characteristic).value
For object id 855142381 alias 'Purple Air (indoor)'
Device Simulation Report
##### DEVICE DATA DUMP #####
address : 82513
allowOnStateChange : False
allowSensorValueChange : False
batteryLevel : None
buttonGroupCount : 0
configured : True
description :
deviceTypeId : purpleSensor
displayStateId : sensorValue
displayStateImageSel : None
displayStateValRaw : 7.0
displayStateValUi : 7
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 0
globalProps : MetaProps : (dict)
com.flyingdiver.indigoplugin.miniPurple : (dict)
SupportsOnState : false (bool)
SupportsSensorValue : true (bool)
address : 82513 (string)
id : 855142381
lastChanged : 2020-11-09 11:19:37
lastSuccessfulComm : 2020-11-09 11:19:37
model : PurpleAir Sensor
name : Purple Air (indoor)
onState : None
ownerProps : com.flyingdiver.indigoplugin.miniPurple : (dict)
SupportsOnState : false (bool)
SupportsSensorValue : true (bool)
address : 82513 (string)
pluginId : com.flyingdiver.indigoplugin.miniPurple
pluginProps : com.eps.indigoplugin.homekit-bridge : (dict)
protocol : Plugin
remoteDisplay : True
sensorValue : 7.0
sharedProps : com.indigodomo.indigoserver : (dict)
states : States : (dict)
Hardware : 2.0+BME280+PMSX003-A (string)
Humidity : 20 (string)
Label : Lake Pointe (in) (string)
Latitude : 45.612058 (real)
Longitude : -122.434537 (real)
Pressure : 1013.08 (string)
RSSI : -55 (string)
Temperature : 84 (string)
Uptime : 420852 (string)
Version : 6.01 (string)
p_0_3_um : 444.6 (string)
p_0_5_um : 120.01 (string)
p_10_0_um : 0.21 (string)
p_1_0_um : 10.07 (string)
p_2_5_um : 1.07 (string)
p_5_0_um : 0.43 (string)
pm10_0_atm : 2.14 (string)
pm10_0_cf_1 : 2.14 (string)
pm1_0_atm : 1.41 (string)
pm1_0_cf_1 : 1.41 (string)
pm2_5_atm : 1.69 (string)
pm2_5_cf_1 : 1.69 (string)
sensorValue : 7.000000 (real)
sensorValue.ui : 7 (string)
subModel :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsOnState : False
supportsSensorValue : True
supportsStatusRequest : True
version : None
##### DEVICE SIMULATION DATA #####
Service :
alias : Purple Air (indoor)
model :
subModel :
indigoType : indigo.SensorDevice
pluginType : indigo.SensorDevice.com.flyingdiver.indigoplugin.miniPurple.purpleSensor
type : AirQualitySensor
desc : Air Quality Sensor
objId : 855142381
serverId : 1133153244
invertOnState : False
convertFahrenheit : False
required : (List)
AirQuality
optional : (List)
StatusActive : False
StatusFault
CarbonMonoxideLevel
Name
OzoneDensity
StatusTampered
StatusLowBattery : 0
NitrogenDioxideDensity
CarbonDioxideLevel
VOCDensity
PM2_5Density
SulphurDioxideDensity
PM10Density
native : True
requiresPlugin : (List)
actions : (List)
Action : (HomeKitAction)
Characteristic : StatusActive
When : equal
Value : False (bool)
Value2 : 0 (bool)
Command : device.turnOff
Arguments : [855142381]
monitors : {855142381: 'attr_onState'}
Action : (HomeKitAction)
Characteristic : StatusActive
When : equal
Value : True (bool)
Value2 : 0 (bool)
Command : device.turnOn
Arguments : [855142381]
monitors : {855142381: 'attr_onState'}
loadOptional : False
characterDict : (Dict)
StatusActive : False
I'm getting an error trying to add my miniPurple (Purple Air) device to Homekit.
Expected Behavior
I expect to be able to add the sensor
Current Behavior
I'm getting an error in the Indigo Log
Steps to Reproduce (for bugs)
Versions
YourVersionHomeKit Bridge 1.0.2
miniPurple: 0.0.1
Homebridge Log / Command Output
Device Simulation Report