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

Is there a LUA command to wake a device?


SDeath

Question

Basically I want to check a certain device if it's marked as dead and then send the command to wake up.

I have one switch device that's up two stories and one other switch is in between but sometimes the command doesn't get there and when I check it's marked as dead.

But when I wake it and then send the command manually it sends the command fine.

Any help would be appreciated.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
Guest Lode

This will do the trick

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" />

Please login or register to see this code.

To wake up

Please login or register to see this code.

Link to comment
Share on other sites

  • 0

The script I use:

Please login or register to see this code.

Please login or register to see this attachment.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Awesome guys!!

    Exactly what I was looking for!

    Thanks a thousand times!

    [ Added: 2014-04-19, 11:42 ]

    Small follow up on this,

    Please login or register to see this code.

    Didn't work for me, it never woke the device, with the correct id ofcourse.

    Please login or register to see this code.

    This one did work, and devices are woken immediately.

    Been running with the first command for a week now, and still devices went dead.

    So I just made two buttons in a virtual device and run both commands, the first one didn't wake them and the 2nd worked fine. So just changed all my lua to the 2nd command so let's see how that works after a week or so.

    Link to comment
    Share on other sites

    • 0
    On 15-4-2014 at 10:06 AM, boerremk said:

    The script I use:

     

    Please login or register to see this code.

     

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    Please login or register to see this code.

     

    conditions 

      conditions = { {
          id = 35,
          isTrigger = true,
          operator = "==",
          property = "state",
          type = "device",
          value = true
        } },
      operator = "all"
     
    }
     
    action
    hub.call(298, 'turnOn')
     
    hub.setTimeout(20000, function()
    end)
    fibaro:wakeUpDeadDevice(75);
    Link to comment
    Share on other sites

    • 0

    @Rados

    Please login or register to see this code.

    This should work

    Link to comment
    Share on other sites

    • 0
    On 3/4/2024 at 7:53 AM, Stycx said:

    @Rados

    Please login or register to see this code.

    This should work

    Thank you @Stycx, it works

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