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!

 

Regards,

Smart Home Forum by FIBARO Team


Search the Community

Showing results for tags 'scenes'.

  • 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 just got some smart bulbs and created some scenes to trigger the lights to come on as soon as i enter the room (the motion sensor detects motion). But i notice by the time i walk in the room there is some lag (about 3-5 seconds) before the lights turn on. How can i get them to turn on faster? is it possible? I have a relatively small home and these devices are about 50 feet from the controller with multiple walls in between but i have an extender between the controller and these bulbs and motion sensors. Any help would be appreciated. thanks.
  2. Hi all, New to Fibaro. I'm trying to setup some simple scenes and variables - having a few issues. I'm getting the following errors : "To many instances | Scene: xxxxxxx Number of instances of scene has been reduced due to exceeding limit" Scenes: MorningDisarm, AlarmActive, AlarmDeactive Variables: AlarmState I'm trying to have the variable update itself based on whether or not the alarm is active or not and every morning at 4am, disarm the alarm. Where am I going wrong? Is it as simple as setting the number of instances to 1?
  3. Please help! I am trying to use some inspiration from http://www.fibarouk.co.uk/five-things-to-do-with-your-new-home-center/to regulate my air heather pump, What I want it to do is that when any of my doors has been open for more than 45 sec, turn off the heater and then wait untill all the doors has been closed for 45 sec before turning on again. But unfortionatly i dont get it to work and cant se what the problem is. Sadly i am yet not experienced enought with lua butneed to learn, i now have 80 scenes reulating some 73 switches and sensors. --[[ %% properties 93 value %% globals --]] local Doorfront = 149 -- main door local Doorback = 50 -- Rear door local Doorside = 52 -- Side door local heater = 218 local heatDelay = 45 -- 45 seconds (the value is in seconds) local heatstart = 45 -- 45 seconds (the value is in seconds) -- Only allow one instance of the current scene to run at a time if (fibaro:countScenes() > 1) then fibaro:abort() end local value, timestamp = fibaro:get(Doorfront, 'frontvalue') local value, timestamp = fibaro:get(Doorback, 'backvalue') local value, timestamp = fibaro:get(Doorside, 'sidevalue') local value, timestamp = fibaro:get(Doorfront, 'frontvaluestart') local value, timestamp = fibaro:get(Doorback, 'backvaluestart') local value, timestamp = fibaro:get(Doorside, 'sidevaluestart') if (frontvalue == '0') and (backvalue == '0') and (sidevalue == '0')then -- is the light off? -- the doors are closed -- keep looping until the door has been open for heatDelay time while ((frontvalue ~= '0') or (rearvalue ~= '0') or (sidevalue ~= '0') or ((os.time() - timestamp) < heatDelay)) do fibaro:sleep(1000) -- let other things happen for a second, just wait here value, timestamp = fibaro:get(Doorfront, 'frontvalue') value, timestamp = fibaro:get(Doorback, 'backvalue') value, timestamp = fibaro:get(Doorside, 'sidevalue') end -- the doors has been open long enought fibaro:call(heater, 'turnOff') -- turn off the fan else -- the doors are closed while ((frontvalue = '0') and (rearvalue = '0') and (sidevalue = '0') or ((os.time() - timestamp) < heatstart)) do fibaro:sleep(1000) -- let other things happen for a second, just wait here value, timestamp = fibaro:get(Doorfront, 'frontvaluestart') value, timestamp = fibaro:get(Doorback, 'backvaluestart') value, timestamp = fibaro:get(Doorside, 'sidevaluestart') end fibaro:call(heater, 'turnOn') -- turn on the heater end
  4. I've set up the HCL (only graphic blocks) with 5 dimmer 2's each connected to 3 ceiling lights. Most is working, except for dimming in scenes. Can someone please comment on what I'm doing wrong (see attached picture): This used to work until 2 days ago, now the set value has no effect (e.g. turn 3 lights on at 25%) I'm using the Beta 4.061, in the previous 4.057 version the "set value" wouldn't show the value box at all (?!?) Turn on/off works fine in scenes Dimming works fine for individual devices using the slider The variable has no function, I just want to manually trigger different scenes from my IOS devices Please advice!
  5. How to connect a Fibaro RGBW controller to a 220v LED strip 220v LED strips can run for 50m vs 12vDC/24vDC that have a limitation of 5m/10m (then you need to start adding amps, additional controllers and return wires) You will need: 1. Fibaro RGBW controller x 1 2. Home Center 2 3. Fibaro Dimmer x 3 4. 220v RGB LED 50m roll Connect before each of the R,G,B lines a dimmer on each line. Let's call them RDimmer, GDimmer and BDimmer The RGBW controller will not be connected to any LED strip. It is just used as an interface for the users. RGB device ID is 100 RDimmer is 101 GDimmer is 102 BDimmer is 103 Create a scene and add the following code. Change the device IDs with your own. CODE --------------------------------------------------------------- --[[ %% properties %% globals --]] local colorSet = fibaro:getValue(100, "lastColorSet"); local RGBWTable= {}; local i = 1; for value in string.gmatch(colorSet,"(%d+)") do RGBWTable = value; i = i + 1; end local RRR = math.floor((RGBWTable[1] / 2.55)) ; local GGG = math.floor((RGBWTable[2] / 2.55)) ; local BBB = math.floor((RGBWTable[3] / 2.55)) ; fibaro:call(101, "setValue", RRR); fibaro:call(102, "setValue", GGG); fibaro:call(103, "setValue", BBB);
  6. Hi I have a problem to understand why my lua-code not working as i expected. See first this (properly working) test-lua-scene and the debug-result: --[[ %% properties %% globals --]] globalmessage = " " -- function funcSections() local typename = "Sections" fibaro:debug(globalmessage .. typename) end; function funcRooms() local typename = "Rooms" fibaro:debug(globalmessage .. typename) end; function funcDevices() local typename = "Devices" fibaro:debug(globalmessage .. typename) end; -- fibaro:debug("before call function funcDevices--------------------") globalmessage = "Now call function funcDevices: " funcDevices(); -- fibaro:debug("before call function funcSections-------------------") globalmessage = "Now call function funcSections: " funcSections(); -- fibaro:debug("before call function funcRooms----------------------") globalmessage = "Now call function funcRooms: " funcRooms(); As expected first was the function "funcDevices" performed. Second the function "funcSections". And then at last the function "funcRooms". And now for my scene, which does not work as expected (code and result): --[[ %% properties %% globals --]] globalmessage = " " doneanswer = " " selHelpDRS = "{" Dm, Rm, Sm = 0, 0, 0; function funcDevices() local typename = "Devices" fibaro:debug(globalmessage .. typename) local http = net.HTTPClient() local urlIPP = 'http://127.0.0.1:11111' local urlAPI = '/api/devices' http:request(urlIPP..urlAPI, { options = { method = 'GET' }, success = function(jsonraw) local jssonrawlen = string.len(jsonraw.data) local jsontab = json.decode(jsonraw.data) local i1 = 0 local i1m = 0 selHelpDRS = selHelpDRS .. 'D:{' for k,v in pairs(jsontab) do i1m = i1m + 1 end for i1 = 1, i1m do local id = tonumber(jsontab[i1].id) local roomID = tonumber(jsontab[i1].roomID) local saveLogs = tostring(jsontab[i1].properties.saveLogs) or nil if ( roomID > 0 ) then if ( saveLogs == "true" ) then Dm = Dm + 1 if Dm > 1 then selHelpDRS = selHelpDRS .. ',' end selHelpDRS = selHelpDRS .. Dm ..':'.. jsontab[i1].id end end end selHelpDRS = selHelpDRS .. '}' fibaro:debug("selHelpDRS=" .. selHelpDRS) fibaro:setGlobal("selHelpDRS", selHelpDRS) end, error = function(errorcode) fibaro:debug("error=" .. errorcode) end}) http = nil doneanswer = "yes" end; function funcRooms() local typename = "Rooms" fibaro:debug(globalmessage .. typename) local http = net.HTTPClient() local urlIPP = 'http://127.0.0.1:11111' local urlAPI = '/api/rooms' http:request(urlIPP..urlAPI, { options = { method = 'GET' }, success = function(jsonraw2) local jssonraw2len = string.len(jsonraw2.data) local jsontab = json.decode(jsonraw2.data) local i1 = 0 local i1m = 0 selHelpDRS = selHelpDRS .. ',R:{' for k,v in pairs(jsontab) do i1m = i1m + 1 end for i1 = 1, i1m do local id = tonumber(jsontab[i1].id) if ( id > 0 ) then Rm = Rm + 1 if Rm > 1 then selHelpDRS = selHelpDRS .. ',' end selHelpDRS = selHelpDRS .. Rm ..':'.. jsontab[i1].id end end selHelpDRS = selHelpDRS .. '}' fibaro:debug("selHelpDRS=" .. selHelpDRS) fibaro:setGlobal("selHelpDRS", selHelpDRS) end, error = function(errorcode) fibaro:debug("error=" .. errorcode) end}) http = nil doneanswer = "yes" end; function funcSections() local typename = "Sections" fibaro:debug(globalmessage .. typename) local http = net.HTTPClient() local urlIPP = 'http://127.0.0.1:11111' local urlAPI = '/api/sections' http:request(urlIPP..urlAPI, { options = { method = 'GET' }, success = function(jsonraw3) local jssonraw3len = string.len(jsonraw3.data) local jsontab = json.decode(jsonraw3.data) local i1 = 0 local i1m = 0 selHelpDRS = selHelpDRS .. ',S:{' for k,v in pairs(jsontab) do i1m = i1m + 1 end for i1 = 1, i1m do local id = tonumber(jsontab[i1].id) if ( id > 0 ) then Sm = Sm + 1 if Sm > 1 then selHelpDRS = selHelpDRS .. ',' end selHelpDRS = selHelpDRS .. Sm ..':'.. jsontab[i1].id end end selHelpDRS = selHelpDRS .. '}' fibaro:debug("selHelpDRS=" .. selHelpDRS) fibaro:setGlobal("selHelpDRS", selHelpDRS) end, error = function(errorcode) fibaro:debug("error=" .. errorcode) end}) http = nil doneanswer = "yes" end; -- fibaro:debug("before call function funcDevices--------------------") globalmessage = "Now call function funcDevices: " doneanswer = "no" funcDevices() repeat fibaro:sleep(100) until doneanswer == "yes" ; -- fibaro:debug("before call function funcRooms----------------------") globalmessage = "Now call function funcRooms: " doneanswer = "no" funcRooms() repeat fibaro:sleep(100) until doneanswer == "yes" ; -- fibaro:debug("before call function funcSections-------------------") globalmessage = "Now call function funcSections: " doneanswer = "no" funcSections() repeat fibaro:sleep(100) until doneanswer == "yes" ; See the order of statements in the program. I would expected, first the function "funcDevices" was performed. Then, the second function "funcRooms" is performed. And last the function "funcSections". [DEBUG] 12:20:50: before call function funcDevices-------------------- In principle, the program is working properly. But the wrong order in run the functions de facto can not be explained to me: Order of call's: D R S = direction de facto: S R D Order of call's: R S D = direction de facto: S R D Order of call's: R D S = direction de facto: R S D Order of call's: S R D = direction de facto: S R D Here's someone who can tell me why my desired order is not complied with by the Fibaro-LUA-system? What should I do to make it work the way I want it?
  7. Hi I have a number of virtual devices (and scenes) witch is built on top of a physical device. The reason for this can be that the physical device does not offer desired functions I want etc. My virtual devices(or scenes) can be lights or an electrical power meter. My problem is that this virtual device (as far as I can figure) always will be defined as a virtual device and presented accordingly in UI and app. For instance, I have some lights controlled by a virtual device(or scene), but when I look in the "Lights" folder in the app it´s not there. I have to look in "Virtual devices" or rooms to assert this function. I would like a way to define a virtual device or scene as a functional device, e.g., my virtual device can be defines as light control. Does this possibility already exist or need to be developed?
  8. Hi, I’m relatively new to Lua and Fibaro. I have two questions about running Lua functions and accessing Lua tables from other scenes. Running Functions From Other Scenes: I have built a scene called "Initialise" which contains a collection of Lua functions. One of these functions is called Arm() and takes the parameter "_status" which indicates how the Intruder Detection System should be set. The "_status" can be: Disarm = disarms all motion sensors, door and window sensors Away = arms all motion sensors, door and window sensors Home = arms all the door and window sensors downstairs (does not arm motion sensors or upstairs window sensors) I want to call this Arm() function from other scenes, for example I want a scene called "Arm Away" which has a single line of Lua Arm("Away"), and another scene called "Arm Home" which has a single line of Lua: Arm("Home") and another scene called "Disarm" which has a single line of Lua Arm("Disarm"). This way I can have different scenes available to the user which are used to set the Intruder Detection System but I don't need to replicate the same code in all three scenes. Unfortunately this doesn't work. Although I run the “Initialise” scene which contains the Arm() function (but doesn’t contain any code to call the Arm() function) when I try to run my “Arm Away” scene (which contains a single line of Lua Arm(“Away”)) I get a message saying [ERROR] 12:59:57: line 1: attempt to call global 'Arm' (a nil value) Accessing Tables From Other Scenes I am trying to develop portability into my Lua code for home automation. One of the reasons for this is I have a Fibaro system in two houses and so having generic code which can just be ported into another Fibaro environment does not require any recoding is a real advantage. Another reason is so that if I add a new motion sensor to my house I don't need to change any code to make sure it is included in the code to Arm all the motion sensors. The way I achieve this is by naming all the zWave devices according to a standard. For example: M0_HALL_MS_01 is the first motion sensor in the Hall on the ground floor of the Main House, G1_BED2_WS_02 is the second window sensor in Bedroom 2 on the first floor of the Guest house. By building a table in Lua of all the devices I can work through that table looking for devices with “MS” in the name when arming all the motion sensors. So to the question – can I make this table of devices available to other Scenes (not just the “Initialise” scene which was used to create it?). I know how to use Fibaro Global Variables to make data available to multiple scenes but my question relates specifically to a table. I tried to research this online and from what I understand a Lua variable is local to a function unless it begins with “g_”. So my devices table is called g_devices. When I try to access this table from another scene I get a message saying [ERROR] 13:01:12: line 1: attempt to index global 'g_devices' (a nil value) I'd be grateful for any assistance or pointers anyone can provide.
  9. Dear all, I need your the community support . I'm trying to configure the HCLite to open my roller in the morning only when I'm not in Holidays. I can not use the LUA because I have the HC Lite, I tried creating a variable that indicate when I'm in vacation and when I'm going to work and I test the variable before the timer. This solution in general working well, I have the problem when I change the variable value from holiday to work because if the roller is closed the system open immediately the roller and ignore the timer condition. Someone could you explain me the reason or do you have any idea to solve this problem? Thanks for any suggestion. Luca Scene
  10. I'm a new HC2 user and having some trouble getting scenes to work. Can someone take a look at the attached image and provide some feedback? Thanks in advance for your help. It seems like the IF/THEN logic of scenes is completely broken. Time-based scenes don't run when the "IF" condition is TRUE. Then, when I manually "RUN" a scene, it runs even if the "IF" condition is FALSE. What the heck am I doing wrong?? Scene.tiff
  11. hello there i have a motion sensor and relay switches in my bathroom, i want the lights to go on when i enter then go off when i leave is it possible? cuz sometimes the sensor cannot spot me when for example in the shower so i don't want the lights to turn off when I'm still there any help will be really much appreciated Thank you
  12. Hi I have a questions i have two Minimotew working well (Yippy) they are both stuck to the bed ither side setup the same. so in this example i have button 1 set to turn off lots of devices around the house 10+ i have the same script set on button 1 on the other remote and for laughts i have it set in the theater room to now this is getting annoying when i add a device i have to change them all., is there a way a way to make one scene that turns off everything and then link it to both buttons? that way i only change 1 scene and dose 3 things. thanks Dave
  13. Hi, I'm trying to learn how to use Lua, but struggling to get my head around it with no examples, if possible could you post a scene on here with a breif description of what it is, ie the ID and what they are, it would be very much appreciated Thanks Ally
  14. Hello, according to FGD211 Dimmer instruction manual it seems that is possible to control scene with S1 Dimmer switch, is this possible with HCL too? Nothing is mentioned in FGD211 instruction manual, it says just that is possible... If someone can help me on this showing some block diagrams example thanks!
×
×
  • Create New...