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.

692 B
Raw Blame
import SwiftUI
import WidgetKit

/// Every widget and control House Control offers, on the iPhone and the Mac.
@main
struct HouseWidgets: WidgetBundle {
    var body: some Widget {
        HomeWidget()
        ScenesWidget()
        LightWidget()
        RoomWidget()
        ClimateWidget()
        #if os(iOS)
        StatusWidget()
        #endif
        controls
    }

    @WidgetBundleBuilder
    private var controls: some Widget {
        if #available(iOS 18.0, macOS 26.0, *) {
            #if os(iOS)
            OpenAppControl()
            #endif
            AllLightsControl()
            LightControl()
            SceneControl()
            ClimateControl()
        }
    }
}