Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide Power devices from Power menu with underscore in the name #1543

Closed
nppc opened this issue Aug 31, 2023 · 1 comment · Fixed by #1545
Closed

Hide Power devices from Power menu with underscore in the name #1543

nppc opened this issue Aug 31, 2023 · 1 comment · Fixed by #1545
Labels
💡 Type: FR Requests a new feature

Comments

@nppc
Copy link

nppc commented Aug 31, 2023

Requested feature:

If I add underscore (_) in front of the power device name, then it will not appear in the drop-down menu under the power button at right top corner.

Similar is made for Macros already.

Solves the following problem:

I have multiple devices connected to host on different pins. There is some prerequisites, when I can turn devices on or off, so they should not appear under Power menu. With physical button (also connected to the host pin) I change the state of host pins defined as power devices. This is done with on_press event of the button with machine.device_power.post_device power API.

Additional information:

Maybe it could be done with virtual mcu on host, but it looks like overkill to run a virtual mcu to do this small job.

@meteyou
Copy link
Member

meteyou commented Sep 2, 2023

Thx for your FR. I just forgot to add it to the power devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Type: FR Requests a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants