# \[Ecobee\] Binding not working anymore to sethold

**URL:** <https://community.openhab.org/t/ecobee-binding-not-working-anymore-to-sethold/169795>\
**Category:** Bindings\
**Tags:** ecobee\
**Created:** [July 15, 2026, 2:48am UTC](https://community.openhab.org/t/ecobee-binding-not-working-anymore-to-sethold/169795 "2026-07-15T02:48:03Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![dpa-openhab](https://community.openhab.org/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@dpa-openhab](https://community.openhab.org/u/dpa-openhab)\
**Post date:** [July 15, 2026, 6:34pm UTC](https://community.openhab.org/t/ecobee-binding-not-working-anymore-to-sethold/169795/10 "2026-07-15T18:34:17Z")

</div>

I do not know why this suddently start failing, and I do not have the hardware, too. I do not know why `getActions("ecobee", "ecobee:…")` returns `null`.

My reading is that `getActions` return `null`, but using MainUI → Settings → Thing → Actions, then it works for any action. Maybe `getAction()` is called too early, before the add-on is initialized?

How about looping some times with delay of 1s, trying `getActions()` in each iteration and checking if if returns `null`, and if all times fail, then give up by logging an error?

Fall-throught for `switch` expressions is described at [Xtext - Integration with Java](https://eclipse.dev/Xtext/documentation/305_xbase.html#xbase-expressions-switch-expression) : one has to use comma `,`; the examples do not contain `break` or `return`. I guess, a `switch` is an expression, as everything in Xbase, and if there is a match, the right-hand side after the match is the value of the `switch` expression. The `switch` example I posted at [https://community.openhab.org/t/network-pingdevice-detects-sometimes-incorrectly-offline-state/](https://community.openhab.org/t/network-pingdevice-detects-sometimes-incorrectly-offline-state/) also does not contain fall-through, `break`, `return`, but it works.

For ` Type mismatch: cannot convert from LinkedHashMap<String, State> to Map<String, Object>; line 27, column 1088, length 6` you can try

```auto
  val Map<String, Object> params = newLinkedHashMap('coolHoldTemp' -> ecobee_userCool.state, 'heatHoldTemp' -> ecobee_desiredHeatTemp) // or
  val Map<String, Object> par = #{'coolHoldTemp' -> ecobee_userCool.state, 'heatHoldTemp' -> ecobee_desiredHeatTemp}

```

Of course I do not know what exactly appears on line 27 column 1088.

When I type just

```auto
rule a
when
  System reached start level 100
then
  var QuantityType<Temperature> ecobee_desiredHeatTemp
end

```

I get

```auto
[INFO] [el.core.internal.ModelRepositoryImpl] - Loading DSL model 'a.rules'
[INFO] [el.core.internal.ModelRepositoryImpl] - Validation issues found in DSL model 'a.rules', using it anyway:
The value of the local variable ecobee_desiredHeatTemp is not used

```

I suggest creating some minimal script, which by adding a line produces an error and without that line the script runs fine.

Given that DSL Scripts can produce more correct errors/warnings, compared to DSL Rules, meaning at least failing earlier when things go wrong, I suggest to create minimal example, which breaks, as DSL Script, not as DSL Rule.

Here and other places:

```auto
if (ecobee_desiredHeat.state instanceof QuantityType) {
    ecobee_desiredHeatTemp = ecobee_desiredHeat.state as QuantityType<Temperature>
}         

```

After `insteanof` and before `state as QuantityType<Temperature>`, `ecobee_desiredHeat.state` could be set to `NULL`, so that `ecobee_desiredHeat.state as QuantityType<Temperature>` does not work and aborts the execution. To avoid this, casting must be done in `try…catch` and for that to work first [script.model.ScriptInterpreter: emit what cannot be casted to what after a single evaluation of the cast by dilyanpalauzov · Pull Request #5329 · openhab/openhab-core · GitHub](https://github.com/openhab/openhab-core/pull/5329) must be included.

---

_[View the full topic](https://community.openhab.org/t/ecobee-binding-not-working-anymore-to-sethold/169795)._
