# Implement IR remote thing

**URL:** <https://discourse.mozilla.org/t/implement-ir-remote-thing/78516>\
**Category:** WebThings\
**Created:** [April 11, 2021, 4:38pm UTC](https://discourse.mozilla.org/t/implement-ir-remote-thing/78516 "2021-04-11T16:38:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EricEdberg](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/ericedberg/32/29005_2.png) [@EricEdberg](https://discourse.mozilla.org/u/EricEdberg)\
**Post date:** [April 13, 2021, 8:49pm UTC](https://discourse.mozilla.org/t/implement-ir-remote-thing/78516/2 "2021-04-13T20:49:11Z")

</div>

I used a Virtual Device addon “Push Button” instance and a custom rule to fire events when the button was pushed.

Create a custom rule:

Condition: When “named button” is pushed OR [insert other conditions to trigger event]  
Action: Perform real action AND reset “named button” to NOT pushed

Basically when the button is pushed an action is triggered. You must reset the button to not-pushed as one of the actions.

---

_[View the full topic](https://discourse.mozilla.org/t/implement-ir-remote-thing/78516)._
