Command Line Sensor Not Appearing ⚠

Hi there,
I tried to utilize command_line sensor but didn’t get an entity.
My config is the following:

  • Installation method: Home Assistant Supervised
  • Core: 2025.5.2
  • Supervisor: 2025.05.1
  • Operating System: Armbian/Debian (Bookworm)
  • Frontend: 20250516.0

I added sensor config (I changed the actual IP to 0.0.0.0) to sensors.yaml:

- platform: command_line
  name: "PS5 Pro State"
  unique_id: ps5_pro_state
  command: "/config/bin/ps5-wake -vP -H 0.0.0.0"
  # Output Options:
  # Device found: PS5-132 [PS5/D4F7D5000111]: Standby
  # Device found: PS5-132 [PS5/D4F7D5000111]: Home Screen
  scan_interval: 3
  value_template: >-
    {% if 'Home Screen' in value %}
      Home Screen
    {% elif 'Standby' in value %}
      Standby
    {% else %}
      Unknown
    {% endif %}

I placed compiled binary at /usr/share/hassio/homeassistant/bin
And tested inside the HomeAssistant container:

homeassistant:/config# /config/bin/ps5-wake -vP -H 0.0.0.0
Device found: PS5-132 [PS5/D4F7D5000111]: Standby

Also, added debug log for command_line in configuration.yaml:

# Set logging
logger:
  default: info
  logs:
    homeassistant.components.command_line: debug

But don’t see any mentions about command_line and the sensor itself.

Pls somebody HA Guru take a look at my config!

Thanx for any info in advance!

Command line is no longer configured under sensors. It has its own key now.

1 Like