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

My working command is below and it works since 4.101 beta.

Authorization is in

Please login or register to see this link.

and it is stands for admin:admin.

 

Do not forget double enter (2 new lines) after authorization. Also my VD is included in attachement. There you need to change host and authorization.

Please login or register to see this code.

 

Please login or register to see this attachment.

  • 0
Posted
10 minutes ago, jakub.jezek said:

My working command is below and it works since 4.101 beta.

Authorization is in

Please login or register to see this link.

and it is stands for admin:admin.

 

Do not forget double enter (2 new lines) after authorization. Also my VD is included in attachement. There you need to change host and authorization.

Please login or register to see this code.

 

Please login or register to see this attachment.

 

 

yours is different.

you still use POST instead of GET as other people started using with latest fw.

it seems a total mess and mixing fw and examples could be even worst.

And in the VD.vbif file is not set the port that seems to be another important random change

  • 0
Posted (edited)

 

4 minutes ago, Flowy said:

 

 

yours is different.

you still use POST instead of GET as other people started using with latest fw.

it seems a total mess and mixing fw and examples could be even worst.

And in the VD.vbif file is not set the port that seems to be another important random change

I use port 80. Port 11111 should be usable only if you call as localhost (127.0.0.1), atleast that told me fibaro support.

Also Wireshark gave me it is a POST, when i clicked on Restart button in configuration and cough communication.

Edited by jakub.jezek
  • 0
Posted (edited)
5 minutes ago, jakub.jezek said:

 

I use port 80. Port 11111 should be usable only if you call as localhost (127.0.0.1), atleast that told me fibaro support.

Also Wireshark gave me it is a POST, when i clicked on Restart button in configuration and cough communication.

 

mine is 11111 while using real network ip and not local host

I have POST and not GET as latest FW indications from recent topics

I have SETTING instead of SERVICE in the API call

I don't have useless codes 0x0x00xAAxDDxWWx.......

I have FW 4.090

It works (the restart VD but not the firmware).

that is what I mean with total chaos among FW versions....

Edited by Flowy
  • 0
Posted

From 4.101 they changed it. Up to 4.100 it's working like you said. In my VD, i have to just write "settings" instead of "service", if i want to use it in version 4.100 and lower.

That double new line should be in VD with HTTP command.

 

That double new line separates HTTP body from HTTP head.

  • 0
Posted (edited)

Itchy hand went to upgrade from 4.10 to 4.13 & now my restart VD is not working. Can some kind soul please advise?

 

I had tried on my HCL

IP Address: 192.168.1.10

TCP Port: 80 (also tried 11111)

 

GET /api/service/reboot HTTP/1.1

(also tried POST /api/settings/reboot HTTP/1.1)

(also tried POST /api/service/reboot HTTP/1.1)

(also tried GET /api/settings/reboot HTTP/1.1)
Host: 192.168.1.10
Authorization: Basic YWRtaW46YWRtaW4=

0x0D0x0A0x0D0x0A (also tried without) (also tried leave 2 blank lines)

 

 

Is there way to revert back to 4.10? I tried restoring from old backup copies but it still remained as 4.13 :(

Edited by David Goh
  • 0
Posted
On 6/30/2017 at 6:06 PM, David Goh said:

Itchy hand went to upgrade from 4.10 to 4.13 & now my restart VD is not working. Can some kind soul please advise?

 

I had tried on my HCL

IP Address: 192.168.1.10

TCP Port: 80 (also tried 11111)

 

GET /api/service/reboot HTTP/1.1

(also tried POST /api/settings/reboot HTTP/1.1)

(also tried POST /api/service/reboot HTTP/1.1)

(also tried GET /api/settings/reboot HTTP/1.1)
Host: 192.168.1.10
Authorization: Basic YWRtaW46YWRtaW4=

0x0D0x0A0x0D0x0A (also tried without) (also tried leave 2 blank lines)

 

 

Is there way to revert back to 4.10? I tried restoring from old backup copies but it still remained as 4.13 :(

 

Please login or register to see this link.

 

 

  • 0
Posted

Thanks Flowy.

 

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

  • 0
Posted
5 hours ago, David Goh said:

Thanks Flowy.

 

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

 

That's why I still have 4.090, to not lose the few things I know working....

  • 0
Posted (edited)

Any update on this? I do not get this to work ether in FW 4.1.33

Edited by joakim
  • 0
Posted

As discribed in the cookbook, this worked at least in 4.120, have not tried in 4.130.

What i noticed. such a restart is not the same as a hard power off and on with a waiting time of 2 to 3 minutes inbetween. the system lives much longer after such a hard restart compared to a soft restart.

I do the hard restart with a remote controlled wall outlet (dect).

kuno

  • 0
Posted

If you ever get it working let me know as i have the same issue on 4.131 and 4.133

  • 0
Posted

@suds32nz: just tested in 4.130 and as described in the cookbook, this VD works when the scene is triggered and 'pushes' the button of the VD:

GET /api/service/reboot HTTP/1.1                                   # command to be executes
Host: 192.168.1.20                                                           # the local host for the device
Authorization: Basic YWRtaW46cGFzc3dvcmQ=            # admin:password coded base64
                                                                                          # empty line
                                                                                           # empty line

the two empty lines are mandatory!

  • 0
Posted

4.133 not working

GET /api/service/reboot HTTP/1.1
Host: 192.168.0.22
Authorization: Basic # admin:password coded base64

 

  • 0
Posted

As @kunoch wrote works for me.
 

GET /api/service/reboot HTTP/1.1                                   # command to be executes
Host: 192.168.1.20                                                           # the local host for the device
Authorization: Basic YWRtaW46cGFzc3dvcmQ=            # admin:password coded base64
                                                                                          # empty line
                                                                                           # empty line

the two empty lines are mandatory!

 

I have FW 4.133

  • 0
Posted

Strange My other VD's dont work either ie simpple one to change a variable that has always worked no longer works, as well as some camera ones.

Only difference from mine to your can be is admin  user - which for me is now an email address (which chamged a while ago with an update)

But very keen to atleast get this one going, any ideas would be appreciated.

All I did is import this VD and change the ip etc

Please login or register to see this attachment.

Please login or register to see this attachment.

Just sorted this on, I can't use 12.0.0.1 port 11111 had to change it to the Actual Ip and port.

So now just have to sort the others

  • 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

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