Configuring Command Line sensor using YAML has moved (command not found)

Am getting the above error Configuring Command Line switch using YAML has moved

Have read all the threads but I am not sure what to do since the word “command” does not appear in either sensor.yml or switches.yml
here is my sensor.yml

      - platform: rest
      resource: http://192.168.111:8126/container/medusa
      name: Medusa
      value_template: '{{ value_json.status }}'


    - platform: systemmonitor
      resources:
        - type: disk_use_percent
          arg: /config
        - type: disk_use
        - type: disk_free
        - type: memory_use_percent
        - type: memory_use
        - type: memory_free
        - type: swap_use_percent
        - type: swap_use
        - type: swap_free
        - type: load_1m
        - type: load_5m
        - type: load_15m
        - type: network_in
          arg: eth0
        - type: network_out
          arg: eth0
        - type: throughput_network_in
          arg: eth0
        - type: throughput_network_out
          arg: eth0
        - type: packets_in
          arg: eth0
        - type: packets_out
          arg: eth0
        - type: ipv4_address
          arg: eth0
        - type: ipv6_address
          arg: eth0
        - type: processor_use
        - type: processor_temperature
        - type: last_boot



    #InfluxDB Database Sensor
    - platform: influxdb
      host: 192.168.1.250
      port: 8086
      username: !secret influxdb_user
      password: !secret influxdb_pass
      scan_interval: 3600
      queries:
        - name: InfluxDB Database Size
          unit_of_measurement: MB
          value_template: "{{ (value | float(0) / 1024 /1024) | round(1) }}"
          group_function: sum
          measurement: '"monitor"."shard"'
          database: _internal
          where: '"database"=''homeassistant'' AND time > now() - 5m'
          field: diskBytes

here is a sample of my switches.yml

- platform: wake_on_lan
  mac: d6:8e:93:7d:fa:e4
  name: “callmepc” 
  host: 192.168.1.111
  turn_off:
    service: hassio.addon_stdin
    data:
      addon: core_rpc_shutdown
      input: callmepc


- platform: rest
  resource: http://192.168.1.145:8126/container/ombi
  name: Request ombi
  body_on: '{"state": "unpause"}'
  body_off: '{"state": "pause"}'
  is_on_template: '{{ value_json is not none and value_json.state == "running" }}'

any help is appreciated.

Do you use packages?

You can use text editors like VSCode to search your entire config directory for “platform: command_line”.

Yes.
Found the offending entries.
Thank you for this.

1 Like