diff --git a/MagicHome-with-ESP8285.md b/MagicHome-with-ESP8285.md index 7c29ee87..4d48b92b 100644 --- a/MagicHome-with-ESP8285.md +++ b/MagicHome-with-ESP8285.md @@ -19,7 +19,7 @@ I found that on the back it has pads to solder to so you can flash it. board back -The `IO0` port is `GPIO0` that needs to be pulled to ground when powered on for flashing (as per all ESP devices). I soldered cables to each of these. Note that some are very close to other pads, so be careful. +The `IO0` port is `GPIO0` that needs to be pulled to ground when powered on for flashing (as per all ESP devices). I soldered cables to each of these. Note that some are very close to other pads, so be careful. If you want to avoid soldering, also pogo pins work well with the pads. board back with cables @@ -46,5 +46,24 @@ Once the above was done and the device rebooted, I could set the colors using co mosquitto_pub -h openhab.sf -t 'cmnd/rgbled/color' -m '#ff0000ff' ``` +### RF control +If you have the RF variant, you will want to configure the GPIOs like this: +``` + { "MagicHome RF", // Magic Home RF (ESP8266) - (Arilux LC10) + GPIO_USER, // GPIO00 Optional Button + GPIO_USER, // GPIO01 Serial RXD and Optional sensor + GPIO_LED1_INV, // GPIO02 Blue onboard LED (optional) + GPIO_USER, // GPIO03 Serial TXD and Optional sensor0 + GPIO_ARIRFRCV, // GPIO04 RF receiver input + GPIO_PWM2, // GPIO05 RGB LED Green + 0, 0, 0, 0, 0, 0, // Flash connection + GPIO_PWM3, // GPIO12 RGB LED Blue + GPIO_PWM4, // GPIO13 RGBW LED White + GPIO_PWM1, // GPIO14 RGB LED Red + GPIO_LED2_INV, // GPIO15 RF receiver control + 0, 0 + }, +``` +After chosing the correct module type in your Tasmota configuration, press a key on the remote after boot for the device to learn your code. \ No newline at end of file