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

AEOTEC Multisensor 6 Aktiv ?!


FBerges

Question

Hello
I have an AEOTEC Multisensor 6 and operate it with a power bank.
I learned it with a 230VAC / 5VDC power supply.
How can I query in LUA whether the device is still active?
Since I learned it without a battery, the battery info is not available to me.

Greetings Frank

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
43 minutes ago, FBerges said:

Hello
I have an AEOTEC Multisensor 6 and operate it with a power bank.
I learned it with a 230VAC / 5VDC power supply.
How can I query in LUA whether the device is still active?
Since I learned it without a battery, the battery info is not available to me.

Greetings Frank

poll + dead

but it`s tricky

Link to comment
Share on other sites

  • 0
  • Inquirer
  • good Morning all, good Morning @10der

    Well what queries to determine the dead?
    No value = dead goes bad.
    Actually, you would have to have that also with an alarm function to first determine whether the encoder is still there.
    Even a normally closed contact does not help if the transmitter has no power and cannot send the change.
    A tricky situation.
    But there has to be something, if a module comes out of reach of the mashes it will be displayed on the dashboard!
    It's actually the same.
    Look i mean!

    Please login or register to see this image.

    /monthly_2020_08/image.png.071e1b0a0001be8dd2d49f4423c5a9a9.png" />
    Greetings Frank

    Link to comment
    Share on other sites

    • 0

    Sorry I am so far from my pc...

    1st HC marked device as dead only if some requests to this device failed 

    2nd all request while device dead but not recognized HC as dead will be succ and you got last saved value 

    3td for initiation checking of dead process you should poll this device manually Fibaro has native method 

    4 just after poll make sleep and check prop with name “dead” if it true than device really dead 

    5 also you can read last modification for motion sensor or/and temp sensor if os time - LastModifed is toooo much - probably your device is dead.

     

    thats all from my side, Sir

    Link to comment
    Share on other sites

    • 0

     

     

    fibaro.call(deviceID, 'poll')

    fibaro.sleep(1000)

    local isDead = fibaro.getValue(deviceID, "dead")

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Hello
    That's working !
    fibaro.call (deviceID, 'poll')
    fibaro.sleep (1000)
    local isDead = fibaro.getValue (deviceID, "dead")
    Although I'm not sure why yet.
    poll and dead are actually not propertys.
    I guess I could have written erni and bert too.
    My guess is :
    fibaro.call (deviceID, 'poll')
    Initiates a query.
    After 1s it is queried whether there is something pending and if the device is toot it gives a true.
    So far the theory is a bit illogical, because I would have expected a nil or zero.
    But THANK YOU for the solution!
    Greetings Frank

    Link to comment
    Share on other sites

    • 0

    Please login or register to see this image.

    /monthly_2020_08/image.png.46932fd57d4a9fa25f630ba0a7a94a23.png" />

    Please login or register to see this link.

     

    image.png.316bbf7638dba0f422361939449a0753.png

     

    image.png.6e1a1c923a8fe52d160715daf8612da9.png

     

     

    image.png.543ceae4933d6a23c51baa2ec1513722.png

    Link to comment
    Share on other sites

    • 0

    just power off ny MS6

    run poll the device 4 times

     

    voila!

     

    Please login or register to see this image.

    /monthly_2020_08/image.png.e1c47d06ea512306a68ce3711a369a11.png" />

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Hello

    Well, I still lack a lot of knowledge!
    I hadn't seen that.
    Thanks for the detailed info !
    Now I understand how that works, I assumed that the assumptions were wrong.
    So there's what that tells you that the module is dead.
    Do you have any information about how long it takes until a module is declared dead?
    You waited 1s to query this.
    Is that always sufficient or does it depend on the wake-up interval of the module?

    Greetings from the warm and sunny Sauerland to Ukraine.
    Frank

    Link to comment
    Share on other sites

    • 0
    3 minutes ago, FBerges said:

    Is that always sufficient or does it depend on the wake-up interval of the module?

    powered divices probably always on, so query by poll should results right along...

     

    4 minutes ago, FBerges said:

    Greetings from the warm and sunny Sauerland to Ukraine.

    thx!

    :) 

    image.png.95801b91a8e9e26c44d84724a35398d7.png

    • Like 1
    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...