How can I write my own scripts for home automation?

I am a new Homey owner/user. I have a homey pro mini and a homey bridge setup. I have a large number of devices that I want to begin automating throughout my household. I have gone ahead and installed several apps for the device manufacturers on my homey pro mini yet find some of them to be limited for what I would like to do. My plan is to load up my homey pro mini with as much automation as I can then import it all into my Alexa and Apple HomeKit for easy control.

Right now, I am looking to have an automation between my Ring Alarm System and Ecobee thermostats. I also have two Schlage locks connected to my Ring Alarm System on my exterior doors to unlock/lock my doors and set my Ring Alarm System to home/away modes, respectively.

What I want now is if my Ring Alarm System mode changes to Away mode, I want both my Ecobee thermostats to change to their respective Away modes (yes, I could do this through scheduling but my schedule constantly changes day-to-day and week-to-week that I wouldn’t be able to do this with my thermostats scheduling and I don’t want to constantly be setting them manually, hence the automation). When I return home and my Ring Alarm System mode changes back to Home mode, I want my Ecobee thermostats to simply resume their normal schedule. During the day, my first floor is warmer/colder during the day for the winter/summer since I’m on that floor most of the day and my second floor temperatures are cooler/warmer during the same time since no one is upstairs during the day. They then flip during the night while everyone is sleeping, warmer/colder during the winter/summer nights.

Any help on how to do this? Again, I am a new user just starting out and looking for some direction from the community.

Thank you for taking the time to read my post and the help I receive. I’m looking forward to paying it forward as I get more involved here.

Hi Jonathan,

Welcome here! I advice you to make sure you get a good understanding on how flows work and what you can achieve with them. Start little, first switch something on and off and next add some conditions. You’ll find the way flows work is very easy.
After that, install the Ring Doorbell, Camera and Alarm support for Homey app and play around with it, I think you’ll find out everything you want is achievable. Then, take the next steps, install the next functional app and see what it does and can do. Don’t try to do everything in one go.

Have fun!

Welcome!

I would also say that if you’ve not done so already, check out advanced flows on Homey. You’d be amazed how far you can get with really involved and complex automations without having to write any script. For me, they are the single best thing about Homey vs any other automation platform.

1 Like

Hello and thank you for your reply. Unfortunately, I do not think it gets me what I am looking for. Perhaps I can provide some screenshots and add some details of what I am looking for or to do.

Here I have added my base station. With the base station, I want to be able to get the status of my alarm system (home, disarmed, or away):

When I look at the flow cards available, this is the closest one that has anything to do with the mode of my system. However, this is just when the mode is changed but I want specific status. At night, I have the alarm system set to home mode so it is active while I sleep. During the day when I am home, it is set to disarmed. And when I am not home during the day, it is set to away. As mentioned, this card does not enable me to use specific status modes which I want. The Tags are not editable in the below screenshot either:

With ecobee, I have 3 comfort settings or modes for home, away, and sleep. But I cannot access these comfort settings or modes from the ecobee app. The below card is closest but it only allows me to select heat, cool, or auto settings, which the comfort settings or modes are already set for. And if I choose heat or cool, I have to select a specific temperature

Ideally, I just want to set the ecobee comfort settings to Away when my ring base station status is set to Away. Then when I am home, I want ecobee comfort settings back to Home and base station status to disarm after I disarm the system with my code. I created this flow but it is limited and is triggered every time the base station mode changes which is not what I want. I don’t want the flow triggered at night when I am going to bed and the alarm goes into home mode before bed. This is the flow that I have but it is limited:

So, this is what I am looking for:

  1. Alarm goes to Away, Ecobee comfort settings set to Away
  2. Alarm is Disarm/Home, Ecobee comfort settings are Home/Sleep or simply resume the schedule that I have in place

So I need to be able to Get Ring Alarm Status to Set Ecobee Comfort Settings which is why I believe I need to write a script.

Does this help better explain what I am trying to do?

So for so many replies, the system only allowed one screenshot so I chopped the message up in order of how I wrote it with all the screenshots in order.

Thank you!z

You can use a Logic card in the AND section:

<mode (tag)> equals “away”

Example: