Sequential possibility to (de)activate devices

Sounds like you need to write automations with whatever triggers turning on and off whatever entities.

I think you mean integrations or custom integrations or apps here?

Scripts are the same as automations, except automations also include triggers.

and
The Home Assistant Cookbook - Index.