Search the Community
Showing results for tags 'global variable'.
-
Can someone help me with Node-Red? I need to tell node-Red to change a global value in HC2. Thanks for the Help
-
I use the Imperihome as front end for my HC2 and the other devices I have. Imperihome is mostly fine but the amount of custom text able to display is limited to one line. But, Imperhome can show a web page. Therefore, can I make a global variable where I concatenate HC2-values/information and embed HTML-codes. I then call the variable from my Imperihome and a tiny webpage with e.g. four lines of text is generated. Does this sound possible?
-
I want to trigger a scene whenever the global variable change value. The values of the global variable are are "0" or "1" . The test scene is : --[[ %% properties %% weather %% events %% globals GlobalVariable --]] if ( fibaro:getGlobalValue("GlobalVariable") == "1" ) then fibaro:debug("Variable is 1"); end if ( fibaro:getGlobalValue("GlobalVariable") == "0" ) then fibaro:debug("Variable is 0"); end The scene is not activated automatically by change of the global variable "GlobalVariable". If I run scene manually it reports correctly the value
- 4 replies
-
- global variable
- scene
-
(and 1 more)
Tagged with:
-
Hello, Tell me, knowing guys) I wrote a scene that tracks the state of light in the room and passes it to a global variable. But this scene constantly reports that too many instances are running ( The room has a physical switch that, depending on this global variable, turns off or turns on the light in the opposite direction. Maybe there is a more elegant way to write this scene? Thanks ) --[[ %% autostart %% properties 15 value -- main light 23 value -- window light 21 value -- inner light 97 value -- outer light %% events %% globals --]] fibaro
- 5 replies
-
- global variable
- light
-
(and 1 more)
Tagged with:
-
Guys, Problem, I have code below, however, change the value of Global variable "regenover" does not trigger the scene. I don't understand why not, someone able to help me out here ? --[[ %% globals regenover -]] local trigger = fibaro:getSourceTrigger() local regentijd = fibaro:getGlobalValue("regenover") if regentijd == "0" then fibaro:call(475, "turnOn") fibaro:call(782, "pressButton", "5"); elseif regentijd == "5" then fibaro:call(475, "turnOff") fibaro:call(782, "pressButton", "4"); elseif regentijd == "15" then fibaro:call(475,
-
I want to fill a global variable on my HC2 using a http command from another machine Is this possible Thks, John
-
There was a topic on link Asterisk PBX and HC2 to have telephone caller ID passed to HC2 : The global variables were passed to HC2 via API call as : $url = "http://". $username . ":" . $password . "@" . $HC2serverIP . "/api/globalVariables/" . $variable; where $password = "password" // password for HC2 $username = "username" // username for HC2 $HC2serverIP = "123.123.123.123" // IP of HC2 when we had HC2 username as single word it was working fine, but now when we were forced to
- 1 reply
-
- api
- global variable
-
(and 1 more)
Tagged with:
-
Hi folks, I have a bit of a puzzler. I have a scene that sets to global variables based on light level from a sensor (device 217 ) The two options within the code are either 'day' or 'night' but sometimes it gets set to 'normal' Could anybody offer an explanation Scene code below... Thanks Frank --[[ %% autostart %% properties 217 value %% events %% globals --]] -- Configuration - Scene Info sceneName = "GV Time of Day, inside and outside" sceneVersion = "1.0.1" -- Scene Description -- Sets a global vari
- 4 replies
-
- global variable
- lua
-
(and 1 more)
Tagged with:
-
Global Variable changes after HTTP PUT Json, but scene not triggered
mvdkallen posted a question in Home Center 2
Dear Fibaro team, In my HC2 I use many global variables which offer me full flexibility with this great controller :-> Lately I noticed that if you change a global variable on HC2 through a HTTP command then the global variable on HC2 will change, but Scenes that are dependent of this global variable change (.. trigger) are not being executed. For testing purpose I then created a new scene within HC2 which changes the same global variable, and now I notice that the other Scenes (.. that are dependent of this global variable change by trigger) are being executed. So it looks lik- 2 replies
-
- HTTP PUT
- Global Variable
-
(and 1 more)
Tagged with:
-
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!!
- 3 replies
-
- API
- Global Variable
-
(and 3 more)
Tagged with:
-
Make a not yet existing global variable in a scene?
Lambik posted a question in Scenes and Interface
Hi! I want to automatically make a new global variable in a scene? How can this be done? -
Hi2UAll, I need some help. I'm able to store a table in global variable and read the content. But.. When saving is done, by a webbrowser in the HC2 global variable panel, the data is corrupted! The value in the global variable shows NaN (Not a Number). Before saving a table in a global variable in lua I encoded it first. When reading the global variable I use decode. ( json.decode(MYTABLE) ) Can somebody help me with this to get it right? Thank in advance!
- 13 replies
-
- NaN
- Global Variable
-
(and 2 more)
Tagged with:
-
Hi all, Yesterday I received the new Homey controller (www.athom.com) and I would like to somehow integrate this into my existing Fibaro Home Center 2 environment. (.. I'm very happy with my Home Center 2 controller and don't want to replace it by Homey at all). I purely want to use Homey because of its good speech recognition capabilities (.. so Home Center 2 will remain my single and main controller) and am wondering how I could let Homey change a Global Variable within the Home Center 2 controller, so based on this change then scenes could be triggered within Home Center 2. I h
-
I use global variable set with a time string. This works fine if set with a scene. However if set via the control panel - variables it accepts only integer/real numbers. Should the software allow just numbers and strings, so is this an interface issue which should be redirected to Fibaro or is my approach just false?