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

Push notification when motion is detected.


Question

Guest swissnet3000
Posted

Please login or register to see this code.

 
 
 
{
  conditions = { {
      id = 295,
      isTrigger = true,
      operator = "==",
      property = "value",
      type = "device",
      value = true
    } },
  operator = "any"
},{
  conditions = { {
      id = 289,
      isTrigger = true,
      operator = "==",
      property = "value",
      type = "device",
      value = true
    } },
  operator = "any"
}
 
AKTION
local sensors = {295}
 
local debug = false
local delay = 0
 
function actionsMotion()
 print('Führe Aktionen bei Bewegungserkennung aus')
 fibaro.alert('push', {[1] = 2, }, 'Bewegung im Büro wurde erkannt !'false)
end
 
local sensors = {289}
 
local debug = false
local delay = 0
 
function actionsMotion()
 print('Führe Aktionen bei Bewegungserkennung aus')
 fibaro.alert('push', {[1] = 2, }, 'Bewegung im Gästezimmer wurde erkannt !'false)
end

 

4 answers to this question

Recommended Posts

  • 0
Posted

Why not make a blockscene?

 

And if you still want the Lua, you can convert it to Lua. 

  • 0
Posted

Perhaps a tip.

Create scene in blocks and convert in lua than you will see your missing part

//Sjakie

ships I am getting to slow!

  • 0
Guest swissnet3000
  • Inquirer
  • Posted

    I did, but when a sensor is triggered, I always get the push message from both rooms. But if the sensor in the office is triggered, I would like to receive a message only from the office. And one from the guest room when the sensor is triggered there receive a message from the guest room. Block scene is only possible if I make two single ones, with LUA I would have one scene because HC3L is limited

    • 0
    Posted
    37 minutes ago, swissnet3000 said:

    because HC3L is limited


    Maybe look for solutions like:

     

    or 

     

     

     

     

     

     

     

    • Thanks 1

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