Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Unsolved
Collapse
Discussion Forum to share and further the development of home control and automation, independent of platforms.
  1. Home
  2. Software
  3. Multi-System Reactor
  4. Need help figuring out how to delay a reset on reaction
How to upgrade from an old version of MSR?
cw-kidC
Hello I haven't updated my installation of MSR in a very long time. Its a bare metal Linux install currently on version 24366-3de60836 I see the latest version is now latest-26011-c621bbc7 I assume I cannot just jump from a very old version to the latest version? Or can I? Thanks
Multi-System Reactor
This trigger no longer working - complaining about the operator needing changing
cw-kidC
Topic thumbnail image
Multi-System Reactor
Can you run MSR on Home Assistant OS ?
cw-kidC
Looking at using Home Assistant for the first time, either on a Home Assistant Green, their own hardware or buying a cheap second hand mini PC. Sounds like Home Assistant OS is linux based using Docker for HA etc. Would I also be able to install things like MSR as well on their OS ? On the same box? Thanks.
Multi-System Reactor
Self test
CatmanV2C
Having been messing around with some stuff I worked a way to self trigger some tests that I wanted to do on the HA <> MSR integration This got me wondering if there's an entity that changes state / is exposed when a configured controller goes off line? I can't see one but thought it might be hidden or something? Cheers C
Multi-System Reactor
Access control - allowing anonymous user to dashboard
tunnusT
Using build 25328 and having the following users.yaml configuration: users: # This section defines your valid users. admin: ******* groups: # This section defines your user groups. Optionally, it defines application # and API access restrictions (ACLs) for the group. Users may belong to # more than one group. Again, no required or special groups here. admin_group: users: - admin applications: true # special form allows access to ALL applications guests: users: "*" applications: - dashboard api_acls: # This ACL allows users in the "admin" group to access the API - url: "/api" group: admin_group allow: true log: true # This ACL allows anyone/thing to access the /api/v1/alive API endpoint - url: "/api/v1/alive" allow: true session: timeout: 7200 # (seconds) rolling: true # activity extends timeout when true # If log_acls is true, the selected ACL for every API access is logged. log_acls: true # If debug_acls is true, even more information about ACL selection is logged. debug_acls: true My goal is to allow anonymous user to dashboard, but MSR is still asking for a password when trying to access that. Nothing in the logs related to dashboard access. Probably an error in the configuration, but help needed to find that. Tried to put url: "/dashboard" under api_acls, but that was a long shot and didn't work.
Multi-System Reactor
VEC Virtual Switch Auto Off
S
I use Virtual Entity Controller virtual switches which I turn on via webhooks from other applications. Once a switch triggers and turns on, I can then activate associated rules. I would like each virtual switch to automatically turn off after a configurable time (e.g., 5 seconds, 10 seconds). Is there a better way to achieve this auto-off behavior instead of creating a separate rule for each switch that uses the 'Condition must be sustained for' option to turn it off? With a large number of these switches (and the associated turn-off rules), I'm checking to see if there is a simpler approach.If not, could this be a feature request to add an auto-off timer directly to the virtual switches. Thanks Reactor (Multi-hub) latest-26011-c621bbc7 VirtualEntityController v25356 Synology Docker
Multi-System Reactor
Upcoming Storage Change -- Got Back-ups?
toggledbitsT
TL;DR: Format of data in storage directory will soon change. Make sure you are backing up the contents of that directory in its entirety, and you preserve your backups for an extended period, particularly the backup you take right before upgrading to the build containing this change (date of that is still to be determined, but soon). The old data format will remain readable (so you'll be able to read your pre-change backups) for the foreseeable future. In support of a number of other changes in the works, I have found it necessary to change the storage format for Reactor objects in storage at the physical level. Until now, plain, standard JSON has been used to store the data (everything under the storage directory). This has served well, but has a few limitations, including no real support for native JavaScript objects like Date, Map, Set, and others. It also is unable to store data that contains "loops" — objects that reference themselves in some way. I'm not sure exactly when, but in the not-too-distant future I will publish a build using the new data format. It will automatically convert existing JSON data to the new format. For the moment, it will save data in both the new format and the old JSON format, preferring the former when loading data from storage. I have been running my own home with this new format for several months, and have no issues with data loss or corruption. A few other things to know: If you are not already backing up your storage directory, you should be. At a minimum, back this directory up every time you make big changes to your Rules, Reactions, etc. Your existing JSON-format backups will continue to be readable for the long-term (years). The code that loads data from these files looks for the new file format first (which will have a .dval suffix), and if not found, will happily read (and convert) a same-basenamed .json file (i.e. it looks for ruleid.dval first, and if it doesn't find it, it tries to load ruleid.json). I'll publish detailed instructions for restoring from old backups when the build is posted (it's easy). The new .dval files are not directly human-readable or editable as easily as the old .json files. A new utility will be provided in the tools directory to convert .dval data to .json format, which you can then read or edit if you find that necessary. However, that may not work for all future data, as my intent is to make more native JavaScript objects directly storable, and many of those objects cannot be stored in JSON. You may need to modify your backup tools/scripts to pick up the new files: if you explicitly name .json files (rather than just specifying the entire storage directory) in your backup configuration, you will need to add .dval files to get a complete, accurate backup. I don't think this will be an issue for any of you; I imagine that you're all just backing up the entire contents of storage regardless of format/name, that is the safest (and IMO most correct) way to go (if that's not what you're doing, consider changing your approach). The current code stores the data in both the .dval form and the .json form to hedge against any real-world problems I don't encounter in my own use. Some future build will drop this redundancy (i.e. save only to .dval form). However, the read code for the .json form will remain in any case. This applies only to persistent storage that Reactor creates and controls under the storage tree. All other JSON data files (e.g. device data for Controllers) are unaffected by this change and will remain in that form. YAML files are also unaffected by this change. This thread is open for any questions or concerns.
Multi-System Reactor
Oddness in Copy/Move of Reactions
G
Topic thumbnail image
Multi-System Reactor
[Solved] function isRuleEnabled() issue
CrilleC
Topic thumbnail image
Multi-System Reactor
[Reactor] Problem with Global Reactions and groups
therealdbT
Topic thumbnail image
Multi-System Reactor
Possible feature request 2?
CatmanV2C
Just another thought. Adding devices from my Home Assistant / Zigbee2MQTT integration. Works perfectly but they always add as their IEEE address. Some of these devices have up to 10 entities associated, and the moment they are renamed to something sensible, each of those entities 'ceases to exist' in MSR. I like things tidy, and deleting each defunct entity needs 3 clicks. Any chance of a 'bulk delete' option? No biggy as I've pretty much finished my Z-wave migration and I don't expect to be adding more than 2 new Zigbee devices Cheers C
Multi-System Reactor
Reactor (Multi-System/Multi-Hub) Announcements
toggledbitsT
Build 21228 has been released. Docker images available from DockerHub as usual, and bare-metal packages here. Home Assistant up to version 2021.8.6 supported; the online version of the manual will now state the current supported versions; Fix an error in OWMWeatherController that could cause it to stop updating; Unify the approach to entity filtering on all hub interface classes (controllers); this works for device entities only; it may be extended to other entities later; Improve error detail in messages for EzloController during auth phase; Add isRuleSet() and isRuleEnabled() functions to expressions extensions; Implement set action for lock and passage capabilities (makes them more easily scriptable in some cases); Fix a place in the UI where 24-hour time was not being displayed.
Multi-System Reactor
Copying a global reaction
tunnusT
With build 25328, if you copy a global reaction, a new reaction does not appear in the UI unless you do a refresh. I recall this used to work without needing this page refresh? Anyway, only a minor nuisance.
Multi-System Reactor
[Reactor] Bug when sending MQTT boolean payloads
therealdbT
Topic thumbnail image
Multi-System Reactor
Difficulty defining repeating annual period
R
I have tried numerous ways to define a recurring annual period, for example from December 15 to January 15. No matter which method I try - after and before, between, after and/not after, Reactor reports "waiting for invalid date, invalid date. Some constructs also seem to cause Reactor to hang, timeout and restart. For example "before January 15 is evaluated as true, but reports "waiting for invalid date, invalid date". Does anyone have a tried and true method to define a recurring annual period? I think the "between" that I used successfully in the past may have broken with one of the updates.
Multi-System Reactor
Need help with sequence
T
Good evening all, For about the past week or so, I've been having problems with a specific rule in my home automation that controls when my home goes from an Away mode to Home mode. One of the conditions it checked for was my alarm panel, when it changed from Armed Away to Disarmed. There seems to have been a firmware update on the panel that added an intermittent step of "pending", and I can't say for certain it happens 100% of the time. Is there a way to write a condition that so it changes from one condition, to the next, and then another condition? As in, Home alarm changes from armed_away to pending to disarmed. Thanks.
Multi-System Reactor
Possible feature request?
CatmanV2C
No idea how easy this would be. During my migration away from Z-wave I've been replacing the Z-wave devices with Sonoff which has broken some of my automations. Any chance of a 'Test Reaction' function to call out which ones are broken because an entity no longer exists? Without actually running the reaction? Or does this exist already and I'm just not aware of how to do it? Obviously I can see entities that are no longer available, but not quite what I'm looking for. I guess it's something of an edge case so no huge issue. TIA! C
Multi-System Reactor
Logic Assistance: Exterior Lights on when Illuminance Below Threshold
PablaP
Topic thumbnail image
Multi-System Reactor
Time series documentation
tunnusT
Is the current manual (incl. examples) up to date with how retention value is handled in time series configuration? Referring to this post
Multi-System Reactor
MQTT templates for ZIgbee scene controller, or a better way?
CatmanV2C
Topic thumbnail image
Multi-System Reactor

Need help figuring out how to delay a reset on reaction

Scheduled Pinned Locked Moved Multi-System Reactor
22 Posts 4 Posters 5.0k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tamorgen
    wrote on last edited by
    #1

    Good afternoon all,
    I believe I’m having an issue with my logic for setting my home modes in MSR, partially based upon Phone modes in Home Assistant. Users in my family have the Home Assistant companion app installed on their phone, and it geofences the users, so once they are within my home circle geographically, it sets a Boolean to home mode. If they are out it it’s away. I also have a couple of other modes, which I struggle to activate, and it causes issues when I have guests, or pet sitters that come over that do no have the companion app.

    I have a guest mode that has to be manually set in Home Assistant, that disables the Away mode automation (based on the companion app statuses), until either a user with the companion app arrives home, or a guest arms the alarm system (away arm).

    My issue is that I seem to unable to set the system into Guest mode from Home Assistant, because MSR keeps trying to arm the system. I think that I need to have some sort of a delay for the Reset reaction.

    In the rules below, each of the users has a separate reaction that evaluates the state of the iPhone. This rule is a giant OR rule that evaluates the state off all them to decide the mode of the house.

    d70a1267-6966-49fd-8ef9-b6ffa9ccb5c2-image.jpeg

    0104720d-e38f-44f8-8d72-df8b7c6d6ad7-image.png

    Appologizes for the formatting. I’m away from home and doing this on my iPad, so my screenshots can’t display the full rule.

    As you can see in the Rule history, it was rapidly resetting every time I tried to put the house into guest mode around 18:00 yesterday. I was on a plane and my mother-in-law arrived to take care of our pets, and I had to log in on my phone to my server and disable MSR to stop the automation in the house completely.

    767ae3d9-4b10-4763-bc3b-48ac666c0283-image.png

    Any suggestions on how I can handle this flapping?

    I have another set of rules for users that don’t have the companion app, but is rather based on the user ID for the alarm system and put the house into Guest mode, but I’ve never been able to get this to work completely. It exhibits the same behavior of trying to arm the system immediately.

    The only reliable way for me to set the house into Guest mode is to be in at home mode first, then switch to guest mode. I believe this is all linked to this rule in question.

    I appreciate the long read and any advice.

    G toggledbitsT 2 Replies Last reply
    0
    • T tamorgen

      Good afternoon all,
      I believe I’m having an issue with my logic for setting my home modes in MSR, partially based upon Phone modes in Home Assistant. Users in my family have the Home Assistant companion app installed on their phone, and it geofences the users, so once they are within my home circle geographically, it sets a Boolean to home mode. If they are out it it’s away. I also have a couple of other modes, which I struggle to activate, and it causes issues when I have guests, or pet sitters that come over that do no have the companion app.

      I have a guest mode that has to be manually set in Home Assistant, that disables the Away mode automation (based on the companion app statuses), until either a user with the companion app arrives home, or a guest arms the alarm system (away arm).

      My issue is that I seem to unable to set the system into Guest mode from Home Assistant, because MSR keeps trying to arm the system. I think that I need to have some sort of a delay for the Reset reaction.

      In the rules below, each of the users has a separate reaction that evaluates the state of the iPhone. This rule is a giant OR rule that evaluates the state off all them to decide the mode of the house.

      d70a1267-6966-49fd-8ef9-b6ffa9ccb5c2-image.jpeg

      0104720d-e38f-44f8-8d72-df8b7c6d6ad7-image.png

      Appologizes for the formatting. I’m away from home and doing this on my iPad, so my screenshots can’t display the full rule.

      As you can see in the Rule history, it was rapidly resetting every time I tried to put the house into guest mode around 18:00 yesterday. I was on a plane and my mother-in-law arrived to take care of our pets, and I had to log in on my phone to my server and disable MSR to stop the automation in the house completely.

      767ae3d9-4b10-4763-bc3b-48ac666c0283-image.png

      Any suggestions on how I can handle this flapping?

      I have another set of rules for users that don’t have the companion app, but is rather based on the user ID for the alarm system and put the house into Guest mode, but I’ve never been able to get this to work completely. It exhibits the same behavior of trying to arm the system immediately.

      The only reliable way for me to set the house into Guest mode is to be in at home mode first, then switch to guest mode. I believe this is all linked to this rule in question.

      I appreciate the long read and any advice.

      G Offline
      G Offline
      gwp1
      wrote on last edited by gwp1
      #2

      @tamorgen Your conditions for each inhabitant are collapsed. What's in those?

      I do a TON based on presence so if you can show all your work I can dig in a bit.

      Edit: gonna assume all of the other inhabitants are like Tim. Your current rule says "If Tim=home OR Jen=home OR mom=home OR Nana=home OR Joshua = home OR mode=Guest then".... nothing. You have nothing indicated for it to do. Set Reaction is empty.

      But then you have a Reset Reaction which is what will play out when all of the conditions above aren't met, ie no one is home mode=Away, ie undoing the Set Reaction. Since you have no Set the Reset is confused and just flip/flopping around.

      I think your goal here is to have the house state flip to away when no one is home. As such, you should have Set Reaction be what mode you want the house mode to be when at least one of those people is home. I don't even know that you need that condition for House mode=Guest. The basic goal here is "no one home, set to away", correct?

      Now if you want the house to flip to mode=Away when no one is home, put that in your Reset Reaction. That's not how I've done it personally, but it would get you there if I'm understanding your goal.

      *Hubitat C-7 2.4.3.177
      *Proxmox VE v8, Beelink MiniPC 12GBs, SSD

      *HAOS
      Core 2026.1.1
      w/ HA Connect ZWA-2
      FW: v1.1
      SDK: v7.23.1

      *Prod MSR in docker/portainer
      MSR: latest-26011-c621bbc7
      MQTTController: 25139
      ZWave Controller: 25139

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tamorgen
        wrote on last edited by
        #3

        @gwp1, yeah, I collapsed them because of how I’m having to work on my iPad.

        Each of those collapsed rules, are rule states of other rules, which determine the actual presence of the individual users. They are all identical, except for which device they tracking.

        524e8079-d947-468c-8b75-bb088270a2c9-image.png

        0bf03e08-084f-4d2b-a9fe-dff9e236a01c-image.png

        These work nearly flawlessly individually. If a user has the companion app, no issue. It’s when I’m trying to “fool” the system for non users into arming into away mode, shutting everything down, and arming the home alarm system to away, that I’m having issues with, if you follow

        G 1 Reply Last reply
        0
        • T tamorgen

          @gwp1, yeah, I collapsed them because of how I’m having to work on my iPad.

          Each of those collapsed rules, are rule states of other rules, which determine the actual presence of the individual users. They are all identical, except for which device they tracking.

          524e8079-d947-468c-8b75-bb088270a2c9-image.png

          0bf03e08-084f-4d2b-a9fe-dff9e236a01c-image.png

          These work nearly flawlessly individually. If a user has the companion app, no issue. It’s when I’m trying to “fool” the system for non users into arming into away mode, shutting everything down, and arming the home alarm system to away, that I’m having issues with, if you follow

          G Offline
          G Offline
          gwp1
          wrote on last edited by gwp1
          #4

          @tamorgen check the edit to my original post.

          EDIT:

          SO here's how mine is set up. I don't have reset anywhere in mine. I only Set Reaction for the various modes.

          c077b708-fef5-4a99-bb6f-4b09fe4052b9-image.png

          Cracking open my Away config

          1a835b92-f3a2-4dcb-af6a-fe0656c30ab9-image.png

          It's similar to yours except I just do a Set Reaction

          2d6de1c6-98f9-49c7-a66c-b324fdd4868b-image.png

          Each of my modes is this way.

          *Hubitat C-7 2.4.3.177
          *Proxmox VE v8, Beelink MiniPC 12GBs, SSD

          *HAOS
          Core 2026.1.1
          w/ HA Connect ZWA-2
          FW: v1.1
          SDK: v7.23.1

          *Prod MSR in docker/portainer
          MSR: latest-26011-c621bbc7
          MQTTController: 25139
          ZWave Controller: 25139

          1 Reply Last reply
          0
          • T tamorgen

            Good afternoon all,
            I believe I’m having an issue with my logic for setting my home modes in MSR, partially based upon Phone modes in Home Assistant. Users in my family have the Home Assistant companion app installed on their phone, and it geofences the users, so once they are within my home circle geographically, it sets a Boolean to home mode. If they are out it it’s away. I also have a couple of other modes, which I struggle to activate, and it causes issues when I have guests, or pet sitters that come over that do no have the companion app.

            I have a guest mode that has to be manually set in Home Assistant, that disables the Away mode automation (based on the companion app statuses), until either a user with the companion app arrives home, or a guest arms the alarm system (away arm).

            My issue is that I seem to unable to set the system into Guest mode from Home Assistant, because MSR keeps trying to arm the system. I think that I need to have some sort of a delay for the Reset reaction.

            In the rules below, each of the users has a separate reaction that evaluates the state of the iPhone. This rule is a giant OR rule that evaluates the state off all them to decide the mode of the house.

            d70a1267-6966-49fd-8ef9-b6ffa9ccb5c2-image.jpeg

            0104720d-e38f-44f8-8d72-df8b7c6d6ad7-image.png

            Appologizes for the formatting. I’m away from home and doing this on my iPad, so my screenshots can’t display the full rule.

            As you can see in the Rule history, it was rapidly resetting every time I tried to put the house into guest mode around 18:00 yesterday. I was on a plane and my mother-in-law arrived to take care of our pets, and I had to log in on my phone to my server and disable MSR to stop the automation in the house completely.

            767ae3d9-4b10-4763-bc3b-48ac666c0283-image.png

            Any suggestions on how I can handle this flapping?

            I have another set of rules for users that don’t have the companion app, but is rather based on the user ID for the alarm system and put the house into Guest mode, but I’ve never been able to get this to work completely. It exhibits the same behavior of trying to arm the system immediately.

            The only reliable way for me to set the house into Guest mode is to be in at home mode first, then switch to guest mode. I believe this is all linked to this rule in question.

            I appreciate the long read and any advice.

            toggledbitsT Offline
            toggledbitsT Offline
            toggledbits
            wrote on last edited by
            #5

            @tamorgen I suspect some other rule is affecting the house mode. At least, that would be the first thing to check.

            A review of the logs will tell you that. What you want to look for are entries that say <Rule:INFO> Phones Home (rule-grp19i3lbdi in xxxxx) evaluated; rule state transition from RESET to SET! and then look at what's going on after that. You may see another rule being triggered.

            You can also look for perform selector.select on Entity#hass>input_select_house_mode with { "value": "Away" } and work backwards from that to see what is running that action. You will typically find a Starting reaction or Resuming reaction line shortly before, and this is the reaction that is setting the away mode.

            Author of Multi-system Reactor and Reactor, DelayLight, Switchboard, and about a dozen other plugins that run on Vera and openLuup.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tamorgen
              wrote on last edited by tamorgen
              #6

              Sorry for the delay in responses. I've been traveling, and it's been difficult to do any of the troubleshooting on my iPad

              @toggledbits, it's quite the opposite of what you think. The Phones Home rule I mostly use as a rule state for another rule. That other rule is what put's my Home Assistant and Reactor into Home Mode.

              c4c9c626-c54f-44a5-9c70-36e7f82b2fd8-image.png

              When the "Phones Home" rule becomes true, the "GoTo Home Mode" changes settings in the home that puts for the all the other reactions that may or may not occur, depending on time of day, time of year, etc. When the any of the phones leave the geofenced area, and the "guest mode" isn't set (the last of the 6 triggers in the "Phones Home" rule, it reset's the rule state, which changes the House Mode to Away.

              Now, here is the real problem I'm having. As I mentioned in the initial post, I have a guest mode specifically for people that need to come in my home, that don't have the Home Assistant companion app, such as a neighbor that I might need to come over and check on our cats while we're gone, or our house cleaner that comes by once a month. They have a code to the alarm system, and I can tell by the user ID on the panel which user disarmed the system. From there, I want to put the system into Guest mode, so the Phone's Home mode won't reset, and the "Arm Away" rule set's the alarm system to Away, which in turn arms the interior motion sensors, and you can see where it would go badly from there.

              ef085637-2030-4ed4-91b5-06d68f1c0f23-image.png

              dd195622-1dcb-4afa-aca1-18cfedef2837-image.png

              So, what is happening, is when one of the guest's tries to disable the system, it rearms a minute or so later. The "GoTo Guest Mode" doesn't have a chance to put the "House Mode" into Guest.

              Guest Mode does work, if I'm able to have the "House Mode" set to Home first, then change it to Guest, but this unfortunately requires me to be at home to make this work.

              You can see below from Home Assistant, that when I'm away, and I try to manually put the House Mode into Guest, it immediately goes back into Away.

              2f08334f-32f2-4a53-b217-e9173aa08548-image.png

              In the Reator logs, you can see the immediate reset.

              root@hal:/home/tmorgenthaler/reactor/logs# cat reactor.log.1 | grep Phones
              [latest-25139]2025-06-16T13:31:47.275Z Rule:INFO Phones Home (rule-grp19i3lbdi in Phone presence) evaluated; rule state transition from RESET to SET!
              [latest-25139]2025-06-16T13:31:47.307Z Rule:INFO Phones Home (rule-grp19i3lbdi in Phone presence) evaluated; rule state transition from SET to RESET!
              [latest-25139]2025-06-16T13:31:47.316Z Engine:INFO Enqueueing "Phones Home<RESET>" (rule-grp19i3lbdi:R)
              [latest-25139]2025-06-16T13:31:47.318Z Engine:NOTICE Starting reaction Phones Home<RESET> (rule-grp19i3lbdi:R)
              [latest-25139]2025-06-16T13:31:47.346Z Engine:INFO Resuming reaction Phones Home<RESET> (rule-grp19i3lbdi:R) from step 1
              [latest-25139]2025-06-16T13:31:47.346Z Engine:INFO Phones Home<RESET> all actions completed.

              The only thing I can think of is there needs to be some sort of delay for the reset in the "Phones Home" rule, but I'm not sure the best way to approach it.

              G 1 Reply Last reply
              0
              • T tamorgen

                Sorry for the delay in responses. I've been traveling, and it's been difficult to do any of the troubleshooting on my iPad

                @toggledbits, it's quite the opposite of what you think. The Phones Home rule I mostly use as a rule state for another rule. That other rule is what put's my Home Assistant and Reactor into Home Mode.

                c4c9c626-c54f-44a5-9c70-36e7f82b2fd8-image.png

                When the "Phones Home" rule becomes true, the "GoTo Home Mode" changes settings in the home that puts for the all the other reactions that may or may not occur, depending on time of day, time of year, etc. When the any of the phones leave the geofenced area, and the "guest mode" isn't set (the last of the 6 triggers in the "Phones Home" rule, it reset's the rule state, which changes the House Mode to Away.

                Now, here is the real problem I'm having. As I mentioned in the initial post, I have a guest mode specifically for people that need to come in my home, that don't have the Home Assistant companion app, such as a neighbor that I might need to come over and check on our cats while we're gone, or our house cleaner that comes by once a month. They have a code to the alarm system, and I can tell by the user ID on the panel which user disarmed the system. From there, I want to put the system into Guest mode, so the Phone's Home mode won't reset, and the "Arm Away" rule set's the alarm system to Away, which in turn arms the interior motion sensors, and you can see where it would go badly from there.

                ef085637-2030-4ed4-91b5-06d68f1c0f23-image.png

                dd195622-1dcb-4afa-aca1-18cfedef2837-image.png

                So, what is happening, is when one of the guest's tries to disable the system, it rearms a minute or so later. The "GoTo Guest Mode" doesn't have a chance to put the "House Mode" into Guest.

                Guest Mode does work, if I'm able to have the "House Mode" set to Home first, then change it to Guest, but this unfortunately requires me to be at home to make this work.

                You can see below from Home Assistant, that when I'm away, and I try to manually put the House Mode into Guest, it immediately goes back into Away.

                2f08334f-32f2-4a53-b217-e9173aa08548-image.png

                In the Reator logs, you can see the immediate reset.

                root@hal:/home/tmorgenthaler/reactor/logs# cat reactor.log.1 | grep Phones
                [latest-25139]2025-06-16T13:31:47.275Z Rule:INFO Phones Home (rule-grp19i3lbdi in Phone presence) evaluated; rule state transition from RESET to SET!
                [latest-25139]2025-06-16T13:31:47.307Z Rule:INFO Phones Home (rule-grp19i3lbdi in Phone presence) evaluated; rule state transition from SET to RESET!
                [latest-25139]2025-06-16T13:31:47.316Z Engine:INFO Enqueueing "Phones Home<RESET>" (rule-grp19i3lbdi:R)
                [latest-25139]2025-06-16T13:31:47.318Z Engine:NOTICE Starting reaction Phones Home<RESET> (rule-grp19i3lbdi:R)
                [latest-25139]2025-06-16T13:31:47.346Z Engine:INFO Resuming reaction Phones Home<RESET> (rule-grp19i3lbdi:R) from step 1
                [latest-25139]2025-06-16T13:31:47.346Z Engine:INFO Phones Home<RESET> all actions completed.

                The only thing I can think of is there needs to be some sort of delay for the reset in the "Phones Home" rule, but I'm not sure the best way to approach it.

                G Offline
                G Offline
                gwp1
                wrote on last edited by gwp1
                #7

                @tamorgen reading thru this twice (and I may go back again and slow down even more) it sounds like there's no "link" between your rulesets. ie, the conditions for AWAY is being met even though the conditions for GUEST are, too.

                What does your AWAY ruleset look like?

                Here is my GUEST from AWAY ruleset (I don't have the luxury of surfacing the individual user code so I'm stuck being a bit more generic, ie "lock unlocked". As HOME requires my presence, this has been doing the trick.) My only issue: sometimes the lock is slow to report it's state so I've asked my authorized guests to enter their code, count to 10, the open the door. That let's Hubitat Safety Monitor to disarm.

                d06a8909-4d4f-4aab-a9d5-acde0a00b60e-image.png

                Here is my Change to AWAY for comparison sake.

                4f9fc608-61b8-4571-b649-a00aef491ac9-image.png 8c63571e-40b5-4fa4-b7d1-5d44759e44a0-image.png

                @toggledbits gave me very sound advise early on as I was prone to making my rulesets "do too much" in addition to waaaaaay overthinking/overcomplicating things.

                Instead of trying to make a ruleset that determines presence AND tries to set mode, just have it determine presence. Have one for your immediate family and one for your guests. Then use the TRUE FALSE state of them in your mode rules. (Saves you countless hours later, too, when you add/remove people from either presence ruleset.)

                *Hubitat C-7 2.4.3.177
                *Proxmox VE v8, Beelink MiniPC 12GBs, SSD

                *HAOS
                Core 2026.1.1
                w/ HA Connect ZWA-2
                FW: v1.1
                SDK: v7.23.1

                *Prod MSR in docker/portainer
                MSR: latest-26011-c621bbc7
                MQTTController: 25139
                ZWave Controller: 25139

                T 2 Replies Last reply
                0
                • G gwp1

                  @tamorgen reading thru this twice (and I may go back again and slow down even more) it sounds like there's no "link" between your rulesets. ie, the conditions for AWAY is being met even though the conditions for GUEST are, too.

                  What does your AWAY ruleset look like?

                  Here is my GUEST from AWAY ruleset (I don't have the luxury of surfacing the individual user code so I'm stuck being a bit more generic, ie "lock unlocked". As HOME requires my presence, this has been doing the trick.) My only issue: sometimes the lock is slow to report it's state so I've asked my authorized guests to enter their code, count to 10, the open the door. That let's Hubitat Safety Monitor to disarm.

                  d06a8909-4d4f-4aab-a9d5-acde0a00b60e-image.png

                  Here is my Change to AWAY for comparison sake.

                  4f9fc608-61b8-4571-b649-a00aef491ac9-image.png 8c63571e-40b5-4fa4-b7d1-5d44759e44a0-image.png

                  @toggledbits gave me very sound advise early on as I was prone to making my rulesets "do too much" in addition to waaaaaay overthinking/overcomplicating things.

                  Instead of trying to make a ruleset that determines presence AND tries to set mode, just have it determine presence. Have one for your immediate family and one for your guests. Then use the TRUE FALSE state of them in your mode rules. (Saves you countless hours later, too, when you add/remove people from either presence ruleset.)

                  T Offline
                  T Offline
                  tamorgen
                  wrote on last edited by
                  #8

                  @gwp1 ,
                  So, the conditions for Away, are essentially the reset of the "Phones Home" rule. If no phones are home, and the conditions for Guest haven't been set, then it's going the "Phones Home" rule becomes false and resets itself.

                  The Guest mode is met (or supposed to be) when the user code from my home alarm is read for 2 specific user IDs, or I have manually set the mode to Guest from Home Assistant (it's a input select value, the last screen shot in my last post). Unfortunately, this only works properly if someone in the HA companion app users is home to put the mode into Guest.

                  The Guest mode ends when a HA companion app user arrives back home.

                  1 Reply Last reply
                  0
                  • G gwp1

                    @tamorgen reading thru this twice (and I may go back again and slow down even more) it sounds like there's no "link" between your rulesets. ie, the conditions for AWAY is being met even though the conditions for GUEST are, too.

                    What does your AWAY ruleset look like?

                    Here is my GUEST from AWAY ruleset (I don't have the luxury of surfacing the individual user code so I'm stuck being a bit more generic, ie "lock unlocked". As HOME requires my presence, this has been doing the trick.) My only issue: sometimes the lock is slow to report it's state so I've asked my authorized guests to enter their code, count to 10, the open the door. That let's Hubitat Safety Monitor to disarm.

                    d06a8909-4d4f-4aab-a9d5-acde0a00b60e-image.png

                    Here is my Change to AWAY for comparison sake.

                    4f9fc608-61b8-4571-b649-a00aef491ac9-image.png 8c63571e-40b5-4fa4-b7d1-5d44759e44a0-image.png

                    @toggledbits gave me very sound advise early on as I was prone to making my rulesets "do too much" in addition to waaaaaay overthinking/overcomplicating things.

                    Instead of trying to make a ruleset that determines presence AND tries to set mode, just have it determine presence. Have one for your immediate family and one for your guests. Then use the TRUE FALSE state of them in your mode rules. (Saves you countless hours later, too, when you add/remove people from either presence ruleset.)

                    T Offline
                    T Offline
                    tamorgen
                    wrote on last edited by
                    #9
                    This post is deleted!
                    T 1 Reply Last reply
                    0
                    • T tamorgen

                      This post is deleted!

                      T Offline
                      T Offline
                      tamorgen
                      wrote on last edited by
                      #10

                      said in Need help figuring out how to delay a reset on reaction:

                      @gwp1 said in Need help figuring out how to delay a reset on reaction:

                      @toggledbits gave me very sound advise early on as I was prone to making my rulesets "do too much" in addition to waaaaaay overthinking/overcomplicating things.

                      Instead of trying to make a ruleset that determines presence AND tries to set mode, just have it determine presence. Have one for your immediate family and one for your guests. Then use the TRUE FALSE state of them in your mode rules. (Saves you countless hours later, too, when you add/remove people from either presence ruleset.)

                      That is essentially what I'm doing. The "Phones Home" doesn't set the mode, except to reset it. I suppose I could make the reset a separate rule, but I'm not sure how that would solve my problem.

                      And it's 100% possible I'm overthinking this, or I'm in so deep, that I'm not seeing the obvious. Many of these rules were built on the original Reactor in Vera, before converting to MSR. I had to work with the limitations of Vera at the time, and of course the plug-ins that stopped working quite regularly.

                      G 1 Reply Last reply
                      0
                      • T tamorgen

                        said in Need help figuring out how to delay a reset on reaction:

                        @gwp1 said in Need help figuring out how to delay a reset on reaction:

                        @toggledbits gave me very sound advise early on as I was prone to making my rulesets "do too much" in addition to waaaaaay overthinking/overcomplicating things.

                        Instead of trying to make a ruleset that determines presence AND tries to set mode, just have it determine presence. Have one for your immediate family and one for your guests. Then use the TRUE FALSE state of them in your mode rules. (Saves you countless hours later, too, when you add/remove people from either presence ruleset.)

                        That is essentially what I'm doing. The "Phones Home" doesn't set the mode, except to reset it. I suppose I could make the reset a separate rule, but I'm not sure how that would solve my problem.

                        And it's 100% possible I'm overthinking this, or I'm in so deep, that I'm not seeing the obvious. Many of these rules were built on the original Reactor in Vera, before converting to MSR. I had to work with the limitations of Vera at the time, and of course the plug-ins that stopped working quite regularly.

                        G Offline
                        G Offline
                        gwp1
                        wrote on last edited by
                        #11

                        @tamorgen You're falling into the same pitfalls I did. Notice my Mode SETs don't have resets. No need. The next appropriate rule SETs so there's no reason to reset. Any resets (like from GUEST back to AWAY or VACA) are done via their own SET rulesets.

                        I don't want to reset... I want to move on to another Mode - even if that mode happens to be the last mode I was in. Make sense?

                        One thing I have done: every time I change mode I write it to an expression called previous_mode. This let's me do things like "if the previous mode was AWAY, return to AWAY - but if the previous mode was VACA, return to VAC" -- again, these being sep SET rulesets and not RESETs.

                        Every time I tried to make use of RESETs I got buried as I had too many "what ifs" in my Conditions.

                        *Hubitat C-7 2.4.3.177
                        *Proxmox VE v8, Beelink MiniPC 12GBs, SSD

                        *HAOS
                        Core 2026.1.1
                        w/ HA Connect ZWA-2
                        FW: v1.1
                        SDK: v7.23.1

                        *Prod MSR in docker/portainer
                        MSR: latest-26011-c621bbc7
                        MQTTController: 25139
                        ZWave Controller: 25139

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          tamorgen
                          wrote on last edited by
                          #12

                          @gwp1 said in Need help figuring out how to delay a reset on reaction:

                          @tamorgen You're falling into the same pitfalls I did. Notice my Mode SETs don't have resets. No need. The next appropriate rule SETs so there's no reason to reset. Any resets (like from GUEST back to AWAY or VACA) are done via their own SET rulesets.

                          Okay, I think I've made progress thanks to your suggestion.

                          I took the thought of creating a new rule for "Go to Away Mode", and removed the reset from "Phones Home".

                          In the new "Go to Away Mode" rule, I added a condition that the mode needs to "Phones Home" rule needs to be sustained for 60 seconds.
                          688c0605-c4f5-4903-8b70-e1571c6f29f1-image.png This at least makes it specific, as to what my rules do.

                          Next I tried to toggle the house mode in Home Assistant, and well, it immediately changed to "Home", which is different than what I expected.

                          So now, the "Go To Home Mode" rule is being tripped. I added a very short 15 second "must be sustained" condition for the "Phones Home" rule state in that rule, and now it lets me change the drop down to Guest Mode. Unfortunately, 15 seconds later, i changes to Home mode, then it changes to Away mode. I feel like this is progress, but I need to figure out why it's not staying in Guest mode

                          G 1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            tamorgen
                            wrote on last edited by
                            #13

                            Okay, this actually seems to be working. I needed to disarm my home alarm first, then put it in Guest mode. It appears be holding now.

                            Next test, is I need to disarm the system with one of the guest users to see if it stays disabled.

                            1 Reply Last reply
                            0
                            • T Offline
                              T Offline
                              tamorgen
                              wrote on last edited by
                              #14

                              Test appears to be successful. I was able to use one of the guest users PINs for the alarm panel, and the system went into and stayed in Guest mode. Thanks to @gwp1 for reminding me to keep it simple and get rid of the reset.

                              G 1 Reply Last reply
                              0
                              • T tamorgen

                                @gwp1 said in Need help figuring out how to delay a reset on reaction:

                                @tamorgen You're falling into the same pitfalls I did. Notice my Mode SETs don't have resets. No need. The next appropriate rule SETs so there's no reason to reset. Any resets (like from GUEST back to AWAY or VACA) are done via their own SET rulesets.

                                Okay, I think I've made progress thanks to your suggestion.

                                I took the thought of creating a new rule for "Go to Away Mode", and removed the reset from "Phones Home".

                                In the new "Go to Away Mode" rule, I added a condition that the mode needs to "Phones Home" rule needs to be sustained for 60 seconds.
                                688c0605-c4f5-4903-8b70-e1571c6f29f1-image.png This at least makes it specific, as to what my rules do.

                                Next I tried to toggle the house mode in Home Assistant, and well, it immediately changed to "Home", which is different than what I expected.

                                So now, the "Go To Home Mode" rule is being tripped. I added a very short 15 second "must be sustained" condition for the "Phones Home" rule state in that rule, and now it lets me change the drop down to Guest Mode. Unfortunately, 15 seconds later, i changes to Home mode, then it changes to Away mode. I feel like this is progress, but I need to figure out why it's not staying in Guest mode

                                G Offline
                                G Offline
                                gwp1
                                wrote on last edited by
                                #15

                                @tamorgen said in Need help figuring out how to delay a reset on reaction:

                                In the new "Go to Away Mode" rule, I added a condition that the mode needs to "Phones Home" rule needs to be sustained for 60 seconds.

                                Doesn't the result of that mean the system waits for someone to be home for 60 seconds before flipping mode to HOME?

                                *Hubitat C-7 2.4.3.177
                                *Proxmox VE v8, Beelink MiniPC 12GBs, SSD

                                *HAOS
                                Core 2026.1.1
                                w/ HA Connect ZWA-2
                                FW: v1.1
                                SDK: v7.23.1

                                *Prod MSR in docker/portainer
                                MSR: latest-26011-c621bbc7
                                MQTTController: 25139
                                ZWave Controller: 25139

                                T 1 Reply Last reply
                                0
                                • T tamorgen

                                  Test appears to be successful. I was able to use one of the guest users PINs for the alarm panel, and the system went into and stayed in Guest mode. Thanks to @gwp1 for reminding me to keep it simple and get rid of the reset.

                                  G Offline
                                  G Offline
                                  gwp1
                                  wrote on last edited by
                                  #16

                                  @tamorgen said in Need help figuring out how to delay a reset on reaction:

                                  Thanks to @gwp1 for reminding me to keep it simple

                                  The thanks goes to @toggledbits who has long endured my questions on things only to have him say "wow... pare this down to smaller bits". Essentially, don't try to do things with "one big beautiful ruleset". 😁

                                  *Hubitat C-7 2.4.3.177
                                  *Proxmox VE v8, Beelink MiniPC 12GBs, SSD

                                  *HAOS
                                  Core 2026.1.1
                                  w/ HA Connect ZWA-2
                                  FW: v1.1
                                  SDK: v7.23.1

                                  *Prod MSR in docker/portainer
                                  MSR: latest-26011-c621bbc7
                                  MQTTController: 25139
                                  ZWave Controller: 25139

                                  T 1 Reply Last reply
                                  0
                                  • G gwp1

                                    @tamorgen said in Need help figuring out how to delay a reset on reaction:

                                    In the new "Go to Away Mode" rule, I added a condition that the mode needs to "Phones Home" rule needs to be sustained for 60 seconds.

                                    Doesn't the result of that mean the system waits for someone to be home for 60 seconds before flipping mode to HOME?

                                    T Offline
                                    T Offline
                                    tamorgen
                                    wrote on last edited by
                                    #17

                                    @gwp1, no only away. The Home mode is only 15 seconds.

                                    287d259d-cdc8-40e8-a723-e754ebfcb5f4-image.png

                                    However, since the "Phones Home" rule is a geofence rule (based upon the HA companion app), it detects the phone being there before I'm actually in the house. The Home mode does not disarm the alarm system, that is still manually done at the keypad. The only delay would be lights automatically turning on, or blinds opening during the day.

                                    1 Reply Last reply
                                    0
                                    • G gwp1

                                      @tamorgen said in Need help figuring out how to delay a reset on reaction:

                                      Thanks to @gwp1 for reminding me to keep it simple

                                      The thanks goes to @toggledbits who has long endured my questions on things only to have him say "wow... pare this down to smaller bits". Essentially, don't try to do things with "one big beautiful ruleset". 😁

                                      T Offline
                                      T Offline
                                      tamorgen
                                      wrote on last edited by
                                      #18

                                      @gwp1 said in Need help figuring out how to delay a reset on reaction:

                                      Essentially, don't try to do things with "one big beautiful ruleset"

                                      Seriously. It can't be done, but sometimes I swear I've paired it down into so many individual functions, I forget how it all works together. When I'm troubleshooting, I have to go back and look at the rules, and think "what was I trying to do here again?"

                                      T toggledbitsT 2 Replies Last reply
                                      0
                                      • T tamorgen

                                        @gwp1 said in Need help figuring out how to delay a reset on reaction:

                                        Essentially, don't try to do things with "one big beautiful ruleset"

                                        Seriously. It can't be done, but sometimes I swear I've paired it down into so many individual functions, I forget how it all works together. When I'm troubleshooting, I have to go back and look at the rules, and think "what was I trying to do here again?"

                                        T Offline
                                        T Offline
                                        tamorgen
                                        wrote on last edited by
                                        #19

                                        said in Need help figuring out how to delay a reset on reaction:

                                        @gwp1 said in Need help figuring out how to delay a reset on reaction:

                                        Essentially, don't try to do things with "one big beautiful ruleset"

                                        Seriously. It can't be done in one, but sometimes I swear I've paired it down into so many individual functions, I forget how it all works together. When I'm troubleshooting, I have to go back and look at the rules, and think "what was I trying to do here again?"

                                        1 Reply Last reply
                                        0
                                        • T tamorgen

                                          @gwp1 said in Need help figuring out how to delay a reset on reaction:

                                          Essentially, don't try to do things with "one big beautiful ruleset"

                                          Seriously. It can't be done, but sometimes I swear I've paired it down into so many individual functions, I forget how it all works together. When I'm troubleshooting, I have to go back and look at the rules, and think "what was I trying to do here again?"

                                          toggledbitsT Offline
                                          toggledbitsT Offline
                                          toggledbits
                                          wrote on last edited by
                                          #20

                                          @tamorgen said in Need help figuring out how to delay a reset on reaction:

                                          I have to go back and look at the rules, and think "what was I trying to do here again?"

                                          I have the same problem, and I wrote the darned thing. Use the comments. They really help.

                                          Author of Multi-system Reactor and Reactor, DelayLight, Switchboard, and about a dozen other plugins that run on Vera and openLuup.

                                          1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Recent Topics

                                          • How to upgrade from an old version of MSR?
                                            CrilleC
                                            Crille
                                            0
                                            25
                                            291

                                          • This trigger no longer working - complaining about the operator needing changing
                                            toggledbitsT
                                            toggledbits
                                            0
                                            18
                                            43

                                          • Can you run MSR on Home Assistant OS ?
                                            therealdbT
                                            therealdb
                                            0
                                            2
                                            17

                                          • HA and AI
                                            PablaP
                                            Pabla
                                            0
                                            2
                                            104

                                          • Self test
                                            CatmanV2C
                                            CatmanV2
                                            0
                                            3
                                            95

                                          • Access control - allowing anonymous user to dashboard
                                            toggledbitsT
                                            toggledbits
                                            0
                                            2
                                            115

                                          • VEC Virtual Switch Auto Off
                                            S
                                            SweetGenius
                                            1
                                            1
                                            81

                                          • Upcoming Storage Change -- Got Back-ups?
                                            toggledbitsT
                                            toggledbits
                                            3
                                            1
                                            76

                                          • Oddness in Copy/Move of Reactions
                                            G
                                            gwp1
                                            0
                                            1
                                            91

                                          • [Solved] function isRuleEnabled() issue
                                            CrilleC
                                            Crille
                                            0
                                            4
                                            190

                                          • [Reactor] Problem with Global Reactions and groups
                                            therealdbT
                                            therealdb
                                            0
                                            3
                                            175

                                          • Possible feature request 2?
                                            CatmanV2C
                                            CatmanV2
                                            0
                                            3
                                            150
                                          Powered by NodeBB | Contributors
                                          Hosted freely by 10RUPTiV - Solutions Technologiques | Contact us
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Unsolved