I’ve been using the command_line integration to check the up/down status of the xbox and playstation. Now with the recent change, I can’t seem to get it working again. My old config is as follows:
Problem is, there’s no “playstation4” or “xboxOne” entity (ignore my case) when configuring this way. So I’ve tried to change it to a binary_sensor instead, but still can’t find the sensor.
Finally, I AM able to set up ICMP sensor and ping the system, but I can’t specify a port with ping. I can only do that with nc, telnet, or nmap, and I’d rather just continue using nc.
Figured that was satisfactory. I was pretty confident the config was right but couldn’t figure out why the entity was never created. Now I feel like a dolt.
This configuration ends up in this error, while validating
Invalid config for [command_line]: expected a dictionary for dictionary value @ data['command_line'][0]['sensor']. Got None
extra keys not allowed @ data['command_line'][0]['command']. Got "ls /config/switches/state/proc* | awk -F '/' '{print $5}'"
extra keys not allowed @ data['command_line'][0]['name']. Got 'proc_state'
extra keys not allowed @ data['command_line'][0]['scan_interval']. Got 60
extra keys not allowed @ data['command_line'][0]['unique_id']. Got 'command_line.sensor_proc_state'. (See /config/configuration.yaml, line 49).
… but I got it … there was a problem with the indent