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
[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
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
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
Reset a delay
CatmanV2C
I'm sure this has been asked, and answered, but damned if I can figure it out Use case: I have a rear garden with lights. A door from the kitchen into the garden and a door from the garage. Currently if I open the kitchen door the lights come on (yay) and a 3 minute delay starts. After 3 minutes, no matter what else happens, the lights go off (Boo! But also yay!) What I would like is for the 3 minute delay until the lights go off to start from the latest door open event. That is, if I'm going from kitchen to garage, and back again, the lights stay on until there's three minutes of no activity. I've tried 'hacking' with a virtual switch, but can't seem to stop the delay. Any pointers? TIA C
Multi-System Reactor
Reactor Loading Screen Safari
S
Topic thumbnail image
Multi-System Reactor
Constraints states visually do not match actual
S
Topic thumbnail image
Multi-System Reactor
[MSR] Feature request: For Each action on arrays/groups
therealdbT
Topic thumbnail image
Multi-System Reactor
[Solved] Error: Command timeout
G
at _ClientAPI._commandTimeout (http://192.168.1.100:8111/client/ClientAPI.js:807:179 Seeing this randomly when returning to open browser tab after being away awhile. Once, maybe twice a day. "What did you do to trigger it?" Literally nothing, just walked away and returned and there it was. Actions taken in reasonably close proximity to this particular instance of it popping up: I'd restarted the MSR container in Portainer. I'll try to grab some logs here shortly.
Multi-System Reactor
Issue with MSR UI becoming unresponsive
S
I'm having an issue with MSR's UI being very unresponsive. It started happening a couple days ago and I didn't make any changes that would have caused this except adding some meross lan devices in HA. When I go into an entity action and use the search functionality, it usually will start filtering and then get to a place after a few letters are entered where it will take 30 seconds or more (sometimes minutes) for the UI to show what I am typing. During this time MSR ui is completely unresponsive. I've tried multiple browsers and multiple computers. HA and MSR are both deployed in docker. I have run HTOP on the host and when the problem happens there are no CPU/Memory spikes at all. From a functionality standpoint MSR is working perfectly. This seems to be an UI issue only. Do i need to ditch Docker and run MSR on a Proxmox VM? I have both stand alone Docker and Proxmox environments. I dont mind doing that I just want to be able to use the UI again... Installation method Home Assistant Container Core 2025.7.3 Frontend 20250702.3 nothing crazy in the logs except some openweather map stuff that doesn't make any sense as it is working fine in MSR Any help would be greatly appreciated Reactor latest-25328-b2ed1365 app 25328 configuration from /var/reactor/config NODE_PATH /opt/reactor:/opt/reactor/node_modules [latest-25328]2025-11-30T20:01:53.843Z <app:null> Reactor build latest-25328-b2ed1365 starting on v24.11.1 /usr/local/bin/node [latest-25328]2025-11-30T20:01:53.844Z <app:null> Process ID 1 user/group 0/0; docker; platform linux/x64 #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025; locale (undefined) [latest-25328]2025-11-30T20:01:53.844Z <app:null> Basedir /opt/reactor; data in /var/reactor/storage [latest-25328]2025-11-30T20:01:53.844Z <app:null> NODE_PATH=/opt/reactor:/opt/reactor/node_modules [latest-25328]2025-11-30T20:01:53.865Z <app:null> Resolved timezone=America/New_York, environment TZ=America/New_York; offset minutes from UTC=-300 [latest-25328]2025-11-30T20:01:53.867Z <default:null> Module i18n v25141 [latest-25328]2025-11-30T20:01:53.867Z <app:null> Configured locale (undefined); selected locale(s) en-US.UTF-8 [latest-25328]2025-11-30T20:01:53.879Z <app:null> Loaded locale en-US for en-US [latest-25328]2025-11-30T20:01:53.879Z <app:null> Local date/time using configured timezone and locale formatting is "11/30/2025, 3:01:53 PM" [latest-25328]2025-11-30T20:01:53.889Z <Structure:null> Module Structure v25326 [latest-25328]2025-11-30T20:01:53.890Z <Capabilities:null> Module Capabilities v24312 [latest-25328]2025-11-30T20:01:53.904Z <Plugin:null> Module Plugin v25141 [latest-25328]2025-11-30T20:01:53.923Z <Timer:null> Module Timer v25279 [latest-25328]2025-11-30T20:01:53.924Z <TimerBroker:null> Module TimerBroker v25314 [latest-25328]2025-11-30T20:01:53.927Z <Entity:null> Module Entity v25251 [latest-25328]2025-11-30T20:01:53.929Z <Controller:null> Module Controller v25253 [latest-25328]2025-11-30T20:01:53.930Z <AlertManager:null> Module AlertManager v25318 [latest-25328]2025-11-30T20:01:53.937Z <default:null> Module Ruleset v25283 [latest-25328]2025-11-30T20:01:53.937Z <default:null> Module Rulesets v25141 [latest-25328]2025-11-30T20:01:53.942Z <GlobalExpression:null> Module GlobalExpression v25258 [latest-25328]2025-11-30T20:01:53.953Z <Predicate:null> Module Predicate v25328 [latest-25328]2025-11-30T20:01:53.956Z <Rule:null> Module Rule v25323 [latest-25328]2025-11-30T20:01:53.958Z <GlobalReaction:null> Module GlobalReaction v25292 [latest-25328]2025-11-30T20:01:53.959Z <Engine:null> Module Engine v25325 [latest-25328]2025-11-30T20:01:53.964Z <httpapi:null> Module httpapi v25328 [latest-25328]2025-11-30T20:01:53.972Z <wsapi:null> Module wsapi v25328 [latest-25328]2025-11-30T20:01:53.994Z <TaskQueue:null> Module TaskQueue 24138 [latest-25328]2025-11-30T20:01:53.994Z <VeraController:null> Module VeraController v25141 [latest-25328]2025-11-30T20:01:54.179Z <HassController:null> Module HassController v25325 [latest-25328]2025-11-30T20:02:13.797Z <OWMWeatherController:null> Module OWMWeatherController v25268 [latest-25328]2025-11-30T20:02:13.800Z <SystemController:null> Module SystemController v25323 [latest-25328]2025-11-30T20:02:13.807Z <MQTTController:null> Module MQTTController v22092 [latest-25328]2025-11-30T20:02:20.630Z <OWMWeatherController:CRIT> FetchError: request to https://api.openweathermap.org/data/2.5/weather?lat=xxxxxxxxxx&lon=-xxxxxxxxx&appid=xxxxxxxxxxxxxxxxxxxxxxxxxx&units=standard&_r=1xxxxxxxxxxxxxxfailed, reason: [-] FetchError: request to https://api.openweathermap.org/data/2.5/weather?lat=xxxxxxxxxxx&lon=-xxxxxxxxxxxxxxxxxx&appid=xxxxxxxxxxxxxxxxxxx&units=standard&_r=xxxxxxxxxxxxxxxfailed, reason: at ClientRequest.<anonymous> (/opt/reactor/node_modules/node-fetch/lib/index.js:1501:11) at ClientRequest.emit (node:events:508:28) at ClientRequest.emit (node:domain:489:12) at emitErrorEvent (node:_http_client:108:11) at TLSSocket.socketErrorListener (node:_http_client:575:5) at TLSSocket.emit (node:events:508:28) at TLSSocket.emit (node:domain:489:12) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:89:21
Multi-System Reactor
Date/time condition
tunnusT
Topic thumbnail image
Multi-System Reactor
Device log?
G
@toggledbits is there a log that will show me what rule is turning on a specific device? I've got a switch that has been kicking on at 2200 ET for several nights now and the reactor.log doesn't have a thing in it that I can see on a device level (it being more rules-based).
Multi-System Reactor
Midnight crossing not working in date/time condition (build 25325)
tunnusT
Topic thumbnail image
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
[Solved] Local expression in Rule does not evaluate as they used to do
CrilleC
Topic thumbnail image
Multi-System Reactor
Home Assistant 2025.11.2 and latest-25315
CrilleC
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 4.4k 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.173
      *Proxmox VE v8, Beelink MiniPC 12GBs, SSD

      *HASS 2025.12.4, Core 2025.12.3
      w/ HA Connect ZWA-2
      FW: v1.1
      SDK: v7.23.1

      *Prod MSR in docker/portainer
      MSR: latest-25328-b2ed1365
      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.173
          *Proxmox VE v8, Beelink MiniPC 12GBs, SSD

          *HASS 2025.12.4, Core 2025.12.3
          w/ HA Connect ZWA-2
          FW: v1.1
          SDK: v7.23.1

          *Prod MSR in docker/portainer
          MSR: latest-25328-b2ed1365
          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.173
                *Proxmox VE v8, Beelink MiniPC 12GBs, SSD

                *HASS 2025.12.4, Core 2025.12.3
                w/ HA Connect ZWA-2
                FW: v1.1
                SDK: v7.23.1

                *Prod MSR in docker/portainer
                MSR: latest-25328-b2ed1365
                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.173
                        *Proxmox VE v8, Beelink MiniPC 12GBs, SSD

                        *HASS 2025.12.4, Core 2025.12.3
                        w/ HA Connect ZWA-2
                        FW: v1.1
                        SDK: v7.23.1

                        *Prod MSR in docker/portainer
                        MSR: latest-25328-b2ed1365
                        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.173
                                *Proxmox VE v8, Beelink MiniPC 12GBs, SSD

                                *HASS 2025.12.4, Core 2025.12.3
                                w/ HA Connect ZWA-2
                                FW: v1.1
                                SDK: v7.23.1

                                *Prod MSR in docker/portainer
                                MSR: latest-25328-b2ed1365
                                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.173
                                  *Proxmox VE v8, Beelink MiniPC 12GBs, SSD

                                  *HASS 2025.12.4, Core 2025.12.3
                                  w/ HA Connect ZWA-2
                                  FW: v1.1
                                  SDK: v7.23.1

                                  *Prod MSR in docker/portainer
                                  MSR: latest-25328-b2ed1365
                                  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

                                          • [HowTo] Using HABridge with Reactor
                                            CatmanV2C
                                            CatmanV2
                                            0
                                            9
                                            362

                                          • [Reactor] Bug when sending MQTT boolean payloads
                                            toggledbitsT
                                            toggledbits
                                            0
                                            4
                                            114

                                          • Genuinely impressed with Zigbee and HA / Reactor
                                            therealdbT
                                            therealdb
                                            1
                                            8
                                            268

                                          • Difficulty defining repeating annual period
                                            G
                                            gwp1
                                            0
                                            5
                                            68

                                          • Need help with sequence
                                            therealdbT
                                            therealdb
                                            0
                                            3
                                            41

                                          • Possible feature request?
                                            therealdbT
                                            therealdb
                                            0
                                            5
                                            151

                                          • Copying a global reaction
                                            tunnusT
                                            tunnus
                                            0
                                            1
                                            41

                                          • Logic Assistance: Exterior Lights on when Illuminance Below Threshold
                                            CatmanV2C
                                            CatmanV2
                                            0
                                            11
                                            321

                                          • Time series documentation
                                            tunnusT
                                            tunnus
                                            0
                                            11
                                            379

                                          • MQTT templates for ZIgbee scene controller, or a better way?
                                            CatmanV2C
                                            CatmanV2
                                            0
                                            3
                                            148

                                          • Reset a delay
                                            CatmanV2C
                                            CatmanV2
                                            0
                                            8
                                            211
                                          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