I was trying to add a stepper motor in esp home following this https://esphome.io/components/stepper/index.html I get a error code in the logs.
this is that error
Logger: homeassistant.config
Source: config.py:454
First occurred: 16:51:21 (1 occurrences)
Last logged: 16:51:21
Invalid config for [automation]: required key not provided @ data['action']. Got None. (See /config/configuration.yaml, line 5).
for the motor I added this to the automations file.
- alias: Write Stepper Value to ESP
trigger:
- platform: state
entity_id: input_number.stepper_control
action:
- service: esphome.testing_control_stepper
data_template:
target: '{{ trigger.to_state.state | int }}'
id: 497d310dcbda42c7bf17f20974ff7c89