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

  • 0

Thanks for the replies; I must be doing something wrong, I feel stupid, but I still do not get this to work :-(

But somehow I can not see what is wrong..... Please see screenshots (I replaced the userID:PW in Code64 with the xxxxx)

Can you see something wrong?

Thx,

Dennis 

Please login or register to see this attachment.

Please login or register to see this attachment.

Link to comment
Share on other sites

  • 0

Amendment

1.Select Main

2. append the last line : 0x0D0x0A0x0D0x0A

 

add scene and Icons HCL

 

Please login or register to see this attachment.

Please login or register to see this attachment.

Please login or register to see this attachment.

 

if it does not yet work to change the port to 80

Please login or register to see this attachment.

Edited by Damiano
Link to comment
Share on other sites

  • 0

This worked; combination of:

1.Select Main

2. append the last line : 0x0D0x0A0x0D0x0A

3. Using port 80

Thank you very much! Very much appreciated!

I am a newbie on this forum, but start to like this a lot already ;-)

 

Link to comment
Share on other sites

  • 0
10 hours ago, Dennis1 said:

This worked; combination of:

1.Select Main

2. append the last line : 0x0D0x0A0x0D0x0A

3. Using port 80

Thank you very much! Very much appreciated!

I am a newbie on this forum, but start to like this a lot already ;-)

 

 

so it should be the port moved to 80.

Point n.2 is for sure useless

Point n.1 I think useless too

 

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0
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

Link to comment
Share on other sites

  • 0

 

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
Link to comment
Share on other sites

  • 0
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
Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

  • 0

Thanks Flowy.

 

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 0

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

Edited by joakim
Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

@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!

Link to comment
Share on other sites

  • 0

4.133 not working

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

 

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

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