Cant get this new command_line: code to work

so i got new notification that i needed to switch to the new command_line: way i modded my stuff but its wont work
the error code i get is

Platform error device_tracker.bluetooth_tracker - Requirements for bluetooth_tracker not found: ['pybluez==0.22'].
Invalid config for [command_line]: [host] is an invalid option for [command_line]. Check: command_line->command_line->6->binary_sensor->host. (See /config/configuration.yaml, line 16).

my configuration.yaml is

command_line: !include /config/yamls/command_line.yaml

my command_line.yaml is

- binary_sensor:
    name: Mitchflix Server
    command: "ping -W 1 -c 1 192.168.1.9 > /dev/null 2>&1 && echo Up || echo Down"
    device_class: connectivity
    payload_on: "Up"
    payload_off: "Down"

#- platform: command_line
- binary_sensor:
    name: Mitchs Server
    command: "ping -W 1 -c 1 192.168.1.8 > /dev/null 2>&1 && echo Up || echo Down"
    device_class: connectivity
    payload_on: "Up"
    payload_off: "Down"

#- platform: command_line
- binary_sensor:
    name: Mitchs Router
    command: "ping -W 1 -c 1 192.168.1.1 > /dev/null 2>&1 && echo Up || echo Down"
    device_class: connectivity
    payload_on: "Up"
    payload_off: "Down"

#- platform: command_line
- binary_sensor:
    name: Main Server
    command: "ping -W 1 -c 1 192.168.0.3 > /dev/null 2>&1 && echo Up || echo Down"
    device_class: connectivity
    payload_on: "Up"
    payload_off: "Down"

#- platform: command_line
- binary_sensor:
    name: Backup Server
    command: "ping -W 1 -c 1 192.168.0.4 > /dev/null 2>&1 && echo Up || echo Down"
    device_class: connectivity
    payload_on: "Up"
    payload_off: "Down"

#- platform: command_line
- binary_sensor:
    name: Router
    command: "ping -W 1 -c 1 192.168.0.1 > /dev/null 2>&1 && echo Up || echo Down"
    device_class: connectivity
    payload_on: "Up"
    payload_off: "Down"

# Cell Phone Detection
#- platform: ping
- binary_sensor:
    name: Mikes Cell Phone
    host: 192.168.0.40
    scan_interval: 1
    count: 1

#- platform: command_line
- binary_sensor:
    name: Mitchs Cell Phone
    command: "ping -W 1 -c 1 192.168.0.41 > /dev/null 2>&1 && echo Up || echo Down"
    device_class: connectivity
    payload_on: "Up"
    payload_off: "Down"

#- platform: command_line
- binary_sensor:
    name: Building Network Switch 1
    command: "ping -W 1 -c 1 192.168.0.5 > /dev/null 2>&1 && echo Up || echo Down"
    device_class: connectivity
    payload_on: "Up"
    payload_off: "Down"

#- platform: command_line
- binary_sensor:
    name: Building Network Switch 2
    command: "ping -W 1 -c 1 192.168.0.6 > /dev/null 2>&1 && echo Up || echo Down"
    device_class: connectivity
    payload_on: "Up"
    payload_off: "Down"

It’s complaining about this:

# Cell Phone Detection
#- platform: ping
- binary_sensor:
    name: Mikes Cell Phone
    host: 192.168.0.40
    scan_interval: 1
    count: 1

That’s a configuration for a Ping Binary Sensor, not a Command Line Binary Sensor, and shouldn’t be within your command_line.yaml file

oh ok thanks i just put it back in the binary sensor… i didnt notice cuz i did all of it under command line…

thank you

You’re welcome!

Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.

For more information about the Solution tag, refer to guideline 21 in the FAQ.