# Logic for Anna Plugwise

**URL:** <https://community.homey.app/t/logic-for-anna-plugwise/21343>\
**Category:** Flows\
**Tags:** app, flow\
**Created:** [November 26, 2019, 11:29am UTC](https://community.homey.app/t/logic-for-anna-plugwise/21343 "2019-11-26T11:29:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ingo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ingo/32/941_2.png) [@Ingo](https://community.homey.app/u/Ingo)\
**Post date:** [November 26, 2019, 11:29am UTC](https://community.homey.app/t/logic-for-anna-plugwise/21343/1 "2019-11-26T11:29:38Z")

</div>

Hi,  
For the Anna of Plugwise I am trying to write a flow which can adjust the programme setting (the Preset) at a certain moment. Beside the specific temperature you can adjust the Anna in 5 different programmes (“home”, “away”, “asleep”, “vacation” and “no\_frost”), but I do not succeed to write the Preset tag over (in a flow) into a new value. In other words, does anybody know how to make the flow to adjust the Preset into “asleep” at 23:00?  
Thanks for your help,  
Ingo

---

<div class="post-metadata">

**Author:** ![Satoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/satoer/32/38113_2.png) [@Satoer](https://community.homey.app/u/Satoer)\
**Post date:** [December 2, 2019, 6:55pm UTC](https://community.homey.app/t/logic-for-anna-plugwise/21343/2 "2019-12-02T18:55:41Z")

</div>

I struggled with it myself and didn’t succeed either. Now I just don’t use the presets programmes. I set the temperature directly in Homey.

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [December 3, 2019, 6:43am UTC](https://community.homey.app/t/logic-for-anna-plugwise/21343/3 "2019-12-03T06:43:16Z")

</div>

I mean to remember that this is not supported via the plugin or the API at present. I think I read something like this on the Plugwise website 6-12 months ago.  
Time this is fixed, but as far as I remember this was a feature Plugwise is still to support. Time for an update, so the Homey app can also be amended 🙂

---

<div class="post-metadata">

**Author:** ![Jos\_van\_Emmerik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jos_van_emmerik/32/9913_2.png) [@Jos\_van\_Emmerik](https://community.homey.app/u/Jos_van_Emmerik)\
**Post date:** [December 4, 2019, 6:46am UTC](https://community.homey.app/t/logic-for-anna-plugwise/21343/4 "2019-12-04T06:46:42Z")

</div>

It’s even worse before anna was placed inside the plugwise app there was a seperate app for anna this app included not only the different modes but also what temperatures your heating measures(when using opentherm) and lots of other features that they just did not bother to place back inside the new “combined” app

---

<div class="post-metadata">

**Author:** ![Ingo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ingo/32/941_2.png) [@Ingo](https://community.homey.app/u/Ingo)\
**Post date:** [December 5, 2019, 11:42am UTC](https://community.homey.app/t/logic-for-anna-plugwise/21343/5 "2019-12-05T11:42:28Z")

</div>

Thanks, that is also what I will do, just use the temperature directly in Homey, But I liked the opportunity using the Preset.

---

<div class="post-metadata">

**Author:** ![Frank\_van\_de\_Schuur](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frank_van_de_schuur/32/35882_2.png) [@Frank\_van\_de\_Schuur](https://community.homey.app/u/Frank_van_de_Schuur)\
**Post date:** [September 29, 2020, 5:53pm UTC](https://community.homey.app/t/logic-for-anna-plugwise/21343/6 "2020-09-29T17:53:33Z")

</div>

Hi.  
I’m trying to set the temperature of Anna directly via Homey. As an experiment I am creating a flow in which I read outside temperature then add 1 to it and write that value to Anna. But I keep getting the error message **Flow card Error: Token invalid step**  
Any idea??

---

<div class="post-metadata">

**Author:** ![mats\_williander.se](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mats_williander.se/32/30035_2.png) [@mats\_williander.se](https://community.homey.app/u/mats_williander.se)\
**Post date:** [October 14, 2020, 5:53pm UTC](https://community.homey.app/t/logic-for-anna-plugwise/21343/7 "2020-10-14T17:53:52Z")

</div>

Hi,  
I’m facing the same problem with a POPP thermostat.  
To me, it is very strange because once in a while, a variable can be assigned to the thermostat but mostly I get this “token\_invalid\_step” error message.

Any idéa whats causing this?

---

<div class="post-metadata">

**Author:** ![mats\_williander.se](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mats_williander.se/32/30035_2.png) [@mats\_williander.se](https://community.homey.app/u/mats_williander.se)\
**Post date:** [October 26, 2020, 3:13pm UTC](https://community.homey.app/t/logic-for-anna-plugwise/21343/8 "2020-10-26T15:13:51Z")

</div>

I have found a solution but don’t find it logical = probably some kind of Homey bug.

First, I assign a number to the variable. Don’t ask me why, but by doing so, I got the flow to work.  
Then I assign the calculation (the formula) to the variable.  
And after that, I assign the POPP thermostat that value.

It is NOT the straight-forward minimum logic a bug-free environment would allow - but … it works 😉

![Skärmavbild 2020-10-26 kl. 16.12.48](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/d/5d67b254928a1edcd2497f3342119e612f52e87a.png)
