Hello, I’m very new to ESPHome but liking it so far. I’m working to make a Time Based Cover with a continuous rotation servo. I think I’m having a bit of trouble either with my YAML formatting or with understanding how Actions are supposed to work in the first place with ESPHome.
The error I’m recieving is:
INFO Reading configuration...
Failed config
cover.time_based: [source /config/esphome/test111.yaml:39]
platform: time_based
name: Time-Based Cover
open_action:
Cannot have two actions in one item. Key 'servo.write' overrides 'id'! Did you forget to indent the block inside the action?.
- [source /config/esphome/test111.yaml:43]
servo.write:
id: my_servo
level: 100.0%
open_duration: 30sec
close_action:
Cannot have two actions in one item. Key 'servo.write' overrides 'id'! Did you forget to indent the block inside the action?.
- [source /config/esphome/test111.yaml:49]
servo.write:
id: my_servo
level: -100.0%
close_duration: 30sec
stop_action:
Cannot have two actions in one item. Key 'servo.write' overrides 'id'! Did you forget to indent the block inside the action?.
- [source /config/esphome/test111.yaml:55]
servo.write:
id: my_servo
level: 0.0%
Ok so I think this is pretty much fixed now.
I put in some code to close the cover on boot. I would prefer to “stop” it but it doesn’t seem to be working… I’ll update again if I get that fixed…
Faux Wood Blind devices incoming…
Here’s the code:
What specifically?
My config isn’t as !Secret’d up as I’d like.
If you set up the ESPHome code as Covers properly there’s no code to be shared. They just appear as devices in Home Assistant after adding them with the API Password.
I used the code you posted for the esphome part now I’m not sure how the setup the rest in home assistant. What else did you have setup and can you post that part? input_number? automation? cover? I appreciate your help
I don’t know what this question means. If you create the cover device in the ESPHome software, when you add the ESPHome device into Home Assistant it should come in as a cover automatically.