-
Notifications
You must be signed in to change notification settings - Fork 441
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
Vertical buttons custom state #66
Vertical buttons custom state #66
Conversation
Also added possibility to specify active color as a variable
At the risk of being really stupid, but, is this Github rep still being managed by anyone? |
Unfortunately, this is not such a stupid question :( @Paddy0174 last activities were more than a month ago. I have also tried to write to him via the Home Assistant forum. So far, unfortunately, without feedback. |
Yeah, unfortunately I don't know either and hope he's well too. |
I too have written to him on the home assistant forum. No reply. Last seen approx 25 Nov. |
It should be possible to continue to maintain the code base because paddy created an organization for this repo instead of managing it on his own. But I don't know who was added to the Minimalist-UI org. But let's hope he's fine first of all. 🤞 |
Unfortunately, if he hasn't added anyone to the organization, that won't do much good either. :-( Unfortunately, at least there are no public members: https://github.com/orgs/UI-Lovelace-Minimalist/people |
Would one solution to this be that one with good knowledge, and maybe someone that we know has contributed to the projected forks this repo and immediately creates such an org for the FORK? |
Hi |
No need for a fork. If @TBens realy is an administrator of this Organisation he can also give admin rights to someone from the contributors. But yeah, let's wait some more days. |
H, like I wrote already in #34 |
It looks like there are currently merge conflicts due to the recent changes in the DEV Branch. Could you please have another look at it @saxel |
Sure, I'll look into it :) |
@saxel since this change removed the option for scenes in the vertical buttons, how should we use a button to call a scene? (e.g., activate night mode, movie mode, away mode, etc.) I duplicated
But I really don't want to maintain a custom card just for that. Is there a better way to do this using the existing card? |
The inteded wyay of using the cards is to use inputboolean or inputselect to choose/ativate the scene and then have an automation that triggers on the state change to start/end the scene. With inputboolean you can toggle a scene and with input select swtich between scenes. With an automation you can also store the current state of the entities and restore that afterwards. I can add support for the scene in the vertical button as well, I can submit a pr later today if you want to use it as you have before. Let me know. |
Trying to understand here -- so I should create an input boolean helper, then have that input boolean activate an automation to turn on the scene? Right now I only have the scenes created, but it shouldn't be too much trouble to create the helper and the automation that is triggered by the helper. Or should it be even easier than that? Not sure we need a code change yet; this might just be a knowledge gap on my part. |
Yes, thats the approach. The original vertical buttons only supported input_select to switch between scenes, we just added the input_boolean to make it toggle. I think I added support for switch and light to support other requests. so making it toggle a scene is not that hard. This is one of my automations that also create a snapshot of the entities which is restored when i untoggle the scene.
|
How does it go back to your stored snapshot after you toggle that |
Also for what it's worth I think I'm going with the
|
The default behavious is run when the button is off and this does the restore and runs the stored scene with the saved states |
Added an extension of vertical_buttons template so the button can be active depending on the state of the entity. This is how TBens managed the "Scenes" by having an input_select, and when tapping the button card the service for selecting the option is called.
configuration.yaml
lovelace-minimalist.yaml
The new template is a replacement of the vertical_buttons_colorname, and removes the need for duplicating the code for each color, so I removed the templates
vertical_buttons_blue
andvertical_buttons_green
as I didn't want to create new templates for the additional colors that we could have. But that also means it could break the dashboard if anyone was using those. Similarly I also removedscene
,scene_blue
andscene_green
. Let me know if you have any concerns, or disagree with the approach.