Skip to content

Instantly share code, notes, and snippets.

@francoism90
francoism90 / README.md
Last active October 26, 2024 17:55
Change country to unlock channels, increase TX-power. (Use at your own risk)

Disclaimer

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.

Getting Started

Instructions have been moved to https://github.com/francoism90/asus-router. :)

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
@emorydunn
emorydunn / led_strip_1.yaml
Last active July 23, 2024 16:36
Sonoff L1 ESPHome Component
esphome:
name: led_strip_1
platform: ESP8266
board: esp8285
includes:
- custom_components/sonoff_l1.h
wifi:
@eklex
eklex / 80-mount-usb-to-media-by-label.rules
Last active November 14, 2024 13:59
udev rule for Home Assistant OS (hassio) to mount USB drives into the Supervisor Media directory
#
# 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
@rsciriano
rsciriano / opentherm.yaml
Last active July 21, 2023 21:31
Code of a device, created with ESPHome, to integrate an OpenTherm boiler with Home Assistant
substitutions:
devicename: opentherm
upper_devicename: Opentherm
esphome:
name: $devicename
platform: ESP8266
board: d1_mini_lite
arduino_version: '2.7.2'
platformio_options:
@FrankWu100
FrankWu100 / fancontrol-gpio.service
Last active April 29, 2022 18:37
GPIO Fan-Control daemon
[Unit]
Description=fancontrol-gpio
[Service]
Type=simple
ExecStart=/usr/bin/fancontrol-gpio
[Install]
WantedBy=multi-user.target
@kmdm
kmdm / esphome_ble_config.yaml
Last active June 26, 2024 17:13
esphome, esp32 ble tracker and Home Assistant mqtt_room sensors
# 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:
@zvldz
zvldz / soft_hack.md
Last active October 16, 2024 05:20
soft_hack.md

Soft hack to open telnet

You need gateway 3(mgl03) connected to MiHome. And also ip and gateway token.

1 way (recommended)

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"}}
# 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:
@zvldz
zvldz / 01_tuya_ota_url.md
Last active November 13, 2022 07:50
Retrieving the OTA URL for Tuya Zigbee devices

Retrieving the OTA URL for Tuya Zigbee devices

This example is for Ubuntu 20.4.3 x86_64. But should also work on other supported OS.

Used:

  • MITM proxy - Charles proxy (but it is probably possible to use another)
  • android emulator - Genymotion

Step 1: Installing the Charles proxy