# Smart home hub written in Swift

**URL:** <https://forums.swift.org/t/smart-home-hub-written-in-swift/43535>\
**Category:** Using Swift\
**Created:** [January 4, 2021, 12:53pm UTC](https://forums.swift.org/t/smart-home-hub-written-in-swift/43535 "2021-01-04T12:53:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marius](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/marius/32/14698_2.png) [@marius](https://forums.swift.org/u/marius)\
**Post date:** [January 4, 2021, 12:53pm UTC](https://forums.swift.org/t/smart-home-hub-written-in-swift/43535/1 "2021-01-04T12:53:08Z")

</div>

I'm just curious wether there are any smart home hub systems using pure Swift? I'm talking about the accessory/scene scripting as well as the web server itself. Something like HomeAssistant or openHab!

---

<div class="post-metadata">

**Author:** ![ahti](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ahti/32/604_2.png) [@ahti](https://forums.swift.org/u/ahti)\
**Post date:** [January 4, 2021, 8:31pm UTC](https://forums.swift.org/t/smart-home-hub-written-in-swift/43535/2 "2021-01-04T20:31:09Z")

</div>

For HomeKit accessories, there is [Bouke/HAP](https://github.com/Bouke/HAP), which has produced good results for me in an (admittedly very simple) [HomeKit device that switches picture mode on my TV (think budget night mode)](https://github.com/ahti/homekit-webos-picture-mode/tree/master/Sources/homekit-webos-picture-mode).

I had forked HAP back then to patch in NIO2 support, but upstream seems to now support that natively as well.

---

<div class="post-metadata">

**Author:** ![marius](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/marius/32/14698_2.png) [@marius](https://forums.swift.org/u/marius)\
**Post date:** [January 4, 2021, 8:49pm UTC](https://forums.swift.org/t/smart-home-hub-written-in-swift/43535/3 "2021-01-04T20:49:56Z")

</div>

Perfect, thank you very much! That is exactly what I was looking for! :))
