This is my sensor:
command_line:
- sensor:
name: Redes WiFi Disponibles
command: "iwlist wlan0 scan | grep ESSID"
value_template: "{{ value }}"
this the error in logs:
Command failed (with return code 1): iwlist wlan0 scan | grep ESSID
iwlist wlan0 scan | grep ESSID is running in terminal ¿why not from configuration.yaml?