Or just used the timed cover from here:
With the new changes in custom component locations, I needed to change the template cover to timedcover and relocate it to:
custom_components/timedcover/cover.py
commands like “set cover to %50” does work here with google assistant now. formerly it was working only with siri.
The configuration is this:
cover:
- platform: timedcover
covers:
study_right_cover:
friendly_name: 'Right Cover'
open_cover:
service: switch.turn_on
entity_id: switch.study_cover_right
close_cover:
service: switch.turn_off
entity_id: switch.study_cover_right
stop_cover:
service: switch.turn_on
entity_id: switch.study_cover_stop
opening_time: 45
closing_time: 45