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

Automatyczny restart HC2


wiesiekr

Question

11 answers to this question

Recommended Posts

  • 0
Guest damian

W scenie nie da się wykorzystać FHttp, więc musimy zrobić to w VD. Stworzyłem urządzenie z przyciskiem, a w przycisku LUA:

Please login or register to see this code.

Do tego stworzyłem prostą scenę bloczkową, która o określonej godzinie w nocy "klika" przycisk na VD.

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" />

Link to comment
Share on other sites

  • 0

Od wersji 4.081 jest coś takiego:

 

Function name must be always the same: HomeCenter.SystemService.reboot()

Requirements
  • Fibaro Home Center 2 updated to 4.081 software version or higher
Application

Reboots system.

Parameters

None

Returned values

None

Code example
  • -- Reboot system
  •     HomeCenter.SystemService.reboot();
Link to comment
Share on other sites

  • 0
Guest damian

O...

Please login or register to see this image.

/emoticons/default_icon_smile.gif" alt=":-)" />

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Od wersji 4.081 jest coś takiego:

     

    Function name must be always the same: HomeCenter.SystemService.reboot()

    Requirements

    • Fibaro Home Center 2 updated to 4.081 software version or higher
    Application

    Reboots system.

    Parameters

    None

    Returned values

    None

    Code example

    • -- Reboot system
    •     HomeCenter.SystemService.reboot();

    Dla mnie to czarna magia to o czym piszesz.

    Link to comment
    Share on other sites

    • 0

    Please login or register to see this link.

    Utwórz scenę i wstaw tam funkcje:

     

    HomeCenter.SystemService.reboot();

     

    uruchom scenę i system powinien się zrestartować.

    Link to comment
    Share on other sites

    • 0

    Damian myślę że fibaro czytało twoje posty i postanowiło ułatwić sprawę (chociaż tyle), musze Ci powiedzieć ze i ja zaczerpnąłem twojego pomysłu.

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Link to comment
    Share on other sites

    • 0
    Guest damian

    Cieszę się, że ich inspiruję!

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Stworzyłem UV z jednym przyciskiem lecz nie działa mi restart HC2, co jest nie tak ?

     

    HC2 = Net.FHttp("127.0.0.1",11111);= Net.FHttp("127.0.0.1",11111);
          response, status, errorCode = HC2:POST("/api/settings/reboot", "data=reboot");, status, errorCode = HC2:POST("/api/settings/reboot", "data=reboot");
     
          if errorCode == 0 if errorCode == 0 
            thenthen
              fibaro:log(status.. "Reboot en cours"):log(status.. "Reboot en cours")
            elseelse
              fibaro:log("erreur : reboot impossible");:log("erreur : reboot impossible");
          endend
     

    Please login or register to see this link.

    Please login or register to see this link.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Nareszcie działające restartu UV  HC2

     

     

    POST /api/settings/reboot HTTP/1.1

    Host: xxx.xxx.x.x
    Authorization: Basic YWRtaW46aGVsZW5h 
     
    {"args":[]}
     
    W MIEJSCE xxx wpisujemy IP swojej Centrali.
    W zakładce ogólne 
    Adres IP: 127.0.0.1 
    Port TCP: 11111
    Link to comment
    Share on other sites

    • 0

    Ze znalezionych tu i ówdzie kawałków skleiłem coś takiego - używam v.4.110 i działa:

    Please login or register to see this code.

    Mam nadzieję, że przyda się dla potomnych. Dodatkowo ikona do sceny.

    Please login or register to see this attachment.

    Edited by ostry
    Dodana ikona
    • Thanks 1
    Link to comment
    Share on other sites

    • 0

    Witam,

    Mam pytanko czy w prosty sposób można dopisać do tej strony aby po powrocie zasilania fibaro się zresetowało za pomocą tej sceny.

     

    Pytam ponieważ moje HC2 po zaniku napięcia wisi i wymaga restartu z palca :(

     

    Wydaje mi się że aktualizacja jaką zrobiłem do softu 4.530 miała na to negatywny wpływ chociaż już wcześniej nie było kolorowo.

    Link to comment
    Share on other sites

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