How to display the wifi signal strength

I have HAOS on x86-64 installed with wifi dongle.

command_line:
  - sensor:
      name: RPi WiFi Signal
      unique_id: rpi_wifi_signal
      command: 'ha net info | grep signal | cut -d":" -f2 | awk ‘{ gsub (" ", “”, $0); print}’'
      device_class: signal_strength
      unit_of_measurement: "dBm"
      value_template: '{{ value | float(0) if is_number(value) }}'

This code does not output a signal strength value.
2024-04-03_09-53-46

But the command : 'ha net info | grep signal | cut -d":" -f2 | awk ‘{ gsub (" ", “”, $0)` show signal level. How do I display the signal strength on the dashboard? Thank you.