# Best practice for command feedback?

**URL:** <https://community.homey.app/t/best-practice-for-command-feedback/72446>\
**Category:** Developers\
**Tags:** app\
**Created:** [November 21, 2022, 9:07am UTC](https://community.homey.app/t/best-practice-for-command-feedback/72446 "2022-11-21T09:07:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gol](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gol/32/34726_2.png) [@gol](https://community.homey.app/u/gol)\
**Post date:** [November 21, 2022, 9:07am UTC](https://community.homey.app/t/best-practice-for-command-feedback/72446/1 "2022-11-21T09:07:08Z")

</div>

What is the best practice for giving a user a text feedback when he/she performs an action via e.g. a push button? I would like to give both positive (“command is succesful”) and negative (“command has failed”) feedback. Currently I use setWarning(), but that it primarily designed for warning and error messages (or is it possible to customize icon and color?)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [November 21, 2022, 2:09pm UTC](https://community.homey.app/t/best-practice-for-command-feedback/72446/2 "2022-11-21T14:09:28Z")

</div>

You should perform your capability listener as syn call (await listener( )). Then you can throw an error and this error message should appear for some seconds as red box.

---

<div class="post-metadata">

**Author:** ![gol](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gol/32/34726_2.png) [@gol](https://community.homey.app/u/gol)\
**Post date:** [November 21, 2022, 2:35pm UTC](https://community.homey.app/t/best-practice-for-command-feedback/72446/3 "2022-11-21T14:35:03Z")

</div>

Thanks @RonnyW , that’s of course a solution to get different “popups” for the negative and positive feedbacks.
