Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat(home): make the rest of the lane translatable, mirror it for RTL, and respect reduced motion

nirholasa6d443130d5b
diff --git a/pages/home-scene.html b/pages/home-scene.html
index 146f659eb..20dd39010 100644
--- a/pages/home-scene.html
+++ b/pages/home-scene.html
@@ -4,8 +4,8 @@
<script>/* three.ws theme boot */(function(){document.documentElement.classList.add('js');try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
- <title>Your home, live · three.ws</title>
- <meta name="description" content="A live 3D model of your house driven by Home Assistant: every room lit the way the real room is lit, every door and lock shown as it really is, and your agent standing in it." />
+ <title data-i18n="home_scene.meta_title">Your home, live · three.ws</title>
+ <meta name="description" content="A live 3D model of your house driven by Home Assistant: every room lit the way the real room is lit, every door and lock shown as it really is, and your agent standing in it." data-i18n-attr="content:home_scene.meta_description" />
<meta name="robots" content="noindex, follow" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="stylesheet" href="/style.css" />
@@ -20,19 +20,19 @@
<div class="hs-bar">
<a class="hs-back" href="/home">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 12H5M12 19l-7-7 7-7" /></svg>
- <span>Homes</span>
+ <span data-i18n="home_scene.back">Homes</span>
</a>
- <h1 class="hs-title" id="hs-title">Loading your home</h1>
- <span class="hs-pill" id="hs-status" data-status="connecting" role="status">Connecting</span>
+ <h1 class="hs-title" id="hs-title" data-i18n="home_scene.loading_title">Loading your home</h1>
+ <span class="hs-pill" id="hs-status" data-status="connecting" role="status" data-i18n="home_scene.status_connecting">Connecting</span>
<span class="hs-spacer"></span>
- <button type="button" class="hs-btn" id="hs-view-3d" aria-pressed="true">3D</button>
- <button type="button" class="hs-btn" id="hs-view-2d" aria-pressed="false">2D</button>
- <button type="button" class="hs-btn" id="hs-reconnect" hidden>Reconnect</button>
+ <button type="button" class="hs-btn" id="hs-view-3d" aria-pressed="true" data-i18n-attr="aria-label:home_scene.view_3d_aria" aria-label="Show the 3D house">3D</button>
+ <button type="button" class="hs-btn" id="hs-view-2d" aria-pressed="false" data-i18n-attr="aria-label:home_scene.view_2d_aria" aria-label="Show the house as a room and device list">2D</button>
+ <button type="button" class="hs-btn" id="hs-reconnect" hidden data-i18n="home_scene.reconnect">Reconnect</button>
</div>
<div class="hs-body">
- <nav class="hs-rail" id="hs-rail" aria-label="Rooms">
- <p class="hs-rail-head">Rooms</p>
+ <nav class="hs-rail" id="hs-rail" aria-label="Rooms" data-i18n-attr="aria-label:home_scene.rail_aria">
+ <p class="hs-rail-head" data-i18n="home_scene.rail_head">Rooms</p>
<div id="hs-rooms" class="hs-skeleton" aria-busy="true">
<span></span><span></span><span></span><span></span>
</div>
@@ -40,8 +40,8 @@
<main class="hs-stage" id="hs-stage" tabindex="-1"></main>
- <aside class="hs-panel" id="hs-panel" aria-label="Selected device">
- <p class="hs-panel-empty" id="hs-panel-empty">Pick a room on the left, or click anything in the house to see what it is and act on it.</p>
+ <aside class="hs-panel" id="hs-panel" aria-label="Selected device" data-i18n-attr="aria-label:home_scene.panel_aria">
+ <p class="hs-panel-empty" id="hs-panel-empty" data-i18n="home_scene.panel_empty">Pick a room on the left, or click anything in the house to see what it is and act on it.</p>
<div id="hs-inspector" hidden></div>
</aside>
</div>
@@ -51,5 +51,7 @@
<script src="/nav.js"></script>
<script type="module" src="/src/home/scene.js"></script>
+ <!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
+ <script type="module" src="/i18n.js"></script>
</body>
</html>
diff --git a/pages/smart-home-join.html b/pages/smart-home-join.html
index fbc7af963..6be8bbe2e 100644
--- a/pages/smart-home-join.html
+++ b/pages/smart-home-join.html
@@ -4,18 +4,18 @@
<script>/* three.ws theme boot */(function(){document.documentElement.classList.add('js');try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Join a home · Accept an invitation to a household · three.ws</title>
- <meta name="description" content="Accept an invitation to somebody's connected home. The link tells you which home it is and exactly what you would be able to do there before you sign in, and it works once." />
+ <title data-i18n="home_join.meta_title">Join a home · Accept an invitation to a household · three.ws</title>
+ <meta name="description" content="Accept an invitation to somebody's connected home. The link tells you which home it is and exactly what you would be able to do there before you sign in, and it works once." data-i18n-attr="content:home_join.meta_description" />
<link rel="canonical" href="https://three.ws/smart-home/join" />
<meta name="robots" content="noindex, follow" />
- <meta property="og:title" content="Join a home · three.ws" />
- <meta property="og:description" content="An invitation to a household: which home, what you would be able to do there, and what you would never be able to do." />
+ <meta property="og:title" content="Join a home · three.ws" data-i18n-attr="content:home_join.meta_og_title" />
+ <meta property="og:description" content="An invitation to a household: which home, what you would be able to do there, and what you would never be able to do." data-i18n-attr="content:home_join.meta_og_description" />
<meta property="og:url" content="https://three.ws/smart-home/join" />
<meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Join+a+home&amp;d=An+invitation+to+a+household%3A+which+home%2C+and+what+you+could+do+there.&amp;p=%2Fsmart-home%2Fjoin" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@trythreews" />
- <meta name="twitter:title" content="Join a home · three.ws" />
- <meta name="twitter:description" content="An invitation to a household: which home, what you would be able to do there, and what you would never be able to do." />
+ <meta name="twitter:title" content="Join a home · three.ws" data-i18n-attr="content:home_join.meta_twitter_title" />
+ <meta name="twitter:description" content="An invitation to a household: which home, what you would be able to do there, and what you would never be able to do." data-i18n-attr="content:home_join.meta_twitter_description" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="/nav.css" />
@@ -25,9 +25,9 @@
<body>
<main class="hm-wrap" id="main">
<header class="hm-hero">
- <p class="hm-eyebrow">Smart home</p>
- <h1 class="hm-title">You were invited to a home</h1>
- <p class="hm-lede">
+ <p class="hm-eyebrow" data-i18n="home_join.eyebrow">Smart home</p>
+ <h1 class="hm-title" data-i18n="home_join.title">You were invited to a home</h1>
+ <p class="hm-lede" data-i18n="home_join.lede">
Somebody has given you access to a house they connected to three.ws. Before you accept,
this page tells you which home it is, what you would be able to do there, and what you
would never be able to do. The link works once.
@@ -49,14 +49,14 @@
<noscript>
<section class="hm-panel">
- <h2 class="hm-panel-title">JavaScript is required here</h2>
- <p class="hm-panel-sub">
+ <h2 class="hm-panel-title" data-i18n="home_join.noscript_title">JavaScript is required here</h2>
+ <p class="hm-panel-sub" data-i18n="home_join.noscript_body">
Accepting an invitation reads it from your account, so this page needs JavaScript. The
invitation itself is unaffected and still works: turn JavaScript on and open the link
again.
</p>
<div class="hm-actions">
- <a class="hm-btn hm-btn-ghost" href="/smart-home">Your homes</a>
+ <a class="hm-btn hm-btn-ghost" href="/smart-home" data-i18n="home_join.noscript_back">Your homes</a>
</div>
</section>
</noscript>
@@ -64,5 +64,7 @@
<script src="/nav.js"></script>
<script type="module" src="/src/home/join.js"></script>
+ <!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
+ <script type="module" src="/i18n.js"></script>
</body>
</html>
diff --git a/pages/smart-home-plan.html b/pages/smart-home-plan.html
index 087eda59c..0ea5c5c95 100644
--- a/pages/smart-home-plan.html
+++ b/pages/smart-home-plan.html
@@ -4,17 +4,17 @@
<script>/* three.ws theme boot */(function(){document.documentElement.classList.add('js');try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Home plan · What your homes use and when it resets · three.ws</title>
- <meta name="description" content="What your three.ws plan covers for connected homes: homes, household seats, live screens, voice minutes and agent turns, with what you have used and when it resets. Locking up, closing a garage and arming an alarm are never limited." />
+ <title data-i18n="home_plan.meta_title">Home plan · What your homes use and when it resets · three.ws</title>
+ <meta name="description" content="What your three.ws plan covers for connected homes: homes, household seats, live screens, voice minutes and agent turns, with what you have used and when it resets. Locking up, closing a garage and arming an alarm are never limited." data-i18n-attr="content:home_plan.meta_description" />
<link rel="canonical" href="https://three.ws/smart-home/plan" />
- <meta property="og:title" content="Home plan · three.ws" />
- <meta property="og:description" content="What your plan covers for connected homes, what you have used, and when it resets. Safety actions are never limited." />
+ <meta property="og:title" content="Home plan · three.ws" data-i18n-attr="content:home_plan.meta_og_title" />
+ <meta property="og:description" content="What your plan covers for connected homes, what you have used, and when it resets. Safety actions are never limited." data-i18n-attr="content:home_plan.meta_og_description" />
<meta property="og:url" content="https://three.ws/smart-home/plan" />
<meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Home+plan&amp;d=What+your+plan+covers+for+connected+homes%2C+what+you+have+used%2C+and+when+it+resets.&amp;p=%2Fsmart-home%2Fplan" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@trythreews" />
- <meta name="twitter:title" content="Home plan · three.ws" />
- <meta name="twitter:description" content="What your plan covers for connected homes, what you have used, and when it resets. Safety actions are never limited." />
+ <meta name="twitter:title" content="Home plan · three.ws" data-i18n-attr="content:home_plan.meta_twitter_title" />
+ <meta name="twitter:description" content="What your plan covers for connected homes, what you have used, and when it resets. Safety actions are never limited." data-i18n-attr="content:home_plan.meta_twitter_description" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="/nav.css" />
@@ -57,15 +57,15 @@
<noscript>
<section class="hm-panel">
- <h2 class="hm-panel-title">JavaScript is required here</h2>
- <p class="hm-panel-sub">
+ <h2 class="hm-panel-title" data-i18n="home_plan.noscript_title">JavaScript is required here</h2>
+ <p class="hm-panel-sub" data-i18n="home_plan.noscript_body">
This page reads your live usage from your account, so it needs JavaScript. Your limits
and your homes are unaffected either way, and every safety action keeps working: a plan
never stops you locking up.
</p>
<div class="hm-actions">
- <a class="hm-btn hm-btn-ghost" href="/smart-home">Back to your homes</a>
- <a class="hm-btn hm-btn-ghost" href="/pricing">See plans</a>
+ <a class="hm-btn hm-btn-ghost" href="/smart-home" data-i18n="home_plan.noscript_back">Back to your homes</a>
+ <a class="hm-btn hm-btn-ghost" href="/pricing" data-i18n="home_plan.noscript_plans">See plans</a>
</div>
</section>
</noscript>
@@ -73,5 +73,7 @@
<script src="/nav.js"></script>
<script type="module" src="/src/home/plan.js"></script>
+ <!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
+ <script type="module" src="/i18n.js"></script>
</body>
</html>
diff --git a/pages/smart-home-satellite.html b/pages/smart-home-satellite.html
index 2013d213e..c30c7807b 100644
--- a/pages/smart-home-satellite.html
+++ b/pages/smart-home-satellite.html
@@ -4,17 +4,17 @@
<script>/* three.ws theme boot */(function(){document.documentElement.classList.add('js');try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Voice satellite · Give your Home Assistant assistant a face · three.ws</title>
- <meta name="description" content="Point an existing Home Assistant voice pipeline at a three.ws agent and it gains a face, an expression, lip sync and a body. Home Assistant keeps the wake word, the transcription and the answer; three.ws is the face." />
+ <title data-i18n="home_satellite.meta_title">Voice satellite · Give your Home Assistant assistant a face · three.ws</title>
+ <meta name="description" content="Point an existing Home Assistant voice pipeline at a three.ws agent and it gains a face, an expression, lip sync and a body. Home Assistant keeps the wake word, the transcription and the answer; three.ws is the face." data-i18n-attr="content:home_satellite.meta_description" />
<link rel="canonical" href="https://three.ws/smart-home/satellite" />
- <meta property="og:title" content="Voice satellite · three.ws" />
- <meta property="og:description" content="Your Home Assistant voice assistant is a speaker with an LED ring. Give it a face, lip sync and a body that turns toward you." />
+ <meta property="og:title" content="Voice satellite · three.ws" data-i18n-attr="content:home_satellite.meta_og_title" />
+ <meta property="og:description" content="Your Home Assistant voice assistant is a speaker with an LED ring. Give it a face, lip sync and a body that turns toward you." data-i18n-attr="content:home_satellite.meta_og_description" />
<meta property="og:url" content="https://three.ws/smart-home/satellite" />
<meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Voice+satellite&amp;d=Give+your+Home+Assistant+voice+assistant+a+face%2C+lip+sync+and+a+body.&amp;p=%2Fsmart-home%2Fsatellite" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@trythreews" />
- <meta name="twitter:title" content="Voice satellite · three.ws" />
- <meta name="twitter:description" content="Your Home Assistant voice assistant is a speaker with an LED ring. Give it a face, lip sync and a body that turns toward you." />
+ <meta name="twitter:title" content="Voice satellite · three.ws" data-i18n-attr="content:home_satellite.meta_twitter_title" />
+ <meta name="twitter:description" content="Your Home Assistant voice assistant is a speaker with an LED ring. Give it a face, lip sync and a body that turns toward you." data-i18n-attr="content:home_satellite.meta_twitter_description" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="/nav.css" />
@@ -24,9 +24,9 @@
<body>
<main class="hs-wrap" id="main">
<header>
- <p class="hs-eyebrow">Voice satellite</p>
- <h1 class="hs-title">Your voice assistant already works. Give it a face.</h1>
- <p class="hs-lede">
+ <p class="hs-eyebrow" data-i18n="home_satellite.eyebrow">Voice satellite</p>
+ <h1 class="hs-title" data-i18n="home_satellite.title">Your voice assistant already works. Give it a face.</h1>
+ <p class="hs-lede" data-i18n="home_satellite.lede">
Home Assistant owns the hard part: the wake word, the speech recognition, the intent, the
answer, and every device in your house. What it does not have is a body. Pair a three.ws
satellite and the same pipeline you already use gets one, lip-synced to its own speech, on
@@ -51,13 +51,13 @@
<noscript>
<section class="hs-panel">
- <h2 class="hs-panel-title">JavaScript is required here</h2>
- <p class="hs-panel-sub">
+ <h2 class="hs-panel-title" data-i18n="home_satellite.noscript_title">JavaScript is required here</h2>
+ <p class="hs-panel-sub" data-i18n="home_satellite.noscript_body">
This page opens a live audio session and renders a 3D avatar, so it needs JavaScript.
The satellite itself does not: it runs beside Home Assistant on your own network and
keeps your voice pipeline working whether or not any browser is open.
</p>
- <p class="hs-panel-sub">
+ <p class="hs-panel-sub" data-i18n-html="home_satellite.noscript_guide">
<a href="/docs/home-satellite">Read the setup guide</a> for the install steps in plain text.
</p>
</section>
@@ -66,5 +66,7 @@
<script src="/nav.js"></script>
<script type="module" src="/src/home/satellite.js"></script>
+ <!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
+ <script type="module" src="/i18n.js"></script>
</body>
</html>
diff --git a/public/home-scene.css b/public/home-scene.css
index 8406ae40a..fd418bfdb 100644
--- a/public/home-scene.css
+++ b/public/home-scene.css
@@ -123,8 +123,8 @@
padding: var(--space-md);
background: var(--surface-1);
}
-.hs-rail { border-right: 1px solid var(--stroke); }
-.hs-panel { border-left: 1px solid var(--stroke); }
+.hs-rail { border-inline-end: 1px solid var(--stroke); }
+.hs-panel { border-inline-start: 1px solid var(--stroke); }
.hs-stage {
position: relative;
@@ -189,7 +189,7 @@
color: var(--ink);
font: inherit;
font-size: var(--text-md);
- text-align: left;
+ text-align: start;
cursor: pointer;
transition: background 150ms ease, border-color 150ms ease;
}
@@ -394,13 +394,13 @@
@media (max-width: 1100px) {
.hs-body { grid-template-columns: minmax(11rem, 13rem) minmax(0, 1fr); }
- .hs-panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--stroke); max-height: 40vh; }
+ .hs-panel { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--stroke); max-height: 40vh; }
}
@media (max-width: 760px) {
.hs-shell { height: auto; min-height: 0; }
.hs-body { grid-template-columns: minmax(0, 1fr); }
- .hs-rail { border-right: 0; border-bottom: 1px solid var(--stroke); max-height: 40vh; }
+ .hs-rail { border-inline-end: 0; border-bottom: 1px solid var(--stroke); max-height: 40vh; }
.hs-stage { min-height: 62vh; }
.hs-panel { max-height: none; }
.hs-title { max-width: 14ch; }
diff --git a/public/locales/en.json b/public/locales/en.json
index d1c4c6490..d8e0ddfa0 100644
--- a/public/locales/en.json
+++ b/public/locales/en.json
@@ -9129,11 +9129,63 @@
"your_ai_deserves_a_body": "Your AI deserves<br>a <em>body.</em>",
"your_visitors_walk_together": "Your visitors walk<br><em>together.</em>"
},
+ "home_join": {
+ "eyebrow": "Smart home",
+ "lede": "Somebody has given you access to a house they connected to three.ws. Before you accept, this page tells you which home it is, what you would be able to do there, and what you would never be able to do. The link works once.",
+ "meta_description": "Accept an invitation to somebody's connected home. The link tells you which home it is and exactly what you would be able to do there before you sign in, and it works once.",
+ "meta_og_description": "An invitation to a household: which home, what you would be able to do there, and what you would never be able to do.",
+ "meta_og_title": "Join a home · three.ws",
+ "meta_title": "Join a home · Accept an invitation to a household · three.ws",
+ "meta_twitter_description": "An invitation to a household: which home, what you would be able to do there, and what you would never be able to do.",
+ "meta_twitter_title": "Join a home · three.ws",
+ "noscript_back": "Your homes",
+ "noscript_body": "Accepting an invitation reads it from your account, so this page needs JavaScript. The invitation itself is unaffected and still works: turn JavaScript on and open the link again.",
+ "noscript_title": "JavaScript is required here",
+ "title": "You were invited to a home"
+ },
"home_plan": {
"eyebrow": "Smart home",
"lede": "What your plan covers, what you are using, and when it resets. Every limit is here whether or not you are near it, because a quota you only meet at the moment it stops you is a quota nobody showed you. Locking a door, closing a garage or a valve and arming an alarm are never refused by a limit, on any plan.",
+ "meta_description": "What your three.ws plan covers for connected homes: homes, household seats, live screens, voice minutes and agent turns, with what you have used and when it resets. Locking up, closing a garage and arming an alarm are never limited.",
+ "meta_og_description": "What your plan covers for connected homes, what you have used, and when it resets. Safety actions are never limited.",
+ "meta_og_title": "Home plan · three.ws",
+ "meta_title": "Home plan · What your homes use and when it resets · three.ws",
+ "meta_twitter_description": "What your plan covers for connected homes, what you have used, and when it resets. Safety actions are never limited.",
+ "meta_twitter_title": "Home plan · three.ws",
+ "noscript_back": "Back to your homes",
+ "noscript_body": "This page reads your live usage from your account, so it needs JavaScript. Your limits and your homes are unaffected either way, and every safety action keeps working: a plan never stops you locking up.",
+ "noscript_plans": "See plans",
+ "noscript_title": "JavaScript is required here",
"title": "Your home plan"
},
+ "home_satellite": {
+ "eyebrow": "Voice satellite",
+ "lede": "Home Assistant owns the hard part: the wake word, the speech recognition, the intent, the answer, and every device in your house. What it does not have is a body. Pair a three.ws satellite and the same pipeline you already use gets one, lip-synced to its own speech, on any screen in the house. Close this page and your assistant keeps working exactly as it did.",
+ "meta_description": "Point an existing Home Assistant voice pipeline at a three.ws agent and it gains a face, an expression, lip sync and a body. Home Assistant keeps the wake word, the transcription and the answer; three.ws is the face.",
+ "meta_og_description": "Your Home Assistant voice assistant is a speaker with an LED ring. Give it a face, lip sync and a body that turns toward you.",
+ "meta_og_title": "Voice satellite · three.ws",
+ "meta_title": "Voice satellite · Give your Home Assistant assistant a face · three.ws",
+ "meta_twitter_description": "Your Home Assistant voice assistant is a speaker with an LED ring. Give it a face, lip sync and a body that turns toward you.",
+ "meta_twitter_title": "Voice satellite · three.ws",
+ "noscript_body": "This page opens a live audio session and renders a 3D avatar, so it needs JavaScript. The satellite itself does not: it runs beside Home Assistant on your own network and keeps your voice pipeline working whether or not any browser is open.",
+ "noscript_guide": "<a href=\"/docs/home-satellite\">Read the setup guide</a> for the install steps in plain text.",
+ "noscript_title": "JavaScript is required here",
+ "title": "Your voice assistant already works. Give it a face."
+ },
+ "home_scene": {
+ "back": "Homes",
+ "loading_title": "Loading your home",
+ "meta_description": "A live 3D model of your house driven by Home Assistant: every room lit the way the real room is lit, every door and lock shown as it really is, and your agent standing in it.",
+ "meta_title": "Your home, live · three.ws",
+ "panel_aria": "Selected device",
+ "panel_empty": "Pick a room on the left, or click anything in the house to see what it is and act on it.",
+ "rail_aria": "Rooms",
+ "rail_head": "Rooms",
+ "reconnect": "Reconnect",
+ "status_connecting": "Connecting",
+ "view_2d_aria": "Show the house as a room and device list",
+ "view_3d_aria": "Show the 3D house"
+ },
"hydrate_index": {
"connect_wallet": "Connect Wallet",
"dashboard": "Dashboard",
diff --git a/src/home/scene-render.js b/src/home/scene-render.js
index 1fc27f562..af4193602 100644
--- a/src/home/scene-render.js
+++ b/src/home/scene-render.js
@@ -174,6 +174,8 @@ export function createHomeScene(container, options = {}) {
const scene = new Scene();
const camera = new PerspectiveCamera(46, 1, 0.1, 400);
const controls = new OrbitControls(camera, renderer.domElement);
+ // Reassigned by the reduced-motion watcher below, which cannot run before
+ // the controls exist.
controls.enableDamping = true;
controls.dampingFactor = 0.08;
controls.maxPolarAngle = Math.PI * 0.49;
@@ -221,6 +223,18 @@ export function createHomeScene(container, options = {}) {
const pointer = new Vector2();
const governor = createFrameGovernor();
const focus = trackWindowFocus();
+ // A house is a live readout, so reduced motion cannot mean a frozen scene:
+ // the values still update, they just stop travelling to their new state.
+ // Every damped quantity snaps, and OrbitControls stops coasting after a
+ // drag, which is the motion a vestibular trigger actually notices.
+ const motionQuery =
+ typeof matchMedia === 'function' ? matchMedia('(prefers-reduced-motion: reduce)') : null;
+ let reduceMotion = Boolean(motionQuery?.matches);
+ controls.enableDamping = !reduceMotion;
+ motionQuery?.addEventListener?.('change', (event) => {
+ reduceMotion = event.matches;
+ controls.enableDamping = !reduceMotion;
+ });
let powerSaver = getPowerSaver();
const stopPowerSaver = onPowerSaverChange((on) => {
powerSaver = on;
@@ -666,6 +680,11 @@ export function createHomeScene(container, options = {}) {
}
function damp(current, target, dt) {
+ // Reduced motion arrives, it does not travel. Returning the target is
+ // what turns every transition in the scene off at once, because every
+ // animated quantity in the loop (intensity, highlight, security, the
+ // stale desaturation) goes through this one function.
+ if (reduceMotion) return target;
// Framerate-independent exponential approach: the same visual speed at
// 30 fps and at 144.
return current + (target - current) * (1 - Math.exp(-dt / EASE));
@@ -706,7 +725,7 @@ export function createHomeScene(container, options = {}) {
Math.abs(wasHighlight - record.highlight) > 0.001 ||
cameraMoved;
if (moved || !record.color.equals(record.targetColor) || staleMoving) {
- record.color.lerp(record.targetColor, 1 - Math.exp(-dt / EASE));
+ record.color.lerp(record.targetColor, reduceMotion ? 1 : 1 - Math.exp(-dt / EASE));
commitRoom(record);
}
}
diff --git a/tests/e2e/a11y-top-pages.spec.js b/tests/e2e/a11y-top-pages.spec.js
index 1c414b922..77172602f 100644
--- a/tests/e2e/a11y-top-pages.spec.js
+++ b/tests/e2e/a11y-top-pages.spec.js
@@ -33,11 +33,17 @@ const EXTRA_HIGH_TRAFFIC = [
'/nvidia',
'/pricing',
'/irl',
- // The Home Assistant lane. A voice-controlled house is assistive technology
- // for the people most likely to need it, so /smart-home carries the same
- // hard WCAG floor as the marketing surfaces above it and never rides on its
- // own priority score staying high enough to land in the top 30.
+ // The Home Assistant lane, every public route of it. A voice-controlled
+ // house is assistive technology for the people most likely to need it, so
+ // these carry the same hard WCAG floor as the marketing surfaces above and
+ // never ride on their own priority scores staying high enough to land in
+ // the top 30. The two authed views, /smart-home/:id and /home/:id, are not
+ // here because they need a session and a connected house; they are covered
+ // by the lane's own live suite instead.
'/smart-home',
+ '/smart-home/join',
+ '/smart-home/plan',
+ '/smart-home/satellite',
];
const coveredPaths = new Set(top30.map((p) => p.path));
const extraPages = allPages.filter(