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

+31
View File
@@ -0,0 +1,31 @@
# European Base Configuration (No Secrets Required)
# Basic European electrical standards without network/API configuration
# Use this for examples and basic templates
substitutions:
# European regional defaults
timezone: "Europe/Warsaw" # Default European timezone
# Base UPS configuration with European defaults
ups_hid:
id: ups_monitor
update_interval: 30s
protocol_timeout: 15s
protocol: auto
fallback_nominal_voltage: 230.0 # European standard voltage - used only when AC power unavailable
simulation_mode: false
# Time configuration with European timezone
time:
- platform: sntp
id: sntp_time
timezone: ${timezone}
servers:
- "pool.ntp.org"
- "time.nist.gov"
# Logging optimized for European users
logger:
level: INFO
logs:
ups_hid: INFO
+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
+31
View File
@@ -0,0 +1,31 @@
# North American Base Configuration (No Secrets Required)
# Basic North American electrical standards without network/API configuration
# Use this for examples and basic templates
substitutions:
# North American regional defaults
timezone: "America/New_York" # Default North American timezone (Eastern Time)
# Base UPS configuration with North American defaults
ups_hid:
id: ups_monitor
update_interval: 30s
protocol_timeout: 15s
protocol: auto
fallback_nominal_voltage: 120.0 # North American standard voltage - used only when AC power unavailable
simulation_mode: false
# Time configuration with North American timezone
time:
- platform: sntp
id: sntp_time
timezone: ${timezone}
servers:
- "pool.ntp.org"
- "time.nist.gov"
# Logging optimized for North American users
logger:
level: INFO
logs:
ups_hid: INFO
@@ -39,17 +39,8 @@ logger:
# WiFi configuration template
wifi:
# Configure your WiFi credentials
ssid: !secret wifi_ssid
password: !secret wifi_password
# North American WiFi channel optimization (1-11 allowed in US/Canada)
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