# If anyone is wanting to play with an IR puck (thing) for Universal control

**URL:** https://discourse.nodered.org/t/if-anyone-is-wanting-to-play-with-an-ir-puck-thing-for-universal-control/23877
**Category:** Share Your Projects
**Created:** [30 March 2020 08:23 UTC](https://discourse.nodered.org/t/if-anyone-is-wanting-to-play-with-an-ir-puck-thing-for-universal-control/23877 "2020-03-30T08:23:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [30 March 2020 08:23 UTC](https://discourse.nodered.org/t/if-anyone-is-wanting-to-play-with-an-ir-puck-thing-for-universal-control/23877/1 "2020-03-30T08:23:02Z")

</div>

I am in two worlds: `Node-Red` and `Tasmota`.

Node-Red is a great platform for talking to Tasmota devices, and recently I have started my journey down the _Rabbit hole_ of IR Controllers.

That is: _Replace a bunch of remotes for one_ kind of thing.

But getting the codes and storing them is a bit painful, as you have to teach the system each signal. Well, where I am at, you do.

This is painful getting the message, _formatting_ it (from the one received) and then knowing what it is to use/is needed.

I wrote this little flow which allows you to have your _IR PUCK_ connected and comms up and then get the _commands_ and show you what you need to save.

Yes, it is a given that you have the comms up. That's a whole other _department_.  
This is getting the codes and checking they work.

Code:

```auto
{"Protocol":"SAMSUNG","Bits":32,"Data":"0xE0E0F00F","Repeat":1}

```

Anyway here's how to use it:

Click the `capture` node. The `function` node above it should then say `ONE`.  
This will allow ONE Infra red signal through.

Point your remote at the _puck_ (hey, that's what they are called. Don't blame me.) and press a button.

All being good you will see the `function` node toggle to `Block`. Then look at the `this is the packet` debug node (to the right).

Press the `Test` button and it will check that the code received works.  
It is given the _Puck_ is _visible_ to the other device and the code will be transmitted.  
If it works, copy the packet from the `debug` node and put it in a `function node`.

(Got it working)

Ok, here's a walk through (pictures this time) of using it.

In red: The `Capture` button and `function` node which says either `BLOCK` of `ONE`  
In green: The `Test` button to test if what was captured works.  
In dark blue: The message packet to be used.

 ![Screenshot from 2020-03-30 19-54-45](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/978c58919fc4ea7bc94cf8f30ff18c8d85282359.png)

Press the button on the remote (after the `Capture` button) and this message is displayed (in the brown area.

 ![Screenshot from 2020-03-30 19-55-15](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/7/2710b064daf7cf608dd0f2932f1c7172812347d9.png)

Copy the `msg.payload` to the clipboard and paste it as shown

 ![Screenshot from 2020-03-30 19-55-32](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/11b5407cf3e4219843f84daf76473742639eb3c5.png)

In the `test area` you can check the codes work - though the `test` button should verify this.  
This is more the final test where you know it works.

That's why I put the `test area` to help show how to use it and test the code/s.

---

<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: [29 May 2020 08:28 UTC](https://discourse.nodered.org/t/if-anyone-is-wanting-to-play-with-an-ir-puck-thing-for-universal-control/23877/2 "2020-05-29T08:28:06Z")

</div>

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