# Get specific entities in message

**URL:** https://discourse.nodered.org/t/get-specific-entities-in-message/73230
**Category:** General
**Tags:** home-assistant
**Created:** [5 January 2023 14:45 UTC](https://discourse.nodered.org/t/get-specific-entities-in-message/73230 "2023-01-05T14:45:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![richardx95](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/richardx95/32/73821_2.png) [@richardx95](https://discourse.nodered.org/u/richardx95)
#### Post date: [5 January 2023 14:45 UTC](https://discourse.nodered.org/t/get-specific-entities-in-message/73230/1 "2023-01-05T14:45:56Z")

</div>

Hi all,

I'm quite new to Node Red and like it already.  
What I want to achieve is to send a message with the following contents;  
If the train is delayed: yes/no  
The departure time of the train  
The departure platform of the train

I can get these entities from a sensor from the Dutch National Railroads:

 ![Screenshot 2023-01-05 at 15.28.49](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/c/8ce6b9f10d59d09fc348503f82d0ab36b1628cc7.png)

As I yet don't know how to get this specific information inside a message notification I would like some help

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [5 January 2023 15:04 UTC](https://discourse.nodered.org/t/get-specific-entities-in-message/73230/2 "2023-01-05T15:04:07Z")

</div>

There’s a great page in the docs ([Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)) that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [5 January 2023 15:18 UTC](https://discourse.nodered.org/t/get-specific-entities-in-message/73230/3 "2023-01-05T15:18:29Z")

</div>

In the data you show above there is a msg.data.attributes.departure\_delay.

You probably want to get this into msg.payload.departure\_delay to pass on to a notification.

You can use a change node for that.

---

<div class="post-metadata">

### Author: ![richardx95](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/richardx95/32/73821_2.png) [@richardx95](https://discourse.nodered.org/u/richardx95)
#### Post date: [5 January 2023 15:29 UTC](https://discourse.nodered.org/t/get-specific-entities-in-message/73230/4 "2023-01-05T15:29:41Z")

</div>

Thanks a lot, that will be definitely what I was looking for!  
Just didn't search properly 😜

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [6 March 2023 15:30 UTC](https://discourse.nodered.org/t/get-specific-entities-in-message/73230/5 "2023-03-06T15:30:18Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
