# Creating a flow for water heater and Tibber

**URL:** <https://community.homey.app/t/creating-a-flow-for-water-heater-and-tibber/69164>\
**Category:** Flows\
**Created:** [September 20, 2022, 9:30am UTC](https://community.homey.app/t/creating-a-flow-for-water-heater-and-tibber/69164 "2022-09-20T09:30:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lbjoergo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lbjoergo/32/58059_2.png) [@lbjoergo](https://community.homey.app/u/lbjoergo)\
**Post date:** [September 20, 2022, 9:30am UTC](https://community.homey.app/t/creating-a-flow-for-water-heater-and-tibber/69164/1 "2022-09-20T09:30:47Z")

</div>

Hi,  
I have a hot water heater with a relay that Homey can control. I would like to have homey shut off power to the hot water heater in the hours when the electricity price is the highest. Tibber supplies the pricing for the today and the next day, but I can’t figure out how to get it to evaluate the 8 hours where the price is the highest.  
Is there a way to do this?  
I am a total newbie at flows so examples would be very much appreciated.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [September 20, 2022, 10:50am UTC](https://community.homey.app/t/creating-a-flow-for-water-heater-and-tibber/69164/2 "2022-09-20T10:50:33Z")

</div>

Hi,  
I don’t have Tibber. But when I look at the available flow cards in the App Store, it should be possible like this:

**When…**  
– ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/f/ef280aed1f6801392d94127bbddc3fbc24fbfa26.png)

**And…**  
– ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/a/fa15a890599e48d285fe6df95c1985936594ae07.png)  
(you have to fill **8** into the field **Hours** )

**Then…**  
– Turn off water heater

---

<div class="post-metadata">

**Author:** ![lbjoergo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lbjoergo/32/58059_2.png) [@lbjoergo](https://community.homey.app/u/lbjoergo)\
**Post date:** [September 20, 2022, 11:28am UTC](https://community.homey.app/t/creating-a-flow-for-water-heater-and-tibber/69164/3 "2022-09-20T11:28:23Z")

</div>

Hi, thanks for the response. Will this flow turn the heater back on outside of these 8 hours? Also I would like the heater to be off for the 8 most expensive hours in the next 24 hours.  
The suggested flow appears to shut of the heater if the price is at a peak, or am not understanding how this works?

---

<div class="post-metadata">

**Author:** ![sbrattla](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sbrattla/32/47880_2.png) [@sbrattla](https://community.homey.app/u/sbrattla)\
**Post date:** [September 20, 2022, 12:31pm UTC](https://community.homey.app/t/creating-a-flow-for-water-heater-and-tibber/69164/4 "2022-09-20T12:31:32Z")

</div>

I have had success with the following rule. I’ve had it running for about a month, and overall it has worked well.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/9/e95394fb37e48b2dba55d415b5addae23f36a2d8.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/c/1c9e2cf312493724163b4c5b7ae067ecfd168fa7.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/4/0457db9092b0e1e55ba6fd7e6329dd21c67516a5.jpeg)

The “0 percent below average of the next 4 hours” ensures that the heater will kick in often enough, but at non-peak hours (may not be the absolute lowest of the day). The additional “0 percent below today’s average” makes sure that the heater shuts off when the price is above the average.

I experimented a bit with the “0 percent below average of the next N hours”, but found that 4 hours worked well.

---

<div class="post-metadata">

**Author:** ![lbjoergo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lbjoergo/32/58059_2.png) [@lbjoergo](https://community.homey.app/u/lbjoergo)\
**Post date:** [September 20, 2022, 1:32pm UTC](https://community.homey.app/t/creating-a-flow-for-water-heater-and-tibber/69164/5 "2022-09-20T13:32:39Z")

</div>

Hi, thanks for the response. I managed to recreate this flow, except for the final part with the else card.  
I do not have that part of the flow. How do I get it?  
currently my flow looks like this:

 ![Screenshot 2022-09-20 at 15.30.35](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/8/082b177f0dcb6f5a384f0215b4ea8c7dd3282204.jpeg)

and I can’t create the card to shut of the heater unless the criteria are met…

---

<div class="post-metadata">

**Author:** ![sbrattla](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sbrattla/32/47880_2.png) [@sbrattla](https://community.homey.app/u/sbrattla)\
**Post date:** [September 20, 2022, 1:46pm UTC](https://community.homey.app/t/creating-a-flow-for-water-heater-and-tibber/69164/6 "2022-09-20T13:46:59Z")

</div>

You need to :

1. “Add card” \> “Turn off”
2. When the “Turn off” card appears under “Then…”, tap and hold the card. You can then drag it downwards, and the “Else” should appear. You can then drag and drop it under “Else…”

It’s a bit of a “hidden” functionality…

---

<div class="post-metadata">

**Author:** ![lbjoergo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lbjoergo/32/58059_2.png) [@lbjoergo](https://community.homey.app/u/lbjoergo)\
**Post date:** [September 20, 2022, 2:49pm UTC](https://community.homey.app/t/creating-a-flow-for-water-heater-and-tibber/69164/7 "2022-09-20T14:49:44Z")

</div>

Thanks 🙂 that sorted it out perfectly 🙂

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [September 21, 2022, 8:10am UTC](https://community.homey.app/t/creating-a-flow-for-water-heater-and-tibber/69164/8 "2022-09-21T08:10:03Z")

</div>

> [@lbjoergo](#):
>
> Will this flow turn the heater back on outside of these 8 hours?

Even though Stian has already helped with this flow, I would still like to answer your question.  
In general, Homey doesn’t do anything by itself. You have to teach Homey with the help of the flows what Homey should do. In the example above, Homey would only turn off the water heater. So you still have to teach Homey when and under what conditions Homey should turn the water heater on again.  
This is also the case if you want to turn lights on and off again or open and close blinds, for example.  
So if you have any questions about this, just ask and/or use the search function first.

---

<div class="post-metadata">

**Author:** ![Carl\_Anton\_Stenling](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/carl_anton_stenling/32/47898_2.png) [@Carl\_Anton\_Stenling](https://community.homey.app/u/Carl_Anton_Stenling)\
**Post date:** [September 23, 2022, 9:14pm UTC](https://community.homey.app/t/creating-a-flow-for-water-heater-and-tibber/69164/9 "2022-09-23T21:14:42Z")

</div>

Here is an example flow. Unfortunately the comments are in Norwegian.

 ![VVB](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/6/36ae491bfe985573c94b508579eb91721805433d.png)
