# Exec 2.0 : Updated : new functionalities to address your concerns

**URL:** <https://community.openhab.org/t/exec-2-0-updated-new-functionalities-to-address-your-concerns/20146>\
**Category:** Bindings\
**Created:** [January 12, 2017, 8:58pm UTC](https://community.openhab.org/t/exec-2-0-updated-new-functionalities-to-address-your-concerns/20146 "2017-01-12T20:58:01Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [February 6, 2017, 5:21pm UTC](https://community.openhab.org/t/exec-2-0-updated-new-functionalities-to-address-your-concerns/20146/9 "2017-02-06T17:21:50Z")

</div>

```auto
rule "Plug One"
when
    Item Pluggy changed
then
    logInfo("Network", "Switching Pluggy " + Pluggy.state + ": " + PlugOneState.state)

    PlugOneState.postUpdate(Pluggy.state)
    PlugOne.sendCommand(Pluggy.state)
end

rule "Plug One State"
when
    Item PlugOneState changed
then
    logInfo("Network", "Switching Pluggy " + PlugOneState.state + ": " + PlugOneState.state)
    Pluggy.postUpdate(PlugOneState.state)
    PlugOne.sendCommand(PlugOneState.state)
end

```

---

_[View the full topic](https://community.openhab.org/t/exec-2-0-updated-new-functionalities-to-address-your-concerns/20146)._
