Jump to content

Search the Community

Showing results for tags 'variables'.



More search options

  • 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

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

Found 10 results

  1. davidneale

    home or away Variables wifi

    is there a way to make home or away Variables by using your wifi at home so the Fibaro system nows when I ip dress comes into the area it know someone is home
  2. HI, Is it possible to create a variable (specifically a predefined variable) As part of creating a VD I want to create the variable on the fly I looked at the developer documentation but couldn't find anything Is this possible ? Thanks -f
  3. Rikbast

    Domoticz in combination with HC2

    Hi, I was searching on the forum about 2-way communication between Domoticz and HC2 (or HCL). What is my situation? At the moment I am running Domoticz with Fibaro modules and I am considering to move to Fibaro, however I want to keep my LUA scripts in Domoticz for the time being. The idea is to exclude all devices in Domoticz and move them to HC2 (or HCL) and keep the scripting running on Domoticz, so I am looking for a way to get variables from Fibaro to Domoticz for the LUA scripts. Furthermore if a variable from Fibaro triggers something in the LUA script in domoticz I want to sent a command back to Fibaro from domoticz. Is that possible? It is an in between solution so that my HA can keep on running. Thx already. Rik
  4. I have used several block scenes to set a weekday variable and also not been able to set the month variable. Have now tried to create a LUA code, that will set my 2 variables with only one scene, but it does not work. Could someone let me know what I am doing wrong please? (This is my first attempt on a LUA written scene) --[[ %% autostart %% properties %% weather %% events %% globals --]] local dag = os.date("%w"); local mnd = os.date("%m"); if(dag == 0) then; fibaro:setGlobal("Ukedag", "Søndag"); elseif(dag == 1) then; fibaro:setGlobal("Ukedag", "Mandag"); elseif(dag == 2) then; fibaro:setGlobal("Ukedag", "Tirsdag"); elseif(dag == 3) then; fibaro:setGlobal("Ukedag", "Onsdag"); elseif(dag == 4) then; fibaro:setGlobal("Ukedag", "Torsdag"); elseif(dag == 5) then; fibaro:setGlobal("Ukedag", "Fredag"); elseif(dag == 6) then; fibaro:setGlobal("Ukedag", "Lørdag"); end; if(mnd == 1) then; fibaro:setGlobal("Maaned", "Januar"); elseif(mnd == 2) then; fibaro:setGlobal("Maaned", "Februar"); elseif(mnd == 3) then; fibaro:setGlobal("Maaned", "Mars"); elseif(mnd == 4) then; fibaro:setGlobal("Maaned", "April"); elseif(mnd == 5) then; fibaro:setGlobal("Maaned", "Mai"); elseif(mnd == 6) then; fibaro:setGlobal("Maaned", "Juni"); elseif(mnd == 7) then; fibaro:setGlobal("Maaned", "Juli"); elseif(mnd == 8) then; fibaro:setGlobal("Maaned", "August"); elseif(mnd == 9) then; fibaro:setGlobal("Maaned", "September"); elseif(mnd == 10) then; fibaro:setGlobal("Maaned", "Oktober"); elseif(mnd == 11) then; fibaro:setGlobal("Maaned", "November"); elseif(mnd == 12) then; fibaro:setGlobal("Maaned", "Desember"); end; The variables that are set:
  5. Hi I have been playing around with motion activated scenes which I now have working however I would like the ability to override the motion scenes by switching the light switch (connected to a Dimmer 2 module) I currently have this working but it only works if the lights are already off, is there a way I can set a scene which says if Bathroom lights are switched on via the switch change variable to X and the same if the light switch is switched off? Day time motion Night time motion Motion Off Any help would be greatly appreciated.
  6. 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 debug code verfies it. I can see that both Var1 and Var2 are triggering the scene. Next, I wanted to change the logic a little and no longer wanted Var2 to trigger the scene, only Var1. I still used Var2 in the code however, just not as scene trigger. The new trigger definition looked as follows: --[[ %% autostart %% properties %% globals Var1 --]] But, to my surprise, the scene is still triggered by Var2! My debug code reports that Var2 is indeed the trigger source. I am confused! Restarting the HC2 does the trick though. After restarting, the scene works as designed and Var2 no longer triggers the scene. The same behaviour also applies to block scenes. I have created a block scene using Var1 and Var2 in the if-statement and then unchecked Var2 it in the "Triggering variables" list. Same thing happens - Var2 keeps triggering the scene despite the fact that I have unchecked it. If I convert the block scene to LUA code I can see that Var2 is not in trigger definition and hence should not trigger the scene. But it still does! Surely this must be a bug in the system right? Or I am missing something? Thanks Software version 4.160
  7. FredrikKarlsson

    Maximum length of the content of a variable?

    Hi, Does anyone know what the maximim length may be of the content that you store in a variable may be? For instance, can a HomeTable structure break your box if it is too big? Thank you, Fredrik
  8. AndyAA

    Notification Panel Variable

    Hi all, I want to set up Notifications (Push/E-Mail) for many sensors (door/window, flood, ...). If I use the notification feature of the sensor, I can only select predefined notifications from the notification panel. But if I write static text there (like "window open), I don't know which window it is. Is there a possibility to include a variable in the notification panel text which uses the device name, device room or similar? Use the notification panel like a very basic template? Otherwise I would always have to create a single magic scene for each sensor, and if I want to change text, I have to change all manually... Regards, Andy
  9. amatt

    Day/Night variable check

    I am trying to create a day/night setup via lua. Where at 8 am-10pm the variable is set to day and at 10pm-8am the variable is set to night. I cannot successfully do this via a block scene so i have used LUA to do this. Could someone help me look over my code to see if this is correct as i am fairly new in LUA. Thanks! --[[ %% autostart %% properties %% globals --]] -- Only need to call getSourceTrigger once -- For better debugging, I moved it to the top, -- before countScenes local sourceTrigger = fibaro:getSourceTrigger() fibaro:debug("Script started because of: " .. sourceTrigger["type"]) if fibaro:countScenes()>1 then fibaro:debug("Scene already running, aborting this one") fibaro:abort() end if (sourceTrigger["type"] == "autostart") then while true do local currentDate = os.date("*t") -- Do the time-string manipulation thingy here, instead of in -- each and every if-then statement -- %02u means unsigned int, 2 wide, leading zero TimeAsString = string.format("%02u",currentDate.hour).. ":" .. string.format("%02u", currentDate.min) fibaro:debug("TimeAsString: ".. TimeAsString) Day_night = fibaro:getGlobalValue("Day_night") fibaro:debug("Day_night: " .. Day_night) if ( currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7 ) and TimeAsString == "8:00" then fibaro:debug("Setting scenario number 1") fibaro:setGlobal("Day_night", "Day") elseif ( currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7 ) and TimeAsString == "22:00" then fibaro:debug("Setting scenario number 2") fibaro:setGlobal("Day_night", "Night") else fibaro:debug("Current time doesn't match any scenario") end end fibaro:debug("Scene not started, this is autostart-only!") end -- end of sourceTrigger["type"] == "autostart"
  10. Hey guys, I have some simple LUA Scenes that simply don't work unless I manually click RUN. Any help would be appreciated. Secondly, this "Goodnight" scene, breifly turns ON the lights, before turning them off??? I also have to manually run it twice before it updates the variable? The all lights OFF scene works perfectly by itself. I have a feeling I'm missing some basic understanding, thank you for your help. Jamie
×