Love the idea, could you provide a little bit more of direction ?
So basically the idea is to use Home Assistant’s REST API instead of loading into Lovelace/Home Assistant. It is MUCH lighter.
To do that you just need to create a Long-Lived API Access Token inside Home Assistant that the html page uses to authenticate into HASS. You create that token in the user profile menu under the Security tab.
Next you’ll want to create a HTML file in the “www” subfolder in HASS’s config folder, which you point your fridge’s browser to.
The page just runs a simple javascript loop that pings /api/states every X seconds using the access token you created, and you can style your “cards” however you desire.
Example html page:
<html>
<body>
<h1>Sun Status: <span id="sun-state">Loading...</span></h1>
<script>
const TOKEN = 'Put your generated API token here';
async function checkSun() {
try {
// Ping Home Assistant
const res = await fetch('/api/states/sun.sun', {
headers: { 'Authorization': `Bearer ${TOKEN}` }
});
// Parse the data and update the text
const data = await res.json();
document.getElementById('sun-state').innerText = data.state;
} catch (error) {
document.getElementById('sun-state').innerText = "Error connecting";
}
}
// Run immediately, then check again every 10 seconds
checkSun();
setInterval(checkSun, 10000);
</script>
</body>
</html>
I got this :
type: custom:youtube-video-card
video_id: XG-6PHWsxoU
autoplay: true
loop: true
view_layout:
position: sidebar
and still it does got to the screensaver. do you have a screen saver enabled ?
I would love to not disable the screensaver because i want the screen to turn off at night, so i need to hide/disable the trick for the night
the best would be enable disable the screen by HA.
Like i would love to use my presence sensor in the kitchen to turn on or off the screen of the fridge
Has anyone tried using an old Samsung phone as the actual Home Assistant display, instead of relying on the Family Hub browser?
My idea would be to leave an old Galaxy S21 permanently plugged in, open in the Home Assistant Companion App, with “Keep screen on” enabled, and mirror it to the fridge using Smart View. That way the phone does all the rendering/loading, there is no browser address bar or Family Hub browser performance issue, and the fridge is effectively just the touchscreen display.
The part I am unsure about is the long-term behaviour of Smart View / Family Hub:
- While a phone is continuously mirrored, does the fridge screen still go into its normal sleep/screensaver mode?
- When you wake the fridge screen by touching it, does it resume the existing Smart View session automatically?
- Does the phone remain mirrored and interactive after several hours or overnight?
- Does Smart View disconnect regularly, for example after the fridge screen sleeps, Wi-Fi briefly drops, or the fridge updates/restarts?
- If it disconnects, can it reconnect automatically, or do you need to manually start Smart View again on the phone and/or fridge?
- Has anyone used this kind of setup reliably for weeks or months?
I am considering a Samsung Family Hub fridge, but only if this could work as a reasonably hands-off Home Assistant panel. Real-world experience would be very helpful.
read,what im posted. no need phone,mirror,smartview.works like a charm.fridger wakes up and the page appears in 0,5 seconds.
● Custom HUB Dashboard for Home Assistant
A simple local web server that serves a custom HTML page with your HA data. No cloud needed — works on your home network.
How it works
HUB browser (local network)
→ Node.js server :8098
→ Home Assistant API
Requirements
-
Home Assistant (any install)
-
Node.js addon or SSH access to run Node.js
-
Files saved to /share/ (accessible from HA addons)
Setup
- Create /share/myapp/server.js
const http = require('http');
const fs = require('fs');
const HA_TOKEN = process.env.SUPERVISOR_TOKEN;
const PORT = 8098;
http.createServer(async (req, res) => {
if (req.url === '/') {
res.writeHead(200, { 'Content-Type': 'text/html' });
res.end(fs.readFileSync('/share/myapp/index.html'));
return;
}
if (req.url === '/data') {
const r = await fetch('http://supervisor/core/api/states/sensor.temperature', {
headers: { Authorization: 'Bearer ' + HA_TOKEN }
});
const data = await r.json();
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ temp: data.state }));
}
}).listen(PORT);
2. Create /share/myapp/index.html
Loading...
- Run the server
node /share/myapp/server.js
4. Open on your FamilyHUB
http://192.168.1.YOUR_HA_IP:8098
Key points
- SUPERVISOR_TOKEN is automatically available inside HA addons — no config needed
- Any HA entity state is accessible via http://supervisor/core/api/states/ENTITY_ID
- Call HA services with a POST to http://supervisor/core/api/services/DOMAIN/SERVICE
- Style the HTML however you want — full control over the UI
AS this solution created by Claude AI,i cant explain more detailed,how to do this,because i dont know. But this solution works on my Family HUB,on my Huawei watch, and on old samsung tablet.For more help ask AI.Sorry about my english.(im estonian) Watch video in link sbs example
I have a fully visible code example of a similar solution if that's helpful for anyone too: GitHub - rohankapoorcom/splash: Lightweight standalone Home Assistant dashboard for Samsung Tizen smart fridge · GitHub
It's also built primarily with AI, but I do fully review all of it's working before merging and deploying.
I think the couple of key differences in our approach is that I used the websocket API instead of the REST one and I built it in a standalone docker container.
