File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ export class TempStickAccessory {
5151 // set accessory information
5252 this . accessory . getService ( this . platform . Service . AccessoryInformation ) !
5353 . setCharacteristic ( this . platform . Characteristic . Manufacturer , 'Ideal Sciences, Inc.' )
54- // TODO verify type / version equivalent to model
55- . setCharacteristic ( this . platform . Characteristic . Model ,
56- 'TempStick-' + accessory . context . device . type + '-' + accessory . context . device . version )
57- . setCharacteristic ( this . platform . Characteristic . SerialNumber , accessory . context . device . sensor_id ) ;
54+ . setCharacteristic ( this . platform . Characteristic . Model , 'TempStick-' + accessory . context . device . type )
55+ . setCharacteristic ( this . platform . Characteristic . SerialNumber , accessory . context . device . sensor_id )
56+ // Firmware version in API is XXXX, in app X.X.XX. Unable to deterministically parse major/minor/patch
57+ . setCharacteristic ( this . platform . Characteristic . FirmwareRevision , accessory . context . device . version ) ;
5858
5959 // initialize sensorStates from the constructor accessory device
6060 this . sensorStates = this . accessory . context . device ;
Original file line number Diff line number Diff line change 11export interface Sensor {
2- version : string ;
2+ version : string ; // Firmware version XXXX -> X.X.XX
33 sensor_id : string ;
44 sensor_name : string ;
55 sensor_mac_addr : string ;
You can’t perform that action at this time.
0 commit comments