# Infrared from RFDevice class

**URL:** <https://community.homey.app/t/infrared-from-rfdevice-class/48693>\
**Category:** Developers\
**Created:** [June 22, 2021, 4:16pm UTC](https://community.homey.app/t/infrared-from-rfdevice-class/48693 "2021-06-22T16:16:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rinwinte](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rinwinte/32/17257_2.png) [@Rinwinte](https://community.homey.app/u/Rinwinte)\
**Post date:** [June 22, 2021, 4:16pm UTC](https://community.homey.app/t/infrared-from-rfdevice-class/48693/1 "2021-06-22T16:16:53Z")

</div>

I am trying to use infrared in my RFDevice class. I followed the `[infrared tutorial](https://apps.developer.homey.app/wireless/infrared)` and the [IR example](https://github.com/athombv/com.lg.ir-example/blob/main/.homeycompose/signals/ir/lg.json). Using the example and my custom IR string I can control the device. However I am only able to couple this directly to a Capability as in the example but not send the command from the RFDevice member function.

I tried to use  
`this.driver.tx(<IR_string>)`  
but I get an invalid\_signal error.

Any ideas on how to use this?
