Skip to content

usb_hid component is missing the number.h file #1

Description

@rohankapoorcom

I'm trying to use this external component today and getting a compilation error:

In file included from src/esphome/components/ups_hid/control_number.cpp:1:
src/esphome/components/ups_hid/control_number.h:4:10: fatal error: esphome/components/number/number.h: No such file or directory
    4 | #include "esphome/components/number/number.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs/office-ups/src/esphome/components/ups_hid/control_number.cpp.o] Error 1

I'm running ESPHome 2025.8.4

My configuration:

---
substitutions:
  device_name: office-ups
  friendly_name: Office UPS

  api_encryption_key: !secret api_encryption_key
  ota_password: !secret ota_password
  ethernet_domain: !secret wifi_domain

  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  wifi_domain: !secret wifi_domain

packages:
  remote_package:
    url: https://github.com/bullshit/esphome-components
    ref: main
    files: ['configs/essential_sensors.yaml', 'configs/extended_sensors.yaml']
    refresh: 1s
  base: !include packages/base.yaml
  wifi: !include packages/wifi.yaml

esphome:
  name: "${device_name}"
  friendly_name: "${friendly_name}"
  platformio_options:
    build_flags: -DBOARD_HAS_PSRAM
    board_build.arduino.memory_type: qio_opi
    board_build.f_flash: 80000000L
    board_build.flash_mode: qio 

esp32:
  board: esp32-s3-devkitc-1
  flash_size: 16MB
  framework:
    type: esp-idf

external_components:
  - source: github://bullshit/esphome-components
    components: [ ups_hid ]

# Seeed Studio XIAO W5500 Ethernet Adapter
# ethernet:
#   type: W5500
#   cs_pin: GPIO2
#   clk_pin: GPIO7
#   miso_pin: GPIO8
#   mosi_pin: GPIO9
#   domain: "${ethernet_domain}"

ups_hid:
  id: ups_monitor
  update_interval: 30s
  protocol_timeout: 15s
  protocol: auto
  fallback_nominal_voltage: 120v
  simulation_mode: false

# text_sensor:
#   - id: !remove ip_address

sensor:
  - id: !remove uptime_sensor
  - id: !remove wifi_signal_sensor
  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions