rpitera
(Robert Pitera)
January 15, 2017, 5:12pm
6
You could do a command line switch and use CURL.
I was looking into this myself to automate my Foscam and turn off the IR at night (It faces a window making IR useless, but I can’t permanently turn it off) but I didn’t go that far with it.
In the bookmarks folder I have for this project I have these threads; presumably to figure out curl usage. It may help.
Okay. Due to the implementation of shell_command, I can’t think of any possibility of passing parameters to a command_shell service.
So, I’ve came up with a solution.
Let’s start with ~/shell_scripts/setlightgroup:
#!/bin/bash
HA_PHUE_HOST="philipshue1"
HA_PHUECONF=~/.homeassistant/phue.conf
HA_PHUEAPIKEY=$(cat $HA_PHUECONF | awk '{print $3}' | sed -e 's/\"//g' -e 's/}//g');
num='^[0-9]+$'
if ! [[ $1 =~ $num ]]; then
echo "Not a number." &>2
exit 1
fi
if [ -z "$2" ]; then
echo "Pl…
I had a Foscam camera setup but decided to buy 3 Amcrest cameras. Here is my configuration for the one Amcrest cameras I have set up. I am making this page look just like the Foscam page located here so that hopefully Home-Assistant adds it to their website. Which btw, the link to the PDF is broken (change it to this please!).
Since there is no component for Amcrest yet and the Foscam component doesn’t work with Amcrest, you have to use the mjpeg component like this:
camera:
platform: mjpeg
…
1 Like