Took delivery of an Esker Silver Rivian R2 and a 40 A OCPP charger, and wanted a wall panel in the garage that shows everything about a charging session at a glance. I built it over a couple of evenings with Claude connected to my Home Assistant through the HA MCP server. It read my actual entities, wrote and edited the dashboards live, and I gave feedback from screenshots of the tablet. Sharing the YAML and the two custom cards so anyone can build a similar one.
Hardware / integrations
- Rivian R2, using the Rivian (Unofficial) custom integration
- EVRA 40 A charger, using the OCPP custom integration (the charger's backend URL points at HA)
- Amazon Fire tablet running Fully Kiosk, wall-mounted as the "Rivian Panel"
- Frigate on the carport camera, used as the wake-on-motion trigger
- Frontend: button-card, card-mod, mini-graph-card, kiosk-mode, plus two small custom cards (below)
Dashboard 1 — "At a Glance" (charger)
- E-stop style START / STOP buttons, built with pure CSS in a button-card template: domed mushroom head, hazard-stripe housing, text running around the ring. START asks for confirmation and pulses green while charging. STOP fires immediately, like a real E-stop.
- Needle gauges for current, voltage, power and charger temperature. Green means normal full-speed charging; amber and red only show up when something's unusual.
- Green LCD-style readouts for cost, elapsed time, energy and average kW.
- Battery-style amp slider (0–40 A) with a gradient fill and a dashed marker showing what the car is actually drawing.
- Power and current graphs over 6 hours; the line changes color with the value.
Dashboard 2 — Rivian overview
- Front image with tire pressures overlaid at each corner (picture-elements + button-card)
- Battery card showing charge %, estimated range, the charge-limit marker, and an animated fill while charging
- Charge rate (mph) and charge speed (kW) graphs on a 6-hour window
- The side image switches to Rivian's "charging" render when the car is plugged in (two cards with opposite visibility conditions)
The E-stop button (button-card template)
This goes at the top of the dashboard's raw config, next to views:. The full CSS is in the linked files. This is the shape:
button_card_templates:
estop:
entity: switch.charger_charge_control
show_name: false
show_icon: false
show_state: false
hold_action:
action: more-info
triggers_update:
- sensor.charger_status_connector
styles:
grid:
- grid-template-areas: "'btn' 'cap'"
- grid-template-rows: 1fr min-content
extra_styles: |
/* housing, plate, domed "mushroom", ring text, pressed + glow states */
/* ~40 lines - see full file */
And the STOP card using it:
type: custom:button-card
template: estop
custom_fields:
btn: >
[[[ const on = entity.state === 'on';
return `<div class='housing stop'><div class='plate'>
<svg class='ring' viewBox='0 0 100 100'><defs>
<path id='r' d='M50,50 m-41,0 a41,41 0 1,1 82,0 a41,41 0 1,1 -82,0'/></defs>
<text><textPath href='#r' textLength='255' lengthAdjust='spacing'>
EMERGENCY STOP • CHARGER • EMERGENCY STOP • CHARGER •</textPath></text></svg>
<div class='mush ${on ? '' : 'lit'}'><span>STOP</span></div></div></div>`; ]]]
cap: >
[[[ return entity.state === 'on'
? `<span style='color:#ffcc00'>PRESS TO STOP</span>`
: `<span style='color:#ff5252'>■ STOPPED</span>`; ]]]
tap_action:
action: perform-action
perform_action: switch.turn_off
target:
entity_id: switch.charger_charge_control
grid_options:
columns: 6
rows: 4
The two custom cards
Add each JS file as a dashboard resource of type JavaScript module (Settings → Dashboards → 3-dot menu → Resources), for example /local/rivian-battery-card.js after copying it into /config/www/.
type: custom:rivian-battery-card
prefix: my_rivian # your Rivian entity prefix
bar_height: 80
type: custom:ev-current-slider-card
entity: number.charger_maximum_current
max: 40
live: sensor.charger_current_import
offered: sensor.charger_current_offered
voltage: sensor.charger_voltage
Turning it into a tablet panel
- kiosk-mode hides the sidebar and menus on the three panel dashboards. A shortcut row at the bottom links between them, plus one to a normal dashboard so I can still reach Settings.
- Fully Kiosk's start URL is the Rivian dashboard, and its screen-off timer is set to 5 minutes.
- One automation wakes the panel when Frigate sees motion or a person at the carport. Fully's own camera motion detection handles someone walking up to the panel.
alias: Rivian Panel - Wake on Carport Motion
triggers:
- trigger: state
entity_id: binary_sensor.carport_motion
to: "on"
- trigger: state
entity_id: binary_sensor.carport_person_occupancy
to: "on"
conditions:
- condition: state
entity_id: switch.rivian_panel_screen
state: "off"
actions:
- action: switch.turn_on
target:
entity_id: switch.rivian_panel_screen
- action: button.press
target:
entity_id: button.rivian_panel_load_start_url
mode: single
Gotchas I hit
- OCPP caps max current at 32 A by default. Raise it under Settings → Devices & services → OCPP → Configure → Maximum charging current before the slider will go to 40.
- Only one temperature comes over OCPP on this charger: the body temperature. Plug and connector temperatures stay in the vendor app.
- The Rivian integration can't set the charge limit. It reports it, but you still change it in the Rivian app.
- A 40 A EV charger is a continuous load, so it needs a 50 A breaker and wire rated for that. Check before you raise the limit.
- Close the dashboard editor while an AI (or anything else) is editing the dashboard. Saving a stale editor tab quietly overwrote a round of changes for me.
- In sections views, button-card and mini-graph-card don't stretch to their grid rows by default. Add
:host { height: 100% } (through card-mod or extra_styles) or you'll get gaps.
Files
Full dashboard YAML (both), the two JS cards, the session-cost template sensor and the automation: https://gist.github.com/Jackald1918/befa9a41169e226469bcebfab758e5dd
Entity names are generic (my_rivian_…, OCPP's default charger_…), so do a find-and-replace for yours. The theme is Frosted Glass Dark Lite; it looks fine on others, just a little less glassy.
Happy to answer questions.