Created
November 17, 2018 22:04
-
-
Save swilson/feb8633d1d4fcbe1bad5ca9b6432614f to your computer and use it in GitHub Desktop.
Home Assistant switch to toggle Foscam IR lights
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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