For this new post we will make it compatible with OpenMQTTGateway; the BAKEEY IR remote on banggood or AVATTO S06 on Aliexpress (the links are affiliated).
Note that this article apply only to the non tuya compatible S06 models. The newest models, marked as tuya compatible are not based on ESP so not compatible with OMG.
From this discussion on Home Assistant forum, I have deducted that the AVATTO gateways may be uploaded with new firmware, so I bought 2 of them. Thanks to their pinout information I was able to quickly get this device up and running with OMG.
Overview
The S06 is a compact IR bridge with FCC, CE, and RoHS marks,you can find it for less than 15$. Here are some photos:
Disassembly
It is not so easy to open, you will need a thin plate, insert it on the junction between the two box parts and do a lever effect at several locations.
ESP8266
1mb flash
50K RAM
So we may be able to flash it with an FTDI and upload OMG.
Here is the LED setup:
It has 7 IR emitters LED, one receiver, and one blue LED.
the IR LED is bigger compared to my other AVATTO round gateway.
Upload OpenMQTTGateway.
Set your FTDI to 3.3V
Connect an FTDI following this wiring to the board:
BOARD GND - FTDI GND
BOARD RX - FTDI TX
BOARD TX - FTDI RX
BOARD 3.3V- FTDI VCC
BOARD IO0 - BOARD GND
Connect the FTDI to your computer
Open your Arduino IDE or platformio
With platformio type the following command: platformio run --target erase
With the arduino IDE :Erase flash "All flash content" & DOUT mode
And now you can flash it with OpenMQTTGateway, with platformio, type the following command: platformio run --target upload
The board is an ESP8266 1MB, here is the configuration used with PIO in the platformio.ini file:
[env:avatto-ir]
platform = ${com.esp8266_platform}
board = esp01_1m
lib_deps =
${com-esp.lib_deps}
${libraries.irremoteesp}
${libraries.esp8266_mdns}
build_flags =
${com-esp.build_flags}
'-DZgatewayIR="IR"'
'-DTRIGGER_GPIO=13'
'-DLED_SEND=4'
'-DIR_EMITTER_GPIO=14'
'-DIR_RECEIVER_GPIO=5'
'-DGateway_Name="OpenMQTTGateway_AVATTO_IR"'
The IR receiver use the GPIO5,
the IR emitters is on GPIO14,
the blue LED on GPIO4
the reset button on GPIO13.
Once flashed you can set up your credentials with your smartphone, click one save and you should see the gateway coming on your broker.
You can now send and receive IR signals and integrate the board with your favorite automation controller!
And now you should be able to control your IR devices with a powerful board.
Commentaires
Enregistrer un commentaire