# Http post with feedback

**URL:** <https://community.openhab.org/t/http-post-with-feedback/96067>\
**Category:** Bindings\
**Tags:** httpbinding1, binding, items\
**Created:** [April 7, 2020, 8:27am UTC](https://community.openhab.org/t/http-post-with-feedback/96067 "2020-04-07T08:27:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kl8ter](https://community.openhab.org/user_avatar/community.openhab.org/kl8ter/32/28999_2.png) [@kl8ter](https://community.openhab.org/u/kl8ter)\
**Post date:** [April 7, 2020, 8:27am UTC](https://community.openhab.org/t/http-post-with-feedback/96067/1 "2020-04-07T08:27:22Z")

</div>

Hi folks,  
how do i get an http item counter with status return?

What I have managed to do is that I can switch my receiver on and off via Openhab. But when I switch the reseiver on or off externally, I don’t see the change in status in Openhab.

But there is the possibility to request the status.

What I have:

**Item:**

```csv
Switch DB_power "Dreambox [%s]" {http=">[ON:POST:http://192.168.178.6/web/powerstate?newstate=4] >[OFF:POST:http://192.168.178.6/web/powerstate?newstate=5] ]" }

```

**I get the status from the receiver as follows:**

```auto
http://192.168.178.6/web/powerstate:60000:REGEX(.*?<e2instandby>(.*?)</e2instandby>.*)

```

**Output: and my dreambox.map**

```auto
true=OFF
false=ON

```

* * *

> Now come to my question is it possible to implement everything in one item?

* * *

What I have built myself where no error appears in the logs but does not work:

```csv
Switch DB_power "Dreambox [%s]" {http=">[ON:POST:http://192.168.178.6/web/powerstate?newstate=4] >[OFF:POST:http://192.168.178.6/web/powerstate?newstate=5] <[http://192.168.178.6/web/powerstate:60000:REGEX(.*?<e2instandby>(.*?)</e2instandby>.*:MAP(dreambox.map))]" }

```

As I know the community you can help me. THX

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [April 7, 2020, 1:56pm UTC](https://community.openhab.org/t/http-post-with-feedback/96067/2 "2020-04-07T13:56:10Z")

</div>

I think there is a strong chance of this generating an infinite loop or something like that. I think you are better off using two Items and a Rule to synchronize them, or just the Rule and the HTTP Actions to query for the current state of the receiver.
