WARNING (MainThread) [homeassistant.core] Unable to find service cover/set_cover_position
ERROR (MainThread) [homeassistant.core] Invalid service data for cover.set_cover_position: extra keys not allowed @ data[‘id’]. Got ‘1520594767510’
Code indentation is f*cked, so ‚id‘ became an property of the data-section. Also, unless you want to open all covers, there should be an entity_id in that data section.
Please use the code formatting feature of this forum‘s editor for further analysis.
cover.close_cover is available for me (see screenshot), but maybe it depends on the type of hardware. You could stick with cover.set_position if that is working for you.
Frankly speaking, your automation is quite primitive as it contains no templates or complex condition rules. Why not use the Automation Editor of you Home Assistant instance to model it in a graphical manner?
My personal opionion: It’s totally stupid to express logical coherence by indentation, but some people still think it’s a good idea. Actually, I am considering using JSON inside YAML, as YAML is a superset of JSON and allows embedding JSON.