# \[FEATURE REQUEST\] - Custom queue or commands - Button in GUI

**URL:** <https://community.victronenergy.com/t/feature-request-custom-queue-or-commands-button-in-gui/321>\
**Category:** Q&A and troubleshooting\
**Tags:** diy\
**Created:** [1 August 2024 10:57 UTC](https://community.victronenergy.com/t/feature-request-custom-queue-or-commands-button-in-gui/321 "2024-08-01T10:57:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![podarok](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/podarok/32/3687_2.png) [@podarok](https://community.victronenergy.com/u/podarok)\
**Post date:** [1 August 2024 10:57 UTC](https://community.victronenergy.com/t/feature-request-custom-queue-or-commands-button-in-gui/321/1 "2024-08-01T10:57:09Z")

</div>

Hi, community

As a suggestion - ability to create a custom command as a button for complex systems.  
That button should be able to run other commands in predefined queue

Example - Shutdown system on maintenance.

In my setup for that I need

- do a hardware bypass on my Power Box in order to unplug all my Victron hardware from IN and OUT ( this can’t be automated, not part of current feature request )
- Go to MultiRS - put it to OFF mode
- Go to MPPT RS - put it to OFF mode
- Go to SmartMPPT 150/70 - put it to OFF mode
- Go to Cerbo - shutdown
- Go to Lynx Smart BMS - off the contactor

Only then I can do hardware work, like add/remove battery, or connect/disconnect anything in a system

Would be cool to have ability to define steps/commands and create a button in e.g gui-v2 on sidebar screen.  
Especially for beta testers )

---

<div class="post-metadata">

**Author:** ![alexpescaru](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/alexpescaru/32/270_2.png) [@alexpescaru](https://community.victronenergy.com/u/alexpescaru)\
**Post date:** [1 August 2024 12:26 UTC](https://community.victronenergy.com/t/feature-request-custom-queue-or-commands-button-in-gui/321/2 "2024-08-01T12:26:18Z")

</div>

Just an idea…

1. Create a python class inside which the init function will create a user defined path/variable in d-bus
2. Add a switch on any desired Cerbo’s pages, like the one(s) used for switching the relay states.
3. That switch will modify that d-bus path/variable created on step 1.
4. Monitor that d-bus path/variable inside a timer function that runs periodically, for example once every second, and when the variable changes state, perform there your desired action(s).
5. Launch that script like any other service at system boot.

Being a d-bus variable you’ll also have the advantage to trigger it from any other place / means.

---

<div class="post-metadata">

**Author:** ![podarok](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/podarok/32/3687_2.png) [@podarok](https://community.victronenergy.com/u/podarok)\
**Post date:** [1 August 2024 12:29 UTC](https://community.victronenergy.com/t/feature-request-custom-queue-or-commands-button-in-gui/321/3 "2024-08-01T12:29:33Z")

</div>

Do you have a reference to example of item 2?

---

<div class="post-metadata">

**Author:** ![alexpescaru](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/alexpescaru/32/270_2.png) [@alexpescaru](https://community.victronenergy.com/u/alexpescaru)\
**Post date:** [1 August 2024 12:31 UTC](https://community.victronenergy.com/t/feature-request-custom-queue-or-commands-button-in-gui/321/4 "2024-08-01T12:31:29Z")

</div>

/opt/victronenergy/gui/qml/PageSettingsRelay.qml

For GUI v1, I don’t use v2…

---

<div class="post-metadata">

**Author:** ![podarok](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/podarok/32/3687_2.png) [@podarok](https://community.victronenergy.com/u/podarok)\
**Post date:** [1 August 2024 12:33 UTC](https://community.victronenergy.com/t/feature-request-custom-queue-or-commands-button-in-gui/321/5 "2024-08-01T12:33:45Z")

</div>

I’m more to v2, so will try to do this via Node-RED possibly.
