Automations for curtains and shutters