How to update an attribute from a sensor in NR?

Hello, i have a sensor with many attributes and i need to update only one attribute in my Node Red flow.

How i can do it? Thanks

I want to show some view when the “Device is close to user” state was called. And want to remove the view if “Device is not closer to user” state was called.

So I added a view and removed inside the sensorStateMonitor: method. But the view was visible only for some fraction of seconds and the screen goes off.

Did you get it figured out? If not can you post the Node red flow you have? How did you create the sensor, was it made using the entity node?

Some variation of the suggestion in this post might help Entity node - correct values - #10 by serkank