Skip to content

Your home as a live 3D model in the Mac menu bar and on iPhone — lights and ACs via Smart Life, Home Assistant, Philips Hue and Apple Home.

Name the apps io.github.0xprobabillity.HouseControl

0xProbability897091f0ff5f
diff --git a/ios/Sources/AppModel.swift b/ios/Sources/AppModel.swift
index 612080b..b92fb04 100644
--- a/ios/Sources/AppModel.swift
+++ b/ios/Sources/AppModel.swift
@@ -73,7 +73,7 @@ final class AppModel {
let directory = plans.directory
func secret(_ name: String) -> SecretStore {
sandboxed ? FileSecretStore(url: directory.appendingPathComponent("\(name).json"))
- : KeychainSecretStore(service: "io.github.0xprobabillity.HouseControl", account: name)
+ : KeychainSecretStore(service: Bundle.main.bundleIdentifier ?? "HouseControl", account: name)
}
hub = DeviceHub(directory: directory, secret: secret, homeKit: homeKitService)
sync = SyncClient(store: secret("sync"))
diff --git a/ios/Sources/HomeWeb.swift b/ios/Sources/HomeWeb.swift
index a0e81cd..cc9fa35 100644
--- a/ios/Sources/HomeWeb.swift
+++ b/ios/Sources/HomeWeb.swift
@@ -94,7 +94,7 @@ final class HomeWeb: NSObject, WKScriptMessageHandler, WKNavigationDelegate {
MainActor.assumeIsolated {
guard let body = message.body as? [String: Any] else { return }
if body["type"] as? String == "log" {
- Logger(subsystem: "io.github.0xprobabillity.HouseControl", category: "web").error("\(body["text"] as? String ?? "", privacy: .public)")
+ Logger(subsystem: Bundle.main.bundleIdentifier ?? "HouseControl", category: "web").error("\(body["text"] as? String ?? "", privacy: .public)")
return
}
if body["type"] as? String == "ready" {