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


Question

Posted

Is it possible in some way to shutdown HC2 ? I have info from UPS that battery is almost done, so I would like to shutdown HC2 in nice way.

8 answers to this question

Recommended Posts

  • 0
Posted

i thought there was a script somewhere on this forum?

  • 0
  • Inquirer
  • Posted

    I found script based on os.execute() which is no more available.

    • 0
    Posted

    Create a single button VD with this code, where 192.xxx.xxx.xxx is the ip address of your HC2.

    Please login or register to see this code.

    then create a scene to press the button, where the id of the vd is replaced by vd_id below:

    Please login or register to see this code.

    Finally, I use the scheduler written by robmac to schedule the reboot once a week.

    • 0
  • Inquirer
  • Posted

    I found that, I just want to shutdown - in my small village sometimes I don't have power for few hours, so I need to shutdown HC2, not restart.

    • 0
    Posted

    +1

     

    I need that solution, too...

    • 0
    Posted

    Hmmm... get a UPS 

    Please login or register to see this image.

    /emoticons/default_icon_razz.gif" alt=":-P" />

    • 0
    Posted

     

    Hmmm... get a UPS

    great advice

    Please login or register to see this image.

    /emoticons/default_icon_razz.gif" alt=":-P" />

     

    but what should I do when UPS will be discharged?

    • 0
    Posted (edited)

    To shutdown the HC2 gracefully you can use   HomeCenter.SystemService.shutdown(); 

    and for restart you can use  HomeCenter.SystemService.reboot();

    Requirements

    • Fibaro Home Center 2 updated to 4.081 software version or higher
    Edited by grimy112

    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...