# Using Home assistant's input\_number in a "change node" to send data to "hourglass node"

**URL:** https://discourse.nodered.org/t/using-home-assistants-input-number-in-a-change-node-to-send-data-to-hourglass-node/100227
**Category:** General
**Tags:** home-assistant
**Created:** [23 January 2026 16:41 UTC](https://discourse.nodered.org/t/using-home-assistants-input-number-in-a-change-node-to-send-data-to-hourglass-node/100227 "2026-01-23T16:41:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hansjeu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hansjeu/32/104458_2.png) [@hansjeu](https://discourse.nodered.org/u/hansjeu)
#### Post date: [23 January 2026 16:41 UTC](https://discourse.nodered.org/t/using-home-assistants-input-number-in-a-change-node-to-send-data-to-hourglass-node/100227/1 "2026-01-23T16:41:56Z")

</div>

I have a question about the "change node" module fron node red in Home Assistant.

Is it possible to call an input\_number?

I use "change node" to send data to the "hourglass node."  
I have an input\_number where I enter the number of seconds it takes for the "hourglass node" to trigger an alarm.  
I would like to use the input\_number and send it to the "hourglass node" via "change node" as:  
SET msg payload to the value PT5S.

 ![Node-RED-–-Home-Assistant](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/0/f095e28f3582636da2d63bb961ae772dc11efbe4.png)

Where the 5 is stored in the input\_number.

Thanks in advance, Hansje

---

<div class="post-metadata">

### Author: ![mikefila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikefila/32/95223_2.png) [@mikefila](https://discourse.nodered.org/u/mikefila)
#### Post date: [23 January 2026 21:58 UTC](https://discourse.nodered.org/t/using-home-assistants-input-number-in-a-change-node-to-send-data-to-hourglass-node/100227/2 "2026-01-23T21:58:24Z")

</div>

First check if home assistant's globals are enabled. Open any ha node at the top where it shows the server, click the pencil to the right to go to the server settings. Select config settings to expand the panel. If globals are not checked, check it, update, deploy and restart the addon.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/8/d8635a952fd1e437d7403d8561ea86d1630365bf.png)

then in the change node choose global

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/4623314a07d2c74ec51b2bfff76f44de7d3f1ba3.png)

and use

```auto
homeassistant.homeAssistant.states["input_number.number"].state

```

Now that is going to get you the state but with home assistant all numbers are stored as strings. It will likely need to be cast to a number. In that case J expression can be used.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/3/13ae7449a96762549fbb63b3535ab63e3999b252.png)

```auto
$globalContext("homeassistant").homeAssistant.states.`input_number.number`.state ~> $number()

```

Edit changed the formatting to show backticks in the global context example.

---

<div class="post-metadata">

### Author: ![hansjeu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hansjeu/32/104458_2.png) [@hansjeu](https://discourse.nodered.org/u/hansjeu)
#### Post date: [24 January 2026 19:03 UTC](https://discourse.nodered.org/t/using-home-assistants-input-number-in-a-change-node-to-send-data-to-hourglass-node/100227/3 "2026-01-24T19:03:47Z")

</div>

Hello **mikefila**

Thank you. This solved my problem.

Greetings Hansjeu

---

<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: [24 April 2026 19:03 UTC](https://discourse.nodered.org/t/using-home-assistants-input-number-in-a-change-node-to-send-data-to-hourglass-node/100227/4 "2026-04-24T19:03:50Z")

</div>

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