Skip to content

Allow changing the host/instance for existing scripts #1999

@Eistee82

Description

@Eistee82

The Problem

I currently run a setup with multiple ioBroker hosts on different systems, and I have multiple JavaScript adapter instances running across these hosts. When I create a new script, I can choose which JavaScript instance (and thus, which host) it will run on. However, if a script is already created and assigned to a specific instance, there is no direct option to change its assigned instance to a different one on another host.

The Proposed Solution

I propose adding a feature to allow users to change the host/instance for an existing script, similar to how the host can be changed for an entire adapter instance in the ioBroker administrative interface.

This would involve:

Adding a selection option (e.g., a dropdown menu) to the script's settings or context menu in the ioBroker Script Engine (Admin UI).

The dropdown should list all available JavaScript instances across all connected hosts.

Selecting a new instance/host would update the script's configuration to run on the newly selected instance.

Why this is helpful

This feature would significantly improve flexibility and management in multi-host setups, making it easier to:

  • Migrate scripts between hosts for load balancing or system maintenance.
  • Reorganize script execution without needing to manually copy/paste and recreate scripts, which can be time-consuming and error-prone.

Thank you for considering this feature request! 🚀

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions