The Vera Community forums have moved!

General => Upgrading => Topic started by: radarengineer on December 10, 2011, 10:06:59 am

Title: Problem with UI5 and IP Cameras
Post by: radarengineer on December 10, 2011, 10:06:59 am
I upgraded my Vera2 yesterday to UI5 - didn't read carefully before clicking the link or I would have waited until it was official!

It was *mostly* working well. My mochad plugin and the Denon plugin which I have been working on with dfad1469 and zoot1612 were both slightly modified by Micasaverde and put into the app store. I didn't try the Denon plugin but the mochad one wasn't working. I'll have to back port those changes to svn and maybe fix some existing bugs but glad that I have a head start on migrating the code to UI5.

My existing webcams were working, but I wanted to remove a webcam and add four new webcams. After I removed the webcam the new webcams did not work - it seems like my vera is missing D_DigitalSecurityCamera1.xml. It seems like vera might automatically remove "apps" that aren't needed anymore when you remove a device, perhaps this file was removed when I deleted the existing webcam?

I had a second problem - I couldn't add an IP camera if there was another webcam with the same IP address. I'll verify this is a problem once I get IP cameras working again. I have several "IP cameras" that I made myself, they are embedded boxes running linux with multiple cameras with different urls - but the same web server. I could work around this but would be nice to see that fixed.

I decided to start with a blank slate so I performed a factory reset and z-wave reset of my vera. Figured UI5 was a good time to upgrade to 3.20 and start from scratch. Now I have exactly one device, an IP camera, and it isn't working. Fortunately, for me vera is 100% for entertainment purposes and if it is down for a bit that is ok.  :)

It seems like vera is trying to download the needed files and can't:

02   12/10/11 6:41:19.928   JobHandler_LuaUPnP::FetchMissingFiles need to download plugin 5 <0x400>
02   12/10/11 6:41:19.930   JobHandler_LuaUPnP::m_sMissingFile_set plugin <0x400>
01   12/10/11 6:41:19.947   Device_LuaUPnP::LoadDeviceDoc can't load /etc/cmh-lu//D_DigitalSecurityCamera1.xml <0x400>
02   12/10/11 6:41:19.948   JobHandler_LuaUPnP::m_sMissingFile_set /etc/cmh-lu//D_DigitalSecurityCamera1.xml <0x400>
01   12/10/11 6:41:19.948   JobHandler_LuaUPnP::CreateDevice_LuaUPnP failed to load 3/D_DigitalSecurityCamera1.xml so device 3 is offline <0x400>
01   12/10/11 6:41:20.043   Device_LuaUPnP::CreateServices Aborting device 3 because the topmost device has no interface <0x400>
01   12/10/11 6:41:20.044   JobHandler_LuaUPnP::CreateAllServices failed to create 3 <0x400>
02   12/10/11 6:41:20.067   Device_Service::MatchupUpnpServices no upnp service for urn:micasaverde-com:serviceId:Camera1 <0x400>
01   12/10/11 6:41:20.069   Device_LuaUPnP::CreateImplementations Aborting 3 because it failed to load <0x400>
01   12/10/11 6:41:20.069   JobHandler_LuaUPnP::CreateAllImplementations failed to create 3 <0x400>
01   12/10/11 6:41:25.399   FileUtils::ReadURL 0/resp:404 size 1 https://cr1.mios.com/sync_camera?PK_AccessPoint=<SNIP>&HW_Key=<SNIP>&mac=&cat=2&device=3 <0x400>
02   12/10/11 6:41:25.402   IPCamera::SyncToCMS main response 404 url https://cr1.mios.com/sync_camera?PK_AccessPoint=<SNIP>&HW_Key=<SNIP>&mac=&cat=2&device=3 <0x400>
01   12/10/11 6:41:25.741   FileUtils::ReadURL 0/resp:404 size 1 https://cr2.mios.com/sync_camera?PK_AccessPoint=<SNIP>&HW_Key=<SNIP>&mac=&cat=2 <0x400>
02   12/10/11 6:41:25.847   JobHandler_LuaUPnP::StartUPnPServices starting with /etc/cmh-ludl/ / http://192.168.1.101:49451/luaupnp.xml <0x400>
09   12/10/11 6:41:25.886   JobHandler_LuaUPnP::Run device 3  room 0 type urn:schemas-upnp-org:device:DigitalSecurityCamera:1 id  parent 0/0x7788b8 upnp: 0 <0x400>
03   12/10/11 6:41:25.905   JobHandler_LuaUPnP::Run ready 3 devices installation <SNIP> missing /etc/cmh-lu//D_DigitalSecurityCamera1.xml version *1.5.201*  allow_evt: 1 allow_ud: 1 upnp 0 changed: 0 pMem 0x7c2000 start 7753728 diff: 380928 <0x400>
02   12/10/11 6:41:27.010   ZWaveJobHandler::SetDeviceStatus XXX2 0/0/0/0 __LEAK__ this:286720 start:286720 to 0x815000 <0x803>
01   12/10/11 6:41:27.208   JobHandler_LuaUPnP::DownloadPlugin 5 failed to convert error -4: ERROR: no version relased for this pluginIz __LEAK__ this:-278528 start:8192 to 0x7d1000 <0x402>
01   12/10/11 6:41:27.209   JobHandler_LuaUPnP::DownloadFiles new plugin 5 returned 0 <0x402>


EDIT: Fixed some embarrassing typos. I apologize, this was posted before my morning coffee!
Title: Re: Problem with UI5 and IP Cameras
Post by: chixxi on December 10, 2011, 10:19:34 am
Did you realize that there are double slashes in a couple of lines:
01   12/10/11 6:41:19.947   Device_LuaUPnP::LoadDeviceDoc can't load /etc/cmh-lu//D_DigitalSecurityCamera1.xml <0x400>

Maybe the Plugin Files need to be adjusted so that the path is correct again. Could that be? Are your files actually on the vera under luup files?
Title: Re: Problem with UI5 and IP Cameras
Post by: radarengineer on December 10, 2011, 10:42:15 am
@chixxi, I did notice that, and I think it is just a typo in the error handling code? But thank you for taking a look!

"D_DigitalSecurityCamera1.xml" is not in "/etc/cmh-lu". In fact, here are all Camera related files on my Vera:

root@MiOS_<SNIP>:/# find . | grep Camera
./etc/cmh-lu/S_Camera1.xml.lzo
./www/cmh/skins/default/icons/Ip_Camera.png
./www/cmh/images/intro/IP_Camera-ON.png
./www/cmh/json_update/D_DigitalSecurityCamera1.json
./www/cmh/json_update/D_DigitalGenericCamera.json
./mios/etc/cmh-lu/S_Camera1.xml.lzo
./mios/www/cmh/images/intro/IP_Camera-ON.png
./mios/www/cmh/json_update/D_DigitalGenericCamera.json
./mios/www/cmh/json_update/D_DigitalSecurityCamera1.json
./mios/www/cmh/skins/default/icons/Ip_Camera.png
./overlay/etc/cmh-lu/S_Camera1.xml.lzo
./overlay/www/cmh/skins/default/icons/Ip_Camera.png
./overlay/www/cmh/images/intro/IP_Camera-ON.png
./overlay/www/cmh/json_update/D_DigitalSecurityCamera1.json
./overlay/www/cmh/json_update/D_DigitalGenericCamera.json
Title: Re: Problem with UI5 and IP Cameras
Post by: radarengineer on December 10, 2011, 05:25:33 pm
So I decided to revert to UI4 until UI5 became official, and I noticed that it became official right after I reverted. So I'm back to UI5.

After the UI5 reflash instead of having no D_DigitalSecurityCamera1.xml files I had two. There was one in /etc/cmh-lu and another in /etc/cmh-ludl.

I was also getting a lot of messages in my LuaUPnP log about being unable to download plugin 5. After a little digging on apps.mios.com it became apparent this was the IP camera plugin: https://apps.mios.com/plugin.php?id=5

I backed up and then removed the five files that were present in /etc/cmh-ludl. All but the "S_DigitalSecurityCameraStillImage1.xml.lzo" were present in /etc/cmh-lu/ as well.

-rw-r--r--    1 root     root         1183 Dec 10 12:48 D_DigitalSecurityCamera1.json.lzo
-rw-r--r--    1 root     root          464 Dec 10 12:48 D_DigitalSecurityCamera1.xml.lzo
-rw-r--r--    1 root     root          797 Dec 10 12:48 S_DigitalSecurityCameraSettings1.xml.lzo
-rw-r--r--    1 root     root          838 Dec 10 12:48 S_DigitalSecurityCameraStillImage1.xml.lzo
-rw-r--r--    1 root     root          231 Dec 10 12:48 S_PanTiltZoom1.xml.lzo


After this things seemed to work better. I didn't have any more messages about not being able to upgrade plugin 5 and my cameras now have a little picture on the dashboard.

A few outstanding issues:

1. I still can't add a new camera that has the same ip address as an existing camera. I have to change the ip of the existing camera, add the new camera, and then change the ip of the first camera back.

2. When manually adding a camera using the wizard it says "Or, if your camera is not on the list, paste the URL which returns a JPG file in the box below:". I think this is really wants for IP address and not the URL. On the next page it asks the same dialog is repeated, however here I think it doesn't want the entire IP just the part that follows the IP.

Glad my cameras are working again  :)
Title: Re: Problem with UI5 and IP Cameras
Post by: guest13871 on December 10, 2011, 06:52:25 pm
So I decided to revert to UI4 until UI5 became official, and I noticed that it became official right after I reverted. So I'm back to UI5.

When did UI5 become official?  I don't see an upgrade when I check.  Did I miss something or is this a mistake?
Title: Re: Problem with UI5 and IP Cameras
Post by: radarengineer on December 10, 2011, 07:28:14 pm
About five hours ago on Micasaverde's Facebook page (http://www.facebook.com/micasaverde) this was posted:

Quote
Vera2 owners, upgrade to UI5 here - http://cp.mios.com/firmware! Enjoy
Title: Re: Problem with UI5 and IP Cameras
Post by: osmosis on December 11, 2011, 09:05:06 am
With a Foscam I have a picture, but can no longer get my pan and tilt to work. I have a picture locally, remotely and via iVera iPhone app. I had pan and tilt with UI4
Title: Re: Problem with UI5 and IP Cameras
Post by: osmosis on December 11, 2011, 09:22:40 am
I also have multiple camera files. How do you access the directory to delete them

Thanks
Title: Re: Problem with UI5 and IP Cameras
Post by: radarengineer on December 11, 2011, 10:46:25 am
@osmosis, I can tell you what I did but not if it is the right thing to do! I think in generally messing around with your vera on the command line is not a good idea - especially if you are not familiar with the linux command line. But that is your call.

You will notice I didn't actually delete the files, I just moved them to another directory is case this didn't work out. It is probably a good idea to grab a copy of "/etc" with scp, but I think that is what the Vera backup file is anyway.

You will need an ssh client. I use putty on windows (free) or the built in ssh on osx/linux. For windows the first line will be slightly different, you will need to read the putty help.

From a command line on your mac:

username$ ssh root@<vera_ip_address>

It will ask for a password which is the one on the bottom of the vera.

On the vera:

root@MiOS_<SNIP>:~# cd /etc/cmh-ludl
root@MiOS_<SNIP>:~# mkdir tmp
root@MiOS_<SNIP>:~# mv D_DigitalSecurityCamera1.json.lzo tmp
root@MiOS_<SNIP>:~# mv D_DigitalSecurityCamera1.xml.lzo tmp
root@MiOS_<SNIP>:~# mv S_DigitalSecurityCameraSettings1.xml.lzo tmp
root@MiOS_<SNIP>:~# mv S_DigitalSecurityCameraStillImage1.xml.lzo tmp
root@MiOS_<SNIP>:~# mv S_PanTiltZoom1.xml.lzo tmp






Title: Re: Problem with UI5 and IP Cameras
Post by: osmosis on December 11, 2011, 03:10:51 pm
Now I can't delete the camera. I click on the trash can and it errors with command failedinvalidplugin
Title: Re: Problem with UI5 and IP Cameras
Post by: radarengineer on December 11, 2011, 04:18:35 pm
You might want to try changing the device so Vera doesn't think it is a camera?

For instance, under advanced:

device_type: urn:schemas-upnp-org:device:DimmableLight:1
device_file: D_DimmableLight1.xml

no idea if that will work but it is what I would try.
Title: Re: Problem with UI5 and IP Cameras
Post by: cedriclocqueneux on December 12, 2011, 04:00:45 am
Now I can't delete the camera. I click on the trash can and it errors with command failedinvalidplugin

I have the same problem since the upgrade :(
Title: Re: Problem with UI5 and IP Cameras
Post by: mcvflorin on December 12, 2011, 06:38:03 am
It was *mostly* working well. My mochad plugin and the Denon plugin which I have been working on with dfad1469 and zoot1612 were both slightly modified by Micasaverde and put into the app store.

I am responsible for updating the plugins to be compatible with UI5. I tested most of them and they should work. What issues did you find with those two plugins?

After I removed the webcam the new webcams did not work - it seems like my vera is missing D_DigitalSecurityCamera1.xml. It seems like vera might automatically remove "apps" that aren't needed anymore when you remove a device, perhaps this file was removed when I deleted the existing webcam?

Cameras don't require a plugin anymore, because the files have been included in the "core" MiOS files. They are in /etc/cmh-lu.

I had a second problem - I couldn't add an IP camera if there was another webcam with the same IP address.

I tested this and it works, but the cameras must be on different ports. Indeed, if you have 2 cameras with the same IP and on the same port, one of the camera devices is deleted.

Quote from: radarengineer
I was also getting a lot of messages in my LuaUPnP log about being unable to download plugin 5.

We will look into this.
Title: Re: Problem with UI5 and IP Cameras
Post by: radarengineer on December 12, 2011, 11:17:52 pm
With the pre-228 UI5 plugins seemed to be working for me (I upgraded first with the vera3 page link that someone had posted, and then again when I realized that wasn't the official UI5 for Vera2). I didn't test them all but I did install the google weather plugin from the app store and it worked great. I should probably mention that at the time I already had a google weather device, so I ended up with two (one old one from the app install) but they both worked.

Now the google weather App doesn't work for me. It doesn't create any child devices or do anything. I can't seem to get any plugin to work. To be fair I haven't had much time the past few days so I haven't tried very hard.

With the mochad plugin I get pages of this in my log:

01   12/12/11 20:58:30.997   luup_io_write NULL port 0x7ec268 size 1 <0x402>
01   12/12/11 20:58:30.999   luup_io_write NULL port 0x7ec268 size 1 <0x402>
01   12/12/11 20:58:31.031   luup_io_write NULL port 0x7ec268 size 1 <0x402>
01   12/12/11 20:58:31.032   luup_io_write NULL port 0x7ec268 size 1 <0x402>
01   12/12/11 20:58:31.033   luup_io_write NULL port 0x7ec268 size 1 <0x402>


It seems like my "local ipPort = 1099" is being ignored in L_Mochad1.lua?

With the Denon plugin, in the GUI:

Denon Receiver (AVR) via RS232/Ethernet [11] : Lua Engine Failed to Load

And the log:

02   12/12/11 21:09:48.788   JobHandler_LuaUPnP::StartPlugins Energy STARTED <0x400>
01   12/12/11 21:09:48.854   LuaInterface::LoadCode: [string "local socket = require("socket")..."]:384: '=' expected near 'SInputSelection1_InputSelection1_Input1_run' <0x400>
01   12/12/11 21:09:49.042   Device_Interface::CreateLuaInterface 11 failed to start engine <0x400>
02   12/12/11 21:09:49.205   JobHandler_LuaUPnP::StartUPnPServices starting with /etc/cmh-ludl/ / http://192.168.1.101:49451/luaupnp.xml <0x400>
09   12/12/11 21:09:49.334   JobHandler_LuaUPnP::Run device 11 Denon Receiver (AVR) via RS232/Ethernet  room 0 type urn:schemas-denon-com:device:receiver:1 id  parent 0/0x7a1ae8 upnp: 0 <0x400>


The "local socket = require("socket")" is the first line in the Denon Lua file.
Title: Re: Problem with UI5 and IP Cameras
Post by: osmosis on December 13, 2011, 12:06:34 am
After hours of not being able to remove a camera. I assigned a camera to a parent and was finally able to delete it. However I am back to square 0 as I now have no camera and it can no longer find the camera. The camera was running fine for 6 months with UI4 and now broken by the update. I have rebooted the vera, rebooted the camera. Restarted everything electronic in the house with no joy. I also have multiple copies of the same file name when I go to apps - develop LUUP files. Is there any way to remove the extra files? The only good thing is that I do not have to go to the Gym this week as I have gone up two flights of stairs, down two flights and then back up 4 flights more times than I can count.  My hope that - just one more restart - would fix it never materialized. The cam is a Foscam, which was using the modified XML file for pan and tilt, all of which worked fine.
Title: Re: Problem with UI5 and IP Cameras
Post by: cedriclocqueneux on December 13, 2011, 05:33:53 am
Same problem here :(
I have deleted all my cameras with your tips, but now i can't add cameras anymore :/

Sometimes i can see the message download plugin 7 and download plugin 188. I don't know what plugin it is, but Vera is very slow with theses messages.
Title: Re: Problem with UI5 and IP Cameras
Post by: radarengineer on December 13, 2011, 08:56:54 am
@osmosis, you are seeing two copies because there is a copy in /etc/cmh-lu and another in /etc/cmh-ludl. From what I understand if you go and "download" the files in Vera you will download the ones in /etc/cmh-ludl. Also, those are the ones that Vera is probably using now, but you want to Vera to use the ones in /etc/cmh-lu which are the official / newer copies that come with UI5. I would probably download a copy of the files through vera (as a backup) and then follow my instructions in reply #8 on this thread to remove the copy in /etc/cmh-ludl.

@cedriclocqueneux, plugin #7 is the pluggin for the Panasonic IP Camera with Pan/Tilt/Zoom (http://apps.mios.com/plugin.php?id=7) and plugin #188 is the SQ Remote iPhone (http://apps.mios.com/plugin.php?id=188).

My best guess is that these are plugins which have not yet been updated to UI5 but Vera is trying to download the UI5 updated versions? For me, with plugin #5, removing the plugin related files from /etc/cmh-ludl got rid of the message. Hopefully someone else can chime in with a solution that doesn't involve ssh'ing into Vera?
Title: Re: Problem with UI5 and IP Cameras
Post by: mcvflorin on December 13, 2011, 09:16:39 am
When upgrading from UI4 to UI5 all the existing plugins are updated from apps.mios.com. But in UI5, the Generic IP Camera Plugin doesn't exist anymore, so when MiOS tries to update it, it can't find it, that's why you see that error. Uninstalling the camera plugin should fix this.
Title: Re: Problem with UI5 and IP Cameras
Post by: cedriclocqueneux on December 13, 2011, 09:22:14 am
Ok. But the plugin is not in the installed apps list, so how can we uninstall it ? It seems that the only solution is to delete some files with ssh connection, but what files ?
Title: Re: Problem with UI5 and IP Cameras
Post by: mcvflorin on December 13, 2011, 09:57:09 am
Use this code to delete the camera files. Go to Apps >> Develop Apps >> Test Luup Code (Lua) and run the code.

Code: [Select]
local PATH = "/etc/cmh-ludl/"
local FILES = { "S_DigitalSecurityCameraSettings1.xml.lzo", "S_DigitalSecurityCameraStillImage1.xml.lzo", "S_PanTiltZoom1.xml.lzo",
                "D_DigitalSecurityCamera1.json.lzo", "D_DigitalSecurityCamera1.xml.lzo", "I_PanasonicPTZ.xml.lzo" }

for i, fileName in ipairs(FILES) do
    local file = PATH..fileName
    os.execute("rm "..file)
    luup.log("Deleted '"..file.."' (file "..i.."/"..#FILES..").")
end
Title: Re: Problem with UI5 and IP Cameras
Post by: cedriclocqueneux on December 13, 2011, 05:02:02 pm
This code doesn't work, because files have extension .lzo (xml.lzo, json.lzo, etc...).
But i deleted theses files, now i can add camera.
I have a last problem: i have a little converter that convert 4 analog camera into IP. I can access theses 4 cameras with adress like

http://192.168.2.40:81/usr/yoics1.jpg
http://192.168.2.40:81/usr/yoics2.jpg
http://192.168.2.40:81/usr/yoics3.jpg
http://192.168.2.40:81/usr/yoics4.jpg

On UI4, it worked fine, but in UI5 it seems i can't add more than 1 camera with the same adresse :( It's really a problem for me, is it possible to delete this limitation ?
Title: Re: Problem with UI5 and IP Cameras
Post by: osmosis on December 13, 2011, 05:48:15 pm
Use this code to delete the camera files. Go to Apps >> Develop Apps >> Test Luup Code (Lua) and run the code.

Code: [Select]
local PATH = "/etc/cmh-ludl/"
local FILES = { "S_DigitalSecurityCameraSettings1.xml", "S_DigitalSecurityCameraStillImage1.xml", "S_PanTiltZoom1.xml",
                "D_DigitalSecurityCamera1.json", "D_DigitalSecurityCamera1.xml", "I_PanasonicPTZ.xml" }

for i, fileName in ipairs(FILES) do
    local file = PATH..fileName
    os.execute("rm "..file)
    luup.log("Deleted '"..file.."' (file "..i.."/"..#FILES..").")
end

This didn't net me anything, But I will attempt to SSH in and delete.
Title: Re: Problem with UI5 and IP Cameras
Post by: radarengineer on December 13, 2011, 11:42:06 pm
@cedriclocqueneux, I had the same problem. The workaround I used is I added the first camera (http://192.168.2.40:81/usr/yoics1.jpg), then enter its settings and change its IP to something that no other devices are using. Repeat for all cameras, making sure after they are added you assign them to different unused IPs. I have four cameras as well that have duplicate IPs/ports and they work fine once I installed them.

After all cameras are added you can go back and fix the IPs in settings. It is only when adding a device that the IP conflict seems to matter.

@osmosis, as @cedriclocqueneux mentioned you that code fragment from @mcvflorin is missing the ".lzo". So "S_DigitalSecurityCameraSettings1.xml" should be "S_DigitalSecurityCameraSettings1.xml.lzo", etc. You could try changing adding that extension and rerunning if you don't want to ssh in.  Personally I find ssh easier, although I know that micasaverde doesn't provide support if you have gone in and changed things with ssh (until you reflash I think?) which is reasonable as I if you don't know what you are doing you can mess things up pretty easily.

Title: Re: Problem with UI5 and IP Cameras
Post by: mcvflorin on December 14, 2011, 12:56:42 am
I corrected the code by adding .lzo at the end.
Title: Re: Problem with UI5 and IP Cameras
Post by: cedriclocqueneux on December 14, 2011, 02:36:28 am
@cedriclocqueneux, I had the same problem. The workaround I used is I added the first camera (http://192.168.2.40:81/usr/yoics1.jpg), then enter its settings and change its IP to something that no other devices are using. Repeat for all cameras, making sure after they are added you assign them to different unused IPs. I have four cameras as well that have duplicate IPs/ports and they work fine once I installed them.

After all cameras are added you can go back and fix the IPs in settings. It is only when adding a device that the IP conflict seems to matter.

Thanks for the tip, i can now see all my cameras, with the new configuration :D
Title: Re: Problem with UI5 and IP Cameras
Post by: farazy on March 20, 2012, 01:07:10 pm
@mcvflorin,
the ui5 add camera wizard doesnt allow folks to mention the camera's listening port, everyone I know who have cameras on there home network have them on non-standard(i.e. non 80) ports, where as your wizard assumes the camera to be listening on port 80, you need to add one more screen/transition to your "add camera wizard,
which is when you do not get a response from the ip that the user selects (by clicking on "add manually") you should ask the user

"is your camera configured to listen on a non-standard port? what is that port"

this way the add camera interface remains simple by not showing that screen to people with standrad ports yet is flexible enough to work with non-standard port, this will really address most camera issuess.
Title: Re: Problem with UI5 and IP Cameras
Post by: garrettwp on March 20, 2012, 01:32:44 pm
You can specify the port after the ip address. e.g. 192.168.0.123:8123

- Garrett
Title: Re: Problem with UI5 and IP Cameras
Post by: farazy on March 20, 2012, 02:51:10 pm
Garett,
the wizard I am talking about does'nt let you enter the ip address only,
it either lets you select an ipaddress from a list or
asks you to enter the full picture grabbing camera specific url,
most folks might know the port, but not the device specific url, since mios already has that url knowledge so just letting add edit the port info will be very useful,

Faraz 
Title: Re: Problem with UI5 and IP Cameras
Post by: oTi@ on March 21, 2012, 12:29:38 am
@farazy,

Welcome!

[...]everyone I know who have cameras on there home network have them on non-standard(i.e. non 80) ports, [...]
I got mine all on 80. :) Also, as far as I'm aware, Vera did not support remote streaming for ports other than 80 with UI4. Haven't checked for UI5.
Title: Re: Problem with UI5 and IP Cameras
Post by: mcvflorin on March 21, 2012, 05:01:10 am
@farazy
We are aware of that and it's on our TODO list for the near future.
Title: Re: Problem with UI5 and IP Cameras
Post by: HouseBot on April 20, 2012, 01:46:13 pm
With the tips I managed to remove 1/4 cameras. But there is still 2 cameras left that gives me the "Command failedInvalid plugin". What to try next?
Title: Re: Problem with UI5 and IP Cameras
Post by: Brientim on April 20, 2012, 03:31:04 pm
Try add a parent in the advance tab, any device is fine. Save. After Lua restarts try to delete them.
Title: Re: Problem with UI5 and IP Cameras
Post by: HouseBot on April 23, 2012, 06:09:20 am
Thanks! I added them to "zwave" and after saving they are gone. No need to even delete them.
Can you elaborate a little what this parent function does since I have not used it?
Title: Re: Problem with UI5 and IP Cameras
Post by: mcvflorin on April 23, 2012, 06:24:59 am
Usually the parent device handles the action implementations of its children. Also, when the parent device is deleted, the child devices are deleted too. The reason those devices disappeared when you set their parent to be Z-Wave is that they were invalid Z-Wave devices, so they couldn't be controlled by the Z-Wave controller.

Changing the parent of a device can be dangerous and I don't recommend it, unless you know what you are doing. There were several cases in which users changed the parent of a device and created parent -> child loops: device A controls device B, device B controls device A. This causes LuaUPnP to crash at startup.
Title: Re: Problem with UI5 and IP Cameras
Post by: blacey on August 24, 2012, 01:22:16 am
I ran the recommended lua to remove the files from the /etc/cmh-ludl directory however I still get the plugin 188 error on my Vera 3, upgraded via restore from a Vera 2.  I noticed that the plugin is also installed in the /etc/cmh-lu:

Code: [Select]

root@MiOS_30003842:/etc/cmh-lu# ls -l *DigitalSecurity* *Pana*
ls: *Pana*: No such file or directory
-rw-r--r--    1 root     root          1719 Jun 29 00:02 D_DigitalSecurityCamera1.json.lzo
-rw-r--r--    1 root     root           474 Jun 29 00:02 D_DigitalSecurityCamera1.xml.lzo
-rw-r--r--    1 root     root          2112 Jun 29 00:02 D_DigitalSecurityCamera2.json.lzo
-rw-r--r--    1 root     root           533 Jun 29 00:02 D_DigitalSecurityCamera2.xml.lzo
-rw-r--r--    1 root     root           797 Jun 29 00:02 S_DigitalSecurityCameraSettings1.xml.lzo
-rw-r--r--    1 root     root           838 Jun 29 00:02 S_DigitalSecurityCameraStillImage1.xml.lzo

Should I also remove those plugin files?

Here are the relevant log statements that show the plugin error:

Code: [Select]

09        08/23/12 22:10:09.861        JobHandler_LuaUPnP::Run device 1 ZWave room 0 type urn:schemas-micasaverde-com:device:ZWaveNetwork:1 id  parent 0/0x77ecf0 upnp: 0 <0x2b314000>
03        08/23/12 22:10:09.868        JobHandler_LuaUPnP::Run ready 35 devices installation 30003842 missing plugin version *1.5.408*  allow_evt: 1 allow_ud: 1 upnp 0 netpnp: 1 reprovision: 0 changed: 0 pMem 0xa87000 start 7753728 diff: 3284992 <0x2b314000>
01        08/23/12 22:10:10.879        JobHandler_LuaUPnP::DownloadPlugin 188 failed to convert error -4: ERROR: no version relased for this plugin <0x2bc47680>
01        08/23/12 22:10:10.880        JobHandler_LuaUPnP::DownloadFiles new plugin 188 returned 0 <0x2bc47680>
06        08/23/12 22:10:11.101        Device_Variable::m_szValue_set device: 27 service: urn:micasaverde-com:serviceId:InsteonNetwork1 variable: NetStatusID was: 5 now: 1 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2ba47680>
06        08/23/12 22:10:11.101        Device_Variable::m_szValue_set device: 27 service: urn:micasaverde-com:serviceId:InsteonNetwork1 variable: NetStatusText was: Configuring INSTEON PLM now: OK #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2ba47680>
02        08/23/12 22:10:11.102        ZWaveJobHandler::SetDeviceStatus XXX2 0/0/0/0 <0x2ba47680>
01        08/23/12 22:10:11.689        JobHandler_LuaUPnP::DownloadPlugin 188 failed to convert error -4: ERROR: no version relased for this plugin <0x2bc47680>
01        08/23/12 22:10:11.689        JobHandler_LuaUPnP::DownloadFiles new plugin 188 returned 0 <0x2bc47680>
09        08/23/12 22:10:12.105        ZWaveJobHandler::FindCustomDeviceType node 10/0 has custom 2018 file D_ComboDevice1.xml class ZWaveMultiEmbedded desc _3-in-1 sensor <0x2ba47680>
09        08/23/12 22:10:12.106        ZWaveJobHandler::FindCustomDeviceType node 10/1 has custom 2019 file D_MotionSensor1.xml class  desc  <0x2ba47680>
Title: Re: Problem with UI5 and IP Cameras
Post by: Brientim on August 24, 2012, 03:44:38 am
I ran the recommended lua to remove the files from the /etc/cmh-ludl directory however I still get the plugin 188 error on my Vera 3, upgraded via restore from a Vera 2.  I noticed that the plugin is also installed in the /etc/cmh-lu:

Hello blacey

Plugin 188 does not cause any issue and is benign. Do you use automator.app?

Run the command below in your browser
http://<Vera_IP>/port_3480/data_request?id=user_data&output_format=xml
From within the browser do a find and search for [ plugin="188" ] this will enable you to identify the invisible device id
Run the command below in your browser to delete the device and this will stop it requesting download
http://<Vera_IP>:3480/data_request?id=device&action=delete&device=<device_ID>

Replace the two elements below with details of your system
<Vera_IP>
<device_ID>

If you connect to your Vera using automator.app you may see this reoccurring and as previous stated, it will not cause any issues with your unit and there is no reason for concern.
Title: Re: Problem with UI5 and IP Cameras
Post by: hmspain on December 20, 2014, 02:16:49 pm
I ran the recommended lua to remove the files from the /etc/cmh-ludl directory however I still get the plugin 188 error on my Vera 3, upgraded via restore from a Vera 2.  I noticed that the plugin is also installed in the /etc/cmh-lu:

Hello blacey

Plugin 188 does not cause any issue and is benign. Do you use automator.app?

Run the command below in your browser
http://<Vera_IP>/port_3480/data_request?id=user_data&output_format=xml
From within the browser do a find and search for [ plugin="188" ] this will enable you to identify the invisible device id
Run the command below in your browser to delete the device and this will stop it requesting download
http://<Vera_IP>:3480/data_request?id=device&action=delete&device=<device_ID>

Replace the two elements below with details of your system
<Vera_IP>
<device_ID>

If you connect to your Vera using automator.app you may see this reoccurring and as previous stated, it will not cause any issues with your unit and there is no reason for concern.

Brilliant advice, thank you!