fix(ups-hid): voltage, frequency and runtime

Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
bullshit committed 2025-08-25 12:45:27 +02:00
1 parent 7015fd2239
commit fe1637a940
11 files changed
+380 -54

No files matched your search

+26 -11
View File
@@ -1,19 +1,43 @@
# European Voltage Defaults
# Configuration template for European electrical standards (IEC 60038)
# Configuration template for European electrical standards (IEC 60038)
# Use this as a base for European installations
# Test configuration for frequency implementation and European defaults
substitutions:
# Device configuration
name: "european-ups-test"
friendly_name: "European UPS Test"
# European electrical standards
nominal_voltage: "230V" # Standard European single-phase voltage (IEC 60038)
frequency: "50Hz" # European frequency standard
# Regional timezone examples (adjust for your location)
timezone: "Europe/Berlin" # Germany
timezone: "Europe/Warsaw" # Poland
# timezone: "Europe/Vienna" # Austria
# timezone: "Europe/Berlin" # Germany
# timezone: "Europe/London" # United Kingdom
# timezone: "Europe/Paris" # France
# timezone: "Europe/Rome" # Italy
# timezone: "Europe/Madrid" # Spain
esphome:
name: ${name}
friendly_name: ${friendly_name}
comment: "Testing European defaults and frequency implementation"
# Core ESP32 configuration
esp32:
board: esp32-s3-devkitc-1
framework:
type: esp-idf
# External components
external_components:
- source:
type: local
path: ../../components
# Base UPS configuration with European defaults
ups_hid:
id: ups_monitor
@@ -40,17 +64,8 @@ logger:
# WiFi configuration template
wifi:
# Configure your WiFi credentials
ssid: !secret wifi_ssid
password: !secret wifi_password
# European WiFi channel optimization (1-13 allowed in EU)
channel: 6
# Enable fast connect for better reconnection
fast_connect: true
# Access point fallback (if main WiFi fails)
ap:
ssid: "${friendly_name} AP"
password: !secret ap_password