HomeKit automation in public holidays

Are you tired of deactivating automations on holidays every week? Sometimes you forget and turn on the light at 6: 00 in the morning without your touch early? Don’t look anymore, you’ve come to the right place! I’ll explain how to integrate a holiday calendar into HomeKit.

This need arises because sometimes we have an automation that is turned on every day every week at 7: 30 to wake you, but it turns out today, it’s a holiday, well, because it doesn’t have to be turned on, right? You’re supposed to have a little more sleep on the holiday. So normally what you have to do is remember and disable that automation so it doesn’t wake you up.

Conditional automation

You know I’m a fan of automations. I always say I don’t want to go calling around the house or taking out the phone to make certain actions. I want the house to react to different circumstances alone. For example, if it’s night and I’m not home, there’s no need for the lights to turn on. But if it’s night, I’m not home and so the lights are off, but I’m getting close to home, then let them turn on. This makes you have a lot of automations that also cannot be simple automations. I don’t want my radiator to turn on at 7: 00 in the morning every week so that I can

After running, for example. I want it to turn on at 7 in the morning if I’m out of the house, but in the area, that is, I’m not in another city for some work trip or similar, and if the bathroom temperature is less than 14 degrees, for example. Then I really want it to turn on.

Since the House app opened to the possibility of creating a shortcut, automation options have improved much and now we can make much more complex automations. We’ve already talked about that.. Not only can they be created from the House with shortcuts app, but also from third-party applications such as Controller for HomeKit that we have also talked about.

Integrate a Calendar into Automations

What I want to tell you today is the same thing, how to create an automation that takes into account if it is festive. In Home Assistant it is very simple, the truth, in the next episode I explain how to do it, but since the Home app there is no such obvious option. So let’s see how it’s done.

The first thing to do is to create a shortcut. For that, we open the shortcuts app on the iPhone and there we will add a Calendar. That’s why we tell him we want to. Find all events in a calendar. We create a shortcut and we tell you to look for all the events on the calendar and then in the same shortcut you get directly starting date and it puts you for example seven days. Well, no, I change that and I put the start date is the next day, that’s a single day or the same day. And then, make the calendar a specific calendar. I’ve created a calendar called HELIDAYS where I put every national holiday. It’s true that iCloud

It already has a calendar of national holidays, but other than that because I put the holidays of my work, for example, that there are days that thus give us a holiday because I know, the anniversary of the company, because we have some kind of event or something and I also put the school calendar to know that some automations that depend on so that, that children have school or not, because directly that they do not run.

One of the most modified automations throughout the week is that: An automation that every day at 8: 30 is the alarm clock, lights up the children’s room and sounds for the HomePods of their rooms a song, a song that each week chooses one of them. You know I have four children… for a month without repeating song. Well, the thing is, at 8: 30, every day of that week, the lights turn on little by little and that song sounds to help them wake up. The next Sunday, another one of my children chooses the song and changes that automation. But of course, what I told you before, if you

It is clear that Wednesday is festive or that there is a bridge and it turns out that Thursday and Friday are festive, because that automation must be disabled. So it was one of the most work I could get. That’s what the calendar is for. HELIDAYS And there I put directly not only the national parties but also the local parties and the school calendar. And that calendar is the one that linked from this shortcut.

After putting the Search in the shortcut within the calendar, I open a condition and tell you if calendar events have some value, then stop this shortcut. What does that mean? That if in the next day there is some kind of entry, whatever it is, it can be an all-day event, which is like I do, or an event from 10 to 11, because the time will not take it into account, then stop the shortcut. If not, what it does is adjust what you want to do. In my case, turn on the light and add the HomePods to play the music and so on. That would be the action. And then finish the yes.

This is very simple, we can create it quite easy. Just as you can give the key to the Find all the events in the calendar on the next day for the HOLIDAYS calendar can cost us a little, but the rest you see is a normal automation. I’ll leave you the video anyway:

https: / / youtu.be / s _ c5BOm1SaI

Shortcut automation

After creating the shortcut you have to launch it at some point, for that you have to go within shortcuts to the Automation tab and you have to keep in mind that we can’t do it from the House application because, don’t ask me why, but the House application there are shortcuts you can’t launch, especially if you take into account other applications, such as in this case it is Calendar. However, if we create an automation of those Personal calling the iPhone, because there are things that can’t be done directly with the House application, there are things that can’t be run or sensors that can’t be read. Some shortcuts can’t do a

s things and others can’t do others. In this case what we do is create a Personal Automation to run every day at 8: 30 in the morning instead of running conventional automation from the Home app. Remember to remove your Confirmation request, but when you are going to run you will ask us for a confirmation per screen.

https: / / youtu.be / hcex7kAqw9k

The truth is, once you hit the key, it’s pretty easy to do. You have to keep in mind that this automation is run in local, that is on our iPhone or iPad. If the phone at that time is without battery, the automation will not work. And this truth is that it’s shit, I don’t like it at all because the other automations, the ones that are made from the House application, are run from the Central Accessories we have. So, even if the iPhone is without battery, the automation will work the same. In this case it’s not and it can be a problem… or not, but well, you have to take it into account.

If you don’t feel like getting complicated and want to download the shortcut directly, you can do it from here: https: / / www.icloud.com / short cuts / 509c6ef60581465c8428d235c7c5f799 wp: block {«ref»: 1612} /

Carlos Sahuquillo

Carlos Sahuquillo

'Haga lo que haga en la vida, siempre compito' - Jacques Villeneuve Reserva una sesión →

Sigue leyendo

Entradas relacionadas

Ver todo el blog
Conversación

1 comentario

  1. Hola!
    Gracias por toda esta información que compartes.
    Cómo has creado el calendario de vacaciones? Veo en https://support.apple.com/es-es/guide/iphone/iph3d1110d4/ios y https://support.apple.com/es-es/guide/iphone/iph80d93ac49/17.0/ios/17.0 que puedo suscribirme a un calendario de festivos nacionales. PERO no puedo editar (y entiendo que tampoco añadir) los que en mi comunidad autónoma son festivos también.
    Así las cosas, replicas uno a uno los festivos nacionales en un calendario creado ex profeso y además, añades los de tu comunidad y los de la empresa? Cada año? Seguro que me pierdo algo porque no creo que esto tenga que hacerse picando teclas, como si fuéramos salvajes (en palabras de Emilcar).
    Gracias, de nuevo por tu ayuda.
    Un saludo

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.