Is it possible for an automation to check the status of another automation as a condition? To clarify, I don’t mean on or off, I mean enabled or disabled. Basically, I’d like to have my system send me an alert if I toggle one of my switches and one of the associated automations is disabled, but I haven’t seen an example of it being done.
My reason, if you’re interested, is as follows.
I have a smart switch beside my bed. In winter an electric blanket is plugged into it, in summer, a fan. I have an input boolean acting as a switch on home assistant that, when activated, activates several other automations that control timers and such, but these only pertain to the fan. (Fan turns on for 30 minutes every 2 hours, provided room temperature is above 20C). However, these automations have nothing to do with the electric blanket, despite the fact it uses the same socket. I have seperate automations for that.
The use case, is as follows. In spring, as temperatures rise again, and I want to use the fan again, I also need to remember to enable the associated automations. What I’d like to do is if I forget to enable them and I try to turn the fan on using HA, my system will detect that the automations are disabled and send me an alert, reminding me to enable them.
The problem with this is that I have no set point where I’d stop using the electric blanket, or start using the fan. It’s all dependent on room temperature, which is obviously influenced by outside temperatures. Ideally, yes, I’d use fixed dates, but nature is resistant to being regular.
Another point is that disabling the automations is something of a safety net. The switch in HA is an input boolean, thus not physically connected to the actual physical smart switch. This means that if a user switches on the fan switch (in HA) or Alexa mishears a command and turns on the fan switch (in HA) with the automation disabled, it can’t do that. The last thing I want is to have an electric blanket turning on for half an hour every two hours until the mistake is discovered.
So I’m back to the original question, can you test to see if a specific automation has been disabled? I’m guessing, from your reply, that the answer is no.
I know I could use a separate smart switch for each, but I don’t currently have a spare, or the place to put a second one.
Oh! I completely misinterpreted your reply. My apologies, it’s late here and my brain needs caffeine.
I’ve gotten it working now, thanks for your help.