# Time Home Assistant KNX

**URL:** <https://discourse.nodered.org/t/time-home-assistant-knx/43774>\
**Category:** General\
**Created:** [6 April 2021 17:16 UTC](https://discourse.nodered.org/t/time-home-assistant-knx/43774 "2021-04-06T17:16:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ives25](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ives25/32/39877_2.png) [@Ives25](https://discourse.nodered.org/u/Ives25)\
**Post date:** [6 April 2021 17:16 UTC](https://discourse.nodered.org/t/time-home-assistant-knx/43774/1 "2021-04-06T17:16:22Z")

</div>

Hello,  
I am using Node-RED in Home assistant and I want to write the time in an ETS group (GA) address.  
The time value is retrieved via the HA interface in an "input\_datetime.heure" entity

The following flow works but the writing of the time in the group address is done when the local time is equal to the time entered in Lovelace in an input\_datetime.hour (in pink)

I'm looking for a node that will write the value to the group address as soon as it changes in lovelace.  
[https: // [www.casimages.com/i/210406015846774013.jpg.html](http://www.casimages.com/i/210406015846774013.jpg.html)]

---

<div class="post-metadata">

**Author:** ![Ives25](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ives25/32/39877_2.png) [@Ives25](https://discourse.nodered.org/u/Ives25)\
**Post date:** [10 April 2021 06:53 UTC](https://discourse.nodered.org/t/time-home-assistant-knx/43774/2 "2021-04-10T06:53:33Z")

</div>

Hello,  
I have a solution to write the time with an "event state" node but it does not work to retrieve the date ?  
[https://www.casimages.com/i/21041009041582779.jpg.html](https://www.casimages.com/i/21041009041582779.jpg.html)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 April 2021 07:10 UTC](https://discourse.nodered.org/t/time-home-assistant-knx/43774/3 "2021-04-10T07:10:34Z")

</div>

Not many here use HA so you might be better asking this on a HA forum.

---

<div class="post-metadata">

**Author:** ![Ives25](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ives25/32/39877_2.png) [@Ives25](https://discourse.nodered.org/u/Ives25)\
**Post date:** [10 April 2021 07:17 UTC](https://discourse.nodered.org/t/time-home-assistant-knx/43774/4 "2021-04-10T07:17:03Z")

</div>

It's already done, but not all HA users use Node-Red!  
The question could be: which node makes it possible to retrieve a date whether it comes from HA or other?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 April 2021 08:03 UTC](https://discourse.nodered.org/t/time-home-assistant-knx/43774/5 "2021-04-10T08:03:22Z")

</div>

> [@Ives25](#):
>
> which node makes it possible to retrieve a date

Retrieve it from where? You can get the current date/time in a Function node using `let now = new Date()`, if that is what you want.

---

<div class="post-metadata">

**Author:** ![Ives25](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ives25/32/39877_2.png) [@Ives25](https://discourse.nodered.org/u/Ives25)\
**Post date:** [10 April 2021 10:21 UTC](https://discourse.nodered.org/t/time-home-assistant-knx/43774/6 "2021-04-10T10:21:17Z")

</div>

No, I want to retrieve the date stored in an input\_datetime.date variable (variable home assistant)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 April 2021 11:13 UTC](https://discourse.nodered.org/t/time-home-assistant-knx/43774/7 "2021-04-10T11:13:04Z")

</div>

Feed it into a debug node and show us what it looks like.

---

<div class="post-metadata">

**Author:** ![Ives25](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ives25/32/39877_2.png) [@Ives25](https://discourse.nodered.org/u/Ives25)\
**Post date:** [10 April 2021 11:34 UTC](https://discourse.nodered.org/t/time-home-assistant-knx/43774/8 "2021-04-10T11:34:17Z")

</div>

Thanks for the proposal. By setting up the debug node, I see that Home assistant does not update the variable. I have to solve this problem ...

{Edit] Finally fixed after a Core update

---

<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:** [9 June 2021 11:34 UTC](https://discourse.nodered.org/t/time-home-assistant-knx/43774/9 "2021-06-09T11:34:30Z")

</div>

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