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


  • 0

Powiadomienie na Tablet


talar26

Question

Witam

Mam urządzenie wirtualne które uruchamia się gdy szujka zalania jest naruszona wysyła powiadomienie na Tablet Sony który znajduje się na ścianie oto rzut ekranu powiadomienia

Please login or register to see this attachment.

 

I teraz po wciśnięciu na Tak ma się uruchomić cena ale nić się nie dzieje może ktoś ma pomysł ?

--[[
%% properties
208 value
%% globals
--]]

-- wprowadź identyfikator urządzenia, którego akcja uruchamia powiadomienie do 3 linii..
local startSource = fibaro:getSourceTrigger();
if (
    ( tonumber(fibaro:getValue(208, "value")) > 0 )
-- ponownie wprowadź numer akcji (czerwony numer) w poprzednim wierszu, a na końcu> 0, to znamená, že keď je zásuvka na 1 (zapnutá), vtedy sa spusti scéna
or
startSource["type"] == "other"
)
then
  fibaro:call(385, "sendDefinedPushNotification", "495") -- linia ta zajmuje się powiadomieniem, gdy aplikacja jest wyłączona. Wysyła powiadomienie push numer 4 do urządzenia numer 9.
HomeCenter.PopupService.publish({
    title = '  ALARM ZALANIE ! ', -- największe ogłoszenie z napisem
    subtitle = '      ZALANIE ŁAZIENKI ! ! !   ', -- podtytuł powiadomienia
    contentTitle = 'ZAWÓR ZOSTAŁ ZAKRĘCONY  ',-- Główne pytanie
    contentBody = 'CZY ODKRĘCIĆ ZAWÓR WODY ? ', -- pod pytaniem
    img = 'http://cdn.mysitemyway.com/etc-mysitemyway/icons/legacy-previews/icons-256/3d-glossy-orange-orbs-icons-people-things/106070-3d-glossy-orange-orb-icon-people-things-lamp2-sc31.png', -- adresa na png obrázok, ktorý má byť zobrazený v notifikácií
    type = 'Info', -- Success,Critical,Warning   zasadniczo chodzi o to, czy powiadomienie pojawia się jako powiadomienie lub ostrzeżenie. Po wprowadzeniu sukcesu podświetlenie jest zielone. Gdy wprowadzono wartość Krytyczne, podświetlenie jest czerwone.
    buttons = {
        { caption = 'Tak', sceneId = 174  }, -- pierwszy przycisk powiadomienia, jego opis i identyfikator sceny, który uruchamia po naciśnięciu
        { caption = 'Nie', sceneId = 0 },
       -- drugi przycisk, nic nam to nie robi, ponieważ identyfikator sceny ma wartość 0.
        -- w razie potrzeby można użyć trzeciego przycisku, wystarczy skopiować poprzednią linię.
       
    }
})
end

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

The topic has been moved from "

Please login or register to see this link.

" to "

Please login or register to see this link.

".

 

Temat został przeniesiony z "

Please login or register to see this link.

" do "

Please login or register to see this link.

".

Link to comment
Share on other sites

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