# Homey pairing/setting mock objects

**URL:** https://community.homey.app/t/homey-pairing-setting-mock-objects/5708
**Category:** Developers
**Created:** [December 20, 2018, 5:37pm UTC](https://community.homey.app/t/homey-pairing-setting-mock-objects/5708 "2018-12-20T17:37:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [December 20, 2018, 5:37pm UTC](https://community.homey.app/t/homey-pairing-setting-mock-objects/5708/1 "2018-12-20T17:37:30Z")

</div>

To make custom template development (for pairing and settings) a bit more bearable, I started working on a mock library for the `Homey` object. The intention is that you can develop most of the templates locally, by mocking the interaction between the template and the driver (for pairing) or app (for settings).

~~I’ve only implemented a pairing mock object for now, because I needed one myself. A settings mock is also being planned (but feel free to post a PR implementing one, if you want to help out 😉 ).~~

A settings mock is also implemented.

> **[robertklep/homey-mocks](https://github.com/robertklep/homey-mocks)**
>
> Mock objects for Homey pairing/setting pages. Contribute to robertklep/homey-mocks development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)
#### Post date: [December 21, 2018, 4:04am UTC](https://community.homey.app/t/homey-pairing-setting-mock-objects/5708/2 "2018-12-21T04:04:36Z")

</div>

I’m on holidays, I’ve been using a settings one - based off your code - with easy overrides for the api data ::: I’ll clean it up and do a PR when I get home in a couple of weeks, if someone else doesn’t share first

> <https://github.com/hive/com.groups/blob/omega/settings/mock.js>

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [December 22, 2018, 11:29am UTC](https://community.homey.app/t/homey-pairing-setting-mock-objects/5708/3 "2018-12-22T11:29:30Z")

</div>

I’ve implemented a settings mocks, see [https://github.com/robertklep/homey-mocks#settings-api](https://github.com/robertklep/homey-mocks#settings-api)

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [November 24, 2022, 2:23pm UTC](https://community.homey.app/t/homey-pairing-setting-mock-objects/5708/4 "2022-11-24T14:23:15Z")

</div>

I’ve been working on updating the mocks for SDKv3, the pairing mocks work for SDKv3 apps now (the settings mocks haven’t really changed, all I did there was fix a small issue with the API routing setup).

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [November 25, 2022, 6:35am UTC](https://community.homey.app/t/homey-pairing-setting-mock-objects/5708/5 "2022-11-25T06:35:25Z")

</div>

The mocks library now also supports the [Homey Style Library](https://github.com/robertklep/homey-mocks#homey-style-library).
