I started using Homey recently so Im a new user, Ive added some things to my Homey and started some automations.
Ive recently ordered some items that I would like to integrate with Homey, altough it doesnt have its own app. Ive always wanted to learn some programming but never really started so I thought this might be a good project. I really need something to do to learn, a goal.
They seem to have quite good documentation for how to use their products with different home automations.
Do you have any site/guide to recommend? Or maybe a very beginner friendly app to develop for myself, like the Hello World equivalent of Homey app…
Welcome to the community.
If you have followed the getting started guide then you should have created the framework of a new app. Next, if you haven’t already use the same method to create a new driver framework in the app.
Then it is just a case of responding to handlers when the user interacts with the GUI and updating the GUI when your device changes.
There are lots of examples to view here https://github.com/athombv.
Look here https://nodejs.org/en/docs/ for information about Node.js if you need to.
Ask any specific questions either here or on slack in the Homey developers channel https://athomcommunity.slack.com/archives/C04SUGZ9E.
The best bit is to just play and have fun.
I havent actually installed node.js and started my app, I thought I had to have more knowledge about what to do after that. Remember that Im very new to this so something that might be very obvious to someone used to this is not that obvious for me .
I will install it and start the app, see if it is self-explanatory once done. But, “Then it is just a case of responding to handlers when the user interacts with the GUI”, If its not very well explained I wouldnt have any idea how to do that. I would have to create buttons and then some code that does something when the button is pushed?
I think I know the theory behind everything and what I would like it to do, but just not how.
I will try installing it and I will take a look at the links you provided though, thanks!
Correct. When you go through the “athom app driver create” ‘wizard’ after creating the app it will ask a series of questions about the driver type and capabilities you want, etc. Upon completion of that you will have the framework of a new driver to start you off.
Once you have got that far you will probably have more specific questions to ask but that’s not a problem, we all had to start from the begging at some point.
Workshoppers (self-guided tutorials) that could be useful for Homey development:
- learnyounode (Homey runs on Node.js)
- async-you (async/await is heavily used in Homey apps)