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


Question

Posted

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.

16 answers to this question

Recommended Posts

  • 0
Posted

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" />

  • 0
  • Inquirer
  • Posted

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

    • 0
    Guest Lode
    Posted

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

    • 0
  • Inquirer
  • Posted

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

    • 0
    Posted

    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

    • 0
    Posted
    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=";-)" />

    • 0
  • Inquirer
  • Posted

    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.

    • 0
    Posted

    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.

    • 0
    Guest deraaij
    Posted

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

    Please login or register to see this code.

    • 0
    Posted

    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.

    • 0
  • Inquirer
  • Posted
    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 ^^.

    • 0
    Guest deraaij
    Posted
    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 .."")

    • 0
  • Inquirer
  • Posted

    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.

    • 0
    Guest deraaij
    Posted

    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)

    • 0
  • Inquirer
  • Posted

    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=":-)" />

    • 0
    Guest deraaij
    Posted
    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

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