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


Ramon

Question

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.

Link to comment
Share on other sites

Recommended Posts

  • 1
4 hours ago, selektor said:

Hi
I have a HCL central unit with 4.530 firmware.
I am trying to add a scene with an automatic restart.
I follow the instructions above but it does not work
my central is at 192.168.0.110 (the same device on which I set the scene?) login and password in the format [email protected]: password decoded at base64 at

Please login or register to see this link.

encoder.asp and it does not work, someone can tell me what I'm doing wrong. Below I attach the restart code for my control panel.

 

GET /api/service/reboot HTTP/1.1
Host: 192.168.0.110 
Authorization: Basic
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX= 
0x0D0x0A0x0D0x0A

Hi

 

Try to adapt this to your system. Download    .vfib via link.
Blank line and space must be exactly as in the original. :)

 

Please login or register to see this link.

 

Edited by hTiger1
Link to comment
Share on other sites

  • 1
22 hours ago, hTiger1 said:

Hi

 

Try to adapt this to your system. Download    .vfib via link.
Blank line and space must be exactly as in the original. :)

 

Please login or register to see this link.

 

Yes!, it works again. Thank you!

I'm running the fw4.530 on my HCL and used

Please login or register to see this link.

 

 

  • Like 1
Link to comment
Share on other sites

  • 1

Yes still works. ?

 

Please login or register to see this spoiler.

 

Please login or register to see this attachment.

Link to comment
Share on other sites

  • 1
12 hours ago, Damiano said:

Does it work on someone on version 4.570?

I'm using following and it works. Plus generator helps with headache to creat HTTP header.

 

 

Link to comment
Share on other sites

  • 0
Hi
Although I still have 3.601 it will not always run all scener (about 45) and require a restart.
 
In French forum (thanks to Leji and thanks to Fel-x for that great icon) I have found a way to restart HCL, with - virtual device.
I do not know if it's good for HCL, but it works perfectly.
Run a scene with a virtual device, perhaps once a week.
Works also with 4.058 and 4.059
 
Host: xxx.xxx.xx.xx    (Your HCL IP address) Port: 80
Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxx  (Replace xx with code, Use decoder in link below)

 

Use below link to know Authorization login:password (in this code admin:admin)

Authorization: Basic WRtaW46YWRtaW4= admin:admin

Please login or register to see this link.

 

All spaces must be exactly like the original.

 

Please login or register to see this link.

 

 

 

 

Link to comment
Share on other sites

  • 0

Hi hTiger1,

 

I'm confused on the Authorization: portion. Lets say my loginID is abcd & password is wxyz.

Software Version:4.100

 

IP Address: 192.168.1.5

Port: 80

 

POST /api/settings/reboot HTTP/1.1
Host: 192.168.1.5
Authorization: Basic abcd:wxyz

or

Authorization: Basic abcd:d3h5eg==

 

Please kindly advise. Thanks a million.

Link to comment
Share on other sites

  • 0

This restart the HCL. You can trigger it with a scene. I use a scene to trigger it every midnight:

 

in the main VD page set your "HCL IP address" and port: "11111"

 

as VD string write:

POST /api/settings/reboot HTTP/1.1
Host: 192.168.1.10 [change with your own IP address]
Authorization: Basic XXXXXXXXXXXXXXX [change with your own administration login. Use this link for the code: 

Please login or register to see this link.

 ]

Edited by Flowy
Link to comment
Share on other sites

  • 0

Hi Flowy,

 

Did what you had advised but nothing happened after I clicked on Run Scene. LoginID is abcd.

Software Version:4.100

 

IP Address: 192.168.1.5

Port: 11111

 

POST /api/settings/reboot HTTP/1.1
Host: 192.168.1.5
Authorization: Basic YWJjZA==

Link to comment
Share on other sites

  • 0

hi David

 

login cannot be abcd

you need user and password as well.

enter in the above link both of them including ":" in the middle. Then copy and paste the result in the Fibaro code

example is "admin:password"

 

myuser:mypassword

David666:Light57V

 

just examples......

Link to comment
Share on other sites

  • 0

Hi Flowy,

 

login is abcd with password wxyz

so abcd:wxyz in the base64 coding is YWJjZDp3eHl6

copied & pasted into line

 

Authorization: YWJjZDp3eHl6

clicked on Run scene & noticed scene was triggered but nothing happened :(

 

Tried

Authorization: Basic YWJjZDp3eHl6

seems like something is going on now...I can't login...maybe it's indeed restarting...remote login OK...now it's trying to establish connection to give me the second login page

I'll only know once I had login the second level & see the machine up time

 

YES YES YES...thank you Flowy...thank you so much!!! It got restarted!!! THANKS!!! THANKS!!! THANKS!!!

Edited by David Goh
Link to comment
Share on other sites

  • 0

IP Address: 192.168.1.5

Port: 11111

 

POST /api/settings/reboot HTTP/1.1
Host: 192.168.1.5
Authorization: Basic YWJjZDp3eHl6

 

 

that should work. When you click the VD wait because it takes some time before restarting the system.

Recheck the code because usually there is always an hidden mistake somewhere....

What I do not know if FW 4.100 that you have still has 11111 as port.

I use 4.090

Link to comment
Share on other sites

  • 0

HCL Restart Version 4.110

 

GET /api/service/reboot HTTP/1.1
Host: 192.168.88.9
Authorization: Basic Login:Password (code base64)
0x0D0x0A0x0D0x0A

 

 

Link to comment
Share on other sites

  • 0

Great topic and exactly what I am looking for. But somehow I do not get this to work.

Some (probably stupid) questions:

- Do you need to use the remote access login:password or the admin (e-mail based) login:password? I know they need to be translated to Base64

- I use firmware 4.110 but I am not sure if it is also set at port 11111. When I type in the HCL Ip address:80 in my browser, I get the usual login screen. when I use IP:11111 I get a blank screen. How can I make sure I use the correct port?

- Could someone share a screenshot of (a working) virtual device in firmware 4.110. This would help to double-check what I do wrong

Thanks!

Link to comment
Share on other sites

  • 0

1. use the same ID (SuperUser) & its password you can find in Configuration > Access Control

 

2. in the virtual device, there is a General tab where you give a name to it, assign it to a room, input your Fibaro IP then set the TCP Port:

Link to comment
Share on other sites

  • 0
1 hour ago, Dennis1 said:

Great topic and exactly what I am looking for. But somehow I do not get this to work.

Some (probably stupid) questions:

- Do you need to use the remote access login:password or the admin (e-mail based) login:password? I know they need to be translated to Base64

- I use firmware 4.110 but I am not sure if it is also set at port 11111. When I type in the HCL Ip address:80 in my browser, I get the usual login screen. when I use IP:11111 I get a blank screen. How can I make sure I use the correct port?

- Could someone share a screenshot of (a working) virtual device in firmware 4.110. This would help to double-check what I do wrong

Thanks!

 

I don't have that firmware but I read in another topic that the http command has changed from:

POST /api/settings/reboot HTTP/1.1

 

to:

GET /api/service/reboot HTTP/1.1

 

I don't know if it is true but in case yes it would be the Nth mistake by Fibaro to make such a change and not highly distribute the information.

Just try it and see

Link to comment
Share on other sites

  • 0
4 hours ago, Damiano said:

API has changed from version 4.110. now it has to be GET

 

not only...also from "settings" to "service"

a total chaos

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