From c9d67e8cd9bca0854e0cfef6d5609839f213894b Mon Sep 17 00:00:00 2001 From: Wopalecki <35042958+Wopalecki@users.noreply.github.com> Date: Thu, 1 Feb 2018 20:55:14 +0100 Subject: [PATCH] Adding quotes for the "login attempts" command (#4563) In hass.io installation, the command value must be quoted. --- source/_components/sensor.command_line.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/sensor.command_line.markdown b/source/_components/sensor.command_line.markdown index 3d5f533fbeb..e27656e9a5f 100644 --- a/source/_components/sensor.command_line.markdown +++ b/source/_components/sensor.command_line.markdown @@ -81,7 +81,7 @@ If you'd like to know how many failed login attempts are made to Home Assistant, sensor: - platform: command_line name: badlogin - command: grep -c 'Login attempt' /home/hass/.homeassistant/home-assistant.log + command: "grep -c 'Login attempt' /home/hass/.homeassistant/home-assistant.log" ``` Make sure to configure the [logger component](/components/logger) to monitor the [http component](https://home-assistant.io/components/http/) at least the `warning` level.