I’m running OH2 (2.2.0) on an RPI3 and are struggling to get a Hikvision camera to show up in HABpanel. For some older Foscam-cameras, I’ve been able to add snapshot-url as an image-widget but for the Hikvision camera, Basic Authentication is required so I have resorted to creating the stream as an Image item in .items.
Now, I have added the following row to a cameras.items-file and expected it to update the image of the camera once every second
however, this is what the log thinks about my configuration:
2018-03-15 14:18:01.626 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'cameras.items'
2018-03-15 14:18:01.693 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'cameras.items'
2018-03-15 14:18:01.713 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type 'http' of item 'camnorth' could not be parsed correctly.
org.eclipse.smarthome.model.item.BindingConfigParseException: cannot process unknown item type Image
at org.openhab.core.binding.internal.BindingConfigReaderDelegate.getOpenHABItem(BindingConfigReaderDelegate.java:87) [234:org.openhab.core.compat1x:2.2.0]
at org.openhab.core.binding.internal.BindingConfigReaderDelegate.getOpenHABItem(BindingConfigReaderDelegate.java:57) [234:org.openhab.core.compat1x:2.2.0]
at org.openhab.core.binding.internal.BindingConfigReaderDelegate.validateItemType(BindingConfigReaderDelegate.java:38) [234:org.openhab.core.compat1x:2.2.0]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:340) [135:org.eclipse.smarthome.model.item:0.10.0.b1]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:310) [135:org.eclipse.smarthome.model.item:0.10.0.b1]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.processBindingConfigsFromModel(GenericItemProvider.java:195) [135:org.eclipse.smarthome.model.item:0.10.0.b1]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:377) [135:org.eclipse.smarthome.model.item:0.10.0.b1]
at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:314) [134:org.eclipse.smarthome.model.core:0.10.0.b1]
at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:143) [134:org.eclipse.smarthome.model.core:0.10.0.b1]
at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.checkFile(FolderObserver.java:247) [134:org.eclipse.smarthome.model.core:0.10.0.b1]
at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.processWatchEvent(FolderObserver.java:311) [134:org.eclipse.smarthome.model.core:0.10.0.b1]
at org.eclipse.smarthome.core.service.WatchQueueReader.run(WatchQueueReader.java:209) [109:org.eclipse.smarthome.core:0.10.0.b1]
at java.lang.Thread.run(Thread.java:748) [?:?]
It seems as if there is a problem that the MJPEG-stream does not have a specific image type
Is there any way I can point out in the items-file that it is a jpeg-file? The documentation does not give me any clues.
Tried it both with the old user:pass@ip-call that works fine in my browser and also with base64encoded@ip. How do I use the frame with auth in a proper way?
So, now I’ve had the time to try out the suggestions mentioned here in the thread. Here are my findings:
Remove the space before the auth-brackets: Did not make any difference. However, when I changed the word Image to lower case in the .items-file, there was no error message, but it still didn’t show up any image-item in paperUI or in HABpanel
There is unfortunately no way to disable the authentication of the camera. Now I’ve managed to find another way to show the camera image and that is via the Generic IP Camera binding, and more specifically, via the config described in this post:
It’s very unsatisfying to not be able to solve the original issue but I’m ok with the result