Jump to content

Search the Community

Showing results for tags 'lights'.

More search options

  • 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

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start






Website URL





Found 12 results

  1. My aeotec RBG bulb will turn off physically but the switch on the UI will remain "on". this is causing my scenes to not run correctly. Sometime when I turn it on it turns on then I will turn it off and it will flip the switch back to on even though the light is off. Has anyone seen this before?
  2. julesmartens

    JSON for lights

    Hi, I'm no fan of the build-in alarm in HC2 so I'd like to create my own scenes/VD's for this. . @Sankotronic is working on a very promising UHAS system but his plans are pushed out (no offence, he released real nice things already, I'm fan) so I decided to move on, writing some code myself with hopefully some help of you ;-)! What do I use in my alarm; > Lights (selected regular lights in the house to switch to 100% when alarm is breached) > Door/window sensors > PIRs > Sirenes (for acoustic alarm) > flashlight (for visual alarm) > RGBW led indicator (at the entrances to notify alarm is; just armed (leave the house indicator), armed (not safe to enter indicator), disarmed(safe to enter indicator) What do I want; > Fibaro remote keychains available to manually arm/disarm the alarm > All users have a IFTTT account on their phones to trigger a scene when entering/leaving home (geofence). This will set my global "guestmode". (bad exerience with Fibaro GPS) > When nobody is at home, the global "alarmmode" should set to "FullAlarm". At "FullAlarm" all PIRs and D/W's sensors are set to armed. (report error when not in safe state when arming). > When at night (Darkness) all users are at home and all PIR and D/W are safe for X time, "sleepstate" to be set "sleep" else "awake". > when at sleep, the "alarmmode" will switch to RingOnly. Only the D/W sensors will be armed (not PIR). When a PIR is breached the alarmmode will be set to disarmed state. When sleep state is reached again the alarmmode will switch back to RingOnly. > if armed and breached, the alarm is triggered. The sirenes and flashlight will start to run and all lights will be set to 100%. If all D/W and PIR are safe for X time, alarm to back to armed state and lights off. > if armed and breached, the timestamp of alarm will be logged. If alarm is disarmed after it was breached the notification LED will warn for this. > If I disarm the alarm, put all lights/DW in safe state. > Notifications via Pushover or even better, use the message hub of @autofrank with Fibaro PopUps and Push services. Unfortunately I currently have errors with the message hub. What is my current status. All code based on simple if/then LUA coding, no fancy loops. DONE: scene to check all PIRs Scene will set global variable DONE: scene to check D/W sensors. Scene will set global variable DONE: One scene to take care of the global sleepstate DONE: One scene to take care of the global guestmode DONE: a VD to manually set alarmstate and alarmmode. DONE: a VD to manually set guestmode todo: a mainalarm scene to arm/disarm the alarm (based on above algorithm) todo: an alarm scene to trigger the alarm when breached (or merge this in the mainalarm scene) todo: scene(s) for RGBW led indicators todo: scene(s) for the push notifications (Alarm breached, error (Eg door/window open when arming the alarm) I noticed that I get stuck with the remaining scenes. I'm no programmer, so I use mainly simple if/then LUA code. With a lot of scenes in the alarm you easily get lost. In an attempt to keep my coding cleaner/more condensed I want to use tables/json. I already use the Hometable but that's just a simple copy the instructions of @AutoFrank. Questions; For the remaining alarm scenes I have difficulties how to store a table in a global and even more how to use from a table. The tutorials on this topic are not clear to me yet. For example, when the alarm is breached, how to switch all lights to 100% for the device IDs in a global(table). I have seen examples of code like k,v in (i)pairs but I don't get it yet. Can somebody help me with some code examples? Any other suggestions on my ideas for an alarm? Thanks! Regards, Jules
  3. Julegeita

    Lights wont turn on

    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
  4. I have a simple Lua script that after no motion (between 2 motion sensors) has been detected for 20 minutes then lights turn off. my script is not working properly the lights keep turning off after a few seconds of the last motion sensor becoming safe. Can someone see what I have done wrong in the script. Thanks! --[[ %% autostart %% properties 51 value 86 value %% weather %% events %% globals Day_night --]] local startSource = fibaro:getSourceTrigger(); if ( ( fibaro:getGlobalValue("Day_night") == "Day") and ( tonumber(fibaro:getValue(51, "value")) == 0 and tonumber(fibaro:getValue(86, "value")) == 0 ) or startSource["type"] == "other" ) then setTimeout(function() fibaro:call(76, "turnOff"); fibaro:call(78, "turnOff"); end, 1200) end
  5. Hey guys, I thought it would be a nice idea to share some of the new scenes which people are using. This way it could potentially give people inspiration on what the system can do while also helping people with similar scenes to perfect them of use them in a more efficient way. So I suppose I will start... Today I have put together a lighting scene, it took quite a while because it's two scenes per room. I started by adding 3 variables called time: Day, Dusk & Night. I have set a scene to trigger the variable depending on the time, so Daytime starts at 8am, Dusk becomes active at dusk (set by Fibaro's time clock) and finally night becomes active at 10pm. The break down is: Day - No lights Dusk - Lights at 100% brightness Night - Lights at 10% brightness I have attached the block scenes below. I can't wait to see what you have all been up to with your HC.
  6. I understand that the plugin in HC2 is only to enable manual control of lights from the HC2 and from the Fibaro App. Are there any other ways I could include one or more hue lights into scenes? Any coding? Anything else before I have to throw a large investment I made in hue lights or instead the Fibaro one? Many thanks for your support.
  7. Hi everyone, It appears my hue lights are not responding to any scenes after the HC2 and hue hub had a power outage. is there an easy way to reset this? I dont want to create new bulbs with new device ID's because then i will ave to change all my scenes Thanks in advance!
  8. Hi, I currently use the script (Scene) below to turn off all lights when going to sleep. The problem is sometimes my adult children are still awake upstairs. How would I modify scene to turn off only downstairs lights? HC2 - Running latest version I thought of using the description field in devices and evaluating but can't work out the code. Help! --[[ %% properties %% events %% globals --]] local ids = fibaro:getDevicesId( { interfaces = { "light", }, properties = { dead = false, }, enabled = true, visible = true, -- optional --userDescription ~= "", -- attempt to evaluate if user description in device is not nil. } ); -- loop through light ids for i, id in ipairs(ids) do fibaro:debug("Turning off " .. fibaro:getName(id)); -- turn light off fibaro:call(id, "turnOff"); end Thanks Jason
  9. Hi guys, I would please need help with my scene. My aim is to turn automatically light off after specific time. This works until this happens: 1) user turns the light on 2) user turns the light off before 10 minutes 3) another user comes and turns the light on 4) the previous scene is still running and turns the light off when it finished 10 minutes What I would like is: 1) turn manually light on and start counting 10 minutes 2) if the light was not turned off manually within 10 minutes, turn the light off 3) if the light was turned off manually within 10 minutes and another user turned the light on again (within the first run), start new sleep for 10 minutes and so on Here is what I have: --[[ %% properties 45 value %% events %% globals --]] if (fibaro:countScenes() > 1) then fibaro:abort() end; local myState = tonumber(fibaro:getValue(45, "value")) if (myState > 0) then fibaro:sleep(10*60*1000); fibaro:call(45, "turnOff"); end Thank you for any help, tampiss
  10. What's the best way to use the new Magic Scenes capability to turn on a light at 10pm and turn it off again at 1am ? At present i'm creating 2 magic scenes per light device which seems clumsy. In the magic scenes options i can see options for "turn off after X minutes" and "toggle state" etc. I also just noticed once magic scene can be conditional from another magic scene. I've not seen much talk about this type of scene on the forum yet -- who's using it and how ?
  11. Hi all, After a long time, i got it finally working. (my knowlegde go LUA is almost 0) I would like that the lights only getting on when the house is in evening or night status. Or maybe even better when also/or the LUX is getting below 60.. This code for updating my house state: [ %% properties %% autostart %% globals --]] -- Scene : Time of Day -- Version : 6.0.3 -- Release Date : 14 January 2016 -- Compatibility : Home Center 2, v4.030 to v4.063 Beta -- Purpose : Check time of day and Set global variable -- Trigger : None -- Contributors : Fibaro Forum - petergebruers, boerremk and many others who have shared bits of scripts in the forum -------------------- Configuration - Scene Info sceneName = "Time of Day"; sceneVersion = "6.0.3"; -------------------- Configuration - Time Offsets -- Set the offset time in minutes -- Set positive offset value for after Sun-rise/set, negative value for before Sun-rise/set, zero for no offset offsetSunrise = 0; offsetSunset = -50; -------------------- Configuration - Debug Parameters local dispExtDebug = false; -------------------- Script Functions -------------------- Function: Fibaro Debug Message with Color function fDebug(color, message) fibaro:debug(string.format('<%s style="color:%s;">%s</%s>', "span", color, message, "span")); end -------------------- Function: Fibaro Wait Time function fSleep(stime) fibaro:sleep(stime); end -------------------- Function: toTimestamp local function toTimestamp(time, offset) currDate = os.date("*t"); hours, minutes = time:match("^(%d+)%d+)"); return os.date("%H:%M", os.time({ year=currDate.year, month=currDate.month, day=currDate.day, hour=hours, min=minutes, sec=seconds }) + (offset*60)) end -------------------- Validate Source Trigger local sourceTrigger = fibaro:getSourceTrigger() fDebug("green", "Script started because of: " .. sourceTrigger["type"]); -------------------- Validate Number of Scene Instance fSleep(50); if (fibaro:countScenes()>1) then if (dispExtDebug) then fDebug("yellow", "Scene, " .. sceneName .. " is already running with " .. fibre:countScenes() .. " instances!"); fDebug("yellow", "Aborting additional instance(s)!"); end fibaro:abort(); end -------------------- Start of Scene Execution if (sourceTrigger["type"] == "autostart") then while true do local currDate = os.date("*t"); local currTime = os.date("%H:%M"); ---------------- Time-string Manipulation ---------------- %02u means unsigned int, 2 wide, leading zero currTimeAsString = string.format("%02u",currDate.hour) .. ":" .. string.format("%02u", currDate.min) varTimeOfDay = fibaro:getGlobalValue("TimeOfDay") if (dispExtDebug) then fDebug("Time of Sunrise: " .. fibaro:getValue(1, "sunriseHour")); fDebug("green", "Time of Sunset: " .. fibaro:getValue(1, "sunsetHour")); end fDebug("green", "Current Time: " .. currTimeAsString); if (dispExtDebug) then fDebug("green", "Current Time of Day: " .. varTimeOfDay); end if ---------------- Morning currTime == toTimestamp((fibaro:getValue(1, "sunriseHour")), offsetSunrise) then if (dispExtDebug) then fDebug("grey", "Time of Offset Sunrise: " .. toTimestamp((fibaro:getValue(1, "sunriseHour")), offsetSunrise)); end fDebug("grey", "Setting Time of Day as Morning"); fibaro:setGlobal("TimeOfDay", "Morning"); elseif ---------------- Afternoon currTime == "11:00" then fDebug("grey", "Setting Time of Day as Day"); fibaro:setGlobal("TimeOfDay", "Day"); elseif ---------------- Evening currTime == toTimestamp((fibaro:getValue(1, "sunsetHour")), offsetSunset) then if (dispExtDebug) then fDebug("grey", "Time of Offset Sunset: " .. toTimestamp((fibaro:getValue(1, "sunsetHour")), offsetSunset)); end fDebug("grey", "Setting Time of Day as Evening"); fibaro:setGlobal("TimeOfDay", "Evening"); elseif ---------------- Night currTime == "23:00" then fDebug("grey", "Setting Time of Day as Night"); fibaro:setGlobal("TimeOfDay", "Night"); elseif ---------------- Dawn currTime == "06:00" then fDebug("grey", "Setting Time of Day as Morning"); fibaro:setGlobal("TimeOfDay", "Morning"); else ---------------- No Match fDebug("orange", "Current time does not match any scenario."); end ------------------ Once Per 55 Seconds Wake-up fSleep(55*1000); end ---------------- End of Infinite While-loop fDebug("Scene not started, this is autostart-only!") end ------------------ End of sourceTrigger["type"] == "autostart"
  12. I have a Home center Lite. My motion sensor to turn on my lights if it is between a certain lux in the room and if motion it detected. I have it set to not turn on the lights if it detects 0 lux in the room. This can be good for sleeping but what if it gets dark at 6pm with 0 lux in the room but I'm not ready for bed and want the lights to trigger with motion. Does anyone know of a solution to only run my scene i created between a certain range of times during the day? thanks for the help