-
Notifications
You must be signed in to change notification settings - Fork 7
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
card for cover. #1
Comments
Hello @madmicio very nice! How far are you with the scripts and what is not working right now? For the click action on the button in the html you can do something like this:
So when you click the button in calls a js function with the name
hope it helps you a bit if you need more help let me know and maybe share your code than i can look at it :) |
Hi!
to
with your code, as soon as I loaded the page the scripts started, adding e => the code starts only when I click the code:
to
now I have another desire: to activate and deactivate an automation with a button toggle.
but I have difficulty with the appearance of the button.
but how do I understand the status of my specific automation? |
how can I change the name of the card in order to use your original with the lights and mine with the covers? |
You have to change 2 parts first Rename the class to a new name, so CustomSmartHomePanelCard can be CustomSmartCoversPanelCard or something second use the class you just renamed and change the custom-smart-home-panel-card to something like custom-smart-covers-panel-card |
ok. work perfectly the most complicated question remains. it might be useful to insert the buttons on the left as different entities than the entities present in the main page, directly from the lovelace configuration, but honestly I wouldn't know how to do it |
He man don't know how your lovelace configuration for the card looks like now but if you look at the config of the card i made you can add something like buttons with an array off entities and configuration for the buttons which can be used in the card to create the buttons with the right entity for example:
So we got buttons in the configuration.
This code will generate a button for each row in buttons with the right name and icon and the given entity will be used in the click function on the button. hope this helps you a bit. |
where is the error?
|
hard to say. any console errors in browser? |
any updates on the extra buttons? |
hello, I took the liberty of modifying your card to make it work with the covers.
everything works perfectly, I just want to call Home Assistant scripts with the left buttons.
can you help me?
The text was updated successfully, but these errors were encountered: