Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

physicalgraph.app.exception.UnknownDeviceTypeException: Device type 'Diskstation Camera' in namespace 'New Camera' not found. @line 734 (doCall) #11

Open
resgroupmsr opened this issue Jan 18, 2020 · 2 comments

Comments

@resgroupmsr
Copy link

Get to point where ready to save and this error appears. Any ideas?
physicalgraph.app.exception.UnknownDeviceTypeException: Device type 'Diskstation Camera' in namespace 'New Camera' not found. @line 734 (doCall)

@resgroupmsr
Copy link
Author

The line is part of this code below, originally swanny I've tried to change to NewCamera - neither works:

            d = addChildDevice("**NewCamera**", "Diskstation Camera", newCameraDNI, state.hub, [label:"Diskstation ${newCamera?.newName}"]) //, completedSetup: true

def addCameras() {
selectedCameras.each { cameraIndex ->
def newCamera = state.SSCameraList.find { it.id.toString() == cameraIndex.toString() }
log.trace "newCamera = " + newCamera
if (newCamera != null) {
def newCameraDNI = createCameraDNI(newCamera)
log.trace "newCameraDNI = " + newCameraDNI
def d = getChildDevice(newCameraDNI)
if(!d) {
d = addChildDevice("NewCamera", "Diskstation Camera", newCameraDNI, state.hub, [label:"Diskstation ${newCamera?.newName}"]) //, completedSetup: true
log.trace "created ${d.displayName} with id $newCameraDNI"

            // set up device capabilities here ??? TODO ???
            //d.setModel(newPlayer?.value.model)
        } else {
            log.trace "found ${d.displayName} with id $newCameraDNI already exists"
        }

        // set up even if already installed in case setup has changed
        d.initChild(state.cameraCapabilities[makeCameraModelKey(newCamera)])
    }
}

@resgroupmsr
Copy link
Author

3a481dd9-bc18-443c-975f-e75caff16598 6:19:00 PM: error physicalgraph.app.exception.UnknownDeviceTypeException: Device type 'Diskstation Camera' in namespace 'swanny' not found. @line 734 (doCall)

Same error again. Did a full refresh using your latest code, finds my 8 cameras, I complete the set up and it fails. Any advice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant