# App creation tutorial and sample code?

**URL:** <https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791>\
**Category:** Apps\
**Tags:** app, devices\
**Created:** [November 13, 2021, 7:21pm UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791 "2021-11-13T19:21:14Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![sekarmaeu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sekarmaeu/32/37697_2.png) [@sekarmaeu](https://community.homey.app/u/sekarmaeu)\
**Post date:** [November 13, 2021, 7:21pm UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791/1 "2021-11-13T19:21:14Z")

</div>

Hi!  
I would like to create an app to control the temperature in my garage to avoid condensation when the outside temperature gets warmer than the indoor temperature. Therefore I need to be able to input a bunch of settings like delta temperature (indoor temp - outdoor temp), hysteresis, indoor max temp, indoor min temp etc. I also need to be able to read the temperature from two devices (indoor and outdoor) like aqara temp sensors.

The problem is that at this point my knowledge is pretty limited so I need help in the form of video tutorials and sample code, otherwise I’ll probably give up and buy a filthy expensive PLC (which I can handle) instead. Are there any good instruction videos and code which can help me?

Regards

---

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [November 13, 2021, 8:12pm UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791/2 "2021-11-13T20:12:26Z")

</div>

No need for coding a new app. Make the calculations with better logic app or the Homey build in logic and control the fans and/or heaters based on these calculations.

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [November 13, 2021, 8:36pm UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791/3 "2021-11-13T20:36:31Z")

</div>

Agree, or use Homeyscript to do the complexer calculations.  
If you do decide to build an app, the SDK documentation is pretty good IMO but you will need some programming experience. If Homeyscript is too much for this problem, no amount of tutorials will make it easier as a full blown app.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 13, 2021, 9:08pm UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791/4 "2021-11-13T21:08:12Z")

</div>

I would recommend to give the [vThermo app](https://homey.app/en-gb/app/no.almli.thermostat/VThermo/) a try.

The delta’s can be calculated using logics math.js like said before.  
Example:  
(_“temperatuur is veranderd” means “temperature has changed”_)

Logics condition card (the And card) “A comparison is true”:

> ![Screenshot_20211113-221710_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/b/eb2003f1032a34dd31ead271ebd6136256339ff2.jpeg)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 14, 2021, 5:12am UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791/5 "2021-11-14T05:12:16Z")

</div>

The [Insight Trends app](https://community.homey.app/t/app-insight-trends/41992) is worth having a look at too.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [November 14, 2021, 7:46am UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791/6 "2021-11-14T07:46:45Z")

</div>

There is a mold detector from POPP available. It’s function is based on the measurements of temperature and humidity. The sensor isn’t supported by the POPP app yet, but you could ask the developer to add the sensor to the app. The sensor uses Z-Wave. So you have also to check, if Z-Wave signal is available in the garage.

> **[POPP Mold Detector (701202) - popp.eu](https://www.popp.eu/products/mold-detector/)**
>
> POPP MOLD DETECTOR (701202) The POPP Mold Detector (Product Code: 701202) protects your home against mold formation. The POPP Mold Detector has a unique and elegant design which fits in every Smart Home. Because of his slim design the POPP Mold...

~~@Peter_Kawa, the Insight Trends app isn’t available in the app store anymore.~~

---

<div class="post-metadata">

**Author:** ![sekarmaeu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sekarmaeu/32/37697_2.png) [@sekarmaeu](https://community.homey.app/u/sekarmaeu)\
**Post date:** [November 14, 2021, 12:02pm UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791/7 "2021-11-14T12:02:53Z")

</div>

Wow, a lot of answers! 🙂  
Thankyou all. I will have a look at all this. I’ll probably get back with more questions once I have installed all the devices needed. 🙂  
Thanks again.

---

<div class="post-metadata">

**Author:** ![sekarmaeu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sekarmaeu/32/37697_2.png) [@sekarmaeu](https://community.homey.app/u/sekarmaeu)\
**Post date:** [November 14, 2021, 12:06pm UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791/8 "2021-11-14T12:06:46Z")

</div>

Btw, which temperature and humidity sensors does this app (VThermo) support?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 14, 2021, 12:39pm UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791/9 "2021-11-14T12:39:53Z")

</div>

> [@DirkG](#):
>
> @Peter_Kawa, the Insight Trends app isn’t available in the app store anymore.

Hey Dirk, that’s weird…, at my place it still is: [https://homey.app/en-gb/app/ch.philippewechsler.trends/Insight-Trends/](https://homey.app/en-gb/app/ch.philippewechsler.trends/Insight-Trends/)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 14, 2021, 12:45pm UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791/10 "2021-11-14T12:45:02Z")

</div>

> [@sekarmaeu](#):
>
> Btw, which temperature and humidity sensors does this app (VThermo) support?

In theory all which report the right capabilities: measure\_temperature, target\_temperature and measure\_humidity

This might be interesting:

> [@Connecting VThermo to a physical thermostat - is it possible?](https://community.homey.app/t/connecting-vthermo-to-a-physical-thermostat-is-it-possible/46845/4):
>
> It is possible both ways (didn’t know that yet, found out while fiddling with it wink ) Without a flow needed, I coupled my Tado thermostat with a VThermo. Open the settings of your VThermo, and look for Target temperature in the same zone Ticking the upper box sends the target temperature from other (hardware) thermostat(s), to VThermo in the same zone. Ticking both boxes sends the target temperature to other (hardware) thermostat(s) in the same zone, and vice versa. They both follow…

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [November 14, 2021, 1:03pm UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791/11 "2021-11-14T13:03:07Z")

</div>

You’re right Peter. Don’t know why I didn’t found the app this morning… 🤷🏼‍♂️  
Sorry for the false information.

---

<div class="post-metadata">

**Author:** ![sekarmaeu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sekarmaeu/32/37697_2.png) [@sekarmaeu](https://community.homey.app/u/sekarmaeu)\
**Post date:** [November 14, 2021, 2:00pm UTC](https://community.homey.app/t/app-creation-tutorial-and-sample-code/54791/12 "2021-11-14T14:00:12Z")

</div>

Thanks a lot everyone. Now I just need to buy all necessary devices. 🙂
