# \#sendcommand

**URL:** https://community.openhab.org/tag/sendcommand/556.md

[Latest](https://community.openhab.org/latest.md) · [Categories](https://community.openhab.org/categories.md) · [Tags](https://community.openhab.org/tags.md)

---

## [sendCommand is not updating the value](https://community.openhab.org/t/sendcommand-is-not-updating-the-value/156075)

<div class="topic-metadata">

**Author:** [@Payback](https://community.openhab.org/u/Payback)\
**Replies:** 2\
**Last updated:** [May 18, 2024, 12:39pm UTC](https://community.openhab.org/t/sendcommand-is-not-updating-the-value/156075 "2024-05-18T12:39:15Z")

</div>

Platform information: Hardware: NAS with Intel CPU and 16GB OS: OpenHab Container image Java Runtime Environment: OpenHab Container image openHAB version: 4.1.2 Dear all, I have a rule which updates an item via sen…

---

## [sendCommand to ContactItem issue](https://community.openhab.org/t/sendcommand-to-contactitem-issue/149277)

<div class="topic-metadata">

**Author:** [@aleksey.kurchavy](https://community.openhab.org/u/aleksey.kurchavy)\
**Replies:** 6\
**Last updated:** [September 3, 2023, 2:15am UTC](https://community.openhab.org/t/sendcommand-to-contactitem-issue/149277 "2023-09-03T02:15:31Z")

</div>

Hey, everybody! I have encountered a strange behaviour of openhab. I am trying to set the value of an item with type ContactItem using a rule (function() { const { OPEN, CLOSED } = require("@runtime"); items.conta…

---

## [Sendcommand(int) is undefined for the type number](https://community.openhab.org/t/sendcommand-int-is-undefined-for-the-type-number/141085)

<div class="topic-metadata">

**Author:** [@Franco](https://community.openhab.org/u/Franco)\
**Replies:** 2\
**Last updated:** [November 16, 2022, 10:55am UTC](https://community.openhab.org/t/sendcommand-int-is-undefined-for-the-type-number/141085 "2022-11-16T10:55:44Z")

</div>

Hello together, im facing a strange issue and I cant understand it. I have an Number item called “TodayTemperatureSet” which i like to send a command. In VS Code im getting an error in a rule telling me The method sen…

---

## [Openhab 3 sends ghost commands](https://community.openhab.org/t/openhab-3-sends-ghost-commands/136408)

<div class="topic-metadata">

**Author:** [@Idolaat](https://community.openhab.org/u/Idolaat)\
**Replies:** 4\
**Last updated:** [June 18, 2022, 8:15pm UTC](https://community.openhab.org/t/openhab-3-sends-ghost-commands/136408 "2022-06-18T20:15:12Z")

</div>

Platform information: Hardware: Synology DS218+/ OS: DSM 7.0.1 and Docker openHAB version: 3.2 Issue of the topic: I’m using Openhab 3 for quite a while now. Since a while Openhab sends commands to my lights…

---

## [Problem with rule after upgrade](https://community.openhab.org/t/problem-with-rule-after-upgrade/130269)

<div class="topic-metadata">

**Author:** [@Xfiles80](https://community.openhab.org/u/Xfiles80)\
**Replies:** 2\
**Last updated:** [December 21, 2021, 3:03pm UTC](https://community.openhab.org/t/problem-with-rule-after-upgrade/130269 "2021-12-21T15:03:16Z")

</div>

Hi, I noticed problem with rules after last update (to Bullseye version). 12:31:20.042 \[ERROR\] \[.internal.handler.ScriptActionHandler\] - Script execution of rule with UID 'ogrzewanie\_jadalnia-6' failed: An error occurr…

---

## [Need help in passing an item state in a HTTP XML payload](https://community.openhab.org/t/need-help-in-passing-an-item-state-in-a-http-xml-payload/126846)

<div class="topic-metadata">

**Author:** [@tdlr](https://community.openhab.org/u/tdlr)\
**Replies:** 3\
**Last updated:** [September 26, 2021, 2:32pm UTC](https://community.openhab.org/t/need-help-in-passing-an-item-state-in-a-http-xml-payload/126846 "2021-09-26T14:32:37Z")

</div>

Tried to control my radio using the http binding but I’m unable to pass the state of an item using the binding. So far, I am successful in creating Http URL thing Separate channels using the XPATH expression in the pr…

---

## [Send command from a binding?](https://community.openhab.org/t/send-command-from-a-binding/90955)

<div class="topic-metadata">

**Author:** [@damihe](https://community.openhab.org/u/damihe)\
**Replies:** 26\
**Last updated:** [January 22, 2020, 10:07pm UTC](https://community.openhab.org/t/send-command-from-a-binding/90955 "2020-01-22T22:07:09Z")

</div>

For developing the iCalendar binding together with @AndrewFG i’d like to hear some architectural advice from more experienced dev’s. There was the idea that the binding could replace at least in some parts the oh1 caldav…

---

## [\[SOLVED\] Weird result for "predicted to become ..."](https://community.openhab.org/t/solved-weird-result-for-predicted-to-become/86699)

<div class="topic-metadata">

**Author:** [@NCO](https://community.openhab.org/u/NCO)\
**Replies:** 5\
**Last updated:** [December 2, 2019, 12:11pm UTC](https://community.openhab.org/t/solved-weird-result-for-predicted-to-become/86699 "2019-12-02T12:11:15Z")

</div>

On a Raspberry pi with opanhabian and OH2.5M5 I get the following event.log entries: 2019-12-02 09:19:48.867 \[ome.event.ItemCommandEvent\] - Item 'Loc\_Home' received command OFF 2019-12-02 09:19:48.895 \[nt.ItemStatePredi…

---

## [Switch Rule causes continuous ON/OFF loop](https://community.openhab.org/t/switch-rule-causes-continuous-on-off-loop/82993)

<div class="topic-metadata">

**Author:** [@rdsgi](https://community.openhab.org/u/rdsgi)\
**Replies:** 7\
**Last updated:** [October 7, 2019, 6:09pm UTC](https://community.openhab.org/t/switch-rule-causes-continuous-on-off-loop/82993 "2019-10-07T18:09:14Z")

</div>

I have a group switch to turn on and off 4 tv’s and also have individual switches for each. when I press the group button all 4 switches go into a continuous loop turning each switch on and off. This also happens to each…

---

## [\[SOLVED\] The name 'knx\_virtual\_time' cannot be resolved to an item or type](https://community.openhab.org/t/solved-the-name-knx-virtual-time-cannot-be-resolved-to-an-item-or-type/80402)

<div class="topic-metadata">

**Author:** [@ChrisPHL](https://community.openhab.org/u/ChrisPHL)\
**Replies:** 7\
**Last updated:** [August 25, 2019, 2:37pm UTC](https://community.openhab.org/t/solved-the-name-knx-virtual-time-cannot-be-resolved-to-an-item-or-type/80402 "2019-08-25T14:37:53Z")

</div>

Hi there, I try to send a current time information into my KNX bus periodically. Therefore I setup a rule which fires periodically but my attempt to call “sendCommand()” fails… :-/ Platform information: Hardware:Ra…

---

## [Yeelight binding problems](https://community.openhab.org/t/yeelight-binding-problems/77461)

<div class="topic-metadata">

**Author:** [@DaanDW](https://community.openhab.org/u/DaanDW)\
**Replies:** 1\
**Last updated:** [August 22, 2019, 7:50am UTC](https://community.openhab.org/t/yeelight-binding-problems/77461 "2019-08-22T07:50:13Z")

</div>

HI I have 2 questions/problems with the Yeelight binding (I use color lamp bulbs) and hope that someone here can help me. I’m using the 2.5 snapshot binding because the send command don’t work on the 2.4 binding (the co…

---

## [Using RFXCOM-Command with multiple values, but binding expects switch](https://community.openhab.org/t/using-rfxcom-command-with-multiple-values-but-binding-expects-switch/73573)

<div class="topic-metadata">

**Author:** [@WOPR](https://community.openhab.org/u/WOPR)\
**Replies:** 2\
**Last updated:** [June 26, 2019, 8:20pm UTC](https://community.openhab.org/t/using-rfxcom-command-with-multiple-values-but-binding-expects-switch/73573 "2019-06-26T20:20:26Z")

</div>

Platform information: Hardware: i3-4010U/8GB Ram/500GB SSD OS: Ubuntu Ubuntu 18.04.2 LTS Java Runtime Environment: Java™ SE Runtime Environment (build 1.8.0\_201-b09) openHAB version: 2.4.1 Issue of the topic: The RFX…

---

## [Item State not Updating](https://community.openhab.org/t/item-state-not-updating/68942)

<div class="topic-metadata">

**Author:** [@meingraham](https://community.openhab.org/u/meingraham)\
**Replies:** 25\
**Last updated:** [February 28, 2019, 9:47pm UTC](https://community.openhab.org/t/item-state-not-updating/68942 "2019-02-28T21:47:36Z")

</div>

Platform information: Linux openHABianPi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l Release = Raspbian GNU/Linux 9 (stretch) Kernel = Linux 4.14.98-v7+ Platform = Raspberry Pi 3 Model B Rev 1.2 openjdk ve…

---

## [\[onkyo\] sendCommand(REFRESH) does not work](https://community.openhab.org/t/onkyo-sendcommand-refresh-does-not-work/31267)

<div class="topic-metadata">

**Author:** [@christoph\_wempe](https://community.openhab.org/u/christoph_wempe)\
**Replies:** 1\
**Last updated:** [July 10, 2017, 7:32pm UTC](https://community.openhab.org/t/onkyo-sendcommand-refresh-does-not-work/31267 "2017-07-10T19:32:47Z")

</div>

I want to use the REFRESH command of the onkyo binding to get the current volume value. This is working via console. openhab\> smarthome:send avr1Z1\_Volume REFRESH Command has been sent successfully. 2017-07-08 20:42:5…

---

## [I do not understand "Type mismatch: cannot convert from State to String"](https://community.openhab.org/t/i-do-not-understand-type-mismatch-cannot-convert-from-state-to-string/28699)

<div class="topic-metadata">

**Author:** [@christoph\_wempe](https://community.openhab.org/u/christoph_wempe)\
**Replies:** 2\
**Last updated:** [May 20, 2017, 11:33pm UTC](https://community.openhab.org/t/i-do-not-understand-type-mismatch-cannot-convert-from-state-to-string/28699 "2017-05-20T23:33:22Z")

</div>

I have a rule: rule therm\_manual\_auto when Item Therm\_Manual changed to AUTO then logInfo("Therm\_Manual", "Set Therm\_Mode to " + Therm\_Target.state) sendCommand(Therm\_Mode, Therm\_Target.state) end The last …

---

## [More Informations over "sendCommand"](https://community.openhab.org/t/more-informations-over-sendcommand/9357)

<div class="topic-metadata">

**Author:** [@TobiasR91](https://community.openhab.org/u/TobiasR91)\
**Replies:** 2\
**Last updated:** [April 3, 2016, 6:50pm UTC](https://community.openhab.org/t/more-informations-over-sendcommand/9357 "2016-04-03T18:50:15Z")

</div>

Hello, how can I send for e.g. Arduino\_Messwerte.sendCommand(“\<(without a space)TemperaturSollwert,” + TemperaturSollwert\_SP + “”) at the end it should looks like: \<(without a space)TemperaturSollwert, 22.50\> How can…

---

## [Voice Command](https://community.openhab.org/t/voice-command/6282)

<div class="topic-metadata">

**Author:** [@Benjy](https://community.openhab.org/u/Benjy)\
**Replies:** 9\
**Last updated:** [January 18, 2016, 12:43pm UTC](https://community.openhab.org/t/voice-command/6282 "2016-01-18T12:43:58Z")

</div>

Hi All, I am trying to follow the Wiki link on voice commands but can’t get it to function at all. I have several items I want to control by voice, one such item is called “CL\_Toggle”. Here’s a simplified version of my…
