Resolute Newbie
Joined: January 11 2016
Online Status: Offline Posts: 32
|
Posted: February 02 2016 at 22:01 | IP Logged
|
|
|
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.
|