# Thermostat with Timer available?

**URL:** <https://community.openhab.org/t/thermostat-with-timer-available/159685>\
**Category:** Widgets\
**Created:** [October 17, 2024, 4:58am UTC](https://community.openhab.org/t/thermostat-with-timer-available/159685 "2024-10-17T04:58:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Norick](https://community.openhab.org/letter_avatar_proxy/v4/letter/n/d78d45/32.png) [@Norick](https://community.openhab.org/u/Norick)\
**Post date:** [October 17, 2024, 4:58am UTC](https://community.openhab.org/t/thermostat-with-timer-available/159685/1 "2024-10-17T04:58:09Z")

</div>

I am using a simple thermostat widget where I can set the temperature and see the current temperature in a diagram. Now it would be nice to have such widget where it is possible to setup a scheduler in order to decrease/increase the temperature during the night/day.

Unfortunately I could not find such widget and/or there is a “rule” or something similar which I can use.

Thanks

---

<div class="post-metadata">

**Author:** ![pacive](https://community.openhab.org/user_avatar/community.openhab.org/pacive/32/36234_2.png) [@pacive](https://community.openhab.org/u/pacive)\
**Post date:** [October 17, 2024, 6:08am UTC](https://community.openhab.org/t/thermostat-with-timer-available/159685/2 "2024-10-17T06:08:08Z")

</div>

There are several ways you could accomplish this, and the “best” one depends on how you are planning to use it. Would you change the schedule frequently, or do you want to “set-and-forget”? In the latter case, a few cron-based rules would probably be easiest. In the former case, there could be marketplace widgets that might suit your needs, I know there’s a “Timeline picker” that could work, but haven’t used it myself so not sure of what capabilities it offers.

Edit: Not a marketplace widget it seems, but a tutorial at least [Timeline picker to setup heating, light and so on](https://community.openhab.org/t/timeline-picker-to-setup-heating-light-and-so-on/55564)

---

<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:** [October 17, 2024, 1:29pm UTC](https://community.openhab.org/t/thermostat-with-timer-available/159685/3 "2024-10-17T13:29:43Z")

</div>

> [@pacive](#):
>
> Edit: Not a marketplace widget it seems, but a tutorial at least [Timeline picker to setup heating, light and so on](https://community.openhab.org/t/timeline-picker-to-setup-heating-light-and-so-on/55564)

There is a widget on the marketplace but this requires way more than just a widget so following the tutorial is definitely a must.: [Timeline](https://community.openhab.org/t/timeline/115755).

> [@Norick](#):
>
> Unfortunately I could not find such widget and/or there is a “rule” or something similar which I can use.

As @pacive mentioned, there are several ways you can do this.

1. [Design Pattern: Simple State Machine (e.g. Time Of Day)](https://community.openhab.org/t/design-pattern-simple-state-machine-e-g-time-of-day/15407)
2. [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)
3. One way to implement 1 is instead of hard coding the time in the trigger, you can use the Time is Item trigger and set the time in a DateTime Item. You can use [DateTime Standalone Widget](https://community.openhab.org/t/datetime-standalone-widget/127966) and [DateTime List Item](https://community.openhab.org/t/datetime-list-item/127967) to set the date times.
4. The timeline picker already linked
5. iCal binding: [iCalendar - Bindings | openHAB](https://www.openhab.org/addons/bindings/icalendar/)

---

<div class="post-metadata">

**Author:** ![Norick](https://community.openhab.org/letter_avatar_proxy/v4/letter/n/d78d45/32.png) [@Norick](https://community.openhab.org/u/Norick)\
**Post date:** [October 20, 2024, 5:36am UTC](https://community.openhab.org/t/thermostat-with-timer-available/159685/4 "2024-10-20T05:36:24Z")

</div>

Thanks for the answers… I am looking for a “set and forget” timer and it seems there are some very nice solutions.

I will check it and see if I can implement it.

---

<div class="post-metadata">

**Author:** ![Norick](https://community.openhab.org/letter_avatar_proxy/v4/letter/n/d78d45/32.png) [@Norick](https://community.openhab.org/u/Norick)\
**Post date:** [November 10, 2024, 9:19am UTC](https://community.openhab.org/t/thermostat-with-timer-available/159685/5 "2024-11-10T09:19:51Z")

</div>

Hello  
I am trying to use the #3 you proposed. I installed both widgets but I do not fully understand how they works. I can select a date and link it to an item so far. In the widget “DateTime List item” I see the current state of the item. When I press afterwards to the checkmark symbol I get an error message “comunication error” and the inserted date/time is removed.

Question:  
How do I use your widgets in order to switch on/off a light for example or changing the temperature during nightime? It looks that I am missing something here..

Thanks

---

<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:** [November 11, 2024, 5:02pm UTC](https://community.openhab.org/t/thermostat-with-timer-available/159685/6 "2024-11-11T17:02:25Z")

</div>

There isn’t anything special about my widgets. They just do a tiny bit of configuration of features that are built in to MainUI and the underlying F7n framework. If it’s not working, there’s a problem with something upstream from the widget.

I think I saw an issue go by that mentioned that if you do not enter anything and press the check an error will be generated. But if you select a DateTime and then hit the check it should command the Item with the newly selected date time.

> [@Norick](#):
>
> How do I use your widgets in order to switch on/off a light for example or changing the temperature during nightime? It looks that I am missing something here…

Once you have the DateTime Item populated, you use that Item as the Item in a `Time is <Item>` trigger. Then that rule will run a the time carried by the Item.

---

<div class="post-metadata">

**Author:** ![Norick](https://community.openhab.org/letter_avatar_proxy/v4/letter/n/d78d45/32.png) [@Norick](https://community.openhab.org/u/Norick)\
**Post date:** [November 12, 2024, 5:50am UTC](https://community.openhab.org/t/thermostat-with-timer-available/159685/7 "2024-11-12T05:50:37Z")

</div>

Thanks for your explination. You mentioned:

> But if you select a DateTime and then hit the check it should command the Item with the newly selected date time.

In my case it is different. I do select a valid date and afterwards I hit the check. See this:

 ![Screenshot 2024-11-12 064319](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/7/3/73bdf51880671c158532ee7b2fe4df4ed860ece3.png)  
 ![Screenshot 2024-11-12 064348](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/b/bb6b7ecb532ae9f37915b8e08893feac3e645c68.png)

When I use such DateTime item populated with a specific date and used that item in a rule, will the rule only trigger once at that day I configured? I would like to have a rule which triggers such item always at the same (night) time for example.

---

<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:** [November 12, 2024, 2:19pm UTC](https://community.openhab.org/t/thermostat-with-timer-available/159685/8 "2024-11-12T14:19:59Z")

</div>

Again, there isn’t anything I can do about this. It’s not implemented by the widget. It’s implemented by the F7 framework. All the widget does is set the property to show the date time picker.

> [@Norick](#):
>
> When I use such DateTime item populated with a specific date and used that item in a rule, will the rule only trigger once at that day I configured? I would like to have a rule which triggers such item always at the same (night) time for example.

There is a promament “Time Only” option.

---

<div class="post-metadata">

**Author:** ![hmerk](https://community.openhab.org/user_avatar/community.openhab.org/hmerk/32/56432_2.png) [@hmerk](https://community.openhab.org/u/hmerk)\
**Post date:** [November 12, 2024, 2:42pm UTC](https://community.openhab.org/t/thermostat-with-timer-available/159685/9 "2024-11-12T14:42:39Z")

</div>

You can also use the timepicker widget from the marketplace and add it as default standalone widget. We use it within the semanticHomeMenu project for time schedules for rollershutters.
