Skip to content

Instantly share code, notes, and snippets.

M1E-M chip, running at 187khz transmission rate, 32 cycle per part, 3 parts per bit
{ 346, { 35, 1 }, { 1, 2 }, { 2, 1 }, true } (rc-switch)
Repeat Codes 7x
A = Address
D = Use Fade/Dim, 0=on 1=off
C = Fan controls and Set
L = Light
@patrickdk77
patrickdk77 / sprinkler.yaml
Last active October 21, 2022 12:01
Sprinkler System esphome
substitutions:
display_name: Sprinkler
heartbeat: 900s
esphome:
name: sprinkler
platform: ESP8266
board: d1_mini
board_flash_mode: dout
esp8266_restore_from_flash: true
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
auto eth0
iface eth0 inet manual
up ethtool -G eth0 rx 1024 rx-jumbo 2048
post-up ifconfig $IFACE down
mtu 9000
auto eth1
iface eth1 inet manual
up ethtool -G eth1 rx 1024 rx-jumbo 2048
post-up ifconfig $IFACE down