Author |
|
renard Groupie
Joined: November 01 2009 Location: United States
Online Status: Offline Posts: 74
|
Posted: September 21 2014 at 11:29 | IP Logged
|
|
|
With Dave's help I have a small 1-Wire network operating along with my large Insteon system. I have a number of triggers operating to detect temperature conditions I want to react to but I would like to determine the value of the 1-Wire analog sensors that have triggered changes. The value are visible on the Device Status screen. I have looked at the various ph-get analog functions but I believe they are for Elk devices and the syntax is wrong for the 1-Wire structure in ph.
If this is left for future development, that is fine, no rush. I was just wondering of there is a way to do it now.
Having the ability to have ph make programmed decisions about 1-wire derived analog values would be very useful. I am fooling around with using photo-electic cells (voltage measurement) controlling blinds and Insteon dimming to generate a constant level of light in a room regardless of time of day and sun angle. I live in the Southwest where the sun is very intense and I am getting too old to keep getting up and down all the time to make adjustments.
__________________ Terry
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: September 29 2014 at 14:02 | IP Logged
|
|
|
Terry,
Sorry to take so long on updating this post.
You should be able to retrieve your 1-wire values by using the ph_getanalog or ph_getanalogcalcstat functions (they work for all Analog devices not just the Elk).
The ph_getanalog will go the actual controller of the device (you supply the PowerHome ID of the analog device) and cause it to query for the current value. The ph_getanalogcalcstat function does not go to the controller and instead just retrieves the value that already exists in the database. Since the 1-wire controller is actively polling and updating the database, the ph_getanalogcalcstat function would be the most appropriate.
Let me know if you have any problems with it.
Dave.
|
Back to Top |
|
|
renard Groupie
Joined: November 01 2009 Location: United States
Online Status: Offline Posts: 74
|
Posted: October 04 2014 at 06:17 | IP Logged
|
|
|
Thanks Dave,
I'll give these a try.
__________________ Terry
|
Back to Top |
|
|