Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Hardware
 PowerHome Messageboard : PowerHome Hardware
Subject Topic: cURL, Hue lights, and SimpliSafe API Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Resolute
Newbie
Newbie
Avatar

Joined: January 11 2016
Online Status: Offline
Posts: 32
Posted: February 02 2016 at 22:01 | IP Logged Quote Resolute

In case anyone is interested, I have found it easy to integrate both my Hue lights as well
as get the state of my wireless security system to trigger events/states in the PH system using a windows
SSL version of cURL to post/get JSON data.

Example 1: Use cURL via WSH hidden spawned processes to read the current state of SimpliSafe security
system, turning my outside cameras capturing function on/off (using Contacam) based on time of day and
system state (home, away, off, etc.). Lots more to explore here, but my primary goal was to get those
outdoor cameras turned off automatically just by turning off my security system.

Example 2: Use cURL via hidden wsh spawned processes to control and monitor the status/brightness/color of
all of my Hue lights (actually any Zigbee based smartbulbs) via the Hue bridge. It polls every 10 minutes
to keep the status updated in the event that the lights are controlled conventionally using Hue apps or
the Hue wall dimmers. Of course dimming, scenes, and groups can be controlled using PH as well.

Powerhome thinks the lights are X10 devices, but light states are updated using direct ph_xxx & ph.xxx
functions, allowing the use of the states in the control center and device status screens. The only real
X10 devices I have are the numerous motion sensors around the outside of the house monitored via a
W800RF32 receiver (great coverage) and a universal relay to control the garage door (my only powerline
device).

Also of use (totally integrated with PH, GREAT feature) is the socket based RemoteCC. Using a small
windows tablet mounted on the wall, it works as a great wireless control pad.

I'm sure that others have accomplished similar configs, but there is nothing I could find in the forums
that explain anything about these types of use, so I'd be glad to share what I have done with others in
the hope that others would share/improve/advise me, especially in the scope of services using open APIs to
integrate into PH.
Back to Top View Resolute's Profile Search for other posts by Resolute
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: February 03 2016 at 07:31 | IP Logged Quote smarty

Glad you are having good success! Also sounds like your a "programmer type"....I am only a hack :)

I too use a version of cURL to read my Wi-Fi Radio Thermostat information in PH. Hence my prior feature request to run a shell window silently (thanks for your input there).

Curious to see what more folks like you can come up with....especially as it relates to Amazon Echo, IFTTT and PH integration.

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: February 03 2016 at 08:14 | IP Logged Quote BeachBum

I too second Amazon Echo..... Dave has shown some interest in it but have not heard anything recently.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum