Command failed: curl -X GET 'http://xxx.xxx.xxx.xxx/admin/api.php?status'

Hi, I keep seeing those errors in the logs, any idea what’s wrong?

Logs:

> 2018-04-24 07:41:57 ERROR (Thread-15) [homeassistant.components.switch.command_line] Command failed: curl -X GET 'http://192.168.1.9/admin/api.php?status'
> 2018-04-24 07:41:57 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: None, template: {{ value_json.status == 'enabled' }})
> 2018-04-24 07:42:28 ERROR (Thread-11) [homeassistant.components.switch.command_line] Command failed: curl -X GET 'http://192.168.1.9/admin/api.php?status'
> 2018-04-24 07:42:28 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: None, template: {{ value_json.status == 'enabled' }})
> 2018-04-24 07:42:59 ERROR (Thread-3) [homeassistant.components.switch.command_line] Command failed: curl -X GET 'http://192.168.1.9/admin/api.php?status'
> 2018-04-24 07:42:59 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: None, template: {{ value_json.status == 'enabled' }})
> 2018-04-24 07:43:30 ERROR (Thread-12) [homeassistant.components.switch.command_line] Command failed: curl -X GET 'http://192.168.1.9/admin/api.php?status'
> 2018-04-24 07:43:30 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: None, template: {{ value_json.status == 'enabled' }})

You have an command_line switch in your config which gets its state from the command curl -X GET 'http://192.168.1.9/admin/api.php?status'.
Seems this command gets no responce, so the return value is None.
Then the value_template errors that it can’t process None.

Search your config for the http://192.168.1.9/admin/api.php?status and look why the device does not respond.

Thank you so much for the hint, I forgot I had a switch for Pi-hole and I don’t have pi-hole anymore…
It’s fine now.