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!



Smart Home Forum by FIBARO Team

All Activity

This stream auto-updates     

  1. Past hour
  2. I am having the same issue, dd you got any solution?
  3. Today
  4. i think you misunderstood something, check the examples https://manuals.fibaro.com/home-center-3-quick-apps/
  5. Hmm, means i can trigger a function and handover the value to that, but it is not possible to give back a value to the http:request itself. I wondering all the time why everything feels blown up in complexity for more or less simple tasks. These nesting of functions i normally try to prevent. In my case it will be then: checkState -> getPower -> checkState 2 functions get will receive the HTTP data and send over to checkState then to work with and compare the values. I will give it a try, but .... you know ... all this work to compare ONE value.
  6. In my P1 Monitor QuickApp I publish the power consumption in a unused device. That way I can use the standard Fibaro functions to do whatever I want. You could also use a child device if you don’t have a unused device.
  7. sure, the local power is within the success, in which you can call another function as callback or continue with whatever you wish, within the "success" part of your code.
  8. The rgbw 2 manual says that it is possible.....
  9. Within the http request i receive the data as expect, but the received data is not available outside. self:debug print the value as expected, but the local power does not contain a value outside of the request.
  10. I am gonna take a look. I already saved @jgab your generic scene, to manage all light automation in that one scene. Now with the quickapp solution for motion it will be complete. I will study the info.
  11. @jgab I could definitely see how your suggestion would make it easier to build in all the extra conditions, happy to give it a go! For me I think my knowledge gap is probably a bit of all three; but guidance on starting out adding and configuring a QuickApp with Lua and API calls from scratch is what's missing mainly for me right now. I feel i could probably drop in your codes to a Scene ok, i managed to pull everyones code into the one i posted above for example (thanks to @SmartHomeEddy & @BusterB1959 ). I couldn't work out how to add the QuickApp you suggested above though and add the "devices" and "delays" to it.
  12. SmartHomeEddy


    Maybe it is possible to make a scene to change the profile?
  13. This thread was a about a Scene and I guess they are supposed to be a bit "easier" to develop with "conditions" and all... however, they can also become very complex - and my example was a way to make it easier to cope with scenes that handle these kind of "do something after sensors been safe for X s". But tutorials are always good - is it Scenes, QuickApps, or Lua and Fibaro's APIs in general? or all three? and if so in what order?
  14. 10der


    it's not implemented yet!
  15. you trying to decode it directly, try vice very json.encode and check the the debug output, just to ensure you really getting something useful back
  16. Hi Guys, getting crazy and i dont find the solution for that. I want to read a value via HTTP and write it to a value in my script to use it in other functions. But i don´t get the value out of my HTTP request or as return out of my function. Maybe someone can help. dPower = http:request("", { options={ headers = {Accept = "application/json"}, checkCertificate = true, method = 'GET' }, success = function(response) local data = json.decode(response.data) local power = data.power self:debug(data.power) end, error = function(error) self:debug('error: ' .. json.encode(error)) end }) The value is received and extracted to power, but i cannot use is outside of my http request. Additional to that "dPower" is emopty. Thanks for lighten me up.
  17. Can somebody tell me, how can i add to the hc3 my Nice gate? I have got a Nice Robo 500 with a Flor remote controller, but i don’t know what is the adding steps. Click device>Add->Nice, select protocol and what next? And after? Something need doing on the gate opener?
  18. i know, got already answer "it looks like some of the modules in store breaks the "for free" feature, so you have to add with price x and " ... exact, and that part i stopped to listen and removed all non-working for free QAs from store till it's fixed. They now directly free to download on quickapps.info website
  19. Witajcie Mam taką zagwozdkę. Otóż przy basenie mam pompę która się czasami zapowietrza. Zasilanie do niej jest podłączone przez single switcha więc jej zapowietrzenie jest widoczne poprzez zmniejszony pobór prądu. Potrzebuje pomocy kogoś kto ogarnia lua aby opracować scenę w której będzie można zadeklarować normalne zużycie gdy pompa pracuje normalnie ( od do) a w momencie gdy np przez zadany czas też który będzie można zadeklarować powiedzmy 30 s to wyśle do mnie powiadomienie wskazane i predefiniowane wcześniej w panelu powiadomień na wskazany telefon również z panelu w postaci pusch
  20. I would be also greatful if someone would describe it in a "step-by-step" way...
  21. @jgab thanks this is really useful and i can see how it would be more efficient. I've looked in your QA thread a few times and although has loads of clear instructions, I'm a newbie and couldn't work out where to start. I can see how to add a blank QuickApp from the "Add device" menu, and i maybe understand the scene options above - but i'm not clear how to bring that all together. If there are any "getting started" instructions you could point me at, i could have a go trying to set one up?
  22. Yes i followed. I have got a HC2, and i bought a HC3. I did the devices migration, but the TV not working.
  23. @Momos - thanks again. In the end, I fixed it by including *without* security.
  24. This is the one I wrote. Does it not work for you? https://marketplace.fibaro.com/items/sony-bravia-remote-control VirtualDevices are for HC2 only and QuickApps for HC3 only. I used the HC2 VD on my HC2 (the one I linked to in my QA) but hade to write my own QA when I switched to a HC3. I had to change a few things to be able to import the VD to the HC2 (you have to change name of the buttons, it is described in the comments how to do that) Do you have a HC2 or HC3? Have you followed the instructions on how to prepare your TV for remote control?
  25. I can only add that I have implemented the decoding in a virtual device, where this is part of the code: local engTxt = fibaro:getValue (3, "WeatherCondition") -- translate English "Yahoo texts" to Norwegian local weatherTxt={rain="regn",drizzle="yr",showers="regnbyger",snow="snø",sleet="sludd",foggy="tåke",cloudy="skyet",clear="klart",sunny="klart"} local norskTxt=weatherTxt[engTxt] if norskTxt==nil then norskTxt=engTxt end -- can't find the translation in weatherTxt Here, the first line gets the weather condition as a string from the Yr plugin, while lines 3 - 4 convert the result to Norwegian terms. The last line retains the English term if it is not found in my weatherTxt table (i.e. if it has returned a nil value), but so far this has not happened. In conclusion, I am able to pick up relevant weather conditions from the Yr plug in. I do not use the code numbers, only the text. Good luck!
  1. Load more activity
  • Create New...