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!



Smart Home Forum by FIBARO Team

Search the Community

Showing results for tags 'scene'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


  • Scenes
  • Virtual Devices
  • Quick Apps
  • Icons

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start






Website URL





  1. Hi, I am using and maintaining some 50s scene on my HC2. I am developing mostly in ZeroBrane. Well so far so good. But the most anoying thing is that there is no way to "upload" scene to the HC2. Ideally this could be done from the development environment. So my question is: Is anybody using such a feature? And if yes, how? If not, I am currently looking into integrating such a feature in a GIT workflow, as git hook. So if there is any interst I would look further into it. While I have already a plan (REST/put with a decent JSON content, retrieving information from the lua script) I have still some questions, or could need some help. Even if it is just "testing". So if you there are any comments on this, just contact me. Best regards, Theo
  2. I have an issue trying to make and HTTPS POST request. I am getting "short read" error with the URL "https://api2.magicair.tion.ru/idsrv/oauth2/token" This is my scene: ============================================= --[[ %% properties %% events %% globals --]] local authData = "username=XXX&password=YYY" function doTest() print('Test!') local requestUrl = "https://api2.magicair.tion.ru/idsrv/oauth2/token" local httpClient = net.HTTPClient() httpClient:request(requestUrl, { options = { method = "POST", headers = { ["Content-Type"] = "application/x-www-form-urlencoded", ["Content-Length"] = tostring(authData:len()) }, data = authData, timeout = 5000 }, success = function (response) fibaro:debug (response.data) end, error = function (err) fibaro:debug ("Error: " .. err) end }) setTimeout(doTest, 5*1000) end print('Script start...') doTest() ============================================= I am getting the following in my log: [DEBUG] 15:16:52: Script start... [DEBUG] 15:16:52: Test! [DEBUG] 15:16:52: Error: short read I have been trying to play with headers, data format, timeouts and all parameters I could find, however I always get the same error with the provided URL. Other HTTPS URLS I tried with GET method works just fine. Also I have been trying to do the same with cURL and it works fine with the exact same set of headers and payload (with full credentials string, of course). So the issue is somehow connected with this specific URL: "https://api2.magicair.tion.ru/idsrv/oauth2/token" The Internet is saying that short read problem in HTTPClient request might be related to ciphering protocols mismatch between the client and server. So there could be some parameter regulating this? 2 main versions, which I see: 1. Some tricky param is required to form the correct HTTPS request. 2. Some bug / missing feature in HTTPClient implementation in HC2. Anyway I am stuck and need the help from the community and HC developers. Help!
  3. I am new to LUA and have been automating my heating. I wanted to be able to create a scene that triggered the manual mode for some of the heating panels. I wanted to share the code with this forum - I am aware there is a similar thread but I found copying the code (and modifying) did not work. The LUA code below works for three rooms (just copy the section to a new section for another room), sets the Temperature to 21 for 3 hours from the current time --[[ %% properties %% events %% globals --]] local ManualTemp = 20 local ManualTime = (os.time()+3*60*60) -- 3 hours -- Repeat for each room that you want to set a manual temperature in. -- Office local IdPanel = 21 local panel = api.get("/panels/heating/" .. IdPanel) panel.properties.handTemperature = (ManualTemp) panel.properties.handTimestamp = (ManualTime) api.put("/panels/heating/" ..IdPanel, panel) -- Kitchen ID 18 local IdPanel = 18 local panel = api.get("/panels/heating/" .. IdPanel) panel.properties.handTemperature = (ManualTemp) panel.properties.handTimestamp = (ManualTime) api.put("/panels/heating/" ..IdPanel, panel)
  4. Can I get some help on this one please. I don't understand why my conditions are not working. The setup that I want is. If the light is under 10 lux and either the motion sensor detects or the Garage door opens. then the lights turn on. But what is happening at the moment is, the sensor is behaving as expected. i.e if the light is above 10 lux the sensor won't trigger but if it is bellow it will. But if the garage door opens it triggers no mater what the lux. Any help would be greatly appreciated. Scene attached. Thanks
  5. Hi! I have been using HC2 for 2 years now. I have 3 scenes, in which i use when i leave the house or come home. 1. Nobody home - Turns off all lights, and turns the heating down on multiple devices. WORKS 2. Gone Away - The same as nr 1 but more extensive heat management. WORKS 3. Came Home - This has the problem. I use this to turn on the heat again, and to turn off some general lighting. The heating works like it should, no problem, everything get the SetTemperature that it should. The problem is the lighting. You can see them turn on in the Interface for a second, then they all fall to off again. If i run the scene multiple times, it may eventually turn them on. I have tried the following: - Changed the triggers to and from a device's state, to a variable. No change, and why should it? The scene never fails to trigger, just to work properly. - Changed the scene from using my premade "general lights" scene and instead, configuring all the lights by themselves. Even if i Trigger my general lights scene with the come home scene, or have them all configured in the come home scene individually, i get the same result. I can see them turn on in interface, the falls off again. I have built the scene with blocks, but changed it to lua for easy reading. Scene 104 at the end is just my General lighting scene, which works just fine outside this scene. --[[ %% properties 84 value %% weather %% events %% globals --]] local startSource = fibaro:getSourceTrigger(); if ( ( tonumber(fibaro:getValue(84, "value")) > 0 or tonumber(fibaro:getValue(84, "value")) == 0 ) or startSource["type"] == "other" ) then fibaro:call(339, "setThermostatSetpoint", "1", "23"); fibaro:call(348, "setThermostatSetpoint", "1", "25"); fibaro:call(324, "setThermostatSetpoint", "1", "20"); fibaro:call(71, "setThermostatSetpoint", "1", "20"); fibaro:call(79, "setThermostatSetpoint", "1", "24"); fibaro:setGlobal("HjemmeBorte", "Hjemme"); fibaro:startScene(104); end Anybody seen this? Best regards
  6. when creating a scene I get the message 403 ACCESS FORBIDDEN. None of mye scenes are working anymore, and I cannot create new ones. I have deleted the old scenes and restarted the Home center lite but does not help. Any solutions anyone??
  7. Hello community! I have a task: Every evening user want to set time for the curtains to open in the morning with the alarm clock. Ideal - the user simply sets the alarm in the phone and the home center gives the command to open the curtains when triggered. But I did not find such option in IFTTT. Another one - set time to open the curtains in mobile app (iOS and Android), without having to enter the web configuration. Does anyone have a solution to this problem? Or maybe any suggestions what I need to use? Thank you!
  8. Hi I tried to use a Hue API command in my scene, but it's not working. I copied the LUA code from a working Hue VD and modify a bit, as the original is to switch off a Hue. I'd like to switch "group/0" in Hue-bridge to turn off all hue lights at once. here is how it looks like and is not working. I guess the problem is : Hue = Net.FHttp(hueIP,huePort) response ,status, errorCode = Hue:PUT('/api/'..hueuser..'/groups/0/action', '{"on":'..on..'}') Any help on that is welcome
  9. HI tio all, I would like to run a scene from a widget in my iOS device (iPhone 7 plus), but don't work if I protect the scene wit a PIN... Can someone help me? thanks in advances, Paolino
  10. I sometimes recognize that some scenes are not called as soon as they should be. A couple of my scenes are triggered by a motion sensor to switch on the light for example. Sometimes the light get on as soon as I enter the area of the motion sensor (or by triggering a door sensor). But sometimes it takes about 5 seconds until the lights are getting switched on. There are hardly any other scenes running (about four), there do exist only one VD (sonos), the amount of free RAM is at 73% and the CPU usage is between 3 and 12%. So why is it taking longer some times? Thinking about one second might be fine but more than 3 seconds? Is there any possibility to check out why this is happening? One thing is I will try to compare the event log entry with the time stamp of a debug line in one of my scenes. Would it be a good idea to having one huge scene to cover most other scenes (so this scene stays cached)?
  11. In my toilet i have an AEON LABS Multisensor 6 Aeotec, whereby my light is been triggered by the sensor. You can see the scene below, often the light goes out because there is no movement anymore in the toilet, while the person is still in the toilet! if I increase the reset time, then it takes longer before the light dims (off), but on the other side, I would like to have a scene, when I step outside the toilet the light dims to off, within around 5 seconds. Does somebody has an improved scene from his or her timer from the toilet or any other scene what is equivalent (revised) to this scene? --[[ %% properties 442 value %% globals --]] -- User Settings local debug = false; -- true local toiletSpot = 408; -- ToiletSpot -- function variables local time = 0; local timeReset = 15; -- delay in seconds during which PresentState will not change after last breach local timerStop = 16; local motionSensor = 442; -- Motion Sensor Toilet local Motion = tonumber(fibaro:getValue(motionSensor, "value")); local toiletSpotStatus = tonumber(fibaro:getValue(toiletSpot, "value")); local function log(str) if debug then fibaro:debug(str); end; end -- avoid loop of this scene if tonumber(fibaro:countScenes()) > 1 then fibaro:abort(); end ----------------------------------------------------------------------------- -- Do Not change below this line ----------------------------------------------------------------------------- function toiletFunction() fibaro:call(toiletSpot, "setValue", "75") log("Light Turned ON"); log(timeReset.. " seconds before Light goes OFF starting at " .. os.date()); fibaro:sleep(5000); -- loop start ————————————————————----------------------------------------— repeat if tonumber(fibaro:getValue(motionSensor, "value")) > 0 then time = 0; log("Movement detected from Motion Sensor"); else time = time + 1; log("No Movement " .. time .." of " .. timeReset .. " seconds Detected"); end fibaro:sleep(999); until time >= timeReset -- 16 > 15 fibaro:call(toiletSpot, "turnOff"); log("Timer stopped, Vanity Mirror OFF"); log("-------------------------------------"); end if Motion > 0 then log("Start Timer") toiletFunction() end
  12. Sometimes you can do things in a (LUA) scene or in the main loop of a VD. I know that programming differs a little on some items like HTTP but in general you can use the same code. Currently I have a VD that reads a json file from a PI, stores the acquired data in global variables and presents the data in the VD GUI. Next I have a scene that processes the data from the global variables and does some steering of dimmers. Is this from efficiency point of view a good method? the alternative is to put all the calculations and steering which is now done in the scene, in the main loop of the VD. is there a general rule that the processing in a scene is less or more cpu intensive or generates less or more overhead than when done in the main loop of a VD
  13. Hi, I´m writing a couple of VERY SIMPLE LUA Scenes that I have linked to Double Click action of a double switch 2. The scene often works fine, but sometimes, some the turnon or turnoff actions are not executed. (by instance, instead of turning off the 3 lights, only 2 are turnned off, or maybe the vent turnon fails...) Also tried added sleep between commands but the result is the same. Any idea? This is quite frustrating... When I run the scen from the debuger interface, it seems that it works properly... As stated, the code is very simple: (Turn off lights, turn on vent, wait 7 minutes and turn off vent (except if the light were turned on again while the vent is on) fibaro:call(88, "turnOff"); --light off 1 fibaro:sleep(100); fibaro:call(93, "turnOff"); --light off 2 fibaro:sleep(100); fibaro:call(94, "turnOff"); --light off 3 fibaro:sleep(100); fibaro:call(89, "turnOn"); --this is the vent fibaro:sleep(420000); -- wait 7 minutes local bathLightStatus = 0; bathLightStatus = bathLightStatus + fibaro:getValue(88, 'value'); bathLightStatus = bathLightStatus + fibaro:getValue(93, 'value'); bathLightStatus = bathLightStatus + fibaro:getValue(94, 'value'); -- fibaro:debug('Number of bath lights on: ' .. bathLightStatus); if ( bathLightStatus == 0) then -- fanStatus = fibaro:getValue(89, 'value'); -- fibaro:debug('Fan Status ' .. fanStatus); fibaro:call(89, "turnOff"); -- fibaro:sleep(1000); -- fanStatus = fibaro:getValue(89, 'value'); -- fibaro:debug('Fan Status after off ' .. fanStatus); end
  14. How could I make an scene that would override my existing scenes? for example: I have a sprinkler scene for 1 am, and a lights off as well, how can I create an override sequence so that later on or the next day the preprogrammed scenes run properly? Gracias
  15. Hi I have recently reconfigured my system, now a big part of my devices got other functions. Everything works well, beside one switch. There is one device, which turning off on random time of the day. I'm considering that I have a scene running, where I forgot to change device id after changes on the system, but I cannot find it. Everything looks fine. Question is: Is there any option to find out, which scene or system process is triggering action on the specific device?
  16. Hi, Planning on setting up Qubino 0-10v dimmers with the Fibaro HC2. Does anyone know if these can be used in Lua scenes like the scene activation functionality in the Fibaro Dimmer 2? Thanks
  17. I have a lua scene that I want when the HC2 starts up. But it will not run. --[[ %% properties %% events %% globals --]] local message = 'HC2 restarted' -- Rohit fibaro:call (4, "sendEmail", message, message) -- Rajan fibaro:call (304, "sendEmail", message, message) The properties are as in the image. Any idea why ? Background - I have had continuous problems for 6 months now with all versions of firmware where the HC just does not run some scenes sometimes. The debug shows that its not busy at all. So I now have a scene that reboots it every morning at 4am. It sends me an email telling me its about to reboot. I would like one above to tell me that it has rebooted.
  18. I have below script VD in LUA which detect my phone IP in network - works good :] Now question - how can i must create scene with blocks ? after detect my phone in local network switch lights or etc...... Must first make variable or how? Please help really dont know, try since few hours
  19. Hi, I have HC-2 and have around 50 scene for different actions. Everything is working fine till last few days. Now when ever I trigger scene for 1st time it got executed but after that, if trigger new scene (Like, I have trigger ALL ON scene first and then Mood Light Scene. In this case execution of Mood light scene takes 15-20 second. Which was working perfectly before ) then it takes 15-20 second to execute it. This same situation occur when I trigger scene via Android Phone, iPad or Keyfob. So I think it's problem with fibaro Hc-2. Note : I have included Keyfob and Swipe on that day. Also I am unable to have remote access from last one day.
  20. Hey All, I created a "scene A" light on and after 10" licht off via a wall plug, this scene works fine. Now I create "scene B" as follows: If KeyFob "button 2 press hold" then "scene A". This "scene B" does not work. What is wrong, anyone an idea? To activate a scene from an other scene must be possible isn'it? Thx for your replies.
  21. Hello I have noticed that you can not choose which time to start with interactive push in block scenes. Just choose the top one. However, one can save another scene but nothing happens.
  22. I have two Fibaro sensor on my drive one at each end. i am trying to make a scene that says if sensor a is trigged first and then sensor b is trigged turn on lights but if sensor b is trigged first and then sensor a is trigged don't turn on lights not sure how to right it in Lua code
  23. Hi, For certain modules when I double press to activate a scene the light comes on at full brightness breifly before the scene kicks in and puts it to the desired brightness. I know I can switch off the parameter setting the double click to do this but when I deactivate the double click it also stops it from running the scene. Its really frustrating, and happens on both dimmer versions (1&2). it only happens in certain rooms but I cant see any difference in the parameters, other than I have disabled the double click in the rooms that behave correctly. As I said I'm happy to do this in the rooms that aren't working but then I get no scene activation at all. Any help would be great, thanks tom
  24. Hi all, I have a DW sensor that should switch on the light when it is evening and the door is open. Once triggered, the light should remain on until the door is closed and no motion is detected in that room. When door is closed and motion is no longer detected the light should slowly fade out. I wrote below code for this but cant get it working properly. I have the problem that the light will perfectly go when the door is opened but it will not go out! Anybody an idea what I do wrong? It seems not to reach the "repeat" part of my code which is within the IF statement. Here is the code: --[[ %% autostart %% properties 21 value 127 value %% weather %% events %% globals omtrekverlichting --]] --============ HOME TABLE ======================= fibaro:getGlobalValue("HomeTable") local jT = json.decode(fibaro:getGlobalValue("HomeTable")) --=============================================== -- used devices and its id fibaro:debug("device: hal - voordeur DW = ID: " ..jT.hal.voordeursensor) --127 fibaro:debug("device: hal - hal PIR = ID: " ..jT.hal.HalMo21) --21 fibaro:debug("device: hal - duospot = ID: " ..jT.hal.duospot) --160 fibaro:debug("device: hal - halspot = ID: " ..jT.hal.halspot) --116 --=============================================== local debug = false Debug = function (debug,color, message ) if (debug) then fibaro:debug(os.date("%x")..string.format('<%s style="color:%s;">%s</%s>', "span", color, message, "span")); end end if (fibaro:countScenes() > 1) then Debug( true,"purple", " too many instances --> abort "); fibaro:abort() end local trigger = fibaro:getSourceTrigger() if (trigger['type'] == 'property') then Debug(true, "Grey", ' scene triggered by - Source device = ' .. trigger['deviceID']) elseif (trigger['type'] == 'global') then Debug(true, "Grey", ' scene triggered by - Global variable source = ' .. trigger['name']) elseif (trigger['type'] == 'other') then Debug(true, "Grey", ' scene triggered by - Other source') end -- start up --------------------------------------- local deurstatus = fibaro:getValue(jT.hal.voordeursensor, "value") local Darkness = fibaro:getGlobalValue("Darkness") local motion = fibaro:getValue(jT.hal.HalMo21, "value") local lampstatus = fibaro:getValue(jT.hal.duospot, "value") local dimlevel = 60 if (tonumber(Darkness) == 1) and (tonumber(deurstatus) == 1) then Debug( true,"Orange",' hal verlichting ingeschakeld') fibaro:call(jT.hal.duospot , 'setValue' , dimlevel) fibaro:call(jT.hal.halspot , 'setValue' , dimlevel) repeat fibaro:sleep(3*1000) -- always wait at least x seconds before fade out. until (tonumber(motion) == 0) and (tonumber(deurstatus) == 0) while( dimlevel > 10 ) do -- start fade -out. fibaro:call(jT.hal.duospot , 'setValue' , dimlevel) fibaro:call(jT.hal.halspot , 'setValue' , dimlevel) fibaro:sleep(20) Debug( true,"Yellow",' dimlevel is '..dimlevel) dimlevel = (dimlevel -0.4) end fibaro:call(jT.hal.duospot , 'turnOff' ) -- make sure lights are really off fibaro:call(jT.hal.halspot , 'turnOff' ) Debug( true,"Green",' hal verlichting uitgeschakeld') end
  25. 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.
  • Create New...