Git Product home page Git Product logo

node-red-contrib-life's People

Contributors

andreyoshev avatar

Watchers

 avatar  avatar  avatar

Forkers

hepcat72

node-red-contrib-life's Issues

Overlapping named places (from different users' circles) spuriously trigger output from the location node

I have edited this issue because as I've worked on it, I realized I didn't fully understand it, but one thing's for sure: if 2 users in different homes invite each other to their own circles they've created with their own places (or if a user has 2 circles that have the same "place" with a different name) - and they include the same locations with different names, updating each member for each circle will trigger output as if a person moved from one place to another when the only difference is the name of the same place is a different circle.

E.g. I have a place in my circle named "Mom and Dad's House". I invited my parents to that circle so that when they come and go from my house, it can trigger my automations. But I also have automations for when I come/go to/from their house. Likewise, my dad has a circle (to which he invited me) and his house for him is named "Home". When my parents are just sitting at home, the location node keeps spitting out that their location changed from one name of the same place to the other name of the same place.

You can test this without involving another user's circle by creating your own second circle containing a differently named place for the same location.

Also, there's a sendMember call in an else (in server:sendChanged) that triggers spurious location changes when no named location change happened.

The thing I haven't figured out is that when I put debug output above the sendMember call, I get debug output that a place change occurred but there's no corresponding location node json output. In those instances, it appears that it has to do with the location name being null. The person is actually still in the named location, so ultimately there should be no output. I just don't understand why there is no output. It seems like the conditions are the same as when a person leaves a named location, though I haven't tested that to see if the location node outputs as I would expect.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.