# \[SOLVED\] What sort of commands does (My)OpenHab expect from IFTTT

**URL:** <https://community.openhab.org/t/solved-what-sort-of-commands-does-my-openhab-expect-from-ifttt/29052>\
**Category:** myopenHAB\
**Tags:** ifttt\
**Created:** [May 27, 2017, 11:15am UTC](https://community.openhab.org/t/solved-what-sort-of-commands-does-my-openhab-expect-from-ifttt/29052 "2017-05-27T11:15:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kees\_van\_Gelder](https://community.openhab.org/user_avatar/community.openhab.org/kees_van_gelder/32/17497_2.png) [@Kees\_van\_Gelder](https://community.openhab.org/u/Kees_van_Gelder)\
**Post date:** [May 27, 2017, 11:15am UTC](https://community.openhab.org/t/solved-what-sort-of-commands-does-my-openhab-expect-from-ifttt/29052/1 "2017-05-27T11:15:44Z")

</div>

Have been playing with IFTTT integration a bit. Sending stuff from openhab to IFTTT is no problem (the usual ‘get an email when the door opens’) , but I am struggling a bit in sending commands to openhab from IFTTT

Most of my lamps are controlled by simple MQTT commands, but I am not sure how IFTTT wants those to send to Openhab.  
I have exposed (lamp) Items that I can attach to in IFTTT but if say the lamp is controlled by  
{mqtt="\<[mosquitto:home/living/main:state:default]}  
Basically “home/living/main” with payload ON  
how do I enter that in the ‘command’ field of IFTTT aplets?

---

<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:** [May 27, 2017, 4:01pm UTC](https://community.openhab.org/t/solved-what-sort-of-commands-does-my-openhab-expect-from-ifttt/29052/2 "2017-05-27T16:01:19Z")

</div>

If using the openHAB channel, all IFTTT knows it cares about is the item type. If the item is a switch, it seems ON/OFF. If a Number it sends a Number.

What that item is linked to is completely invisible to IFTTT so it doesn’t matter if it is a virtual switch, linked to MQTT, ZWave it what have you.

If you look at the example applets for the openHAB channel you should see examples. Back when I used it more than a year ago you would use ON or OFF or TOGGLE for switches.

---

<div class="post-metadata">

**Author:** ![Kees\_van\_Gelder](https://community.openhab.org/user_avatar/community.openhab.org/kees_van_gelder/32/17497_2.png) [@Kees\_van\_Gelder](https://community.openhab.org/u/Kees_van_Gelder)\
**Post date:** [May 27, 2017, 5:57pm UTC](https://community.openhab.org/t/solved-what-sort-of-commands-does-my-openhab-expect-from-ifttt/29052/3 "2017-05-27T17:57:15Z")

</div>

Thanks. I will give that a try 🙂

---

<div class="post-metadata">

**Author:** ![Kees\_van\_Gelder](https://community.openhab.org/user_avatar/community.openhab.org/kees_van_gelder/32/17497_2.png) [@Kees\_van\_Gelder](https://community.openhab.org/u/Kees_van_Gelder)\
**Post date:** [May 27, 2017, 6:35pm UTC](https://community.openhab.org/t/solved-what-sort-of-commands-does-my-openhab-expect-from-ifttt/29052/4 "2017-05-27T18:35:53Z")

</div>

Yep, that works perfectly. I obviously overthought this as it makes perfect sense 🙂  
As a side not, I see that My openhab can be very slow in exposing the items to IFTTT, but that is just a matter of patience.  
Thanks again and enjoy yr evening, depending on what part of the world you are in

---

<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:** [May 27, 2017, 8:03pm UTC](https://community.openhab.org/t/solved-what-sort-of-commands-does-my-openhab-expect-from-ifttt/29052/5 "2017-05-27T20:03:32Z")

</div>

> [@Kees\_van\_Gelder](#):
>
> Thanks again and enjoy yr evening, depending on what part of the world you are in

Early afternoon actually. 🙂

Your items will not show up on myopenhab until their state changes after they have been exposed. That could account for the delay.

---

<div class="post-metadata">

**Author:** ![Kees\_van\_Gelder](https://community.openhab.org/user_avatar/community.openhab.org/kees_van_gelder/32/17497_2.png) [@Kees\_van\_Gelder](https://community.openhab.org/u/Kees_van_Gelder)\
**Post date:** [May 28, 2017, 7:11am UTC](https://community.openhab.org/t/solved-what-sort-of-commands-does-my-openhab-expect-from-ifttt/29052/6 "2017-05-28T07:11:22Z")

</div>

Tnx. Great, good to know.  
I have a sensor though (DHT22) that is continuously changing and doesnt show up. Hmm, will look deeper into that.

Hmm, well that was easy to solve by writing a few really different values into the mqtt stream of the sensor

---

<div class="post-metadata">

**Author:** ![sintei](https://community.openhab.org/user_avatar/community.openhab.org/sintei/32/80362_2.png) [@sintei](https://community.openhab.org/u/sintei)\
**Post date:** [June 8, 2017, 7:54pm UTC](https://community.openhab.org/t/solved-what-sort-of-commands-does-my-openhab-expect-from-ifttt/29052/7 "2017-06-08T19:54:49Z")

</div>

If one would use a voice input (google assistant) command to be send, this command is sent using lowercase letters or only the first letter capitalized.  
Ie, If I ask IFTTT my command “bedroom light $”. (full syntax when I say it is: Bedroom light on"  
It will interpret the $ as “on” and not ON and it will not work.  
It works If I have an applet with only one command and there I can capitalize it myself.  
But not if it is interpreted by ex google assistant or google home.

Do I make an rule or transform?  
And how would it be so my items do not get stuck in a loop if I make it into a rule?
