public function getDeviceIdByCustomId($id)
    {
        $devices = $this->getPairedDevices();

        foreach ($devices as $device) {
            if (strtolower($device['id']) === strtolower($id)) {
                return $device['DeviceID'];
            }
        }

        return null;
    }
public function getDeviceIdByCustomId($id)
    {
        $devices = $this->getPairedDevices();

        foreach ($devices as $device) {
            if (strtolower($device['id']) === strtolower($id)) {
                return $device['DeviceID'];
            }
        }

        return null;
    }
public function getDeviceIdByCustomId ( $ id ) { $ devices = $ this -> getPairedDevices ( ) ; foreach ( $ devices as $ device ) { if ( strtolower ( $ device [ 'id' ] ) === strtolower ( $ id ) ) { return $ device [ 'DeviceID' ] ; } } return null ; }
Looks up bridge deviceId by its discovery id.

@param $id string

@return null
Looks up bridge deviceId by its discovery id .