Hi.
So I got this message “Command Line YAML configuration has moved” and I have tried to move to a new configuration, but I don’t manage to get it working.
This is my before config:
binary_sensor:
- platform: command_line
name: mStream HTTP Response Status #https://community.home-assistant.io/t/how-do-i-check-the-availability-of-a-webserver/43969/19
command: response=$(curl -LIk -m 3 http://10.0.24.10:3000/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: UnRAID HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10/Main -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: UnRAID API HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:3005/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: CrashPlan HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:5800/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: Deemix HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:6595/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: AirSonic HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:4040/login -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: pfSense HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.1.1/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: ESXi HTTP Response Status
command: response=$(curl -LIk -m 3 https://10.0.1.2/ui/#/login --insecure -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: ZWaveJS2MQTT HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.8:8091/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: Flemmingss.com HTTP Response Status
command: response=$(curl -LIk -m 3 https://flemmingss.com/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: mStream HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:3000/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: Jellyseerr HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:5055/login -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: Jellyfin HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:8096/web/index.html -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: Bazarr HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:6767 -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: command_line
name: qBittorrent HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:8080/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
This is my after config:
command_line:
- platform: sensor
unique_id: mstream_http_response_code
name: mStream HTTP Response Code
command: curl -I http://10.0.24.10:3000/ 2>/dev/null | head -n 1 | cut -d$' ' -f2
scan_interval: 60
- platform: binary_sensor
unique_id: unraid_http_response_status
name: UnRAID HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10/Main -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: binary_sensor
unique_id: unraid_api_http_response_status
name: UnRAID API HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:3005/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: binary_sensor
unique_id: deemix_http_response_status
name: Deemix HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:6595/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: binary_sensor
unique_id: pfsense_http_response_status
name: pfSense HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.1.1/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: binary_sensor
unique_id: zwavejsui_http_response_status
name: Z-Wave JS UI HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:8091/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: binary_sensor
unique_id: flemmingss_dot_com_http_response_status
name: Flemmingss.com HTTP Response Status
command: response=$(curl -LIk -m 3 https://flemmingss.com/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: binary_sensor
unique_id: jellyseerr_http_response_status
name: Jellyseerr HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:5055/login -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: binary_sensor
unique_id: jellyfin_http_response_status
name: Jellyfin HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:8096/web/index.html -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: binary_sensor
unique_id: bazarr_http_response_status
name: Bazarr HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:6767 -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
- platform: binary_sensor
unique_id: qbittorrent_http_response_status
name: qBittorrent HTTP Response Status
command: response=$(curl -LIk -m 3 http://10.0.24.10:8080/ -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "OFF" || echo "ON"
scan_interval: 60
value_template: '{{ value }}'
device_class: 'problem'
It gives me some errors, but can’t realy see what.
Logger: homeassistant.components.websocket_api.http.connection
Source: components/homeassistant/__init__.py:316
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 14:03:19 (14 occurrences)
Last logged: 14:25:48
[140343821336640] Cannot quick reload all YAML configurations because the configuration is not valid: Invalid config for [command_line]: [platform] is an invalid option for [command_line]. Check: command_line->command_line->0->platform. (See /config/configuration.yaml, line 583).
[140343821336640] Cannot quick reload all YAML configurations because the configuration is not valid: Invalid config for [command_line]: [platform] is an invalid option for [command_line]. Check: command_line->command_line->0->platform. (See /config/configuration.yaml, line 584).
[140343441558720] Cannot quick reload all YAML configurations because the configuration is not valid: Error loading /config/configuration.yaml: while parsing a block mapping in "/config/configuration.yaml", line 585, column 5 expected <block end>, but found '<scalar>' in "/config/configuration.yaml", line 594, column 15
[140343475173568] Cannot quick reload all YAML configurations because the configuration is not valid: Error loading /config/configuration.yaml: while parsing a block mapping in "/config/configuration.yaml", line 585, column 5 expected <block end>, but found '<scalar>' in "/config/configuration.yaml", line 594, column 15
[140343446999232] Cannot quick reload all YAML configurations because the configuration is not valid: Invalid config for [command_line]: [platform] is an invalid option for [command_line]. Check: command_line->command_line->0->platform. (See /config/configuration.yaml, line 584).
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 226, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 980, in admin_handler
await result
File "/usr/src/homeassistant/homeassistant/components/homeassistant/__init__.py", line 316, in async_handle_reload_all
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Cannot quick reload all YAML configurations because the configuration is not valid: Invalid config for [command_line]: [platform] is an invalid option for [command_line]. Check: command_line->command_line->0->platform. (See /config/configuration.yaml, line 582).
Platform error binary_sensor.time_date - No module named 'homeassistant.components.time_date.binary_sensor'
Anyone see?