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


  • 0

Scene for detecting dead nodes


Wimjanse
 Share

Question

I use my HC2 as an alarm system, with 12 door sensors, 5 motion sensors, 2 smoke sensors and 2 flood sensors.

Although using Sankotronix scene for detecting empty batteries, I was faced twice in the last month with “dead nodes”, due to empty battery.

I would like to run a script (either daily or when I switch on the alarm), that notifies me on any dead nodes.

 

Is there a Fibaro function that I can use for this? The information should be in the system, as the web interface does give the dead node information.

Link to comment
Share on other sites

20 answers to this question

Recommended Posts

  • 0

The attached scene finds dead nodes and wake them up. It works as endless loop with 15 minutes intervals.

 

 

I am not the author of the attached scene. Unfortunately I do not remember from where I imported it. IT was found somewhere in this forum.

 

Please login or register to see this code.

 

Edited by gucio1234
  • Like 1
Link to comment
Share on other sites

  • 0

btw,

fibaro:call(1, 'wakeUpAllDevices', id);

you can try to wakeUp device by id

Link to comment
Share on other sites

  • 0

This scene works really well - thank you! it has solved unexplained and intermittent problems with devices going dead. All these devices have been fine in the past and no changes have been made to physical location of devices. Removing and adding devices is a complete pain! This just goes about and tidies it up. Fibaro should take note as this should not be needed at all. 

Link to comment
Share on other sites

  • 0
13 minutes ago, RobvT said:

How do I install this scene? I can't find a import function?

 

You need somthing like “ note ++” Free to download on net,

std note may not work.

On your computer open file in that then copy and paste into new scene.

Also In that the code is in type on post you can copy and paste directly from post.

 

Only virtual devices have import button.

Edited by Jamie mccrostie
Link to comment
Share on other sites

  • 0
25 minutes ago, Jamie mccrostie said:

You need somthing like “ note ++” Free to download on net,

std note may not work.

On your computer open file in that then copy and paste into new scene.

Also In that the code is in type on post you can copy and paste directly from post.

 

Only virtual devices have import button.

 

So I download Note++ copy the code in it save it as a .fib file and import it as u virtual device? And then?

Link to comment
Share on other sites

  • 0
Just now, RobvT said:

 

So I download Note++ copy the code in it save it as a .fib file and import it as u virtual device? And then?

Sorry i updated my post

If scene was posted in file format that is required.

This scene is in type so can be copy and pasted.

Press add new scene

Select LUA scene type

Copy scene off post 

Paste scene into LUA window

Delete header if doubled up at top of scene

Name scene and select room

Save

7 minutes ago, RobvT said:

 

So I download Note++ copy the code in it save it as a .fib file and import it as u virtual device? And then?

Dont get confused this is a scene not a virtual device

At the top of the forum there is a tab “Knowledge “ it has plenty of stuff on this you should read

Link to comment
Share on other sites

  • 0
8 minutes ago, Jamie mccrostie said:

Sorry i updated my post

If scene was posted in file format that is required.

This scene is in type so can be copy and pasted.

Press add new scene

Select LUA scene type

Copy scene off post 

Paste scene into LUA window

Delete header if doubled up at top of scene

Name scene and select room

Save

 

Ah. But this option is not in the HCL is it?

 

Link to comment
Share on other sites

  • 0

thanks a lot  for the code. it runs great, can someone guide me how to include the push and email notifications to the same. 

 


 

Edited by Muhammad
Link to comment
Share on other sites

  • 0

 

18 hours ago, Muhammad said:

thanks a lot  for the code. it runs great, can someone guide me how to include the push and email notifications to the same. 

 


 

anyone?

Link to comment
Share on other sites

  • 0
3 hours ago, Muhammad said:

 

anyone?

 

 

On 12/12/2017 at 11:22 PM, gucio1234 said:

fibaro:call(2, 'sendEmail', 'Somebody really DEAD', 'DeadNode') log('Somebody really DEAD')

The code should email the super user, their id in the system always being " 2 ".

or if you want it to go to another user go to configurations,Then access control. Then hover your mouse cursor over the user and their id will show bottom left of screen.

Just replace the "2" in the portion of code attached .

Edited by Jamie mccrostie
Link to comment
Share on other sites

  • 0

thanks @Jamie mccrostie , email notifications are working now.

 

could you please explain regarding the push notifications as none of my notifications are working with the specified codes below.

fibaro:call(2, 'sendDefinedPushNotification', 'Somebody really DEAD', day.."/"..month..":"..i..' DEAD '..name..":"..room)
          

thanks!

Edited by Muhammad
Link to comment
Share on other sites

  • 0
On 12/12/2017 at 11:26 PM, 10der said:

fibaro:call(1, 'wakeUpAllDevices', id);

Hello, I am trying to wake up only a specific device e.g. with the ID 861. If I run the LUA Scene with: fibaro:call(1, 'wakeUpAllDevices', 861) it wakes up all dead nodes on my HC2. I am running FW 4.540. Have there been any corrections on the code?

Link to comment
Share on other sites

  • 0
On 4/16/2019 at 5:07 PM, Ramon said:

Hello, I am trying to wake up only a specific device e.g. with the ID 861. If I run the LUA Scene with: fibaro:call(1, 'wakeUpAllDevices', 861) it wakes up all dead nodes on my HC2. I am running FW 4.540. Have there been any corrections on the code?

 let's try to replace with: fibaro:wakeUpDeadDevice(861)

Link to comment
Share on other sites

  • 0

Thanks for your answer. That did not do the trick. I also tried the following with not effect: fibaro:call(1, 'wakeUpDeadDevice', 861);

Link to comment
Share on other sites

  • 0

Aha - I think I have it now! The following works for me:

Please login or register to see this code.

I´ll check the whole scene  with the modified line:

Please login or register to see this code.

Thanks again

  • Thanks 1
Link to comment
Share on other sites

  • 0
4 minutes ago, Ramon said:

Thanks for your answer. That did not do the trick. I also tried the following with not effect: fibaro:call(1, 'wakeUpDeadDevice', 861);

I think the script "fibaro:wakeUpDeadDevice(deviceID)" is work, there is no error when i debug this command, so you should try to move your dead device closer with your HC or remove it from your system, then add it again. 

10 minutes ago, Ramon said:

Aha - I think I have it now! The following works for me:

Please login or register to see this code.

I´ll check the whole scene  with the modified line:

Please login or register to see this code.

Thanks again

congratulation!

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.

 Share

×
×
  • Create New...