devices.esphome.io
AVATTO S06 WiFi IR Universal Remote Controller (No Temp/No Humidity)
AVATTO S06 WiFi IR Universal Remote Controller (No Temp/No Humidity)
Device Type: miscElectrical Standard: globalBoard: esp8266
GPIO Pinout
Pin | Function |
---|---|
GPIO4 | Blue Status LED |
GPIO14 | Remote Transmitter |
GPIO5 | Remote Receiver |
GPIO13 | Reset Button |
Getting it up and running
This device needs very likely to be flashed manually. Tuya-convert didn't worked for me. I have powered the device with a mobile charger during the flashing procedure, as the used serial cable sets to logic level based on the input voltage. Which is 3.3V in this case.
Serial | ESP |
---|---|
RX | TX |
TX | RX |
RTS | RESET |
3.3V | 3.3V |
GND | GND |
GPIO0 (GND) |
Flashing
# Create a backup of the original firmwareesptool.py -p /dev/ttyUSB0 -b 460800 read_flash 0x00000 0x100000 avotta_s06_original_firmware.bin
# Erase the flashesptool.py -p /dev/ttyUSB0 erase_flash
# Upload the esphome firmwareesptool.py -p /dev/ttyUSB0 write_flash -fs 1MB 0x0 ir_remote.bin
Hardware Hack
If you want to wake the device via the reset button on the bottom from deep sleep. You need to solder a peace of wire between the GPIO13 and the RESET pin of the ESP8266 MCU.
Configuration
# Basic Config---
# https://esphome.io/devices/esp8266.htmlesphome: name: ir_remote platform: ESP8266 board: esp01_1m
wifi: ssid: !secret wifi_ssid password: !secret wifi_password ap:
captive_portal:
# Enable logginglogger: level: DEBUG # Default
# Enable Home Assistant APIapi: encryption: key: !secret api_encryption_key
ota: password: !secret ota_password
# https://esphome.io/components/status_led.htmlstatus_led: pin: 4
# https://esphome.io/components/remote_receiver.htmlremote_receiver: id: rcvr pin: number: 5 mode: INPUT_PULLUP inverted: True
# https://www.esphome.io/components/remote_transmitter.htmlremote_transmitter: id: tamtr pin: 14 carrier_duty_percent: 50%
# https://esphome.io/components/climate/ir_climate.htmlclimate: - platform: toshiba id: ac name: AC' receiver_id: rcvr transmitter_id: tamtr
switch: - platform: template name: 'AC Preset' id: ac_preset icon: mdi:cached turn_on_action: - climate.control: id: ac mode: COOL target_temperature: 24°C fan_mode: AUTO swing_mode: VERTICAL
# https://esphome.io/components/switch/shutdown.html - platform: shutdown name: "IR Remote Shutdown" id: ir_remote_shutdown