Home Assistant Tutorials How to Hassio
0

Today, we’ll make a radio remote control from a smartphone for controlling an electric cornice or blinds. We will need:

  • – Radio module RF-Blinds.
  • – An adapter from USB-type-A to the type of USB that you have on your phone (or tablet).
  • – Android smartphone or tablet.
  • – Devices that we will control. I have a motor for the AKKO AM82TV-1.2 / 14 electric curtain rod and radio for blinds and blinds supporting the function of turning lamellas Modulis SOMFY Centralis Indoor RTS VB. This relay is usually used to control motors over a radio channel which is not radio controlled. Instead of such a motor, I connected a lamp. So more clearly.

We connect the radio module through the adapter to the phone.

Manage Electric Curtain Rods and Blinds on Radio Channel from a Smartphone. 13

We need an application to control the radio module through a virtual serial port.

We go to the Play Store.

In the search we type usb serial. We see the list of programs:

Manage Electric Curtain Rods and Blinds on Radio Channel from a Smartphone. 14

To control the radio module, several of them are suitable. The most convenient seemed to me the program Serial USB Terminal. Download, install, run:

Manage Electric Curtain Rods and Blinds on Radio Channel from a Smartphone. 15

Now we need to configure the program. Go to the settings menu and set the exchange speed to 115,200:

Manage Electric Curtain Rods and Blinds on Radio Channel from a Smartphone. 16

By default, the settings are set to display one row of “Macro buttons” buttons:

Manage Electric Curtain Rods and Blinds on Radio Channel from a Smartphone. 17

If this is not enough, the number of rows can be increased, for example, to five:

Manage Electric Curtain Rods and Blinds on Radio Channel from a Smartphone. 18

You can specify characters at the end of a line. By default, the line ends with two characters – “CR + LF”. You can leave it as it is, but RF-Blinds will respond to the second character as the end of another line. And, since it is empty, after the command it will give OK for the first line and right thereafter, after that ERROR as a reaction to the second, empty line. This will not affect anything. But the output of the “ERROR” message can be avoided by ending the line with just one “CR” or “LF” character.

Manage Electric Curtain Rods and Blinds on Radio Channel from a Smartphone. 19

On this, the connection setup can be considered complete. Go to the main screen and connect:

Manage Electric Curtain Rods and Blinds on Radio Channel from a Smartphone. 20

I note that I pre-linked the RF-Blinds radio module to the radio relay and electric cornice motor and this process is not described here. The pairing commands are the same for each protocol. It may depend a little on whether you are tying the first console, or the next ones. But the translation of executive devices (electric curtain motors, blinds with radio control and radio relay control support) for each device is different and is described in the documentation for a specific device. RF-Blinds to Akko AM82TV-1.2 / 14 and the Somfy Centralis Indoor RTS VB radio relay can be viewed here.

In the input line, enter the command:

smf_down 1

The list of RF-Blinds radio commands can be found here.

The somfy radio relay should react by short-term inclusion. Actually everything works. But each time, entering text commands on the phone is not convenient. Assign the necessary commands to the macro buttons. To edit the label on the button and set the macro you need to hold the button down for a couple of seconds. A menu for editing opens:

Manage Electric Curtain Rods and Blinds on Radio Channel from a Smartphone. 21

To control one channel of the radio relay and one eaves, I assigned macros to five buttons:

“ON”
smf_down 1.12
Radio protocol “Somfy”, command “down”, to device 1, long press.
“OFF”
smf_my 1
Radio protocol “Somfy”, “stop” command, to device 1.
“◄”
dy_open, 1
Radio protocol “Dooya” (“Akko”), “open” command, default group (zero on reset), device in group 1.
“◼”
dy_stop, 1
Radio protocol “Dooya”, “stop” command, default group, to device in group 1.
“►”
dy_close, 1
Radio protocol “Dooya”, “close” command, default group, to device in group 1.

Check – everything works. In the end, it looks like this:

Manage Electric Curtain Rods and Blinds on Radio Channel from a Smartphone. 22

In general, you can use. What is missing is the ability to design your widget – appearance. Then, from a tablet, or smartphone that no one is already using, it would be possible to make a touch control panel by placing it in a convenient place. And by the way, you can connect to such a panel with a phone via WiFi, or bluetooth.

You can also add that not only the radio module, but also the USB-RS485 adapter can be connected to a smartphone or tablet in the same way. In this case, the control will be a couple of wires and we will become attached. But the capabilities of the RS485 protocol are greater than radio control. You can not only send commands, but also query the status of devices. It’s a good start to start creating your own “Smart Home”.

Install Home Assistant in Docker on Orange Pi Zero

Previous article

Home Assistant – Configuration & Initial Setup

Next article

You may also like

Comments

Leave a Reply