-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
ESP status bar view #72
Comments
I got a bit nerd-sniped yesterday evening, thus I tried implementing the ESP design using HTML/CSS/Jinja template with the custom Lovelace HTML Jinja2 Template card. Preview
Limitations The card determines the dark/light mode based on your device's dark mode settings (not your Home Assistant profile settings), thus the card might pick the wrong dark/light mode if your Home Assistant profile is set to a different dark/light mode than your device. The ESP API, along with this integration, only provides load-shedding schedules for future events, therefore this card won't show events that happened earlier in the day. I decided then to fade out old time slots to not deceive the user that there weren't any outages earlier in the day.
|
O wow this is really amazing! Thanks a lot @ribeirompl. Shout when you're in town and I'll buy you a beer/coffee. |
Brilliant! Great job @ribeirompl! Thank you for sharing! |
@ribeirompl Thanks for this card. It's such a nice addition to my dashboard! I recently started getting an error with this card though. From my logs: Error while processing template. Apart from updating my home assistant to the latest version, nothing changed on my side. Do you perhaps experience the same issue? Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): |
@Viva57 I believe that issue may have been fixed with an update on 28 September. The issue is likely due to having no upcoming scheduled loadshedding. Let me know if you come right 👍 |
Ah, thanks @ribeirompl! I updated my code and tested it for a couple of days. All seems to be good again 🙌🏼 |
Not sure why but I simply cannot find that card in HACS in order to make use of this impressive example. Suggestions? I'm going to try to duplicate this using the Markdown Card to see if I can make that one work for a 2nd option. Edit: The example code works flawlessly using the TailwindCSS Template Card from HACS as well |
Try searching for: |
Real newbie here.... I've faffled around quite a bit and can't work out where/how to do this? What am I missing? Thanks for any guidance! |
Bingo! That worked perfectly.... a great example of "a picture is worth a thousand words"! Depressing viewing, though. Thank you! |
A further newbie question: I managed to work out how to give the card a title: "title: Grahamstown 2 Load shedding" But the title folds over in the displayed card. Is there a way of reducing the text size for the title? |
https://github.com/wernerhp/ha.integration.load_shedding/blob/master/examples/card5.yaml |
Thanks,
Easy as py; sorry for not reading properly
… On 12 Mar 2024, at 20:17, Werner Pieterson ***@***.***> wrote:
https://github.com/wernerhp/ha.integration.load_shedding?tab=readme-ov-file#cards
—
Reply to this email directly, view it on GitHub <#72 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AWOV5HHKR5VG7FKPHBEQ65DYX5BDHAVCNFSM6AAAAAA2KFVYO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJSGI3TQOBUGE>.
You are receiving this because you commented.
|
The ESP details page looks like this
I would like to make this a bit more compact and only show the status bars as a card on a lovelace dashboard, something like this:
Does anyone know how to do this?
The text was updated successfully, but these errors were encountered: