Skip to content

Instantly share code, notes, and snippets.

@zeroping
zeroping / milfra-mfa05.base.yaml
Created July 11, 2022 19:22
ESPHome template for the Milfra MFA05 Motion-sensing wall switch.
#---
#substitutions:
# https://esphome.io/guides/configuration-types.html#substitutions
# device_name: garage-overhead # hostname & entity_id
# motion_on_time: '15s' # time to leave the relay on after motion is sensed
# motion_off_holdoff: '2s' # how long to ignore motion if turned off a short press of the button
# button_hold_for_hold_on_time: '2s' # how long to press and hold the button to switch to hold-on mode
@zeroping
zeroping / tascam_set_time.py
Created May 19, 2022 06:36
A tool for setting the time of some Tascam wifi-enabled audio recorders.
#!/usr/bin/python
import socket
import time
import sys
import coloredlogs
import logging
import datetime
global logger
@zeroping
zeroping / AWP12L.base.yaml
Created March 20, 2022 17:41
ESPHome template for the AWPL12L dual-outlet energy-monitoring wifi smart plug
#substitutions:
#device_name: awp12l-whatever
## Higher value gives lower watt readout
#current_res: "0.001106"
## Lower value gives lower voltage readout
#voltage_div: "2029"
# device info from here:
# https://templates.blakadder.com/avatar_AWP12L.html
@zeroping
zeroping / linkind-switch-timer.base.yaml
Created January 17, 2022 07:15
An ESPHome config for the Linkind two-button relay switch - implements local timer behavior
# Basic Config
#---
#substitutions:
# https://esphome.io/guides/configuration-types.html#substitutions
# device_name: esp-br3 # hostname & entity_id
# warn_seconds: '60' #time to switch to red LED to indicate upcomming expiry
# increase_seconds: '(60 * 7)' # how much time to add each press
# This is for the Linkind WS240010008 two-button relay switch
@zeroping
zeroping / linkind-switch.base.yaml
Created January 7, 2022 04:27
ESPHome config for Linkind relay switch
# Basic Config
#---
#substitutions:
# https://esphome.io/guides/configuration-types.html#substitutions
# device_name: esp-br3 # hostname & entity_id
esphome:
name: ${device_name}
esp32:
@zeroping
zeroping / linkind-dimmer.base.yaml
Last active April 15, 2023 04:05
Esphome config for ESP32-based Linkind dimmer switches
# Basic Config
#---
#substitutions:
# # https://esphome.io/guides/configuration-types.html#substitutions
# device_name: esp-br3 # hostname & entity_id
# transition_length: 0s # transition when turning on/off
## Uses a JST24A triac and a second MCU for dimming
esphome:
@zeroping
zeroping / bluejeans-repack.sh
Created February 12, 2021 20:33
Repacks a BlueJeans package to make it install-able under Debian.
#!/bin/bash
if [ -z "$*" ]; then echo "Pass in the path to a BlueJeans Debian package to fix it."; exit 1; fi
filename=$1
newfilename=${filename:0:(-4)}-fixed.deb
echo "This will remove the libnss3 check from BlueJeans package $filename"
# This is all needed because BlueJeans uses a preinstall script to run
# dpkg -s libnss3
<uboot is booting, with a TFTP server accessible on network port 1>
...
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.100.8; our IP address is 192.168.100.9
Filename 'fwupgrade.cfg'.
Load address: 0x80100000
Loading: *
Retry count exceeded; starting again
Retry...
[ 52.200000] br-lan1: port 3(ap0_2) entered forwarding state
[ 52.280000] br-lan1: port 4(ap1_2) entered forwarding state
shell disabled..Please press Enter to activate this console.
U-Boot 1.1.4 (Mar 21 2017 - 13:15:34)
A60 (ar955x) U-boot
- Scorpion 1.0DRAM:
sri
Scorpion 1.0
ath_ddr_initial_config(177): (32bit) ddr2 init
tap = 0x00000003
Tap (low, high) = (0x3, 0x1d)