Coder Social home page Coder Social logo

Comments (3)

csuermann avatar csuermann commented on May 28, 2024

Hi @Maui2k,

Do the devices appear as duplicates in the Alexa app and / or in the vsh-connection node?

from node-red-contrib-virtual-smart-home.

Maui2k avatar Maui2k commented on May 28, 2024

Good evening @csuermann,

the device itself is only existing once as far as I see. But on every deploy it seems that a new device is created with the same name and the old one is deleted.

I think this, because, i get a notification from the alexa app that x new devices have been discovered after deploying. Without adding any new device to node-red. And if I added the device to a group in the alexa app, after deploying again, the device was not any more in the group.

Kind regards
Maui

from node-red-contrib-virtual-smart-home.

csuermann avatar csuermann commented on May 28, 2024

I was able to reproduce the issue and think I know what's going on:

When you wrap a VSH node in a subflow, Node-RED dynamically creates VSH node instances for it on every deploy. Node-RED assigns random IDs to these dynamic nodes, which are used as primary identifiers for VSH.

When you (re)deploy your flows, VSH checks which device nodes have been added and adds them to the Alexa backend, too. This also triggers the push notification. At the same time, VSH also detects which previously known device nodes have been removed from the flow and removes them from the Alexa backend, too. This explains why your nodes don't appear as duplicates.

I would advise you not to use VSH nodes in subflows.

from node-red-contrib-virtual-smart-home.

Related Issues (20)

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.