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

Batterie level


Shad

Question

I would to make a scene to check level of batterie.

Please login or register to see this code.

But after the "then" I would like a request to post url to send notification with the name of device fibaro:getName(deviceID);.

If somebody have an example please.

Link to comment
Share on other sites

16 answers to this question

Recommended Posts

  • 0

Try this to start with

Please login or register to see this code.

Have not test it 100%, i don't have battery operated things

Please login or register to see this image.

/emoticons/default_icon_biggrin.gif" alt=":-D" />

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Thanks but I would like to post an URL on my networks. But now Inow how to send a push notifications ^^.

    Link to comment
    Share on other sites

    • 0
    Guest Lode

    Works like a charm......

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" />

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" />

    I'm defenitly going to use this nice piece of code !!

    Thx a lot !!

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Yes work very well, but can somebody tell me how to send http request on my local network please.

    Link to comment
    Share on other sites

    • 0

    jompa68, you got bug in script

    Please login or register to see this code.

    Please login or register to see this code.

    so you checking only device who got id lower then 250

    Link to comment
    Share on other sites

    • 0
    jompa68, you got bug in script

    Please login or register to see this code.

    Please login or register to see this code.

    so you checking only device who got id lower then 250

    maxNodeID is how many devices you have in your system, guess 250 is ALOT of devices so it will be enough for a while

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Please login or register to see this image.

    /emoticons/default_icon_curve.gif" alt=":-/" /> Lol stop speaking without my answer.

    Try many thing but can't find how to send url notification in lua to xbmc. With virtual device no problem but I don't have the ID of the device.

    Link to comment
    Share on other sites

    • 0

    Please login or register to see this image.

    /emoticons/default_icon_curve.gif" alt=":-/" /> Lol stop speaking without my answer.

    Try many thing but can't find how to send url notification in lua to xbmc. With virtual device no problem but I don't have the ID of the device.

    this is the notification string for XBMC

    Please login or register to see this code.

    Tested it in my browser on port 8080 to XBMC and notifications appears on tv-screen, but when i do a virtual button in HC2 i cannot communicate with XBMC.

    Link to comment
    Share on other sites

    • 0
    Guest deraaij

    I us port 9090 and enabled control in xvmc, than you can just send

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0

    Yes, 9090 was the magic (missed that, need to have newer glasses)

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    But with a virtual device you cannot use the deviceID you want to use together with notifications Shad.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Yes, 9090 was the magic (missed that, need to have newer glasses)

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    But with a virtual device you cannot use the deviceID you want to use together with notifications Shad.

    I know that, it is for that I am asking how to send http url with lua ^^.

    Link to comment
    Share on other sites

    • 0
    Guest deraaij
    Yes, 9090 was the magic (missed that, need to have newer glasses)

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    But with a virtual device you cannot use the deviceID you want to use together with notifications Shad.

    I know that, it is for that I am asking how to send http url with lua ^^.

    Please login or register to see this code.

    add ID where you want it in the url (using "" .. id .."")

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Thanks, I try that but I have

    Please login or register to see this code.

    and the line 20 is

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0
    Guest deraaij

    sorry in this version it only works in a virtual device. If necessary you can make a combi with a scene (pressing the virtual button)

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Ok now I understand Why it didn't work. Now I can try to find a way to work.

    Thanks you very much

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" />

    Link to comment
    Share on other sites

    • 0
    Guest deraaij
    Ok now I understand Why it didn't work. Now I can try to find a way to work.

    Thanks you very much

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" />

    you're welcoe, goodluck

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