Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Power shortage detection


Question

Posted

Do you have any tip how to detect power shortage in HC2? My HC2 as well as router is connected to UPS. I have Aeon power meter and I thought that this will report 0 W, but when there is no power, Aeon meter is dead and last reported value will stay. Now Im looking for som patter how to detect power cut to be able to send notification about this to email. 

Thanks for any tip. 

14 answers to this question

Recommended Posts

  • 0
Posted

That question is already asked here:

 

Please login or register to see this link.

 

Please check.

  • 0
Posted

Why not power the aeon power meter (or similar device) via the UPS - you will get your 0 W reading.

  • 0
  • Inquirer
  • Posted

    I was thinking of kind a mathematical algorithm. EG If the readings do not change in time, its obvious signal that there is power cut. Aeon meter provides every reading slightly different value (eg 111,5 112,1 111,3 ....). But I dont know how to store this readings in time and do the calculation with them. Any tip for lua function how to store reading 1 to A reading 2 to B and reading 3 to C and than do calculation (A+B+C)/3xA and than start from beginning?

    • 0
    Posted

    I posted this in the topic Sancotronic mentioned, but probably after you read that topic:

    Somewhat related I think: I once was asked if it was possible to detect if a command to a device succeeds and I wrote some demo code for it...

    Please login or register to see this link.

    • 0
    Posted

    Do you have any tip how to detect power shortage in HC2? My HC2 as well as router is connected to UPS. I have Aeon power meter and I thought that this will report 0 W, but when there is no power, Aeon meter is dead and last reported value will stay. Now Im looking for som patter how to detect power cut to be able to send notification about this to email. 

    Thanks for any tip. 

    I'm using probably the stupidest idea, but it fail-safe and works excellent for me.

    I have vision security door sensor with external IN. (same functionality has Fibaro door sensor as well) The external input connected to relay (close state) and  powered by AC. In case of power outage the relay contacts opening and sensor changes the state as any other sensor. Since the door sensor powered by battery there is no communication loss.

     

    If you're interesting in this solution I can post the diagram of wires connection.

    • 0
  • Inquirer
  • Posted

    Guys, thanx for your tips. I was looking for kind of no hardware solution with existing setup. I will try petergebruers code. Anybody knows how to approach the calculation method? How to store 3 measurements in time and than do calculation?     

    • 0
    Posted

    Hi Igy,

    What brand and type of UPS system are you using?

    • 0
  • Inquirer
  • Posted

    Just the basic APC one. No usb connection to NAS.

    • 0
    Posted

    Just the basic APC one. No usb connection to NAS.

    There is a large range of baisc UPS systems. Do you know the model. 

    It's on the sticker at the back site.

    • 0
  • Inquirer
  • Posted

    APC Back-UPS 650VA (BX650LI)

    • 0
    Posted

    APC Back-UPS 650VA (BX650LI)

    That's basic, as far as I know it doesn't have any communication port.

    You will need an other device to detect mains presence, or the code solution from petergebruers..

    • 0
    Posted

    Do you have any device on your local internet connected to the power.

    In this case you just need to send any HTTP command to receive response (like Smart TV and etc.)

     

    Another question, when you have power outage, do you have an access to the internet ?I know you said the router is connected to UPS as well, but is your router has modem?

     

    By the way before I did this door sensor solution I have used to take an advantage on HC2 dead devices list, in case there are a lot of them (in my case over 6 dead devices) then I assumed there is a power outage - it worked fine and had accuracy of 99.9% to identify the power failure. 

    • 0
  • Inquirer
  • Posted

    OK so today I had time to play with it for a while. I ended with this simple code:

    Please login or register to see this code.

    Only one question. If there is power cut, power meter will not trigger the scene. How to simply trigger the scene for e.g. every minute? 

    • 0
    Posted

    nodon smartplug?

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...