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

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.

  • 0
Posted

ok, can you post a screenshot your VD code?

In the General tab, you need the actual IP adress with port 80.

  • 0
Posted (edited)
On ‎4‎/‎13‎/‎2018 at 9:59 AM, David Goh said:

 

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*

Guys, I have done it so maybe you guys want to consider as it's less troublesome.

 

I have a working VD for the daily restart but I don't understand why it doesn't work at some days though I had scheduled it to run daily at a specified time. So I implemented a smartplug. I have read it somewhere in here that someone did the same too. I chose not to add any more devices but I guess no choice for this intermittent VD. That's why it took me 6 months to consider, test & trial & finally I lost faith... LOL

 

You can remotely restart the smartplug any time anywhere the HC2/HCL hangs. Or schedule the restart of the smartplug instead. More straightforward. No worries on what string what space.

 

Edited by David Goh
  • 0
Posted
On 10/9/2018 at 4:01 AM, David Goh said:

Guys, I have done it so maybe you guys want to consider as it's less troublesome.

 

I have a working VD for the daily restart but I don't understand why it doesn't work at some days though I had scheduled it to run daily at a specified time. So I implemented a smartplug. I have read it somewhere in here that someone did the same too. I chose not to add any more devices but I guess no choice for this intermittent VD. That's why it took me 6 months to consider, test & trial & finally I lost faith... LOL

 

You can remotely restart the smartplug any time anywhere the HC2/HCL hangs. Or schedule the restart of the smartplug instead. More straightforward. No worries on what string what space. 

 

True.. only it will cost 65 euro's to implement. Maybe after a few months my annoyance levels are also reached and buy one.

  • 0
Posted (edited)
W dniu 8.10.2018 o 17:50, Nightshift napisał:

ok, can you post a screenshot your VD code?

In the General tab, you need the actual IP adress with port 80.

 

Mine is below. IP and port 80 on the main page correct as well.

 

GET /api/service/reboot HTTP/1.1
Host: 192.168.1.16
Authorization: Basic 
blablabla==
0x0D0x0A0x0D0x0A 

Edited by Szadzik

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