Skip to content

Instantly share code, notes, and snippets.

@swilson
Created November 17, 2018 22:04
Show Gist options
  • Save swilson/feb8633d1d4fcbe1bad5ca9b6432614f to your computer and use it in GitHub Desktop.
Save swilson/feb8633d1d4fcbe1bad5ca9b6432614f to your computer and use it in GitHub Desktop.
Home Assistant switch to toggle Foscam IR lights
switch:
- platform: command_line
switches:
front_door_camera_ir:
command_on: 'curl -k "https://192.168.1.XXX:443/cgi-bin/CGIProxy.fcgi?cmd=openInfraLed&usr=XXX&pwd=XXX"'
command_off: 'curl -k "https://192.168.1.XXX:443/cgi-bin/CGIProxy.fcgi?cmd=closeInfraLed&usr=XXX&pwd=XXX"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment