More intelligence direct from CCTV

Hi
I am trying to get some more intelligence interaction with my CCTV system (SecuritySpy) and have the following switch.yaml file

- platform: command_line
  switches:
    CCTV_driveway:
      command_on: 'curl -k "https://IP:8001/++ssControlMotionCapture?cameraNum=2&arm=1&auth=<redacted>"'
      command_off: 'curl -k "https://IP:8001/++ssControlMotionCapture?cameraNum=2&arm=0&auth=<redacted>"'
      command_state: 'curl -k --silent "https://IP:8001/++cameramodes?cameraNum=3&auth=<redacted>" | grep "M:" | cut -f2- -d:'
      value_template: '{{ value == "ARMED" }}'

This allows me to interactively arm and disarm the cameras and get their arm status.

However, when doing the check config, HA reports this is an invalid config. Checking the command line help page here https://www.home-assistant.io/components/switch.command_line/ it looks fine.

Can anyone help?
Thanks

Have you tried it lower case?
cctv_driveway:

1 Like

Doh! Thanks