Wall-mounted tablet dashboard config as seen in my YouTube video (https://www.youtube.com/watch?v=Wr7s_49w9VA)
![Screenshot 2024-02-10 at 8 46 18โฏAM](https://private-user-images.githubusercontent.com/121106900/303840353-462097c4-b3cf-4529-90f8-1bcfb4f361d4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM2OTQ4OTksIm5iZiI6MTcyMzY5NDU5OSwicGF0aCI6Ii8xMjExMDY5MDAvMzAzODQwMzUzLTQ2MjA5N2M0LWIzY2YtNDUyOS05MGY4LTFiY2ZiNGYzNjFkNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxNVQwNDAzMTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNzQ0NWU5ZmFjOTA3ZTJhMmZlZDZhNzNmNGVmMjExNDcyNzAyMDI2ODM5ZmQ1ZTkzZGRjZjIzYTZmZTFlMjNmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.KmiUW-QnLvBbWC7rGj_5GbPdkQEvdsabU95fVbZ5bOw)
Running HA OS on a Raspberry Pi 3B+. Using an Amazon Fire HD 10 running Android WallPanel for the dashboard.
All these are available in HACS.
lovelace-mushroom (used under the clock in the sidebar)
browser-mod (optional, used for popups on the buttons on the bottom of the screen)
Custom Brand Icons (optional, used in place of the built in MDI icons for some buttons)
Credit where credit is due: The layout of the dashboard was heavily inspired by matt8707's tablet dashboard, which you can find here: https://github.com/matt8707/hass-config. I reused some of the button-card templates, replaced the sidebar with a vertical-stack-in-card, and deleted the custom icon config so I could use the built-in MDI icons.
I'm sure there's probably code in there I don't need, as the actual card config doesn't even start until line 2696 ๐... however it's been working great for me for more than 6 months now, so I haven't seen a reason to waste time removing it.
It's not necessary, but I recommend enabling the theme.yaml file on your tablet, as I designed this dashboard with that theme in mind. It's a smattering of stock HA, UI-Lovelace-Minimalist, and matt8707's theme, so it's a total mess too, but should work just fine.
If you don't have them already, add the following lines to your configuration.yaml to enable the themes folder:
frontend:
themes: !include_dir_merge_named themes
This ensures that Home Assistant knows where to find your custom themes.
Sometimes a shadow will appear under the cards in the sidebar despite them being positioned inside a card that's supposed to remove them. Here's an example from my mobile dashboard:
![Screenshot 2024-03-05 at 7 25 04โฏPM](https://private-user-images.githubusercontent.com/121106900/310318835-5f0879f6-79d5-4b21-8cba-3727b7f5626c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM2OTQ4OTksIm5iZiI6MTcyMzY5NDU5OSwicGF0aCI6Ii8xMjExMDY5MDAvMzEwMzE4ODM1LTVmMDg3OWY2LTc5ZDUtNGIyMS04Y2JhLTM3MjdiN2Y1NjI2Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxNVQwNDAzMTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03YjQ3Yzg3MTE2YmExNTQ0N2IyY2M0ZGI0YTNmOTVlZjFmODViNTcyNzVhYmM3MDY1ZGY5NTk2MzdlYmIyMTRjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.C9KeaovdFSWLSHoD85_KtBSpUg4eE_DllEGpfWVFo1I)
I have no idea what causes this. If you're seeing something along these lines, don't worry, you can use card-mod to remove the shadow manually. Put this code below the card config (you may have to click show code editor first):
card_mod:
style: |
ha-card {
box-shadow: none
}
As mentioned in the video, I use some custom template sensors to return the day of the week and 12 hour time for usage at the top of the sidebar. To get these working on your instance, add the following code to your configuration.yaml:
sensor:
- platform: template
sensors:
12 hour time sensor:
timenew:
friendly_name: "XTime"
value_template: >
{% set time = states('sensor.time') %}
{% set hour = time[:2]|int %}
{% set timenew = '{:2d}:{}'.format(hour if hour == 12 else hour % 12, time[3:5]) %}
{% set hournew = timenew[:2]|int %}
{% set hournew2 = (hournew + 12 if hournew == 0 else hournew) %}
{{ '{:2d}:{} {}'.format(hournew2 if hournew2 == 12 else hournew % 12, timenew[3:5], 'PM' if hour>11 else 'AM') }}
Day of the week sensor:
weekday:
friendly_name: Weekday
value_template: >
{% set weekday = now().weekday() %}
{% if (weekday == 0) %} Monday
{% elif (weekday == 1) %} Tuesday
{% elif (weekday == 2) %} Wednesday
{% elif (weekday == 3) %} Thursday
{% elif (weekday == 4) %} Friday
{% elif (weekday == 5) %} Saturday
{% elif (weekday == 6) %} Sunday
{% endif %}
Month of the year sensor:
month:
friendly_name: Month
value_template: >
{% set weekday = now().month %}
{% if (weekday == 1) %} January
{% elif (weekday == 2) %} February
{% elif (weekday == 3) %} March
{% elif (weekday == 4) %} April
{% elif (weekday == 5) %} May
{% elif (weekday == 6) %} June
{% elif (weekday == 7) %} July
{% elif (weekday == 8) %} August
{% elif (weekday == 9) %} September
{% elif (weekday == 10) %} October
{% elif (weekday == 11) %} November
{% elif (weekday == 12) %} December
{% endif %}
Please star this repository if you find it useful! ๐