# Issue with Balboa Binding resetting Target Temperature

**URL:** <https://community.openhab.org/t/issue-with-balboa-binding-resetting-target-temperature/116704>\
**Category:** Bindings\
**Tags:** balboa\
**Created:** [February 10, 2021, 7:00pm UTC](https://community.openhab.org/t/issue-with-balboa-binding-resetting-target-temperature/116704 "2021-02-10T19:00:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasBrodkorb](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/2acd7d/32.png) [@ThomasBrodkorb](https://community.openhab.org/u/ThomasBrodkorb)\
**Post date:** [February 10, 2021, 7:00pm UTC](https://community.openhab.org/t/issue-with-balboa-binding-resetting-target-temperature/116704/1 "2021-02-10T19:00:45Z")

</div>

I am a bit confused by the binding/whatever:

I try to set the TargetTemperature to 30°C, but it keeps jumping back to 38°C:  
Whenever I set the TargetTemp rule based

```
  if (TargetTemp > LowTemp) {
    logInfo("Whirlpool.SetTemp.AUTO", "SetTemp: " + LowTemp)
    Whirlpool_TargetTemperature.postUpdate(LowTemp);
  }

```

I always use the logInfo command together with the postUpdate.  
System responds with

```
2021-02-09 17:09:05.089 [INFO] [openhab.event.ItemStateChangedEvent] - Item 'Whirlpool_TargetTemperature' changed from 38.0 °C to 30.0 °C

2021-02-09 17:09:05.324 [INFO] [openhab.event.ItemStateChangedEvent] - Item 'Whirlpool_TargetTemperature' changed from 30.0 °C to 38.0 °C

```

for every single call. I do not know where the second (“30 to 38”) is coming from.  
Any idea?

```
2021-02-09 17:05:05.084 [INFO] [openhab.event.ItemStateChangedEvent] - Item 'Whirlpool_TargetTemperature' changed from 38.0 °C to 30.0 °C

2021-02-09 17:05:05.398 [INFO] [openhab.event.ItemStateChangedEvent] - Item 'Whirlpool_TargetTemperature' changed from 30.0 °C to 38.0 °C

2021-02-09 17:05:20.046 [INFO] [odel.script.Whirlpool.SetTemp.Before] - ------------------------------------------------------------------------------

2021-02-09 17:05:20.052 [INFO] [odel.script.Whirlpool.SetTemp.Before] - Persistent_BALBOA_OPERATIONMODE: AUTO

2021-02-09 17:05:20.054 [INFO] [odel.script.Whirlpool.SetTemp.Before] - BALBOA_MANUAL: OFF

2021-02-09 17:05:20.057 [INFO] [odel.script.Whirlpool.SetTemp.Before] - Whirlpool_TargetTemperature: 38.0 °C

2021-02-09 17:05:20.059 [INFO] [odel.script.Whirlpool.SetTemp.Before] - Whirlpool_TemperatureRange: HIGH

2021-02-09 17:05:20.076 [INFO] [.model.script.Whirlpool.SetTemp.AUTO] - SetTemp: 30

2021-02-09 17:05:20.079 [INFO] [.model.script.Whirlpool.SetTemp.AUTO] - SwitchOn: 0

2021-02-09 17:05:20.081 [INFO] [.model.script.Whirlpool.SetTemp.AUTO] - SwitchOff: 17

2021-02-09 17:05:20.087 [INFO] [openhab.event.ItemStateChangedEvent] - Item 'Whirlpool_TargetTemperature' changed from 38.0 °C to 30.0 °C

2021-02-09 17:05:35.046 [INFO] [odel.script.Whirlpool.SetTemp.Before] - ------------------------------------------------------------------------------

2021-02-09 17:05:35.053 [INFO] [odel.script.Whirlpool.SetTemp.Before] - Persistent_BALBOA_OPERATIONMODE: AUTO

2021-02-09 17:05:35.056 [INFO] [odel.script.Whirlpool.SetTemp.Before] - BALBOA_MANUAL: OFF

2021-02-09 17:05:35.059 [INFO] [odel.script.Whirlpool.SetTemp.Before] - Whirlpool_TargetTemperature: 30.0 °C

2021-02-09 17:05:35.061 [INFO] [odel.script.Whirlpool.SetTemp.Before] - Whirlpool_TemperatureRange: HIGH

2021-02-09 17:05:35.079 [INFO] [.model.script.Whirlpool.SetTemp.AUTO] - SwitchOn: 0

2021-02-09 17:05:35.082 [INFO] [.model.script.Whirlpool.SetTemp.AUTO] - SwitchOff: 18

2021-02-09 17:05:50.046 [INFO] [odel.script.Whirlpool.SetTemp.Before] - ------------------------------------------------------------------------------

2021-02-09 17:05:50.062 [INFO] [odel.script.Whirlpool.SetTemp.Before] - Persistent_BALBOA_OPERATIONMODE: AUTO

2021-02-09 17:05:50.065 [INFO] [odel.script.Whirlpool.SetTemp.Before] - BALBOA_MANUAL: OFF

2021-02-09 17:05:50.067 [INFO] [odel.script.Whirlpool.SetTemp.Before] - Whirlpool_TargetTemperature: 30.0 °C

2021-02-09 17:05:50.070 [INFO] [odel.script.Whirlpool.SetTemp.Before] - Whirlpool_TemperatureRange: HIGH

2021-02-09 17:05:50.086 [INFO] [.model.script.Whirlpool.SetTemp.AUTO] - SwitchOn: 0

2021-02-09 17:05:50.088 [INFO] [.model.script.Whirlpool.SetTemp.AUTO] - SwitchOff: 19

2021-02-09 17:05:51.282 [INFO] [openhab.event.ItemStateChangedEvent] - Item 'Whirlpool_TargetTemperature' changed from 30.0 °C to 38.0 °C

2021-02-09 17:06:05.047 [INFO] [odel.script.Whirlpool.SetTemp.Before] - ------------------------------------------------------------------------------

2021-02-09 17:06:05.052 [INFO] [odel.script.Whirlpool.SetTemp.Before] - Persistent_BALBOA_OPERATIONMODE: AUTO

2021-02-09 17:06:05.055 [INFO] [odel.script.Whirlpool.SetTemp.Before] - BALBOA_MANUAL: OFF

2021-02-09 17:06:05.057 [INFO] [odel.script.Whirlpool.SetTemp.Before] - Whirlpool_TargetTemperature: 38.0 °C

2021-02-09 17:06:05.060 [INFO] [odel.script.Whirlpool.SetTemp.Before] - Whirlpool_TemperatureRange: HIGH

2021-02-09 17:06:05.090 [INFO] [.model.script.Whirlpool.SetTemp.AUTO] - SetTemp: 30

2021-02-09 17:06:05.094 [INFO] [.model.script.Whirlpool.SetTemp.AUTO] - SwitchOn: 0

2021-02-09 17:06:05.096 [INFO] [.model.script.Whirlpool.SetTemp.AUTO] - SwitchOff: 20

2021-02-09 17:06:05.099 [INFO] [openhab.event.ItemStateChangedEvent] - Item 'Whirlpool_TargetTemperature' changed from 38.0 °C to 30.0 °C

2021-02-09 17:06:05.378 [INFO] [openhab.event.ItemStateChangedEvent] - Item 'Whirlpool_TargetTemperature' changed from 30.0 °C to 38.0 °C

```

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [February 10, 2021, 10:47pm UTC](https://community.openhab.org/t/issue-with-balboa-binding-resetting-target-temperature/116704/2 "2021-02-10T22:47:11Z")

</div>

> [@ThomasBrodkorb](#):
>
> ```auto
> Whirlpool_TargetTemperature.postUpdate(LowTemp);
> 
> ```

This just updates the Item state held in openHAB. If the Item is linked to some device, at its next report that will get overwritten by what the device really thinks..

If you want something to be sent by the binding to the device, you’ll be wanting to use `sendCommand()` instead.

> [@ThomasBrodkorb](#):
>
> I always use the logInfo command together with the postUpdate

Bear in mind postUpdate and sendCommand are asynchronous, your rule will not stop and wait for that to take effect. If you follow immediately with an attempt to log the target Item state, you’ll probably get the old state.

---

<div class="post-metadata">

**Author:** ![ThomasBrodkorb](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/2acd7d/32.png) [@ThomasBrodkorb](https://community.openhab.org/u/ThomasBrodkorb)\
**Post date:** [February 11, 2021, 5:11am UTC](https://community.openhab.org/t/issue-with-balboa-binding-resetting-target-temperature/116704/3 "2021-02-11T05:11:50Z")

</div>

Same result, tried that already,

When using a slider, and Monitoring the log, it says item changed, not item received command.

I do not log the state of the item, just log the new value trying to set the value of the item (with either method).  
I use this as a debugger replacement to see if a certain command has been processed in the rules or not, and which item should be set to what value.

There must be someting else, I am not sure what.

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [February 11, 2021, 10:11am UTC](https://community.openhab.org/t/issue-with-balboa-binding-resetting-target-temperature/116704/4 "2021-02-11T10:11:43Z")

</div>

> [@ThomasBrodkorb](#):
>
> the log, it says item changed, not item received command.

Can we see that?

---

<div class="post-metadata">

**Author:** ![ThomasBrodkorb](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/2acd7d/32.png) [@ThomasBrodkorb](https://community.openhab.org/u/ThomasBrodkorb)\
**Post date:** [February 11, 2021, 12:32pm UTC](https://community.openhab.org/t/issue-with-balboa-binding-resetting-target-temperature/116704/5 "2021-02-11T12:32:28Z")

</div>

The following log I get, when sending the temperature with sendCommand():

```
2021-02-11 11:43:58.003 [INFO] [openhab.event.ItemCommandEvent] - Item 'Whirlpool_TargetTemperature' received command 38.0 °C

2021-02-11 11:43:58.004 [INFO] [penhab.event.ItemStatePredictedEvent] - Item 'Whirlpool_TargetTemperature' predicted to become 30.0 °C

```

and nothing changes.

There is no difference if I send any of the following:

sendCommand(38 + " °C");  
sendCommand(38.0 + " °C");  
sendCommand(38);  
sendCommand(38.0);

This is all completely confusing.

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [February 11, 2021, 1:45pm UTC](https://community.openhab.org/t/issue-with-balboa-binding-resetting-target-temperature/116704/6 "2021-02-11T13:45:46Z")

</div>

> [@ThomasBrodkorb](#):
>
> `Item 'Whirlpool_TargetTemperature' received command 38.0 °C`

There’s the received command that you worried me by saying it was not present.

But -

> [@ThomasBrodkorb](#):
>
> `Item 'Whirlpool_TargetTemperature' predicted to become 30.0 °C`

autoupdate has predicted a different result. For explanation why, see

> [@Autoupdate - a primer](https://community.openhab.org/t/autoupdate-a-primer/101509):
>
> I’ve found myself having to investigate and/or explain some of the features of autoupdate over time, and thought an in-depth view would be helpful. These notes apply to openHAB version 2.5 Overview Autoupdate is primarily a “speed up” feature for openHAB Items. Mostly we can ignore it, but sometimes you may get an unwanted or unexpected effect, or you may wish to exercise more control. To fully understand autoupdate, we must understand the difference between command and state of Items. If w…

Either the binding has vetoed autoupdate, or perhaps more likely the Item-channel link is broken in some way. Invalid channel, or the associated Thing is offline.

So now we need to look in detail at Item-channel.  
What type of Item is this? What type of channel is it linked to? What is the parent Thing like?

Circling back a bit -

> [@ThomasBrodkorb](#):
>
> When using a slider, and Monitoring the log, it says item changed, not item received command.

I think you’ve run into this UI bug-

> <https://github.com/openhab/openhab-webui/issues/765>
>
> It appears that "number:temperature" items can't be contolled using setpoints in… basicUI or MainUI. When the setpoint is clicked, no change is observed in the item. If the item is changed to "number", it can be controlled with setpoint in BasicUI.
> 
> https://community.openhab.org/t/solved-knx-binding-issues-with-thermostat-oh3/112724
> https://community.openhab.org/t/openhab-3-setpoint/112801
> https://community.openhab.org/t/oh3-set-temperature-on-homematic/112902/2
> 
> In the second thread, it's noted that number-with-setpoint doesn't work in MainUI. However, that may be a separate issue.
> 
> Please let me know if there's anything more I can do to help solve this problem.
> 
> Thanks!
> 
> original here: https://github.com/openhab/openhab-core/issues/2067

and really that’s just a sideshow to your rule problem, for now.

---

<div class="post-metadata">

**Author:** ![Barnecke](https://community.openhab.org/user_avatar/community.openhab.org/barnecke/32/19765_2.png) [@Barnecke](https://community.openhab.org/u/Barnecke)\
**Post date:** [July 24, 2022, 1:27pm UTC](https://community.openhab.org/t/issue-with-balboa-binding-resetting-target-temperature/116704/7 "2022-07-24T13:27:08Z")

</div>

@ThomasBrodkorb Hi, could you fix this problem in the meantime? I`m having a whirlpool with balboa, too. I`m struggeling with the same problem and looking for a solution.

best regards  
Björn

---

<div class="post-metadata">

**Author:** ![Sascha\_](https://community.openhab.org/user_avatar/community.openhab.org/sascha_/32/37351_2.png) [@Sascha\_](https://community.openhab.org/u/Sascha_)\
**Post date:** [July 26, 2022, 7:49am UTC](https://community.openhab.org/t/issue-with-balboa-binding-resetting-target-temperature/116704/8 "2022-07-26T07:49:57Z")

</div>

Keep high range in mind, you need to set it to your temperature range

---

<div class="post-metadata">

**Author:** ![Barnecke](https://community.openhab.org/user_avatar/community.openhab.org/barnecke/32/19765_2.png) [@Barnecke](https://community.openhab.org/u/Barnecke)\
**Post date:** [July 29, 2022, 9:55am UTC](https://community.openhab.org/t/issue-with-balboa-binding-resetting-target-temperature/116704/9 "2022-07-29T09:55:56Z")

</div>

thanks, with high range it is working fine.
