substitutions:
name: usb-relay
friendly_name: "USB Relay"
default_state: "RESTORE_DEFAULT_OFF"
esphome:
name: xyusb1
friendly_name: xyusb1
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "ndm8xxxxxxxxxxxxxxxxxjlvrggJv3a1BkY="
ota:
- platform: esphome
password: "12cc9xxxxxxxxxxxxxxxxfb6a01e672"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Xyusb1 Fallback Hotspot"
password: "xxxxxxxxxxx"
captive_portal:
time:
- platform: homeassistant
# Blue LED
status_led:
pin:
number: GPIO16
# Relay
switch:
- platform: gpio
id: switch_relay
pin: GPIO5
# Green LED
- platform: gpio
pin: GPIO14
id: green_led
inverted: true # start on
# Switch template to link relay and green LED states
# LED is on when relay is off
- platform: template
id: relay
name: "${friendly_name}"
lambda: |-
if (id(switch_relay).state) {
return true;
} else {
return false;
}
turn_on_action:
- switch.turn_on:
id: green_led
- switch.turn_on:
id: switch_relay
turn_off_action:
- switch.turn_off:
id: green_led
- switch.turn_off:
id: switch_relay
# Button
binary_sensor:
- platform: gpio
id: hardware_button
pin:
number: GPIO04
mode: INPUT_PULLUP
inverted: True
on_press:
- switch.toggle: relay
# WiFi Signal Sensor
sensor:
- platform: wifi_signal
name: "WiFi Status"
update_interval: 60s
# Restart button
button:
- platform: restart
name: "Restart"
Reflashed my USB Volume button and added a LED-Ring.
Example is green and blue.
Funny text on box
What is a termianl assortment? LOL
Wireless Temperature/Humidity sensor for ESPHome.
Wemos D1 mini with deep sleep, voltage monitoring using A0 line. BME280 Temperature/Humidity sensor. And a 18650 battery with TP4065 battery manager. Now 3D print a little case.
Using a bowden tube (PTFE tube 1mm) with a 3d printed holder. (ptfe is very smooth)
This is a test setup. I’ve removed arms and the flute on the bottom picture using AI. Then printed backpicture and top on sticky paper and stuck it on sturdy heavy paper.
I want to make a moving picture which moves our band members when there is sound (music). (Guitar, Harp, Bagpipes and Flute)
3D printed a little light case for a wemos and a piece of WS2812 led strip I had lying around.
Schematic: NOTE: The resistor is 100-500 ohm (I forgot, just try) You can only use this trick for a few leds (I used 4), else you better can use the sacrifice a led to make a level shifter trick. (Wemos logic is 3.3V and the led strip is 5V)
I flashed ESPHome on the wemos using the flasher in Home Assistant.
I’ve printed two books using the Lulu service. (One for Tyrone) When they arrived, I noticed some faults. Lucky Lulu will be printing them again for me.
The book has over 500 pages and has a nice hardcover.
And I’ve been busy building a Mega Tower with 4 Motherboards. This will have a superb processing power! .. not. It houses some old motherboards for hardcore machine coding on real old hardware.
From top to bottom: 8088, 8086, 80386, 80484
Todo:
Rework on the cables
3D print an information plaque on the front of each board
Add a control panel on each board
Maybe some dust cover would be nice
I can remove the boards, and place them on a table. I’ve made some custom feet for them. Twist and lock by my own design.
Padded feet
The openscad files:
The locking is done by making the cylinder slightly oval by 0.5mm