Code Monkey home page Code Monkey logo

Comments (2)

nordlead2005 avatar nordlead2005 commented on May 30, 2024

When you select a node look at the info tab on the right side of the screen. If you read "current state" node documentation it says

Inputs
payload.entity_id string
Overrides or sets the entity_id for which the current state is being fetched

If you put a debug node on the "events: all" node, then you'll see that payload.entity_id is populated. So it does what it says it will do.

You can either use a change node and delete the property, or what most people do is they use one or more "events: changed" node. Note that the "events: changed" node uses a substring match, so an entity_id filter of binary_sensor will return state changes for all binary sensors in your HA setup.

from node-red-contrib-home-assistant.

AYapejian avatar AYapejian commented on May 30, 2024

@nordlead2005 is correct, by your description @sibbl everything seems to be functioning as designed. My personal view on this was the node configuration value could be thought of like how environment values are used in many cli systems, if you don't pass a cli argument then the environment variable is used as a default, if you pass an argument ( the node input ) then the environment variable ( the default node value ) is discarded.

I do agree that the documentation needs some love however and to that end I created #22 for when I have time to address

from node-red-contrib-home-assistant.

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.