Jump to content

Search the Community

Showing results for tags 'variable'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • FIBARO Community
    • FIBARO Portal and Forum policy
    • FIBARO
    • Say hello!
    • Off-topics
  • FIBARO Update
    • FIBARO System Update
    • FIBARO Mobile Update
  • FIBARO Community Support
    • Scenes and Interface
    • FIBARO Products
    • FIBARO Mobile
    • FIBARO HomeKit
    • FIBARO Assistant Integrations
    • Other Devices / Third-party devices
    • Tutorials and Guides
    • Home Automation
    • Suggestions
  • FIBARO Społeczność
    • FIBARO
    • Przywitaj się!
    • Off-topic
  • FIBARO Aktualizacja
    • FIBARO System Aktualizacja
    • FIBARO Mobile Aktualizacja
  • FIBARO Wsparcie Społeczności
    • Sceny i Interfejs
    • FIBARO Urządzenia
    • FIBARO Mobilnie
    • FIBARO HomeKit
    • Integracja z Amazon Alexa i Google Home
    • Urządzenia Firm Trzecich
    • Poradniki
    • Automatyka Domowa
    • Sugestie

Categories

  • Scenes
  • Virtual Devices
  • Quick Apps
  • Icons

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Facebook


Google+


Skype


Website URL


WhatsApp


Country


Gateway/s


Interests

  1. I need help to understand why the below described HC2 Scene does not trigger when set to "Automatic" and the Variable "ATest" is set to "True". I can trigger the Scene manually wherafter the Device "Test" turns off as expected. Below follows the details: In order to understand the difference between "Automatic" and "Manual" and the effect of having av Scene turned "On" or "Off" in HC2, I made the following very simple test Scene in the Graphic Block editor: IF Variable "ATest" == "True" THEN Device "Test" = "Turn Off" The Variable "ATest" w
  2. Hello I'm new at lua programming and trying to use a variable to change light on or off, from a second button. But i can't get the variable to work. What is wrong here. Declaration { conditions = { { id = 187, isTrigger = true, operator = "==", property = "state", type = "device", value = false } }, operator = "all" } Actions local Status_186 = fibaro.getValue(186, "value") if Status_186 == 'ON' then fibaro.call(186, 't
  3. Can someone help me with Node-Red? I need to tell node-Red to change a global value in HC2. Thanks for the Help
  4. Hi all, I am building our first room using the HC3. Beining used to the HC2 it requires some thinking out of the box for me. My question: I'm building a scene for the ventilation in the new bathroom. I have a MS6 for RH and this part works. Now my challenge: In the future I want all extraction fans turn on when there is a CO alarm. I made an enumerated with 2 "states": Safe and Breached. To get the scene to act on the var change (now by a test scene) I am checking the variable in the condition/ trigger part as a non existing state: "off". Is t
  5. can someone help me? I am trying to create a scene that checks to see if a variable changes. if variable x=1 don't check variable (do nothing) but if variable x=0 then continuously search to see if a variable x changes from 0 to 1 then the loop stops until variable x changes to 0 again. *yes there is another scene that will change it from 0 to 1. *Edit, I figured this out.
  6. How do I put a GET status from Hue lamp into variable to store? HueGtw = Net.FHttp("IP-address",portNumber) HueGtw:GET('/api/xxxxxx/lights/3) Help would be appreciated?
  7. Hi I have this function function getHueLight(id) local hueIP = 'xxx.xxx.xxx.xxx' local huePort = '80' local hueKey = '--------------------------------' local requestUrl = "http://"..hueIP..":"..huePort.."/api/"..hueKey.."/lights/"..id; local httpClient = net.HTTPClient(); httpClient:request(requestUrl, { options = { headers={}, method='GET' }, success = function (response) fibaro: debug (response. data) end, error = function (err) fibaro: debug ("Error:" .. err) end }); end and i want to assign output of this to varia
  8. I have the following scene set up with fibaro sensor and fibaro dimmer. It all works fine except the events log shows that the sensor keeps reverting to 'safe' seconds after sending a 'breached' message so the light does not stay on. After doing this a few times it finally stays on for the full 900s set. Is there a parameter I need to set on the sensor, or perhaps make two separate scenes?
  9. Version 1.2

    222 downloads

    Due to lack of global functions, we're adding more and more global variables. In some cases after a while we find a way to do it differently, but the global variables are still there. Usually we quite afraid to delete the variable because we're not sure if the variable is not in use somewhere in code. So, this code scans scenes and virtual devices and finds where the variable is in use. Scenes displayed (blue color) by name and scene ID. Virtual devices displayed (wheat color) by name, button name, device ID and button ID. The program execution has four options: 1. Scan fo
  10. What I want? I want to show and edit Global Varibles via my device (Iphone) on the Fibaro App. What have I done so far? 1 / I have made a global variabel called "Counter" in the panel section of HC2 2 / I have made som LUA code that can count fibaro:setGlobal("Counter", fibaro:getGlobalValue("Counter")+1) fibaro:debug(fibaro:getGlobalValue("Counter”)) So far it works - I can count! 3 / Now I want to show the variable in my interface device I have tried to make a Virtuel Device, but it seems like it is only possible 2 set a v
  11. Hello guys, I have some trouble with creating scene, which has to TURN ON a Fibaro Plug at exact time, but only when variable is met. The problem is, if i tell scene to TURN ON plug at exact time, it works fine. But, when I add variable next to the time with "And", scene completely ignores the time and runs every time the variable is met. So if I or a different scene change variable to OFF, this scene will automatically trigger despite it shouldnt untill 18:00. Anyone knows why please? Thank you!
  12. By making a scene, how to set a variable after the HC2 has been restarted? With other words, how does the system HC2 know when it has been restarted.... as after this I want to set a variable Restart_HC2 > RUNNING or RESTART Any ideas? I would to run a scene to set some variables after Restart of the HC2
  13. I can't get my head around a problem I am having with variables triggering scenes. So, turning to the forum to see if anyone has any idea. The problem I am having is that a scene is triggered by a variable even if the variable is not named in the LUA trigger section. I created a scene with the following trigger definition: --[[ %% autostart %% properties %% globals Var1 Var2 --]] The scene worked fine. It is triggered by changes in Var1 and Var2 as should be and the LUA code is executed. My
  14. Hi What I want to do is to show from a variable to a ipad fibre display - for example i have setup a variable that changes on a scene called Alarm at Home - I want to display this as a on or off state some how on the iPad in fibre display so that you can see if the alarm in home mode is on or off (active or not active) Just need a simple way to show the state of a variable visually - have tried doing it through a virtual device with no luck.... any help would be greatly appreciated..
  15. amatt

    Guest presence

    Has anyone been able to create a functioning Guest "mode"? I was thinking about making my guest mode do something like the following but is not functioning correctly. everytime a guest is present add 1 to the "guests" variable then everytime a guest is not present minus 1 from the "guests" variable I already have the presence setup with a VD that finds the guests phone via Mac address. the problem is that when it detects that the guest is present it adds 1 to the variable everytime it finds the guests phone (I have it looking every 30min) has anyon
  16. Can someone explain me why this scene gives me the warning of to many instances. I have several similar looking scenes that sometimes gives the notification of to many intances. Max running instances is set to 2
  17. I am still testing around the usage of variables and tried the following simple thing. I do have a predefined variable having two values being ON and OFF. I do have a scene (automatic) which switches on a wall plug, when the variable is in its OFF status and sets the variable to ON. If variable=ON the "switch on" and set variable to ON nothing happens. Only when I restart HCL, the scene is triggered. When I then switch the variable to OFF in the variable panel, nothing happens. What I also noticed. when the variable is switched ON and I manually trigger the scene,
  18. Hi I would like to know the best practises to map a device id (based upon the known 'hometable' and another variable)? For example, see partial scene below. Each device has a specific timeout. The way I did in the main scene doesn't seems to be a best practise since I'm repeating again the device id, gathered from the hometable. Using the name (for example local BuzzerId = (jT.Woongedeelte.Buzzer)) neither (I think). But how should you do it in a way you can link the device id with a timeout value in your configuration setting of a scene so you an use it in a loop. Hope it's clear.
  19. Hi. I need help with setting global variable via api calls. I have HC lite. My variable is "Pocitnice" and value can be "Da" or "Ne". In webbrowser i put this string: http://192.168.1.48/api/globalVariables/Pocitnice and I get this: {"name":"Pocitnice","value":"Ne","readOnly":false,"isEnum":true,"enumValues":["Da","Ne"],"created":1490736622,"modified":1490891810} So, what i must add to this url (http://192.168.1.48/api/globalVariables/Pocitnice) to set value "Da" to Pocitnice??? Please, help.
  20. Hi there, I got the next setting but it does not work properly can someone explane to me whats wrong? I made a variable "timeOfDay" with 3 options "day" "evening" "night" Then I made three scenes on time: 06h30 set variable to day, 18h30 set variable to evening, 23h30 set variable to night. after this I made a scene to turn on the lights in my livingroom asfollow: If sensor livingroom detects motion check variable equals to evening. and lux value < 35 then turn on lights I only checked the triggering device "motion" so this scene will only run if
  21. How to add a variable "BathroomSetTemp" to a scene I made a variable in varaibles panel = BathroomSetTemp write a temperature to variable "BathroomSetTemp" read the temperature from the vairaible "BathroomSetTemp" This is my code: Wondering what i am doing wrong... as in the debug window in my scene, i am getting: [DEBUG] 13:40:57: Previous Target Temperature: nil < NIL instead of a temperature reading from my variable -- Thermostat ID local FloorHeating = 262 -- Heatit Unit -- Get Temp (Target) Readings local FloorBathroom
  22. Morning all! Been trying to figure all the documentation all last night about Global Variables and the API. I can look at the status of a variable but no idea how to set it using the API? Does anyone know the line for setting Global Variables using the API? Thanks!!
  23. Morning all! Been trying to figure all the documentation all last night about Global Variables and the API. I can look at the status of a variable but no idea how to set it using the API? Does anyone know the line for setting Global Variables using the API? Thanks!!
  24. Hi everyone, Is it possible to create a virtual device to view my current variable values? I've seen guys do this with LUA, but not on an HCL which doesn't have the option. Using LUA and HC2 http://forum.fibaro.com/index.php?/topic/21002-variable-status/ Thank you.
  25. Hello, I thought it was time to start learning some simple lua coding. Anyhow, thought I could get some help here. I am trying to make a slider adjusting a variable that controls two different wall plugs. I want to make a slider for behaving like a thermostat. I've got two electric heating panels which is connected to two wall plugs. My thought was that if I set slider value to 21 then it would cut the power to the wall plug when netatmo reaches that temperatur. I don't really know where to begin, help would be much appreciated. Thanks!
×
×
  • Create New...