Skip to content

Hardware test esphome config and ESPHome version updates#67

Merged
jantman merged 4 commits into
mainfrom
hardware-test-esphome-config
Nov 28, 2025
Merged

Hardware test esphome config and ESPHome version updates#67
jantman merged 4 commits into
mainfrom
hardware-test-esphome-config

Conversation

@jantman

@jantman jantman commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

No description provided.

jantman and others added 4 commits November 28, 2025 06:59
Created a standalone, non-networked ESPHome configuration for testing
all Machine Access Control hardware components without requiring the
MAC server or network connectivity.

Hardware Test Configuration (hardware-test.yaml):
- Completely standalone operation (no WiFi, API, or OTA)
- Tests all hardware components:
  * 16x2 I2C LCD display (PCF8574)
  * Wiegand RFID reader with card present sensor
  * Oops button and LED
  * Relay output
  * WS2812 NeoPixel status LED
- RFID-controlled relay (ON when card inserted, OFF when removed)
- Oops button toggles oops LED independently
- Idle display shows uptime and WiFi MAC address simultaneously
- Status LED color coding: Blue (idle), Green (card present),
  Yellow (card removed), Red (oops button pressed)

ESPHome 2025.11.2 Compatibility Fixes:
- Removed deprecated 'rmt_channel' parameter from esp32_rmt_led_strip
  (auto-assigned in newer ESPHome versions)
- Updated MAC address retrieval to use get_mac_address_pretty()
  instead of deprecated esp_efuse_mac_get_default()
- Maintained esp-idf framework to match production configuration

Display Format (16x2 LCD):
- Line 1: "Up HH:MM:SS" (uptime counter)
- Line 2: MAC address without colons (e.g., "AABBCCDDEEFF")
- Updates every second when idle
- Shows RFID codes, button states during events

Documentation (hardware-test.md):
- Complete test procedures for each component
- Status LED color reference table
- Troubleshooting guide
- Success criteria checklist
- Serial console monitoring instructions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/dm_mac
   __init__.py690100% 
   cli_utils.py150100% 
   neongetter.py1860100% 
   slack_handler.py1500100% 
   utils.py250100% 
src/dm_mac/models
   __init__.py00100% 
   machine.py352199%643
   users.py940100% 
src/dm_mac/views
   __init__.py00100% 
   api.py220100% 
   machine.py690100% 
   prometheus.py980100% 
TOTAL1080199% 

Tests Skipped Failures Errors Time
148 0 💤 0 ❌ 0 🔥 13.008s ⏱️

@jantman jantman merged commit 6e0f678 into main Nov 28, 2025
16 checks passed
@jantman jantman deleted the hardware-test-esphome-config branch November 28, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant