Moxy
Moxy blurs the lines between hardware and software in the homelab.
Install / Use
/learn @lioreshai/MoxyREADME
Moxy - Homelab IoT Platform
Overview
Moxy is a Homelab IoT "Platform" (for lack of a better term) that blurs the lines between hardware and software in the homelab. Here are the principal components of the platform:
- Centralized server power management using relays and current sensors
- Environmental sensors reporting real time metrics from the homelab
- Physical "dashboard" to display guages using old-fashioned panel meters, backlit by neopixels for extra color indication
<sub><sup>Physical front panel interface: PWM-controlled panel meters, LCD screen, and rotary encoder</sup></sub>
<br><br>
<br><br>
<sub><sup>Home Assistant interface: communication coordinated via MQTT</sup></sub>
<br><br>
<br><br>
Hardware Schematic

Prerequisites
Server-side
- MQTT
- Python 3
- I2C - to connect to microcontrollers and ADCs for sensors, analog meters (pwm), and LCD screen
- GPIO - for controlling relays and rotary encoder input
- Home Assistant
Device-side
- 5 ADC pins
- 4 PWM pins
- 16x2 I2C LCD Screen
- 4x 30V 10A relays w/ optocouplers
- 4x ACS712 Hall-effect current sensors
- DHT11 temperature + humidity sensor
- MQ2 gas sensor
- Arduino-compatible microcontrollers
<sub><sup>10A Relay Modules on (left), 20A hall-effect current sensor modules (right), XT60 output connectors (top right)</sup></sub>
<br><br>
<br><br>
Installing as a service
A bash script is included to assist in creating services for server-side components in systemd. See below for helpful commands on managing the services.
Linux installation
- Modify service definitions in
service_definitionsdirectory to reflect the location of the Python executables - Copy
config.ini.sampletoconfig.iniand replace values for your MQTT broker - Run
./install_systemd_services.sh- if successful, script will automatically start tailing journalctl logs to verify the services started successfully
Helpful Commands
Tail all logs
journalctl --follow _SYSTEMD_UNIT=moxy.relays.service + _SYSTEMD_UNIT=moxy.sensors.service + _SYSTEMD_UNIT=moxy.panel.service
Tail individual log
journalctl -u moxy.{serviceName}.service -f
Restart all services
systemctl restart moxy.panel.service
systemctl restart moxy.sensors.service
systemctl restart moxy.relays.service
Related Skills
node-connect
354.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
