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 'time'.

  • 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

Found 17 results

  1. Hi all, I would like to display a debug message with the time of sunset + an x amount of minutes. So there needs to be a calculation. I have a few scenes whose start is dependent of the month, turning lights on earlier or later. My debug message should be something like "today lights will be on at 21:15". That 21:15 is the calculated time. I have these declarations at the start of scenes: local sunsettime = fibaro:getGlobalValue("SunsetTime"); local sunsetHour = fibaro:getValue(1,'sunsetHour') But I can't figure out how to do this. Shouldn't be very complicated, but i'm not good in LUA programming with time. Hope someone can help me out.
  2. I read about several problems with sunset and sunrise on this forum but didn't encounter (unless I didn't search well enough) this one: I have a scene that sets some variables at sunset, one immediately and others some 20 minutes later. I put also an action in for sending me push- and emailnotifications, just to check if everything was working ok. The scene works verey well and sends me a Push and an e-mail at the exact moment of sunset. But then at random times (or do they SEEM random only) during the following night and day I get the same push and emails. Any explanation ?
  3. Hello, I am trying to build a Lua script that will tell Fibaro if I am working from home, working at home or off work. Here is what I have so far but I need some help to get the scene trigger when either I am at home or at work when all the conditions have been met at the specific times. Does anyone have a similar scene or suggestions? --[[ %% properties %% events %% globals --]] local currentDate = os.date("*t"); local time=os.date('*t'); local ct=os.date('*t'),os.date("%H:%M",os.time()) if (fibaro:countScenes() > 1) then fibaro:abort(); end if ((fibaro:getGlobalValue("AndyPresentstate") == "Home") and (currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6) and ((ct>= "08:30") and (ct<"17:00")) ) then fibaro:setGlobal("Working", "At Home"); fibaro:debug("working at home"); elseif ((fibaro:getGlobalValue("AndyPresentstate") == "Home") and (currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6) and ((ct>= "17:00") or (ct<"08:30"))) then fibaro:setGlobal("Working", "Off Work"); fibaro:debug("off work"); elseif (fibaro:getGlobalValue("AndyPresentstate") == "Away" and (currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6) and ((ct>= "08:30") and (ct<"17:00")) ) then fibaro:setGlobal("Working", "At Work"); fibaro:debug("Working at Work"); end
  4. Hello, ive got a question to HC2 and Triggers... I would like to set up a scene like this: if the motion detector trips between 5 a.m. and 6 a.m., the shutters should open. Is that possible in the HC2? I cant find this trigger. In HC3 is this time trigger... can help me someone or do I have to buy the HC3 because of that??? Thanks for answers Tschorden
  5. I can't get a scene to work if I add a time interval. It looks ok but is not working and I don't know what I do wrong. It works if I remove the Time Range block... Please help!
  6. Hello, we're located in turkey and the time in turkey is GMT+3 all over the year without summer / winter time. As of 29.10 we have false times on HC2 and all scenes etc. are running false. I have tried to setup different time server with turkey (gmt+3) on localization page but it does not get the correct time. Setting the time manually works in interface but scenes and sunset times are false ... i want to have it over ntp. Does someone has same problems? Is there a setting i've not seen or is this a bug on HC2 side?
  7. I have a scene that gets the sunrise and sunset for the day. I recently noticed that both sunrise and sunset times are not correct. They are about 30min - 1 hour off from what they should be. has anyone else seen this issue? Does anyone know if fibaro is going to fix it? @T.Konopka
  8. hallo, Ich habe mehrere MCO Home MH7 Thermostate in meiner Wohnung installiert. Nach dem Neustart des HC2 wird die Uhr der Thermostate zurückgesetzt. Die meiste Zeit ist die Uhr auf UTC-Zeit statt CET eingestellt. Nachdem sie den Support von MCO Home kontaktiert und gefragt haben, wie sie die Zeit mit LUA zurücksetzen könnten, sagten sie mir, dass sie OpenZWave-konform sind. Ich sollte innerhalb der Klasse "COMMAND_CLASS_TIME_PARAMETERS" den Befehl "TIME_PARAMETERS_SET" verwenden. Weiß jemand, wie ich ZWave-Klassen ( http://www.openzwave.com/dev/classOpenZWave_1_1TimeParameters.html ) in einem LUA-Szenario aufrufen kann ? Danke & Mit freundlichen Grüßen thomas
  9. Hi I'd like to share very handy function to check if time is between two other times. This is very useful for example for checking if motion sensor should at this time of day switch warm or cool lights. There are two functions IsTimeBetween(StartH, StartM, StopH, StopM, TestH, TestM) - which checks if TestH:TestM is between StartH:StartM and StopH:StopM IsItBetween(StartH,StartM,StopH,StopM) - this one is a wrapper to check against current time of day. Example of usage with RGBW controller and Motion sensor: This solution isn't idiot proof so if You put absurd hours You will get absurdal behaviour. It isn't also proof to daylight savings time. Otherwise it works just fine. Function like this should come as a standard in Fibaro API. Hope someday it will. @Admin - for some reason I couldn't start new topic in crowds solutions so I've put it here.
  10. Fibaro works with sunrise values as a string such as: "07:30" You can calculate it also yourself: And @jgab also writes extensively about his event model: ...but to get more experience and explore the possibilities and pitfalls I want to run my own "poor mans" main scene for at least a year. Now I want to execute commands which are related to sunrise or sundown or seasonal changes. For instance: in summer I want my curtains open at 07:00, in winter around 08:30 with a nice sinusoidai curve. Therfore I want some decimal hournumber with adding, multiplying: --convert a decimal hour to a timenumber from 0 to 2359 function makeTime(decimalHour) local hours=math.floor(decimalHour % 24) local fraction=math.floor((decimalHour-hours)*100) return hours*100 + math.floor(0.6*fraction) end --add minutes to a timenumber function addTime(timenumber,minutes) return makeTime(math.floor(timenumber/100)+((timenumber % 100)+minutes)/60) end --main loop --currentTime is a numeric value like 700 currentTime = tonumber(os.date("%H%M")) --once per day set seasonal times if (currentTime < 1) then --approximate calculation solarmonth = tonumber(os.date("%m")) - 0.7 + tonumber(os.date("%d"))/31 --minimum will be 7, maximum 7+1.4=8.4 ("08:24") --for the southern hemisphere 1-math.cos(... decimal_openTime = 7 + 0.7*(1+math.cos(math.pi*solarmonth/6)) --but I want a timenumber like 700: makeTime(decimal_openTime) end if (currentTime == openTime) then --open curtains end -- 5 minutes later I want to do something also if (currentTime == addTime(openTime,5) then --something end This lets you set up a loop in a convenient way.
  11. Dear All Let me share a small function for converting from EPOCH to Human time function epochtime(etime) temptime=etime/31556926 modyear=math.floor(temptime)+1970 temptime=(temptime-math.floor(temptime))*12 momonth=math.floor(temptime) temptime=(temptime-math.floor(temptime))*30.44 modate=math.floor(temptime) temptime=(temptime-math.floor(temptime))*24 mohour=math.floor(temptime) temptime=(temptime-math.floor(temptime))*60 mominute=math.floor(temptime) temptime=(temptime-math.floor(temptime))*60 mosecond=math.floor(temptime) print(modyear.."/"..momonth.."/"..modate.." "..mohour..":"..mominute..":"..mosecond) end
  12. amatt

    Restart Plug

    I am looking to have the wall plug restart (turn off then back on after 30 seconds) at an exact time (midnight). i have tried coding this in Lua but i am having no success on getting it to turn off and on at midnight can some help me?
  13. I want to subtract "tid_entre" from "tid" and check if it is longer than "entre". fibaro:setGlobal("Tid_entre", (os.date("%Y-%m-%d %H:%M:%S",fibaro:getValue(37, "lastBreached")))) local entre = "00:00:30" --hh:mm:ss local tid_entre = fibaro:getGlobal("Tid_entre") local tid = os.date("%Y-%m-%d %H:%M:%S") [DEBUG] 16:06:52: Variabelen entre = 00:00:30, VariableType = string [DEBUG] 16:06:52: Variabelen Tid_entre = 2018-10-17 14:00:44, VariableType = string [DEBUG] 16:06:52: Variabelen tid = 2018-10-17 16:06:52, VariableType = string Is it possible to do this without using epoc numbers for time?
  14. Once upon a time all of use had troubles with system time. But this is long ago - Ithought. I worked on some ideas with heating panel and have to synchronize FGT-001 with it because to work proper. I thought i have solved the issue and suddenly I recognized misbehavior again. While searching with heatpanel, FGT and so on I see that HC2 systemtime differs to MESZ. At the very moment I go to the Configuration Menu systemtime of HC2 corrects its self just by bring up the menu. I use "de.pool.ntp.org" for NTP at location topic. I also recongnized for the first time "This site can't use google maps correctly" , but i don't feel the need to go to location topic much often. Anyone else with system-time issues nowadays?
  15. Hi, Was searching to display the date and time parts and came across this %a abbreviated weekday name (e.g., Wed) %A full weekday name (e.g., Wednesday) %b abbreviated month name (e.g., Sep) %B full month name (e.g., September) %c date and time (e.g., 09/16/98 23:48:10) %d day of the month (16) [01-31] %H hour, using a 24-hour clock (23) [00-23] %I hour, using a 12-hour clock (11) [01-12] %M minute (48) [00-59] %m month (09) [01-12] %p either "am" or "pm" (pm) %S second (10) [00-61] %w weekday (3) [0-6 = Sunday-Saturday] %x date (e.g., 09/16/98) %X time (e.g., 23:48:10) %Y full year (1998) %y two-digit year (98) [00-99] and used on conjunction with the normal os.date you can display/use any part of a date/time fibaro:debug(os.date("%A")) fibaro:debug(os.date("%b")) fibaro:debug(os.date("%d")) gives [DEBUG] 20:30:46: Thursday [DEBUG] 20:30:46: Jul [DEBUG] 20:30:46: 14 and the time is (os.date("%H:%M:%S")) might save other newbee's like myself from too much head scratching -Frank
  16. Hello, I recently bought a home server lite. its on firmware 4.150 but i cant get the time right. I tryed a few timeservers, i changed it to manual but it keeps getting to 1-1-1970 1:00 (it starts here after the reboot) i dont know whats wrong? does anyone know what i can do to solve this problem. thanks
  17. Hi Every morning i forget to disarm my permitter (night) alarm. Now I would like to create a scen that does it for me :=) Senario: in the morning between 6-7am monday to friday then motion is detected in the bathroom then disarm So I need some help with he lua cod for the timerange ==================================================== --[[ %% properties 9 value %% globals --]] if ( ( tonumber(fibaro:getValue(9, "value")) > 0 ) -- Motion detected and THIS ===> ( (os.day= monday to friday) and (os.time = 06:00 to 07:00) ); ) then fibaro:call(61, "turnOn"); -- example code for disable permiter... End ====================================================== THX in advance
×
×
  • Create New...