Files
esphome-components-ups/vendor-validation-test.yaml
T

67 lines
1.2 KiB
YAML

substitutions:
name: vendor-validation-test
friendly_name: "UPS Vendor Validation Test"
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
comment: "Test configuration to validate unknown vendor ID handling"
esp32:
board: esp32-s3-devkitc-1
flash_size: 16MB
framework:
type: esp-idf
version: 5.3.2
logger:
level: VERBOSE
logs:
ups_hid: DEBUG
api:
encryption:
key: !secret api_encryption_key
ota:
- platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
external_components:
- source:
type: local
path: components
# Test with unknown vendor ID to trigger validation warning
ups_hid:
id: ups_monitor
update_interval: 30s
usb_vendor_id: 0x9999 # Unknown vendor ID - should trigger warning
usb_product_id: 0x0001
auto_detect_protocol: true
protocol_timeout: 15s
simulation_mode: true
sensor:
- platform: ups_hid
ups_hid_id: ups_monitor
name: "Battery Level"
type: battery_level
unit_of_measurement: "%"
binary_sensor:
- platform: ups_hid
ups_hid_id: ups_monitor
name: "UPS Online"
type: online
text_sensor:
- platform: ups_hid
ups_hid_id: ups_monitor
name: "UPS Status"
type: status