This example is for Ubuntu 20.4.3 x86_64. But should also work on other supported OS.
Used:
- MITM proxy -
Charlesproxy (but it is probably possible to use another) - android emulator -
Genymotion
| # MIT License | |
| # Copyright (c) 2021 freol35241 | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
You need gateway 3(mgl03) connected to MiHome. And also ip and gateway token.
Via XiaomiGateway3 component.
You must input in the 'Open Telnet command' field(as it is without changing anything):
{"method":"set_ip_info","params":{"ssid":"\"\"","pswd":"123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd"}}
| # MQTT broker configuration | |
| mqtt: | |
| broker: !secret mqtt_broker | |
| username: !secret mqtt_username | |
| password: !secret mqtt_password | |
| discovery: False # Only if you use the HA API usually | |
| id: mqtt_client | |
| # Define the room for this ESP32 node | |
| substitutions: |
| [Unit] | |
| Description=fancontrol-gpio | |
| [Service] | |
| Type=simple | |
| ExecStart=/usr/bin/fancontrol-gpio | |
| [Install] | |
| WantedBy=multi-user.target |
| substitutions: | |
| devicename: opentherm | |
| upper_devicename: Opentherm | |
| esphome: | |
| name: $devicename | |
| platform: ESP8266 | |
| board: d1_mini_lite | |
| arduino_version: '2.7.2' | |
| platformio_options: |
| # | |
| # udev rule | |
| # Mount USB drive to the media directory using the partition name as mount point | |
| # | |
| # Description: | |
| # Created for Home Assistant OS, this rule mounts any USB drives | |
| # into the Hassio media directory (/mnt/data/supervisor/media). | |
| # When a USB drive is connected to the board, the rule creates one directory | |
| # per partition under the media directory. The newly created partition is named | |
| # as the partition name. If the partition does not have a name, then the following |
| esphome: | |
| name: led_strip_1 | |
| platform: ESP8266 | |
| board: esp8285 | |
| includes: | |
| - custom_components/sonoff_l1.h | |
| wifi: | |
| Template | |
| {"NAME":"Tuya Siren","GPIO":[255,107,255,108,255,255,0,0,255,255,255,255,255],"FLAG":0,"BASE":54} | |
| You must activate the template before using any of the tuya commands below. | |
| Recommended rules for tasmota: | |
| rule1 on system#boot backlog tuyasend4 102,0; tuyasend2 103,300; TuyaSend1 117,0 endon | |
| rule1 1 | |
| tuyamcu 11,104 |
Following instructions are provided without any warranty, and may even get you in trouble legally. The instructions are provided for testing, learning, preventing e-waste, and should be use with care. We (including contributers + commentators) are not responsible for any damage to your device(s) or any legal issues.
Instructions have been moved to https://github.com/francoism90/asus-router. :)