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


Recommended Posts

  • Topic Author
  • Posted
    18 minutes ago, fastvd said:

    In other words: how can you check if there is such an ID at all?

    I don't understand the question.

    If you put the id in the existingDevices table, you will get an event your rule can trigger on if the device doesn't exist.

    If you start with an empty existingDevices table, you will get an event if any device disappears after the QA have started up.

     

    Posted (edited)
    24 minutes ago, jgab said:

    I don't understand the question.

    If you put the id in the existingDevices table, you will get an event your rule can trigger on if the device doesn't exist.

    If you start with an empty existingDevices table, you will get an event if any device disappears after the QA have started up.

     

    Yes, this logic that you describe is correct, but ONLY under the condition that there will be a generation of DELETE of the device!
    And I am 99% sure that it will not exist, since several times I have had zigbee devices simply disappear from the system on their own, I did not give a request for deletion! Moreover, these were temperature sensors, opening sensors, and relays! the only thing that unites them is the manufacturer SONOFF! But I can't say that there won't be such a problem with others!
    That's why the idea came up to say MONITOR whether there is a device with a given ID in the system at all!

    Edited by fastvd
    Posted (edited)

    PS: at what did I then add the same devices to the home assistant + zigbee dongle, and there were exactly the same automatic deletions from the system. Specifically with the SML-02Z-L Tuya Smart Zigbee 2CH Lno-neutral model

    Please login or register to see this attachment.

    Edited by fastvd
    Posted (edited)

    PS2:
    1)with snzb-04 opening sensor on HC3 it just deleted itself and doesn't update status and on HA+zigbee2mqtt it just doesn't update status(moreover, I have 5 such sensors - 2 of them work normally, and the other 3 are problematic!)
    2) with a temperature sensor:
    and on HC3 and on HA+zigbee2mqtt, the connection simply disappears and updated data does not come (on HA+zigbee2mqtt it is clearly visible, because there are more diagnostic methods), but apart from that, on HC3 it also deletes itself! (Out of 4pcs sensors, 2 immediately after a few days began to malfunction and not send data, 1 worked for about 3 months, and so far 1 only works normally! All of them are 4-6 m away from my HC3)

     

    Please login or register to see this attachment.

    Edited by fastvd
  • Topic Author
  • Posted
    33 minutes ago, fastvd said:

    Yes, this logic that you describe is correct, but ONLY under the condition that there will be a generation of DELETE of the device!
    And I am 99% sure that it will not exist, since several times I have had zigbee devices simply disappear from the system on their own, I did not give a request for deletion! Moreover, these were temperature sensors, opening sensors, and relays! the only thing that unites them is the manufacturer SONOFF! But I can't say that there won't be such a problem with others!
    That's why the idea came up to say MONITOR whether there is a device with a given ID in the system at all!

    But in the post I also provide another example that polls the devices every minute and checks if any disappeared - and then posts an event that the rule can trigger on. And if you put it in the existingDevices list at startup if will check if the device exists then. 

  • Topic Author
  • Posted

    Do you have the sensor associated both on HC3 and on HA+zigbee2mqtt? 

    Is that possible? A zigbee device can only have one controller.

    Posted
    49 minutes ago, jgab said:

    Do you have the sensor associated both on HC3 and on HA+zigbee2mqtt? 

    Is that possible? A zigbee device can only have one controller.

    you did not understand..I have a sensor, first I connected it to HC3, it did not work correctly there, so I decided that MAYBE this is a problem ONLY with HC3, since fibaro still has support in TEST mode, unlike HA +zigbee2mqtt which has VERY strong support. Therefore, if the device did not work correctly on HC3, then I switched to HA+zigbee2mqtt and already tested there!

    Posted
    1 hour ago, jgab said:

    But in the post I also provide another example that polls the devices every minute and checks if any disappeared - and then posts an event that the rule can trigger on. And if you put it in the existingDevices list at startup if will check if the device exists then. 

    well, I don’t even know what to say... it’s probably easier to check... but I don’t fully understand how it can be done, since when I delete something, it’s clear that somewhere in the system a log is generated with the word REMOVED or DELETED, or really logically can see ER4 but if it deletes itself then I don't know how to repeat the process to see if the rule worked!

    Posted

    and so my test method is:
    1) I am creating a virtual device, its id=1442
    2) I describe this id in the rule
    3) run ER4
    4) manually remove the device with id=1442
    5) ER4 clearly captures the deletion
    Everything is ok here
    Now the next test:
    I take it to ER4 and describe a NON-EXISTING ID, ER4 does not see that there is NO such ID either when starting or when checking!

  • Topic Author
  • Posted
    1 hour ago, fastvd said:

    Everything is ok here
    Now the next test:
    I take it to ER4 and describe a NON-EXISTING ID, ER4 does not see that there is NO such ID either when starting or when checking!

    If you expect it to be there you add it to the existingDevices table - then it will complain if it's not there at startup.

    Posted
    39 minutes ago, jgab said:

    If you expect it to be there you add it to the existingDevices table - then it will complain if it's not there at startup.

    ok i didn't fully understand but i hope this is what i need. now more cosmetics... how to freeze output not just a message:
    Device 1443 removed, and to give the name of this device?

    Posted

    Jan, I have two pir sensors one of each side of the door.

    I get a error but I have no clue why.

    I added a check on the devices to see what is wrong but it does not give me a solution.

    Rule:

    Please login or register to see this code.

    Error:

    Please login or register to see this code.

     

  • Topic Author
  • Posted

    It's rule 19 that starts with

    Please login or register to see this code.

    that cause the error, can you post that rule? In that rule you seems to be doing some kind of arithmetic(+/-) that causes the error because one of the values are nil 

    Posted

    Jan the rule is 

    Please login or register to see this code.

     

  • Topic Author
  • Posted
    12 hours ago, Sjakie said:

    Jan the rule is 

    Please login or register to see this code.

     

    One of your variables don't contain a number, or you spelt the variable name wrong...

    Try

    Please login or register to see this code.

    and see what values they have.

    • Like 1
    Posted

    Jan, great thanks! A corrupt GV Value.

    Posted
    On 2/16/2023 at 4:57 PM, fastvd said:

    ok i didn't fully understand but i hope this is what i need. now more cosmetics... how to freeze output not just a message:
    Device 1443 removed, and to give the name of this device?

    ?

  • Topic Author
  • Posted
    2 hours ago, fastvd said:

    ?

    Please login or register to see this code.

    Posted
    16 minutes ago, jgab said:

    Please login or register to see this code.

    Please login or register to see this attachment.

  • Topic Author
  • Posted

    Yes, of course. The device is removed so it doesn't have a name...

     

    The below could work, however for devices missing at startup we can't know the name unless you put it in the existingDevices table

     

    Please login or register to see this code.

    Join the conversation

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

    Guest
    Reply to this topic...

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