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
Search the Community
Showing results for tags 'request'.
-
Hello. I have written a code in LUA 5.4 which gives me a list of prices and timestamps through a URL, and on FIBARO HC2 it wont work. I understand that FIBARO HC2 uses Lua 5.1 or something like that. I am trying to start a boiler and a heater using HC2, but I have no idea how to start with that. How can I start the boiler and a heater at the time when prices are low on HC2 using a website URL? If required, I will provide more information in the comments. Thanks in advance.
- 1 reply
-
- automation
- api get
- (and 4 more)
-
Hello everybody here, I'm new on this forum and I have an issue with my virtul device created on HCL. In particular, after have been created a virtual device with a button and a label, I would like to assign an action for a such button. Let's say, I want to turn on some phiscal device and update a label's value to "Turned On" respectively. By using a String option on HCL, I managed to send a single SOAP request(on a button click) in order to either turn on device or change label's value separately. The issue is that, I would like to execute both things togather. In the following I'll share my code which I've tried to assign to the button: Case 1 GET /api/callAction?deviceId=131&name=turnOn HTTP/1.1 Host: 192.168.1.31 Authorization: Basic Base64_encode_of(login:password) Case 1 Works fine Case 2 GET /api/callAction?deviceId=113&name=setProperty&arg1=ui.Label1.value&arg2=Turned%20On HTTP/1.1 Host: 192.168.1.31 Authorization: Basic Base64_encode_of(login:password) Case 2 Works fine Case 3 GET /api/callAction?deviceId=131&name=turnOn HTTP/1.1 Host: 192.168.1.31 Authorization: Basic Base64_encode_of(login:password) GET /api/callAction?deviceId=113&name=setProperty&arg1=ui.Label1.value&arg2=Chiuso HTTP/1.1 Host: 192.168.1.31 Authorization: Basic Base64_encode_of(login:password) Case 3, both things together, No. It executes only the first request. So I've been wondering, is it even possible to carry out something like case 3? And if so, where I've been failing? Thanks for any kind of help!
- 1 reply
-
- hcl
- virtual deice
-
(and 2 more)
Tagged with:
-
Dear forum readers, I wanted to make HTTP request to an IP device of mine. to make it possible to send a body to a Url so that the variables wil change. i have 4 buttons in my virual device and each have to send its one variables to the ip device the Data of the body has to go to this link and de body variables are : <"eec0c0b41b4c43119d33e2bdafe1fc08"><name>Woonkamer</name><type>livingroom</type><preset>asleep</preset></location></locations> I know that i have to use the put command but i don't know how i exactly will put all the variables in the body. plugwise = Net.FHttp("ip", 80) plugwise:setBasicAuthentication("Username", "pass") fibaro:log(response) Can someone help me. on how i can do this on the best way.
- 2 replies
-
- virtual device
- http
-
(and 2 more)
Tagged with:
-
Hi all, I try to build a smart alarm system. I installed on entrance on a apartment a motion sensor. People sometimes pass outside apartment that can cause a false alarm. I like to ask from experts if you can build a basic sence that can count 1 minute after the first trigger and if there is activity/motion to sound alarm. As it is common burglars for security doors need from 30 sec to 5 min to open this kind of doors, in my opinion if someone will stay outside to my door, will not do that for a good reason. I believe that fibaro can give the flexibility that no other alarm system can provide.
-
Hi @T.Konopka, @I.Srodka I'd like to request the ability to kick off a mesh reconfig on either a device master id or device node id through the api. I am creating some basic scene to check if a device goes dead. I can wake it up and it would be great to follow that with a mesh reconfg. A json response with it's success / lack of success would also be helpful. A stretch would be the list of neighbor nodes that were successfully updated during the process I think it would be a bad idea to enbable a full mesh reconfig hence the request for a single device / node mesh reconfig Thanks for considering and comments /amendments welcome _af
-
Hi @T.Konopka I would like to request the capability be able to stop a long running device reconfiguration. I had a device this morning that appeared "not configured" after a routine backup and I started a soft reconfiguration. It is now continuous and I cant stop itself This capability could added in a number of different ways... Explicit capability to stop a device reconfiguration. Timeout set on the configuration process that automatically stops after a set time (5 or 10 minutes) ... perhaps there are others... Thanks .
-
[RFC] Home Center 2 This Request for change concerns possibility to hide devices created by plugins. The virutal device(s) created by some plugins like Philips HUE, or Logitech Harmony, only take place in the GUI, but actually there is nothing to do, only the first time i.e. initiating connection, or occasionally like finding HUE devices. These devfices unfortunatelly can not be hidden in the system and they take precious space in the GUI. So please Fibaro, add this feature to the system, at least for thouse plugins which need to be vissible only ones, or occasionally. Thanks in advance.
-
I can not get Value outside of scope of httpclient
mdejager posted a question in Scenes and Interface
Hi, I am using an httpclient request to get an address out of json array of google maps. It is working perfect but I would like to have the value out of the request scope/block. I get a value at 1 but I do not get a value at 2. I hope someone can help me. Thank you! longitude = 52.568197 latitude = 4.560753 http = net. HTTPClient () http : request ( 'https://maps.googleapis.com/maps/api/geocode/json?latlng=' .. longitude ..',' .. latitude .. '&sensor=false', { options = { method = "POST" }, success = function (result) output = json.decode(result.data); address = (output.results[1].formatted_address); print("1:" .. address) end, error = function (err) fibaro: debug ("Errortje:" .. err); end }) print ("2: " .. address- 13 replies
-
- httpclient
- scene
-
(and 2 more)
Tagged with:
-
Hi, I have two functions in a scene that I call one after the other function1 - create global variable if it doesn't exist (through the api) function2 - write some data to the global variable the second function will fail as the 'create variable' hasn't been completed by the time I try to write to it. I can add a delay or a check that the 'variable is not nill' (ie it exists) in function2 but it still fails to execute correctly I think I recall seeing that a http request in a scene will not always run in the order of the scene ? is this correct or something else here at play. If so has anybody found a way within a single scene to create a variable on the fly and then save data to it successfully. As a last resort I was thinking about having the scene run once to create the table, call a second instance of itself and kill the first instance. I'm not sure if this would even work but it seemed like a very inefficient workaround even if possible I have seen many virtual device examples of creating a variable on the fly and saving data to it but none from a scene Thanks -f @jompa68, @petergebruers, @Sankotronic