Public Access
fix: scan-usb also autogenerate vendor ids
Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
3 files changed
+110
-4
No files matched your search
@@ -0,0 +1,65 @@
|
||||
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
|
||||
|
||||
logger:
|
||||
level: VERBOSE
|
||||
logs:
|
||||
nut_ups: 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
|
||||
nut_ups:
|
||||
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: nut_ups
|
||||
nut_ups_id: ups_monitor
|
||||
name: "Battery Level"
|
||||
type: battery_level
|
||||
unit_of_measurement: "%"
|
||||
|
||||
binary_sensor:
|
||||
- platform: nut_ups
|
||||
nut_ups_id: ups_monitor
|
||||
name: "UPS Online"
|
||||
type: online
|
||||
|
||||
text_sensor:
|
||||
- platform: nut_ups
|
||||
nut_ups_id: ups_monitor
|
||||
name: "UPS Status"
|
||||
type: status
|
||||
Reference in new issue
Block a user