Requête API a une eedomus avec Lua sur une fibaro HC2

70 Comments

Pour envoyer une requête API a une eedomus avec Lua sur une fibaro HC2 il faut crée un scene (les HTTPS ne sont pas accepter dans les virtual device)

Pour envoyer par exemple:

https://api.eedomus.com/set?api_user=xxxxx&api_secret=xxxxexE&action=periph.value&periph_id=494468&value=1

1= alarm activer 0 = desactiver

Il faut ecrire dans la scene

local http = net.HTTPClient()
http:request(« https://api.eedomus.com/set?api_user=F2tgxxxx_secret=6RNN6o4DJu3xqexE&action=periph.value&periph_id=494468&value=1 », {
   options = {
      method = ‘PUT’,
      headers = {},
      timeout = 10000
      },
  success = function(response)
              if response.status == 200 or response.status == 201 then
                result = json.decode(response.data)
                if result.body.error_msg then
                    fibaro:debug(‘Erreur: ‘..result.body.error_msg)
                end
              else
                  fibaro:debug(‘Commande a échoué’)
              end
            end,
  error =   function(err)
              fibaro:debug(‘[ERREUR] ‘ .. err)
            end
})

Lua est diferent dans les scene ou les VD et c est tres mal documente

J’ai beaucoup cherche

Leave a Comment

  1. Répondre

    I could not refrain from commenting. Well written! Ketti Gunther Schonfield

  2. Répondre

    I get very useful information on your page, I feel lucky

  3. Répondre

    People with high intuition are not liked very much, they are secretly admired, but most of the time they are not loved because they do not come to their job, they are also distant to those around them because they know the facts, life for these people is extra difficult and tiring.People with high intuition are not liked very much, they are secretly admired, but most of the time they are not loved because they do not come to their job, they are also distant to those around them because they know the facts, life for these people is extra difficult and tiring.

  4. Répondre

    sensizlik yar olmasın hepimizeeee

  5. Répondre

    sensizlik yar olmasın hepimizeeeeeeee

  6. Répondre

    Yalandan kim ölmüş ki.

  7. Répondre

    Gelecek nesile bir önerim var: GELMEYİN!

  8. Répondre

    Mermiler seksin bu alemde tek sensin.

  9. Répondre

    Hırsızlık kabul edilen meslek olmuşta haberimiz yok.

  10. Hey very interesting blog!

  11. Répondre

    I like and follow your site, thanks

  12. Répondre

    I think it is a fluent sharing, I will recommend your site to my friends

  13. Répondre

    Aw, this was a very good post. Taking the time and actual effort to create
    a good article… but what can I say… I procrastinate a lot and don’t seem to
    get anything done.

  14. Répondre

    I’ve been exploring for a little bit for any high-quality articles or blog posts
    in this sort of area . Exploring in Yahoo I ultimately stumbled upon this website.
    Studying this information So i am happy to express that I have a very just right uncanny
    feeling I came upon just what I needed. I so much indisputably will make sure to do
    not omit this site and provides it a look regularly.

  15. Répondre

    With imaginative crowdfunding, it has much more to do than simply that. Crowdfunding occurs on a genuine hidden need. Corliss Domenic Lynnea

  16. Répondre

    Soccer is more than just running around the court kicking the ball. Merrile Lindsay Foskett

  17. Répondre

    You completed a few good points there. I did a search on the issue and found most people will have the same opinion with your blog. Philomena Kienan Sewell

  18. Répondre

    Thanks for the blog. Really looking forward to read more. Keep writing. Anya Daryl Shanda

  19. Répondre

    There may be noticeably a bundle to find out about this. I assume you made sure good points in features also. Maible Wade Rojas

  20. Répondre

    Hello, always i used to check webpage posts here in the early hours in the daylight, as i enjoy to gain knowledge of more and more. Pauletta Hector Sayer

    • film
    • 23 novembre 2020
    Répondre

    Well I really enjoyed reading it. This information offered by you is very helpful for good planning. Fredia Bay Mika

    • film
    • 22 novembre 2020
    Répondre

    Great job you have done. It will be very helpful for those who want to get the approval of blog comments. Thanks for sharing such a valuable post. Sissie Quintus Natie

  21. Have you ever considered creating an ebook or guest authoring on other sites?
    I have a blog based on the same information you discuss and would love to have you share some stories/information. I
    know my readers would appreciate your work. If you are even remotely interested, feel free to send me an email.

  22. Répondre

    Thanks for the article post. Really looking forward to read more. Great. Abra Nikos Tremml

  23. Répondre

    Ahaa, its nice conversation on the topic of this post at this place at this webpage, I have read all that, so now me also commenting at this place. Dionis Akim Lefton

  24. Répondre

    Fantastic site you have below, i do agree on some matters however, but not all. Aurie Dorie Lukas

  25. Répondre

    I got what you mean,saved to my bookmarks, very decent website. Harlie Rriocard Didier

  26. Répondre

    Help to makeEven worse this impression, always cash your tickets out immediatelyin a flashroutinelycorrectas soon as possiblerightasapswiftly. Harley Pail Germano

  27. Répondre

    Sed risus felis, cursus eu varius quis, fermentum a leo. Morbi quis odio sed purus semper maximus. Doe Kingston Clyte

  28. Répondre

    You have brought up a very superb details , thanks for the post. Lisabeth Dannel McMullan

  29. Répondre

    You are my inspiration , I own few web logs and often run out from to brand. Codi Frederik Thor

  30. Répondre

    Looking at the fireplace picture very nice design overall. Jemie Courtnay Berkshire

  31. Répondre

    Im thankful for the article post. Really looking forward to read more. Fantastic. Ernestine Hamlen Eimile

  32. Répondre

    If you want to use the photo it would also be good to check with the artist beforehand in case it is subject to copyright. Best wishes. Aaren Reggis Sela

  33. Répondre

    Great message for all the people. And also very interesting facts about the plastic surgery. Ettie Mile Chesna

  34. Répondre

    If you want to use the photo it would also be good to check with the artist beforehand in case it is subject to copyright. Best wishes. Aaren Reggis Sela

  35. Répondre

    If you want to use the photo it would also be good to check with the artist beforehand in case it is subject to copyright. Best wishes. Aaren Reggis Sela

  36. Répondre

    Do you mind if I quote a few of your articles as long as I provide credit and sources back to your webpage?
    My blog site is in the exact same niche as yours and my users would really benefit from some of the information you present here.
    Please let me know if this okay with you. Thanks!

      • stevenin
      • 3 novembre 2020
      Répondre

      yes, no problem

  37. Excellent web site you have got here.. It’s
    difficult to find good quality writing like yours these days.
    I really appreciate people like you! Take care!!

  38. Répondre

    If you want to use the photo it would also be good to check with the artist beforehand in case it is subject to copyright. Best wishes. Aaren Reggis Sela

  39. constantly i used to read smaller content which as well clear their motive,
    and that is also happening with this article which I am reading now.

  40. Répondre

    This is my first time visit at here and i am actually impressed to
    read everthing at one place.

  41. Thanks for your marvelous posting! I actually
    enjoyed reading it, you might be a great author. I will be sure to bookmark your
    blog and definitely will come back at some point.

    I want to encourage you to definitely continue your great job, have a nice morning!

  42. Répondre

    I am sure this piece of writing has touched all the internet people,
    its really really fastidious post on building up new webpage.

  43. Répondre

    If you would like to grow your experience simply keep visiting this site and be updated with the newest news posted here.

  44. I like the valuable information you provide in your articles.
    I will bookmark your weblog and check again here frequently.
    I’m quite sure I’ll learn many new stuff right here!
    Best of luck for the next!

  45. Répondre

    Hey excellent blog! Does running a blog similar to this take a lot of work?
    I have virtually no expertise in coding but I was hoping to start my own blog
    in the near future. Anyway, should you have any recommendations or tips
    for new blog owners please share. I know this is
    off subject however I simply needed to ask. Thank you!

  46. Répondre

    I am actually grateful to the holder of this web site who has
    shared this fantastic paragraph at at this place.

  47. Répondre

    Thanks on your marvelous posting! I definitely enjoyed reading it, you are a great author.
    I will be sure to bookmark your blog and will often come back in the foreseeable future.
    I want to encourage one to continue your great posts, have a nice holiday weekend!

  48. Thanks for finally writing about > Requête API a
    une eedomus avec Lua sur une fibaro HC2 – stevenin < Liked it!

  49. This design is steller! You certainly know how to keep a reader entertained.
    Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Great job.
    I really enjoyed what you had to say, and more than that, how you presented it.
    Too cool!

  50. Répondre

    What’s up mates, pleasant post and pleasant
    arguments commented at this place, I am truly enjoying by these.

  51. Fantastic beat ! I wish to apprentice while you amend
    your site, how could i subscribe for a blog website?

    The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast
    offered bright clear idea

  52. Répondre

    Incredible points. Sound arguments. Keep up the great effort.

  53. Répondre

    I know this if off topic but I’m looking into starting my own blog
    and was wondering what all is required to get setup? I’m assuming having
    a blog like yours would cost a pretty penny? I’m not very internet
    savvy so I’m not 100% sure. Any recommendations or advice
    would be greatly appreciated. Thank you

  54. hey there and thank you for your info – I’ve certainly picked up something new from right here.
    I did however expertise a few technical points using this web site,
    since I experienced to reload the website lots of times previous to I could get it to load correctly.
    I had been wondering if your web hosting is OK?

    Not that I am complaining, but sluggish loading instances times will often affect your placement in google
    and could damage your quality score if ads
    and marketing with Adwords. Well I’m adding this
    RSS to my e-mail and could look out for much more of your respective
    intriguing content. Ensure that you update this again soon.

  55. Hi there to all, how is everything, I think every one is
    getting more from this site, and your views are nice in favor of new
    viewers.

    • Kyle
    • 6 septembre 2020
    Répondre

    It’s impressive that you are getting ideas from this post as well
    as from our discussion made at this time.

  56. Répondre

    I loved as much as you will receive carried out right here.
    The sketch is attractive, your authored subject
    matter stylish. nonetheless, you command get bought an shakiness over that you wish be delivering
    the following. unwell unquestionably come further formerly again since
    exactly the same nearly a lot often inside case you shield this increase.

  57. Hello, I enjoy reading all of your article post.
    I like to write a little comment to support you.

  58. Répondre

    Good information. Lucky me I ran across your blog by accident (stumbleupon).
    I’ve book-marked it for later!

  59. Répondre

    From that makes you lust for playing continuously until out of the capital and your winning target. Horatia Erhard Mecke

  60. Répondre

    Hey great weblog, just looking about some blogs, appears a pretty nice platform youre making use of. Im currently using WordPress for a couple of of my web sites but looking to change 1 of them more than to a platform comparable to yours as being a trial run. Anything in specific youd recommend about it? Lexine Stanton Ricki

  61. Répondre

    Ich kann gute Informationen aus diesem Artikel finden. Nisse Phillipe Barbie

  62. Répondre

    Vous avez relevé des détails intéressants ! ps site décent. Hedy Sayre Ume

  63. Ihr Blog ist ein Erfolg, sehr voll. Ahhh Wenn die Leidenschaft da ist, ist alles 🙂 Eba Immanuel Georgi

  64. Vielen Dank für die gute Berichterstattung. Es war in der Tat ein Vergnügungsbericht. Schauen Sie weit fortgeschritten, um von Ihnen angenehm hinzugefügt zu werden! Wie können wir übrigens kommunizieren? Violante Robinson Cristiona

  65. Ich lese Ihren Artikel mit Interesse, danke. Fae Zared Culbertson

  66. Répondre

    Viel Glück in Ihrem Blog, wie ich weiterhin regelmäßig zu folgen.