# Help with a flow to start heating on my car

**URL:** <https://community.homey.app/t/help-with-a-flow-to-start-heating-on-my-car/36149>\
**Category:** Questions & Help\
**Created:** [October 18, 2020, 6:53pm UTC](https://community.homey.app/t/help-with-a-flow-to-start-heating-on-my-car/36149 "2020-10-18T18:53:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cb83/32/30125_2.png) [@CB83](https://community.homey.app/u/CB83)\
**Post date:** [October 18, 2020, 6:53pm UTC](https://community.homey.app/t/help-with-a-flow-to-start-heating-on-my-car/36149/1 "2020-10-18T18:53:24Z")

</div>

Hello.

New user to Homey, and ive been playing around for å few days.  
But i am really struggling and need some help.

I am trying to start the heating in my car with a push of a button :

When :  
Start heating button is pressed

And:  
Heating status is off start heating  
Send push notification " do you wanna start heating"

Or

Heating status is on  
Send push notification " do you wanna stop heating"

Then :  
Start heating

Else

Stop heating

Something like this😊

I feel i have tried everything with all possible logic, but i can not get ir to work.

Picture are my latest where “heater på” is sat as YES

I know my “then” is not correct, but is just for showing you guys what i mean.

Running version 4.2, i use the volvo app for controlling the car.

Please help.

Thanks

 ![20201018_205502](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/c/fcc3ea607514a7d98a1cdbfa27ce6d6aade118a3.jpeg) ![Screenshot_20201018-204044_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/a/8a8af20d0eb72e6d1772f7b6abf38b4566ba0f36.jpeg)

---

<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:** [October 18, 2020, 7:41pm UTC](https://community.homey.app/t/help-with-a-flow-to-start-heating-on-my-car/36149/2 "2020-10-18T19:41:24Z")

</div>

Hi Christer,  
A warm welcome to the Homey User and the community.  
I suggest you read the following tutorials to understand how flows are build and how they work:

> [@Getting Started - Creating flows](https://community.homey.app/t/getting-started-creating-flows/20051):
>
> In this tutorial you will learn to: create simple flows, using ‘when’ and ‘then’ learn to use tags in flows learn to expand your flows with ‘and’ learn to add multiple ‘then’ and ‘and’ cards learn to ‘invert’ cards Adding ‘or’ and ‘else’ will be part of the next tutorial. First, I assume that you have a Homey (pro) installed, a few apps and devices set-up and ready to go and some basic knowledge the English language. Furthermore, I assume that you have Homey’s location enabled. There are ot…

> [@Getting Started - The 'or' and 'else' parts of a flow](https://community.homey.app/t/getting-started-the-or-and-else-parts-of-a-flow/20059):
>
> Hi again! I hope you all enjoyed the first tutorial. This tutorial continues where the first one left off. In this tutorial, you will learn: to use the ‘or’ card to use the ‘else’ card This tutorial is a bit shorter than the first. Let’s start with the same flow: Now, this flow makes me unhappy. As you might remember, Grumpy is watching her show. She doesn’t bother to greet me. And Homey doesn’t say anything, because this flow stops when it concludes that the chromecast is playing.…

Your mistake is the following:  
The AND section checks if certain properties (states, values, etc.) are true or not. These can be single properties or groups. If you want to check more properties, they are added below the OR.  
If the properties in the area AND are fulfilled (above OR and/or below OR) then the action is executed in the area THEN.  
If the properties in the area AND are not fulfilled (above OR and/or below OR) then the action in the area THEN is executed which is below OR.

---

<div class="post-metadata">

**Author:** ![CB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cb83/32/30125_2.png) [@CB83](https://community.homey.app/u/CB83)\
**Post date:** [October 18, 2020, 8:10pm UTC](https://community.homey.app/t/help-with-a-flow-to-start-heating-on-my-car/36149/3 "2020-10-18T20:10:04Z")

</div>

Hello, and very much thank you for the answer.

You wrote this:  
“If the properties in the area AND are not fulfilled (above OR and/or below OR) then the action in the area THEN is executed which is below OR”

The last OR, do you mean “else”?

---

<div class="post-metadata">

**Author:** ![CB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cb83/32/30125_2.png) [@CB83](https://community.homey.app/u/CB83)\
**Post date:** [October 19, 2020, 5:21am UTC](https://community.homey.app/t/help-with-a-flow-to-start-heating-on-my-car/36149/5 "2020-10-19T05:21:50Z")

</div>

Thank you.

Is it not possible to enter something like:

If x is y then do the first “then”

Or

If x is y then do the second (beneath else) “then”

---

<div class="post-metadata">

**Author:** ![CB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cb83/32/30125_2.png) [@CB83](https://community.homey.app/u/CB83)\
**Post date:** [October 19, 2020, 5:28am UTC](https://community.homey.app/t/help-with-a-flow-to-start-heating-on-my-car/36149/6 "2020-10-19T05:28:14Z")

</div>

Hmm, still not firing correctly.

Please see picture.  
First “and” are fulfilled, but ita executing “then” under else.  
Is it correct? I understood you if any of the “and” got fulfilled it would execute the first “then”?

 ![20201019_072523](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/d/3d323f669d2014ea5d73ec36064b196fdca083b1.jpeg) ![Screenshot_20201019-072452_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/c/5ccc7178578b19f6d6fce1069c9f2aaffc468b69.jpeg)

Edit : i solved it. Forgot the “or” in the and section.  
Thanks for your help.

I can now push a button and following happens ;

Push button  
Do you wanna start heating  
Pressing yes  
Heating starts.

Press the same button  
Continue heating?  
Pressing no  
Heating stops.

😊

---

<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:** [October 19, 2020, 6:06am UTC](https://community.homey.app/t/help-with-a-flow-to-start-heating-on-my-car/36149/7 "2020-10-19T06:06:07Z")

</div>

> [@CB83](#):
>
> The last OR, do you mean “else”?

Of course, I meant ELSE, sorry.
