diff --git a/boot.yaml b/boot.yaml new file mode 100644 index 0000000..9e7f7bf --- /dev/null +++ b/boot.yaml @@ -0,0 +1,35 @@ +substitutions: + name: s3-boot-test + friendly_name: s3 boot test + +esphome: + name: ${name} + friendly_name: ${friendly_name} + +esp32: + board: esp32-s3-devkitc-1 + flash_size: 16MB + framework: + type: esp-idf + +# Enable logging +logger: + level: DEBUG + baud_rate: 115200 + hardware_uart: UART0 + +ota: + - platform: esphome + password: !secret ota_password + +wifi: + ssid: !secret wifi_ssid + password: !secret wifi_password + + # Enable fallback hotspot (captive portal) in case wifi connection fails + ap: + ssid: "${friendly_name} Fallback" + password: !secret ap_password + +captive_portal: +web_server: diff --git a/full-test.yaml b/full-test.yaml index 7aaeab2..2e06c40 100644 --- a/full-test.yaml +++ b/full-test.yaml @@ -19,6 +19,8 @@ logger: level: VERBOSE logs: ups_hid: DEBUG + baud_rate: 115200 + hardware_uart: UART0 # Enable Home Assistant API api: @@ -54,10 +56,10 @@ time: # RGB LED for UPS status indication (GPIO38 on ESP32-S3-DevKitC-1) light: - platform: esp32_rmt_led_strip - rgb_order: GRB - pin: GPIO38 + chipset: WS2812 + pin: GPIO48 num_leds: 1 - chipset: ws2812 + rgb_order: GRB name: "UPS Status LED" id: ups_status_led restore_mode: ALWAYS_OFF @@ -76,7 +78,7 @@ light: - pulse: name: "Battery Pulse" transition_length: 1s - update_interval: 1s + update_interval: 2s min_brightness: 20% max_brightness: 80% - pulse: @@ -104,15 +106,18 @@ ups_hid: update_interval: 10s # Hardware Configuration - usb_vendor_id: 0x051d # APC vendor ID (0x051d), CyberPower (0x0764) - usb_product_id: 0x0002 # APC Back-UPS ES series + #usb_vendor_id: 0x051d # APC vendor ID (0x051d) + #usb_product_id: 0x0002 # APC Back-UPS ES series + + # usb_vendor_id: 0x0764 # CyberPower (0x0764) + # usb_product_id: 0x0501 # CP1500 AVR UPS # Protocol Configuration auto_detect_protocol: true protocol_timeout: 15s # Development/Testing Configuration - simulation_mode: true # Set to false for production with real hardware + simulation_mode: false # Set to false for production with real hardware # Numeric Sensors sensor: @@ -352,7 +357,7 @@ text_sensor: # Advanced LED Status Control with Priorities interval: - - interval: 2s + - interval: 3s then: - lambda: |- // Advanced UPS status LED control with priorities diff --git a/minimal-test.yaml b/minimal-test.yaml index d7d7d7f..11387d9 100644 --- a/minimal-test.yaml +++ b/minimal-test.yaml @@ -5,13 +5,12 @@ esphome: esp32: board: esp32-s3-devkitc-1 - framework: - type: arduino - version: recommended # Enable logging logger: level: DEBUG + baud_rate: 115200 + hardware_uart: UART0 # Enable Home Assistant API api: @@ -35,11 +34,10 @@ web_server: # RGB LED for status indication light: - platform: esp32_rmt_led_strip - rgb_order: GRB - pin: GPIO38 + chipset: WS2812 + pin: GPIO48 num_leds: 1 - # rmt_channel: 0 @INFO: esp32_rmt_led_strip does manage the rmt channel - chipset: ws2812 + rgb_order: GRB name: "UPS Status LED" id: status_led effects: @@ -54,7 +52,6 @@ light: duration: 250ms - state: false duration: 250ms - # External components external_components: - source: @@ -66,8 +63,14 @@ ups_hid: id: ups_monitor simulation_mode: true # Set to false for production update_interval: 5s - usb_vendor_id: 0x051d # APC vendor ID - usb_product_id: 0x0002 # Back-UPS ES series + + # Hardware Configuration + usb_vendor_id: 0x051d # APC vendor ID (0x051d) + usb_product_id: 0x0002 # APC Back-UPS ES series + + # usb_vendor_id: 0x0764 # CyberPower (0x0764) + # usb_product_id: 0x0501 # CP1500 AVR UPS + protocol_timeout: 10s auto_detect_protocol: true