Skip to content

Recording

Fredrick Bäcker edited this page Nov 26, 2019 · 2 revisions

To send a command we first need to record it. Browse to the web gui.

Record the first message

1. What to record

First write a topic. This is for identifier.

Example 1 on/off switch: broadlink/switches/button1

Example 2 heater: broadlink/heater/livingroom/mode

2. Message

This is the action we want to send.

Example 1: on | off

Example 2: heat | cool | dry | fan

3. Device

Select the broadlink device that should record the IR/RF signal. In the list of devices you can use the 'select' button or copy/paste the id to the input field.

4. Record

Press the 'Record IR | RF' button to begin. A helper at the gui top will instruct on what to do. With a IR signal you should press the button until it's recorded.

When running RF first hold the RF button, then release it and at last click the button again.

Tips & Trix

No Send Commands

All send commands will be suspended when recording to make sure no faulty commands are recorded.

Block Send Commands

In the gui you have the option to "Block Play". This will block all send commands until button is pressed again. When recording and replaying commands to validate that everything works, you can block all other commands to minimize errors.

Structure your commands to single state

Each topic will be an own state. Look at the examples.

Example 1

The button with topic broadlink/switches/button1 will have the on/off state. So with the same topic we set message to 'off' and record the off command. Change message to 'on' and record the on command.

Now we can send rf/ir signals broadlink/switches/button1 with the action on/off.

Example 2 Complex

The heatpump has more than an on/off state. So we need to split the topics into groups that has the functionality state. This heater have power, different modes and temperature.

Topic: broadlink/heater/livingroom/mode Message:

  • auto
  • cool
  • dry
  • fan
  • heat

Topic: broadlink/heater/livingroom/power Message:

  • on
  • off

Topic: broadlink/heater/livingroom/temperature Message:

  • ..
  • 18
  • 19
  • 20
  • 21
  • 22
  • ..