Jump to content
Guides for the Forum Read more... ×
Poradniki na Forum Read more... ×
  • 0
Flash226

Reboot HC2 if there is no network access

Question

Several times a month my HC2 looses its connection with the Internet. After the controller reboots, the internet is again available for several days. The Netatmo sensor is integrated in the heating system. If there is no access to the Internet, the heating system does not work correctly. I need a scene for the controller to automatically reboot if there is no access to the Internet. Search on the forum did not give anything. Maybe someone has a similar scene?

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

@Flash226

Hi

You'll probably need two parts 

1) A method to monitor the internet. The lan or wwwapi monitor vd can do this for you. You'll find details in my signature

 

2) a scene to reboot where your hc2 when the internet is detected offline. You can also add in here other conditions/ restrictions before the reboot is triggered which may helpful. 

 

 

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
  • Inquirer
  • I added [VD] - WWWAPI Monitor {v1.0} and now I can use the Internet status. Using the command

    Please login or register to see this code.


    I can reboot my device. Thank you, you made my day.

    Share this post


    Link to post
    Share on other sites
    • 0

    @Flash226, A word of caution with this...

    You'll need some extra code/checks to stop your HC2 continually rebooting if the internet stays offline for a period of time

    A minimum would be a delay so you can log into your HC2 to stop either the scene or the wwwapi vd 

    • Like 1

    Share this post


    Link to post
    Share on other sites
    • 0
  • Inquirer
  • I made a check every half an hour, if within 2 hours the Internet is not available then we overload the controller. After restart we again observe 2 hours. 

    • Like 1

    Share this post


    Link to post
    Share on other sites
    • 0
    On 10/8/2017 at 10:32 PM, Flash226 said:

    I made a check every half an hour, if within 2 hours the Internet is not available then we overload the controller. After restart we again observe 2 hours. 

     

    Is it still working flawless?

     

    I have a similar scenario, could you share the code and setup?

    Share this post


    Link to post
    Share on other sites
    • 0
  • Inquirer
  • On 10/5/2018 at 9:05 AM, Spindel said:

     

    Is it still working flawless?

     

    I have a similar scenario, could you share the code and setup?

     

    Everything is working. The problem with network availability for me has disappeared.

    The launch of the scene is done through the main scene at intervals of 30 minutes.

    You also need to create a predefined variable "WEB" with data "Off_1" "Off_2" "Off_3" "Not_Work"

     

    Please login or register to see this attachment.

     

    Please login or register to see this attachment.

    Share this post


    Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

    ×