Scene Trouble

I apologize if this is covered somewhere, but I did some searching and could not find a similar problem with a resolution.

Vera2, IU5 (1.5.346).

I have two scenes setup that control the movement of one of my Foscam cameras. In the Daytime Scene, the camera moves to a preset point and then in the Nighttime Scene it moves to a different preset. This scene has run consistently for many months and has only recently been causing problems. Specifically, the Nighttime Scene does not work consistently.

The scenes are triggered with the Virtual Switch and programmed to run LUA code to move the cameras to presets.

When I attempt to run the scenes manually they always function properly. It is only some of the times that the Nighttime Scene has issues. I am not sure how to troubleshoot this.

This evening the Nighttime Scene did not move the camera as expected. When looking at the Virtual Switch, it is in the correct state. When I look at the Vera log, I see the following:

08	06/25/12 17:30:00.010	Scene::RunScene running 7 Nighttime <0x803>
02	06/25/12 17:30:00.013	Energy::LogEnergyUsageOnServer <0x402>
02	06/25/12 17:30:00.014	Energy::LogEnergyUsageOnServer 2012-06-25 17:30:00 <0x402>
01	06/25/12 17:30:03.011	FileUtils::ReadURL 7/resp:0 size 0 http://192.168.1.200/decoder_control.cgi?command=33 <0x803>
08	06/25/12 17:30:03.012	JobHandler_LuaUPnP::HandleActionRequest device: 15 service: urn:upnp-org:serviceId:VSwitch1 action: SetTarget <0x803>
08	06/25/12 17:30:03.013	JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=0 <0x803>
06	06/25/12 17:30:03.014	Device_Variable::m_szValue_set device: 15 service: urn:upnp-org:serviceId:VSwitch1 variable: Status was: 1 now: 0 #hooks: 2 upnp: 0 v:0x821058/NONE duplicate:0 <0x803>
07	06/25/12 17:30:03.015	Event::Evaluate 5 Day scene Daytime is false repeat 0/-1 <0x803>
07	06/25/12 17:30:03.016	Event::Evaluate 6 Night scene Nighttime is true <0x803>
08	06/25/12 17:30:03.017	Scene::RunScene running 7 Nighttime <0x803>
01	06/25/12 17:30:06.011	FileUtils::ReadURL 7/resp:0 size 0 http://192.168.1.200/decoder_control.cgi?command=33 <0x803>
08	06/25/12 17:30:06.012	JobHandler_LuaUPnP::HandleActionRequest device: 15 service: urn:upnp-org:serviceId:VSwitch1 action: SetTarget <0x803>
08	06/25/12 17:30:06.013	JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=0 <0x803>

I have rebooted the Vera and the camera and that has not resolved the issue.

Any thoughts?

Thanks in advance for any insight.

Hi,

In this line:

FileUtils::ReadURL 7/resp:0

7 is the curl return code, and 0 is the HTTP status code. 7 means CURLE_COULDNT_CONNECT. This tells me that your camera was not accessible when the scene ran.

mcvflorin,

Thank you. That is helpful.