# Input item in sitemap - values not stored

**URL:** <https://community.openhab.org/t/input-item-in-sitemap-values-not-stored/156656>\
**Category:** Beginners\
**Tags:** items, sitemap\
**Created:** [June 11, 2024, 8:05am UTC](https://community.openhab.org/t/input-item-in-sitemap-values-not-stored/156656 "2024-06-11T08:05:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matilda](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/b5ac83/32.png) [@Matilda](https://community.openhab.org/u/Matilda)\
**Post date:** [June 11, 2024, 8:05am UTC](https://community.openhab.org/t/input-item-in-sitemap-values-not-stored/156656/1 "2024-06-11T08:05:49Z")

</div>

I’ve got some DateTime items and want to setup them via sitemap, eg

items-file:

DateTime SHUTTER\_WINDOW\_GF\_office\_\_\_open\_weekday “Öffnen Wochentag” \<shutter\_opened\>  
DateTime SHUTTER\_WINDOW\_GF\_office\_\_\_open\_weekend “Öffnen Wochenende” \<shutter\_opened\>  
DateTime SHUTTER\_WINDOW\_GF\_office\_\_\_close\_weekday “Schließen Wochentag” \<shutter\_closed\>  
DateTime SHUTTER\_WINDOW\_GF\_office\_\_\_close\_weekend “Schließen Wochentag” \<shutter\_closed\>

sitemap-file:

Input item=SHUTTER\_WINDOW\_GF\_office\_\_\_open\_weekday label=“Öffnen Wochentag [%1$tl:%1$tM Uhr]” inputHint=“time”  
Input item=SHUTTER\_WINDOW\_GF\_office\_\_\_close\_weekend label="Schließen Wochentag [%1$tl:%1$tM Uhr]"inputHint=“time”  
Input item=SHUTTER\_WINDOW\_GF\_office\_\_\_open\_weekend label=“Öffnen Wochenende [%1$tl:%1$tM Uhr]” inputHint=“time”  
Input item=SHUTTER\_WINDOW\_GF\_office\_\_\_close\_weekday label=“Schließen Wochentag [%1$tl:%1$tM Uhr]” inputHint=“time”

If I select a time in sitemap, the value is not stored. Variable is still null, selected values in sitemap are immediately switched back to “–:-- --”.

Any tipps appreciated!

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [June 11, 2024, 11:50am UTC](https://community.openhab.org/t/input-item-in-sitemap-values-not-stored/156656/2 "2024-06-11T11:50:57Z")

</div>

I don’t use sitemaps and the last time I did the Input element didn’t exist. But I suspect that if you look at the logs you might see an error or something in the logs which might provide a clue. If not I won’t be able to help more due to my lack of experience.

---

<div class="post-metadata">

**Author:** ![Matilda](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/b5ac83/32.png) [@Matilda](https://community.openhab.org/u/Matilda)\
**Post date:** [June 11, 2024, 2:27pm UTC](https://community.openhab.org/t/input-item-in-sitemap-values-not-stored/156656/3 "2024-06-11T14:27:53Z")

</div>

Thanks for your response -  
I found out that values are stored if I remove the inputHint property but therefore a complete datetime is stored and on first sight it doesn’t work with the rule as intended.  
'Cause you wrote that you don’t use sitemaps or the input type (any more) do you have a hint how to solve the issue? I want to specify a ToD on which shutters open or close (used the astro-events with an offset yet) but need adjustable timestamps for opening (for a few rooms at least).  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Matilda](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/b5ac83/32.png) [@Matilda](https://community.openhab.org/u/Matilda)\
**Post date:** [June 11, 2024, 2:33pm UTC](https://community.openhab.org/t/input-item-in-sitemap-values-not-stored/156656/4 "2024-06-11T14:33:38Z")

</div>

And unfortunately there’s absolutely nothing in the logs (maybe I have to increase log level to get further information…!?)

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [June 11, 2024, 4:12pm UTC](https://community.openhab.org/t/input-item-in-sitemap-values-not-stored/156656/5 "2024-06-11T16:12:20Z")

</div>

> [@Matilda](#):
>
> I found out that values are stored if I remove the inputHint property but therefore a complete datetime is stored and on first sight it doesn’t work with the rule as intended.

Well, that’s always going to be the case. A DateTime Item stores a DateTime. Even if you don’t provide a date, the Item’s going to include a date as part of the DateTime.

You can’t store just the time, but you can ignore the date.

> [@Matilda](#):
>
> I want to specify a ToD on which shutters open or close (used the astro-events with an offset yet) but need adjustable timestamps for opening (for a few rooms at least).  
> Thanks in advance!

Ignore the date part of the Item perhaps. There really isn’t enough information to give a good answer. There are lots of options from [Time Based State Machine [4.0.0.0;5.9.9.9]](https://community.openhab.org/t/time-based-state-machine-4-0-0-0-4-9-9-9/144208) to [Textual Rules | openHAB](https://www.openhab.org/docs/configuration/rules-dsl.html#time-based-triggers) to [Actions | openHAB](https://www.openhab.org/docs/configuration/actions.html#timers)

---

<div class="post-metadata">

**Author:** ![Matilda](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/b5ac83/32.png) [@Matilda](https://community.openhab.org/u/Matilda)\
**Post date:** [June 11, 2024, 5:27pm UTC](https://community.openhab.org/t/input-item-in-sitemap-values-not-stored/156656/6 "2024-06-11T17:27:14Z")

</div>

Found this [post](https://community.openhab.org/t/timers-and-datetime/141590/16) and used “timeOnly” in rule.

Works like a charm. Thanks man.

---

<div class="post-metadata">

**Author:** ![mstormi](https://community.openhab.org/user_avatar/community.openhab.org/mstormi/32/55857_2.png) [@mstormi](https://community.openhab.org/u/mstormi)\
**Post date:** [February 5, 2026, 8:03am UTC](https://community.openhab.org/t/input-item-in-sitemap-values-not-stored/156656/7 "2026-02-05T08:03:11Z")

</div>

I’ve hit the same and found out that once you initially set the item e.g. via CLI, it’s displayed and you can at least change the values via cursors.  
@Lolodomo am I right you built this or have at least proper experience here? Is this a bug?
