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


Recommended Posts

Posted (edited)

This is a" Quick and dirty" script to disable battery notifications. I use my own  notification script based on @Sankotronic's battery reporting scene (see below) HC3 uses a new API and concept to configure different notifications.

 

The script reads all notifications, and disables LowBattery notification without modifying any other setting. I think it is not necessary to actually call this on each slave device, but it is slightly more difficult do that once per master device.

 

This is only a quick demonstration of this new API (and my understanding of how to use it :D)

 

If you only want to enumerate the notifications, comment out line "_,responseCode=api.put("/dev........"

Please login or register to see this code.

 

 

Notification Scene:

 

Please login or register to see this attachment.

 

 

Edited by petergebruers
  • Like 2
  • Thanks 1
Posted

I also used the script based on @Sankotronic's battery reporting scene on my HC2. I miss it on my HC3.

 

Can you share the modified script?

  • Topic Author
  • Posted
    13 hours ago, SmartHomeEddy said:

    Can you share the modified script?

    Good question. I'll check with the author of the script (Zoran).

    Posted

    @petergebruers ,

     

    you have my full support to publish script and thank you for your help and work! ?

    • Thanks 1
  • Topic Author
  • Posted

    Okidoki!

     

    So here is @Sankotronic's Battery Check Scene, modified to run on HC3

     

    Please login or register to see this attachment.

    • Like 1
    • Thanks 3
    • 2 months later...
    Posted

    Great Thank You!

     

    • 5 months later...
    Posted

    Thank you. Great Scene ?

    • 4 weeks later...
    Guest iq9003
    Posted (edited)

    Hi, 

     

    Thanks for sharing.

     

    I did have an issue with the Battery Check Scene, because of my Netatmo Plugin. When running the script I got an error ("attempt to compare number with nil)".

    For now I fixed it by excluding the plugin:

     

    Please login or register to see this code.

    to

    Please login or register to see this code.

     
     
    Edited by iq9003
    • 3 months later...
    Posted
    On 4/24/2020 at 2:12 PM, petergebruers said:

    Okidoki!

     

    So here is @Sankotronic's Battery Check Scene, modified to run on HC3

     

    Please login or register to see this attachment.

     

    Sorry if the question sounds too basic. How can I integrate this LUA code into my HC3?

     

    I have tried adding it as a QA but it is not the proper format. I have also tried to "import" the scene but can't find how. I may have to create a scene and complete the trigger part, for example run the scene every hour, and paste this LUA code in the actions section?

     

    Thanks a lot!

    Posted
    9 minutes ago, Juanjo said:

    I may have to create a scene and complete the trigger part, for example run the scene every hour, and paste this LUA code in the actions section?

     

    Thanks a lot!


    Yes, you do. Every hour is a bit too much, but once a week would be fine. 

     

    • Like 1
  • Topic Author
  • Posted

    Ah, that is actually a good question. Indeed, it is not a Quickapp but "scene code". So in the browser go to "11. Scenes" and add a new Lua scene.

     

    In the left part, you past something like this to determine when the scene should run

     

    Please login or register to see this code.

     

    Thats every day at 14:08

     

    Then open the ".lua" file I posted in a text editor, and select all text, then copy/paste in the right part of the scene.

    Posted

    Thank you so much! I already have it integrated :)

  • Topic Author
  • Posted

    After the introduction of ZigBee on the HC3, the "BATTERY CHECK SCENE" developed by @Sankotronic required some additional changes to handle ZigBee battery devices. Here is an updated version.

     

    Please login or register to see this attachment.

    • Like 2
    • 8 months later...
    Guest macjoker
    Posted

    I have made some changes so that my QuickApp devices that have battery interface were also checked.

    Now the scene supports Z-Wave, ZigBee, and QA devices.

     

    I did some fixes too: color messages in console and custom email subject restored. Have fun!

     

    Please login or register to see this attachment.

    Posted

    @macjokerThis BatCheck scene is very usefull. Thank you! :D

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

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