How to use PLEG to invoke HTTP command

I have trying to find a solution to a setup.

My setup will be I will have an IP Camera that can send HTTP commands based on motion. I then want it to turn on backdoor patio lights.

I want to use the Camera Motion Detection to be like my PIR.

I know the command to run and it calls a scene and executes fine.

http://192.168.xxx.XXX:xxxx/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=55”

I need to add logic so it runs on a schedule after sunset and before sunrise.

Can someone give me an example how to set this up as i do not see an option for scenes in PLEG under Triggers or Conditions.

Get the camera to toggle a virtual switch instead.

Use the virtual such as a pleg trigger.

Agree - there are threads about how to setup a virtual motion detector using http from a camera.