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


  • 1

Automatic Restart or Reboot Home Center lite


Question

Posted

Dear Community,

 

I have a problem regarding a Home Center lite. After a week the Sensors cannot be armed anymore. As soon as I manually reboot the device everything works fine again. I would like to have a solution so that the HCl reboots automatically. For the HC2 I found some nice LUA Code. I was wondering if this is also possible with a HCl compatible HTTP request. 

Thanks in advance for your help

Please login or register to see this code.

Recommended Posts

  • 0
Posted

In my example the admin: password is 'only' representing the administrator login and password, so this has to be exactly YOUR login information.

  • 0
Posted
On ‎3‎/‎7‎/‎2017 at 5:28 PM, David Goh said:

Thanks Flowy.

 

I'm still not giving up on making the VD restart scene to work in 4.130... lol

Ok I gave up as it isn't stable & I had revert back to 4.100

  • 0
Posted
6 hours ago, David Goh said:

Ok I gave up as it isn't stable & I had revert back to 4.100

 

good choice, 4.090 even better.......

  • 0
Posted (edited)

I am running 4.134 Beta and can confirm it runs correctly.

 

By doing the following I can get my HCL to restart on a schedule as a virtual device

 

To do this:-

 

First off create a  Virtual Device by going into Devices and selecting 'add or remove a device' the select 'To add the Virtual Device'

In the general tab name the Virtual Device   Fibaro Restart

Add the device into what room you would like it in

Enter your HCL IP address (if you dont know it, look in the configuration tab)

TCP port is   80                            **Previous guides mention it could be 1111 however port 80 works for me under this firmware**

 

Select the Advanced Tab

Scroll down to the bottom

Label:- Restart

ID:- Restart

Check the Main button on the right

Enter the below information into the text box **Ensuring you add your own ip and admin:password infomation as explained below)

 

 

GET /api/service/reboot HTTP/1.1
Host: ***.***.*.**                                                        (Replace the stars with your Home Centre Lites IP address, find this in configuration if you dont know it)
Authorization: Basic
****************************************************              (Replace the stars with your admin:password example myaccount:mypassword coded in base64) get this here

Please login or register to see this link.

 

Ensure after you enter your admin:password in base64  that you press enter twice (this leaves two spaces) and then save.

 

In my example i used myaccount:mypassword as my user and password if you are using the base64 code program correctly, it would give you this as the result:- bXlhY2NvdW50Om15cGFzc3dvcmQ=

 

So presuming my ip is 192.168.9.9 a working example would be **ensuring to hit enter twice after your base64 code / username&Password**:-

 

 

GET /api/service/reboot HTTP/1.1

Host: 192.168.9.9

Authorization: Basic

bXlhY2NvdW50Om15cGFzc3dvcmQ=

 

 

To then create the scene to trigger you can do the following:-

 

Go to your Scenes tab and select add new scene

 

Select 'Add scene using graphic blocks'

 

Click on the '+'. 'Timers > 'Days of week'

 

Highlight the days you want your HCL to reboot and the exact time you want it to reboot, I reboot each morning at 01:00

 

Change the 'And' already populated to 'Then'

 

Click on the bottom '+' > ' Scenes' > 'Room you selected earlier where your HCL is located' > 'Fibaro Restart'

 

Save your scene

 

You can test by manually running your scene in the scene tab by pressing play on the scene (also ensure the scene is turned on to to allow the scene to run as per your schedule).

 

I hope this helps some of you.

 

CC

 

 

 

Edited by Captain Chaos
  • 0
Posted

Hi, unfortunatly, the procedure you have described doesn't work for me. :-(. I'm running the 4.130 version.

Nothing happens when I click on the button "Restart"

Regards,

Lionel

  • 0
Posted (edited)

This works for me and i even tested it with HC2 (v.4.134 beta)

 

GET /api/service/reboot HTTP/1.1
Host: 192.168.1.9
Authorization: Basic

bmV3YWdlc3lzdGVtc2x0ZEBnbWFpbC5jb206TW9ycGhhZHJvbjE5

 

Port 80 for the virtual device.

 

And yes, there are 2 lines below the code. When i change the view to LUA the code for username:password appears on the same line with the Authorization: Basic and it is easier to add two more empy lines below the code.

 

The scene is as it is shown in the cookbook of HCL and it works on days of the week and hours. And yes, do not reboot the system if a scene for auto on or auto off of a device (say boiler) is triggered, because it will not work and it will not be OK to leave the device working all night or not start the boiler and in the morning you will end up with no hot water :D

 

I hope this was helpful.

 

Cheers!

Edited by Mo19
  • 0
Posted
On 7/31/2017 at 7:20 PM, lionelpo91 said:

Hi, unfortunatly, the procedure you have described doesn't work for me. :-(. I'm running the 4.130 version.

Nothing happens when I click on the button "Restart"

Regards,

Lionel

Hi,

You can test this, (for version 4.130 or more) :


 

Please login or register to see this spoiler.

 

Change your VD ip:127.0.0.1 and port:80

And you MUST enter two empty line at the end of the above string!

 

  • 0
Posted

Seems like it's not working anymore either, unless I do something wrong:

 

Please login or register to see this code.

 

  • 0
Posted

have a look at the cookbook. is/was working since 4.120

  • 0
Posted

Hi! Do you know if this still works for 4.170? I can't get it to work..

  • 0
Posted
5 hours ago, Eduardo Real said:

Hi! Do you know if this still works for 4.170? I can't get it to work..

 

Worked! The issue was to change:

POST -> GET

Settings -> Service

11111 -> 80

0x0D0x0A0x0D0x0A at the end

 

The rest is still the same.

  • 0
Posted (edited)
On ‎13‎/‎7‎/‎2017 at 9:48 AM, David Goh said:

Ok I gave up as it isn't stable & I had revert back to 4.100

Upgraded to 4.140 so far so good. Except I have to redo the HA Bridge cos my Alexa not responding to commands

 

Edited by David Goh
  • 0
Posted (edited)

So I am really confused by this thread and what works for latest build. I have the following:

 

Please login or register to see this code.

 

Now I generated the password as :

 

[email protected]:password

 

In the virtual device I put 192.168.1.110 and port 80...nothing seems to be happening....what am I doing wrong here?

 

 

Edited by darren-mc
  • 0
Posted

Hi
Import the file and change the IP address and password.
Be careful not to change spaces and the 2 empty lines at the bottom. :)

 

Please login or register to see this attachment.

 

 

capture20180407104601603.png.bb1c87f71015cbbdf5462f47d81b6a77.png  capture20180407105355702.png.ba00c7936be36fbfba865747206d56ad.png

 

 

  • 0
Posted (edited)
On ‎4‎/‎4‎/‎2018 at 2:04 PM, David Goh said:

Upgraded to 4.140 so far so good. Except I have to redo the HA Bridge cos my Alexa not responding to commands

 

 

After praising, I noticed some days my VD on schedule restart is not working some days is working. I had recreated the VD & scene plus tested manually to ensure the string are correct then make it run on schedule...intermittent status begins :(

 

So now I have to schedule myself to check if it was restarted daily on schedule.

 

Schedule to check on schedule... *faint*

Edited by David Goh
  • 0
Posted (edited)

Hello, 

 

Anyone in this thread able to help out? 

 

 

 

Thanks 

Erik

Edited by erik.simonson
Connected link
  • 0
Posted (edited)

Hi guys,

 

My VD stoped working when i updated my HC2 to 4.510.

Any suggestions?

Edited by Mo19
  • 0
Posted

Anyone got a working VD for 4.504 beta?

  • 0
Posted
On 9/18/2018 at 1:38 PM, Szadzik said:

Anyone got a working VD for 4.504 beta?

Yes, see below!

Please login or register to see this image.

/monthly_2018_09/1.jpg.174efb8cb17eb9f2c3557731ea4ba70c.jpg" width="679" alt="1.jpg.174efb8cb17eb9f2c3557731ea4ba70c.jpg" />

Reboot.jpg.6eff600e31e4cd94588611f0404340d0.jpg

 

GET /api/service/reboot HTTP/1.1
Host: 192.168.5.7
Authorization: Basic c3XXa25vXXXXXXXXXXOlNhbXXXY2Nw==
0x0D0x0A0x0D0x0A

Please login or register to see this attachment.

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