Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: How to get EZFlora Valve status Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
veropierre
Groupie
Groupie
Avatar

Joined: May 06 2009
Location: United States
Online Status: Offline
Posts: 47
Posted: May 22 2009 at 19:57 | IP Logged Quote veropierre

Thank to this forum I was able to install and create all macros to automatically water the lawn, flowers and garden with all stop, timed start etc... great

Now I would like to create a macro to get valves status...

I tried and read and reread the 'manual'.
Any thoughts?
Thanks.
Back to Top View veropierre's Profile Search for other posts by veropierre Visit veropierre's Homepage
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: May 22 2009 at 20:20 | IP Logged Quote grif091

The Irrigation Controller Command Set (SimpleHomeNet Downloads section) describes the cmd1 0x44 cmd2 0x02 combination to “Get Valve Status”.

__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: May 25 2009 at 11:41 | IP Logged Quote dhoward

This formula will return the current valve status as a value from 0 to 8. A value of 0 means off with 1 thru 8 (0 - 7) representing the current valve that is on.

Code:
ph_setvar_a(1,1,ph_insteonwithret("EZRAIN ID",68,2)) + if(ph_and(ph_getvar_n(1,1),128) = 128,ph_and(ph_getvar_n(1,1),7) + 1,0)


Be sure and replace the "EZRAN ID" with the ID of your EZRAIN device.

HTH,

Dave.


Edited by dhoward - May 25 2009 at 11:42
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 

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