Jump to content


Photo
- - - - -

Test for current AC power status


  • Please log in to reply
1 reply to this topic

#1 sixburg

sixburg

    Cocooner

  • Registered
  • PipPip
  • 19 posts

Posted 25 March 2015 - 04:28 PM

Hello All...

Is there a way to test for the current status of AC power?  I need a rule to test whether or not AC is currently active before the rule is executed.  For example:

 

Whenever sunset

AND AC Power is OK

THEN do something

 

It is important that the task does not execute when AC is down even though the Elk is running on battery backup. 

 

Thanks for your help.



#2 sda

sda

    Dedicated Cocooner

  • Registered
  • PipPipPip
  • 451 posts
  • Location:California & Oregon, USA

Posted 25 March 2015 - 05:51 PM

whenever sunset

  and ac failure trouble exists

 

As an 'and' clause, it doesn't look like you can't check for AC is OK.

 

Of course by saying 'whenever sunset' its not going to do much good if the AC fails between sunset and sunrise as it won't be detected.  That rule is only executed once a day at sunset, and that may be your intent.

 

Creative use of rules and pseudo outputs as flags may get you what you want.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users