I’m learning bit by bit, I simply want a Input Number which activates a Arduino led which flashes the number of times entered.
I received this error always, and I don’t understand : - Invalid config for [shell_command]: expected a dictionary for dictionary value @ data[‘shell_command’]. Got ‘leds:“echo {{ states.input_number.arduino_led.state | int }} > /dev/ttyACM0”’. (See ?, line ?). Please check the docs at…
My configuration.yaml code
shell_command:
leds:" echo {{ states.input_number.arduino_led.state | int }} > /dev/ttyACM0"
input_number:
arduino_led:
name: LED
initial: 0
min: 0
max: 9
step: 1
automation:
- alias: 'Led'
trigger:
platform: state
entity_id: input_number.arduino_led
action:
service: shell_command.leds
I tried with “echo 4 > /dev/ttyACM0” to discard the variable, changing quotes… same result.
(Edit Format, Thanks)