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

  • 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 9 results

  1. 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
  2. I created several scenes where the timer functions to start the scene is being used. But none of them works. Any idea where should be the problem? See the pictures attached. Thanx for any adwise. HC2, FW 4.056,
  3. I was looking for a way to change the sunset time. All solutions I found did manipulate the current time and compare that with the sunset time. That's not the way I wanted it so I wrote a small function to subtract or add minutes to the sunrise or sunset given time. -- time is a string format: hh:mm -- offset is in minutes -- return string format: hh:mm function ChangeTimeWithOffsetInMinutes(time, offset) local currentDate = os.date("*t"); local format = "(%d+):(%d+)"; hour,min = time:match(format); local newTime = os.time({day=currentDate.day,month=currentDate.month,year=currentDate.year,hour=hour,min=min,sec=00}) + (offset * 60); -- -offset minuten; return os.date("%H:%M", newTime); end You can use it like: local sunrise = ChangeTimeWithOffsetInMinutes(fibaro:getValue(1, "sunriseHour"), 30);-- 30 minutes later local sunset = ChangeTimeWithOffsetInMinutes(fibaro:getValue(1, "sunsetHour"), -30);-- 30 minutes earlier Have fun with it!
  4. 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.
  5. Witam, Nie znalazlem do tej pory funkcji ktora wg mnie powinna byc podstawowa w tego typu automatyce domowe jaka oferuje Fibaro. Wiekszosc oswietlenia ktore mamy dotyczy zewnetrznej czesci naszego domu, i prawie kazde rozwiazanie oswietlenia zewnetrznego wiarze sie z koniecznoscia instalacji czujnika zmierzchu. Nikt recznie nie chodzi i nie wlacza swiatel zewnetrznych, ani nikt nie ustawia timerow zmieniajac godziny kazdego miesiaca bo na to nie ma czasu. Pytanie brzmi: Jak prosto stworzyc scene, ktora pobierala by informacje o wschodzie i zachodzie slonca z danej lokalizacji co wyzwalalo by przy tej zaleznosci oswietlenie fasadowe i gasilo je przy wschodzie slonca. Znalazlem ciekawy plugin czy virtual device Sunrise & Set v1.4.0 Zainstalowalem, probowalem zaimplementowac w scenie opartej na bloki ale na tym koncza sie moje umiejetnosci. Nie moge ustalic IF suset then lights on. Poniewaz plugin nie jest widoczny jako urzadzenie wyzwalajace. Jendakze sa widoczne zmienne dotyczace tego pluginu ktore nazywaja sie tak ze ciezko dokladnie wiedziec do czego dotycza. Siedzialem ile moglem i testowalem kazda z opcji ale niestety sciena odpalona recznie dziala ale automatycznie sie nie uruchamia. Czy ktos moglby mi z tym pomoc? albo moze jest inne gotowe rozwiazanie dla stworzenia tej sceny? Dziekuje uprzejmie za pomoc. Pozdrawiam serdecznie
  6. HI, I have and RGB LED strip and a Fibaro RGBW module all connected up and ready to go. I am trying to mimic a sunrise to help us wake up gradually ( and welcoming to the day ) using the LED strip. Before I research the colors and sequences of a typical sunrise I wonder has anybody been here before and have a nice vd or lua scene any help appreciated Thanks -f
  7. Hi, I have external lights. I use geolocation with ifttt. When I arrive near my house my lights turn on automatically. But it must light up when it is dark. At sunset. I created one variable : I created 3 scenes. First scene : --[[ %% autostart %% properties %% weather %% events %% globals --]] local sourceTrigger = fibaro:getSourceTrigger(); function tempFunc() local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); 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 string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == fibaro:getValue(1, "sunsetHour")) ) ) then fibaro:setGlobal("ext", "1"); end setTimeout(tempFunc, 60*1000) end if (sourceTrigger["type"] == "autostart") then tempFunc() else local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( startSource["type"] == "other" ) then fibaro:setGlobal("ext", "1"); end end My first scene Sets my variable to 1 when the sun goes down My second scene sets my variable to 0 when the sun rises. --[[ %% autostart %% properties %% weather %% events %% globals --]] local sourceTrigger = fibaro:getSourceTrigger(); function tempFunc() local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); 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 string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == fibaro:getValue(1, "sunriseHour")) ) ) then fibaro:setGlobal("ext", "0"); end setTimeout(tempFunc, 60*1000) end if (sourceTrigger["type"] == "autostart") then tempFunc() else local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( startSource["type"] == "other" ) then fibaro:setGlobal("ext", "0"); end end And My third scene that executes the lighting of my lights when ext = 1 and that the sun goes down. --[[ %% properties %% weather %% events %% globals ext --]] local startSource = fibaro:getSourceTrigger(); if ( ( tonumber(fibaro:getGlobalValue("ext")) == tonumber("1") ) or startSource["type"] == "other" ) then fibaro:call(32, "turnOn"); end I have a problem, It makes day or night my scene of lighting my lights work all the time. I don't understand. One idea ? if you can help me please. Thx.
  8. Hello guys, would be anyone so kind and help me calculate hours and minutes between current sunset hour and the next days sunrise? local sunset = fibaro:getValue(1, "sunsetHour") local sunrise = fibaro:getValue(1, "sunriseHour") I would very appriciate having the information, that the night will last xy hours and xy minutes. Thank you very much in an advance, tampiss
  9. NightAndDay is a LUA script to set two global variables at sunrise and sunset and at sunrise + a sunrise offset and at sunset + a sunset offset. You can choose the name of the global variables to set. Default are itIsNight and itIsNightOne. You can define two different offset values (between -7200 and 7200 seconds) for both sunrise and sunset, sunrisetime_offset and sunsettime_offset. itIsNight will switch from 1 to 0 at sunrisetime and from 0 to 1 at sunsettime. itIsNightOne will switch from 1 to 0 at sunrisetime+sunrisetime_offset and from 0 to 1 at sunsettime+sunsettime_offset. At this link you can donwload the script (zip file) and the documentation (PDF): http://domotica.gposta.it
×
×
  • Create New...