You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allow HASS to close its own page via POST /close-hass and make Chromium fullscreen
- Add HTTP listener on configurable port (default 8321) accepting POST /close-hass
- Add public Slint function close-hass-remote() for Rust to trigger page navigation
- Replace --window-size with --start-fullscreen for Chromium
- Update HA page UI to show 'Home Assistant Opened!' status with troubleshooting hints
- Add hass_api_port to Config
- Add python3 to shell.nix for skia-bindings build
b"HTTP/1.1 204 No Content\r\nAccess-Control-Allow-Origin: *\r\nAccess-Control-Allow-Methods: POST, OPTIONS\r\nAccess-Control-Allow-Headers: Content-Type\r\n\r\n",
149
+
);
150
+
}else{
151
+
let _ = stream.write_all(
152
+
b"HTTP/1.1 404 Not Found\r\nContent-Length: 9\r\n\r\nNot Found",
text: root.home-assistant-url != "" ? "Connected to: " + root.home-assistant-url : "No URL configured";
58
+
text: "Chromium is running in fullscreen";
57
59
font-size: 16px;
58
60
color: #cccccc;
59
61
horizontal-alignment: center;
60
-
wrap: word-wrap;
61
62
}
62
-
63
-
Rectangle {
64
-
height: 20px;
63
+
64
+
Rectangle { height: 8px; }
65
+
66
+
Text {
67
+
text: root.home-assistant-url != "" ? root.home-assistant-url : "No URL configured";
68
+
font-size: 13px;
69
+
color: #888888;
70
+
horizontal-alignment: center;
71
+
wrap: word-wrap;
65
72
}
66
-
73
+
74
+
Rectangle { height: 24px; }
75
+
67
76
Text {
68
-
text: "⚠️ Web view integration needed";
77
+
text: "If you see this screen instead of Home Assistant:";
69
78
font-size: 14px;
79
+
font-weight: 600;
70
80
color: #ff9800;
71
81
horizontal-alignment: center;
72
82
}
73
-
74
-
Rectangle {
75
-
height: 10px;
76
-
}
77
-
83
+
78
84
Text {
79
-
text: "if hass did not started,\nconfigure the iframe URL in .config/dramma.toml\nor install chromium huh";
80
-
font-size: 12px;
85
+
text: "• Make sure chromium is installed\n• Check .config/dramma.toml has the correct home_assistant_url\n• You can close this page with POST /close-hass";
0 commit comments