Iphone as camera

No problem. Here they are (from this thread)

switch:
  - platform: command_line
    switches:
      camera_torch:
        friendly_name: Torch
        command_on: 'curl http://<ipaddress>/parameters?torch=1' 
        command_off: 'curl http://<ipaddress>/parameters?torch=0'
      camera_flip:
        friendly_name: Flip Camera
        command_on: 'curl http://<ipaddress>/parameters?flip=1' 
        command_off: 'curl http://<ipaddress>/parameters?flip=0'

camera:
  - platform: mjpeg
    name: iPhone4
    mjpeg_url: http://<ipaddress>/live

Depending on which app you used, these may or may not work for you. But they should at least give you some ideas.