# Sending raw CEC codes? Best module to use?

**URL:** <https://discourse.nodered.org/t/sending-raw-cec-codes-best-module-to-use/30069>\
**Category:** General\
**Created:** [14 July 2020 15:46 UTC](https://discourse.nodered.org/t/sending-raw-cec-codes-best-module-to-use/30069 "2020-07-14T15:46:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [14 July 2020 15:46 UTC](https://discourse.nodered.org/t/sending-raw-cec-codes-best-module-to-use/30069/1 "2020-07-14T15:46:56Z")

</div>

Need to do more than just turn on and off a HDMI attached device. I am using node-red-contrib-cec, and got the basics working. on and off for example. But not sure how to send raw CEC codes? I tried setting the OpCode to NONE, and in arguments, pass the raw codes, but no joy yet.

Tried via CEC out node...  
{"source": "RECORDINGDEVICE1", "target": "TV", "opcode": "NONE", "args": ["4F","82","10:00"]}

There is no (obvious to me?) transmit raw OpCode defined in the module? If I use the cec-client and send 'tx 4F:82:10:00' for my Vizio TV I get to HDMI 1, and 'tx 4F:82:20:00' to HDMI 2. For example...

# echo 'tx 4F:82:10:00' | cec-client -s -d 1

# echo 'tx 4F:82:20:00' | cec-client -s -d 1

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [14 July 2020 16:43 UTC](https://discourse.nodered.org/t/sending-raw-cec-codes-best-module-to-use/30069/2 "2020-07-14T16:43:22Z")

</div>

probably best to contact the author and work out a solution / update / pull request, etc...

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [14 July 2020 17:09 UTC](https://discourse.nodered.org/t/sending-raw-cec-codes-best-module-to-use/30069/3 "2020-07-14T17:09:51Z")

</div>

Yeah, that makes sense. It was easy to work around, just used exec to drive the CLI. I suspect this might be a feature request for the module.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 September 2020 17:09 UTC](https://discourse.nodered.org/t/sending-raw-cec-codes-best-module-to-use/30069/4 "2020-09-12T17:09:56Z")

</div>

Closed on 12 September 2020 17:09 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
