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


Question

Posted

Hej mam pytanko mam scenę z włączeniem RGBW 
Działa sobie pięknie ładnie sprawnie 
Ale chciałbym do niej dodać opcję ze jak będzie burza ma się włączyć program np. 2 
Jak będzie deszcz to Światło niebieskie 
jak gorąco to żółte 

Proszę was o podpowiedz jak się za to powinienem zabrać.. ?
jakieś podpowiedzi komend Lua ?


--[[
%% autostart
%% properties
17 value
17 armed
%% events
%% globals
isNight
--]]

local startSource = fibaro:getSourceTrigger();
if (
 ( tonumber(fibaro:getGlobalValue("isNight")) == tonumber("1")  and  (tonumber(fibaro:getValue(17, "value")) > 0 and tonumber(fibaro:getValue(17, "armed")) == 0) )
or
startSource["type"] == "other"
)
then
   fibaro:call(62, "turnOn");
end

3 answers to this question

Recommended Posts

  • 0
Posted

Hmm mozesz odczytać co się dzieje z pogodą z API /api/weather

 

np tak:

Please login or register to see this code.

Jak dobrze pamiętam ID 3 to pogoda

Please login or register to see this image.

/emoticons/default_icon_smile.gif" alt=":-)" />

 

Program możesz w LUA wywolac

Please login or register to see this code.

Zmiana koloru:

Please login or register to see this code.

  • 0
  • Inquirer
  • Posted

    Dzieki dziś się bedę bawił

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> 

    • 0
    Posted

    Spoko jak cos to pisz na PM, a ogolnie też przymierzam sie do zabawy z rgbw ciekawe go co z tego wyjdzie, a Ci powiem ze pomysl kolorów zaleznych od temperatury jest nawet spoko. Tylko ze ja bede to łaczyć chyba z netatmo zeby mieć dane lokalne czyli deszcz i temperarura bo juź raz powódź sprzatalem z podłogi

    Please login or register to see this image.

    /emoticons/default_biggrin.png" alt=":D" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...