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. Alerts - (vera>device_699) does not have attribute ?attr?
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
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
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
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

Alerts - (vera>device_699) does not have attribute ?attr?

Scheduled Pinned Locked Moved Multi-System Reactor
32 Posts 2 Posters 4.8k Views 2 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.
  • cw-kidC Offline
    cw-kidC Offline
    cw-kid
    wrote on last edited by
    #5

    Device 699 information from the Entities area:

    power_switch.state=false
    x_vera_device.configured=true
    x_vera_device.device_number=699
    x_vera_device.device_type="urn:schemas-upnp-org:device:BinaryLight:1"
    x_vera_device.failed=null
    x_vera_device.mapped_by="*;device_type=urn:schemas-upnp-org:device:BinaryLight:1"
    x_vera_device.mapped_class="generic_switch"
    x_vera_svc_micasaverde_com_HaDevice1.ChildrenSameRoom="1"
    x_vera_svc_micasaverde_com_HaDevice1.Configured="1"
    x_vera_svc_micasaverde_com_HaDevice1.FirstConfigured="1616524758"
    x_vera_svc_micasaverde_com_HaDevice1.LastUpdate="1616525032"
    x_vera_svc_micasaverde_com_HaDevice1.ModeSetting="1:;2:;3:;4:"
    x_vera_svc_micasaverde_com_HaDevice1.PollRatings="5.00"
    x_vera_svc_micasaverde_com_SecuritySensor1.Armed="0"
    x_vera_svc_micasaverde_com_SecuritySensor1.ArmedTripped="0"
    x_vera_svc_micasaverde_com_SecuritySensor1.IgnoreTripTime="2"
    x_vera_svc_micasaverde_com_SecuritySensor1.LastTrip="1617297343"
    x_vera_svc_micasaverde_com_SecuritySensor1.Tripped="0"
    x_vera_svc_micasaverde_com_ZWaveDevice1.AgiInfo="X"
    x_vera_svc_micasaverde_com_ZWaveDevice1.AlarmType="0x7,0x8,"
    x_vera_svc_micasaverde_com_ZWaveDevice1.AlarmVersion="0,2"
    x_vera_svc_micasaverde_com_ZWaveDevice1.AssociationNum="0"
    x_vera_svc_micasaverde_com_ZWaveDevice1.Capabilities="211,156,1,4,7,1,L,R,B,RS,|37S,49S:5,85,89S,90S,94,108S,112S,113S:4,114S,115S,122S,133S,134S,152,159,"
    x_vera_svc_micasaverde_com_ZWaveDevice1.ConfiguredAssoc=""
    x_vera_svc_micasaverde_com_ZWaveDevice1.ConfiguredVariable="1-PIR Trigger Off period,2d,60,2-Lux sensor threshold,2d,30,3-Lux auto report,2d,1"
    x_vera_svc_micasaverde_com_ZWaveDevice1.FirmwareInfo="96,4609,29529"
    x_vera_svc_micasaverde_com_ZWaveDevice1.LastArr="1617238811,7"
    x_vera_svc_micasaverde_com_ZWaveDevice1.LastNnu="1617238807,7"
    x_vera_svc_micasaverde_com_ZWaveDevice1.LastReset="1616524754"
    x_vera_svc_micasaverde_com_ZWaveDevice1.LastRouteUpdate="1616525092"
    x_vera_svc_micasaverde_com_ZWaveDevice1.ManufacturerInfo="96,18,1"
    x_vera_svc_micasaverde_com_ZWaveDevice1.NodeInfo="55,5e,98,9f,"
    x_vera_svc_micasaverde_com_ZWaveDevice1.PlusInfo="1,5,0,12,7,12,7"
    x_vera_svc_micasaverde_com_ZWaveDevice1.PollOk="2"
    x_vera_svc_micasaverde_com_ZWaveDevice1.PollSettings="60"
    x_vera_svc_micasaverde_com_ZWaveDevice1.SecurityFailed="0"
    x_vera_svc_micasaverde_com_ZWaveDevice1.SensorMlType="3"
    x_vera_svc_micasaverde_com_ZWaveDevice1.SubscribedAlarms=",0x7,0x8,"
    x_vera_svc_micasaverde_com_ZWaveDevice1.VariablesGet="1,60,2,30,3,1,"
    x_vera_svc_micasaverde_com_ZWaveDevice1.VariablesSet="1-PIR Trigger Off period,2d,60,2-Lux sensor threshold,2d,30,3-Lux auto report,2d,1"
    x_vera_svc_micasaverde_com_ZWaveDevice1.VersionInfo="3,4,61,1,1"
    x_vera_svc_micasaverde_com_ZWaveNetwork1.ConsecutivePollFails="0"
    x_vera_svc_micasaverde_com_ZWaveNetwork1.LastPollSuccess="1616525034"
    x_vera_svc_upnp_org_SwitchPower1.Status="0"
    x_vera_svc_upnp_org_SwitchPower1.Target="0"
    zwave_device.capabilities="211,156,1,4,7,1,L,R,B,RS,|37S,49S:5,85,89S,90S,94,108S,112S,113S:4,114S,115S,122S,133S,134S,152,159,"
    zwave_device.failed=null
    zwave_device.manufacturer_info="96,18,1"
    zwave_device.node_id=133
    zwave_device.version_info="3,4,61,1,1"
    Capabilities: power_switch, toggle, x_vera_device, x_vera_svc_micasaverde_com_EnergyMetering1, x_vera_svc_micasaverde_com_HaDevice1, x_vera_svc_micasaverde_com_SecuritySensor1, x_vera_svc_micasaverde_com_ZWaveDevice1, x_vera_svc_micasaverde_com_ZWaveNetwork1, x_vera_svc_upnp_org_SwitchPower1, zwave_device
    Actions: power_switch.off, power_switch.on, toggle.toggle, x_vera_device.set_variable, x_vera_svc_micasaverde_com_EnergyMetering1.ResetKWH, x_vera_svc_micasaverde_com_HaDevice1.AllowPairing, x_vera_svc_micasaverde_com_HaDevice1.Poll, x_vera_svc_micasaverde_com_HaDevice1.Reconfigure, x_vera_svc_micasaverde_com_HaDevice1.Remove, x_vera_svc_micasaverde_com_HaDevice1.SetPollFrequency, x_vera_svc_micasaverde_com_HaDevice1.StressTest, x_vera_svc_micasaverde_com_HaDevice1.ToggleState, x_vera_svc_micasaverde_com_SecuritySensor1.SetArmed, x_vera_svc_micasaverde_com_ZWaveNetwork1.AddNodes, x_vera_svc_micasaverde_com_ZWaveNetwork1.BackupDongle, x_vera_svc_micasaverde_com_ZWaveNetwork1.DownloadNetwork, x_vera_svc_micasaverde_com_ZWaveNetwork1.HealNetwork, x_vera_svc_micasaverde_com_ZWaveNetwork1.PollAllNodes, x_vera_svc_micasaverde_com_ZWaveNetwork1.PutByte, x_vera_svc_micasaverde_com_ZWaveNetwork1.ReconfigureAllNodes, x_vera_svc_micasaverde_com_ZWaveNetwork1.RemoveNodes, x_vera_svc_micasaverde_com_ZWaveNetwork1.ResetNetwork, x_vera_svc_micasaverde_com_ZWaveNetwork1.SendData, x_vera_svc_micasaverde_com_ZWaveNetwork1.SetPolling, x_vera_svc_micasaverde_com_ZWaveNetwork1.SimulateIncomingData, x_vera_svc_micasaverde_com_ZWaveNetwork1.UpdateNeighbors, x_vera_svc_micasaverde_com_ZWaveNetwork1.UpdateNetwork, x_vera_svc_upnp_org_SwitchPower1.SetTarget, zwave_device.poll
    
    1 Reply Last reply
    0
    • cw-kidC Offline
      cw-kidC Offline
      cw-kid
      wrote on last edited by cw-kid
      #6

      I just updated to the latest version of MSR 21091 and now I have some more new alerts regarding this particular device:

      An Entity Attribute condition in rule Deck Floodlight (Disarmed) - Tripped (Day) - Send Alert failed because the referenced entity Deck Floodlight (vera>device_699) does not have attribute x_vera_svc_micasaverde_com_SecuritySensor1.Armed

      Not sure what I can do about this Everspring flood light device and these alerts ?

      So I have edited my rules to use the virtual motion sensor device instead for their triggers instead of the parent device (Binary Light).

      Also this is a new but similar Alert regarding the Vera Day or Night plugin

      An Entity Attribute condition in rule Night - Day / Night Plugin failed because the referenced entity Day or Night (vera>device_43) does not have attribute ?attr?

      Status 1 or 0 appears to have gone missing for this rule:

      78391548-5ee2-4054-802d-9a97d6cc3038-image.png

      https://reactor.toggledbits.com/mantisbt/view.php?id=159

      toggledbitsT 1 Reply Last reply
      0
      • toggledbitsT Offline
        toggledbitsT Offline
        toggledbits
        wrote on last edited by toggledbits
        #7

        All x_vera_state attributes were removed several builds ago. You'll find a x_vera_svc replacement for it. You could also just use the native date/time and sunrise/sunset conditions, rather than relying on yet another plugin.

        And by the way, the alerts from 21090 will persist until you dismiss them. You should not see any {attr} in messages from 21091, but alerts from 21090, if they were not dismissed, would still have them. With a few exceptions (controller up/down), alerts don't go away until you dismiss them.

        So I have edited my rules to use the virtual motion sensor device instead for their triggers instead of the parent device (Binary Light).

        This isn't going to help the troubleshooting. Please go back to the prior configuration, and let's continue trying to figure this out.

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

        cw-kidC 1 Reply Last reply
        0
        • toggledbitsT toggledbits

          All x_vera_state attributes were removed several builds ago. You'll find a x_vera_svc replacement for it. You could also just use the native date/time and sunrise/sunset conditions, rather than relying on yet another plugin.

          And by the way, the alerts from 21090 will persist until you dismiss them. You should not see any {attr} in messages from 21091, but alerts from 21090, if they were not dismissed, would still have them. With a few exceptions (controller up/down), alerts don't go away until you dismiss them.

          So I have edited my rules to use the virtual motion sensor device instead for their triggers instead of the parent device (Binary Light).

          This isn't going to help the troubleshooting. Please go back to the prior configuration, and let's continue trying to figure this out.

          cw-kidC Offline
          cw-kidC Offline
          cw-kid
          wrote on last edited by cw-kid
          #8

          @toggledbits said in Alerts - (vera>device_699) does not have attribute ?attr?:

          ou could also just use the native date/time and sunrise/sunset conditions, rather than relying on yet another plugin.

          I think I added it just as a test to see if I could use the status of the Day or Night plugin. I've changed it to use x_vera_svc...status I didn't see that earlier when I looked.

          All my other rules are using the MSR inbuilt sunrise/sunset conditions.

          I've cleared the other Alerts and restarted MSR, as yet none have come back.

          Thanks

          1 Reply Last reply
          0
          • toggledbitsT Offline
            toggledbitsT Offline
            toggledbits
            wrote on last edited by toggledbits
            #9

            Now that we know exactly what state variable it was complaining about, I took a look at the vera-device_699.json file you posted earlier, and sure enough the state variable Armed is missing (go check my work, please). So that seems like there's an odd device implementation thing going on in Luup.

            I think we can work around it, though, and make it stable for your rules, by telling MSR that the device is special and instead of letting just have default Vera-specific capabilities, give it additional MSR-native capabilities. These will give you null when the variable is missing, but you can handle (or ignore) that more easily and it won't throw an error or alert. So you'll just test your device using the MSR-native attributes instead of the Vera service ones.

            I'll make up the changes to the device configuration file and PM it to you, and you can try it. It should work.

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

            cw-kidC 1 Reply Last reply
            0
            • toggledbitsT toggledbits

              Now that we know exactly what state variable it was complaining about, I took a look at the vera-device_699.json file you posted earlier, and sure enough the state variable Armed is missing (go check my work, please). So that seems like there's an odd device implementation thing going on in Luup.

              I think we can work around it, though, and make it stable for your rules, by telling MSR that the device is special and instead of letting just have default Vera-specific capabilities, give it additional MSR-native capabilities. These will give you null when the variable is missing, but you can handle (or ignore) that more easily and it won't throw an error or alert. So you'll just test your device using the MSR-native attributes instead of the Vera service ones.

              I'll make up the changes to the device configuration file and PM it to you, and you can try it. It should work.

              cw-kidC Offline
              cw-kidC Offline
              cw-kid
              wrote on last edited by
              #10

              @toggledbits

              On the Everspring Flood light parent device (Binary Light) I've just looked in Vera and there is no "Armed" variable.

              There is this variable however which is strange.

              "urn:micasaverde-com:serviceId:SecuritySensor1 / ArmedTripped"

              I could add an "Armed" variable to the device using the "New Service" function in Vera, think I know how to do that.

              toggledbitsT 1 Reply Last reply
              0
              • cw-kidC Offline
                cw-kidC Offline
                cw-kid
                wrote on last edited by cw-kid
                #11

                New Alert just appeared

                "An Entity Attribute condition in rule Vera Luup Reloads failed because the referenced entity vera>system could not be found"

                The rule looks to be OK however:

                76522677-1f76-40d4-96ab-07b12f5a30e0-image.png

                EDIT: Actually I think this Alert might happen if I manually reload the LUUP engine on Vera.

                This rule is meant to keep track of the number of LUUP engine reloads.

                1 Reply Last reply
                0
                • cw-kidC cw-kid

                  @toggledbits

                  On the Everspring Flood light parent device (Binary Light) I've just looked in Vera and there is no "Armed" variable.

                  There is this variable however which is strange.

                  "urn:micasaverde-com:serviceId:SecuritySensor1 / ArmedTripped"

                  I could add an "Armed" variable to the device using the "New Service" function in Vera, think I know how to do that.

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

                  @cw-kid said in Alerts - (vera>device_699) does not have attribute ?attr?:

                  On the Everspring Flood light parent device (Binary Light) I've just looked in Vera and there is no "Armed" variable.

                  It would have to have been there at some point or you could not have chosen it for your rule. The list in the rule editor only shows what exists on the device/entity, not what it thinks would normally be there. So it was there at one point, and disappeared later, and this is not that unusual in the Vera world, sadly.

                  You can try re-creating it. It would be educational to see if it "sticks" after a reload, and after changing house mode, which aside from user action are the principal ways that variable gets played with.

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

                  cw-kidC 1 Reply Last reply
                  0
                  • toggledbitsT toggledbits

                    @cw-kid said in Alerts - (vera>device_699) does not have attribute ?attr?:

                    On the Everspring Flood light parent device (Binary Light) I've just looked in Vera and there is no "Armed" variable.

                    It would have to have been there at some point or you could not have chosen it for your rule. The list in the rule editor only shows what exists on the device/entity, not what it thinks would normally be there. So it was there at one point, and disappeared later, and this is not that unusual in the Vera world, sadly.

                    You can try re-creating it. It would be educational to see if it "sticks" after a reload, and after changing house mode, which aside from user action are the principal ways that variable gets played with.

                    cw-kidC Offline
                    cw-kidC Offline
                    cw-kid
                    wrote on last edited by
                    #13

                    @toggledbits said in Alerts - (vera>device_699) does not have attribute ?attr?:

                    It would have to have been there at some point or you could not have chosen it for your rule

                    "Tripped" I was using "Tripped" as the trigger in the rule not "Armed".

                    Looking in the device dump .json file I did the other day I can't see "Armed" in there either. So maybe this device never had it in the first place.

                    1 Reply Last reply
                    0
                    • cw-kidC cw-kid

                      I just updated to the latest version of MSR 21091 and now I have some more new alerts regarding this particular device:

                      An Entity Attribute condition in rule Deck Floodlight (Disarmed) - Tripped (Day) - Send Alert failed because the referenced entity Deck Floodlight (vera>device_699) does not have attribute x_vera_svc_micasaverde_com_SecuritySensor1.Armed

                      Not sure what I can do about this Everspring flood light device and these alerts ?

                      So I have edited my rules to use the virtual motion sensor device instead for their triggers instead of the parent device (Binary Light).

                      Also this is a new but similar Alert regarding the Vera Day or Night plugin

                      An Entity Attribute condition in rule Night - Day / Night Plugin failed because the referenced entity Day or Night (vera>device_43) does not have attribute ?attr?

                      Status 1 or 0 appears to have gone missing for this rule:

                      78391548-5ee2-4054-802d-9a97d6cc3038-image.png

                      https://reactor.toggledbits.com/mantisbt/view.php?id=159

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

                      @cw-kid said in Alerts - (vera>device_699) does not have attribute ?attr?:

                      An Entity Attribute condition in rule Deck Floodlight (Disarmed) - Tripped (Day) - Send Alert failed because the referenced entity Deck Floodlight (vera>device_699) does not have attribute x_vera_svc_micasaverde_com_SecuritySensor1.Armed

                                                            ^^^^^^^^^^^^^^^^
                      

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

                      cw-kidC 1 Reply Last reply
                      0
                      • toggledbitsT toggledbits

                        @cw-kid said in Alerts - (vera>device_699) does not have attribute ?attr?:

                        An Entity Attribute condition in rule Deck Floodlight (Disarmed) - Tripped (Day) - Send Alert failed because the referenced entity Deck Floodlight (vera>device_699) does not have attribute x_vera_svc_micasaverde_com_SecuritySensor1.Armed

                                                              ^^^^^^^^^^^^^^^^
                        
                        cw-kidC Offline
                        cw-kidC Offline
                        cw-kid
                        wrote on last edited by
                        #15

                        @toggledbits said in Alerts - (vera>device_699) does not have attribute ?attr?:

                        An Entity Attribute condition in rule Deck Floodlight (Disarmed) - Tripped (Day) - Send Alert failed because the referenced entity Deck Floodlight (vera>device_699) does not have attribute x_vera_svc_micasaverde_com_SecuritySensor1.Armed

                        oh LOL that was a Constraint. So yes looks like I was using "Armed" also at some point.

                        So it has vanished as you suggested.

                        1 Reply Last reply
                        0
                        • toggledbitsT Offline
                          toggledbitsT Offline
                          toggledbits
                          wrote on last edited by
                          #16

                          Whew! OK... that's good (no, really). So, I have the changes for the device def. I'll send that via PM. You can drop it into your reactor/server/lib directory and restart Reactor. It should give you the standard arming service, with a value report of null (if it's still missing at that point -- hope so, don't change anything on the Vera yet!). Even if you don't use it, I'd like to confirm this approach would work if it comes up for other devices.

                          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
                          • cw-kidC Offline
                            cw-kidC Offline
                            cw-kid
                            wrote on last edited by
                            #17

                            OK I won't do anything on the Vera side or attempt to add back in the "Armed" variable using the New Service function.

                            1 Reply Last reply
                            0
                            • toggledbitsT Offline
                              toggledbitsT Offline
                              toggledbits
                              wrote on last edited by
                              #18

                              The other issue, found that, will be fixed in today's build (restart reporting system entity missing).

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

                              cw-kidC 1 Reply Last reply
                              1
                              • toggledbitsT toggledbits

                                The other issue, found that, will be fixed in today's build (restart reporting system entity missing).

                                cw-kidC Offline
                                cw-kidC Offline
                                cw-kid
                                wrote on last edited by cw-kid
                                #19

                                @toggledbits

                                OK I have uploaded the vera_devices.yaml file and restarted MSR.

                                For the Everspring Flood light parent device this is what I am now seeing:

                                07ac2434-ea57-4241-a721-22d27d39dea6-image.png

                                ddce6d79-c6fa-46c3-b10f-f09a66ce0fda-image.png

                                a3998565-12ff-4b98-8589-06f9f99a32c8-image.png

                                SecuritySensor1.Armed is the last item in the list in the drop down box.

                                276b330b-7557-4007-8f5f-614539a1fa17-image.png

                                So what does this mean ?

                                It can't see the actual "Armed" state if that variable has now vanished off Vera.

                                It seems to think its "false" not null.

                                1 Reply Last reply
                                0
                                • toggledbitsT Offline
                                  toggledbitsT Offline
                                  toggledbits
                                  wrote on last edited by toggledbits
                                  #20

                                  Your other snip shows the variable is there now, at the bottom of the list, therefore it has appeared and has a value, and null is not to be expected. This is exactly why I am taking this approach: the arming capability will make sure that its state attribute always exists with a value of true, false, or null, the first two following the value of SecuritySensor1/Armed when it is present on the device, or getting null if it is not. This is easier to handle in rules/conditions than getting an error thrown; you can treat null and false as equivalent, in all likelihood, which is exactly what a simple is TRUE condition operation would do.

                                  For the sake of clarity, the update did not make the Armed variable appear on the device. It can't do that. It only affects how it reads the device data that is available. So something created Armed on the Vera side in the interim, perhaps Vera itself.

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

                                  cw-kidC 1 Reply Last reply
                                  0
                                  • toggledbitsT toggledbits

                                    Your other snip shows the variable is there now, at the bottom of the list, therefore it has appeared and has a value, and null is not to be expected. This is exactly why I am taking this approach: the arming capability will make sure that its state attribute always exists with a value of true, false, or null, the first two following the value of SecuritySensor1/Armed when it is present on the device, or getting null if it is not. This is easier to handle in rules/conditions than getting an error thrown; you can treat null and false as equivalent, in all likelihood, which is exactly what a simple is TRUE condition operation would do.

                                    For the sake of clarity, the update did not make the Armed variable appear on the device. It can't do that. It only affects how it reads the device data that is available. So something created Armed on the Vera side in the interim, perhaps Vera itself.

                                    cw-kidC Offline
                                    cw-kidC Offline
                                    cw-kid
                                    wrote on last edited by
                                    #21

                                    @toggledbits said in Alerts - (vera>device_699) does not have attribute ?attr?:

                                    Your other snip shows the variable is there now, at the bottom of the list, therefore it has appeared and has a value, and null is not to be expected

                                    But I still can't see the "Armed" variable listed in Vera. I have hard refreshed the browser.

                                    1 Reply Last reply
                                    0
                                    • toggledbitsT Offline
                                      toggledbitsT Offline
                                      toggledbits
                                      wrote on last edited by toggledbits
                                      #22

                                      Well, it would not be listed if it hadn't come back in user_data. If, since the last MSR restart, the Vera reported that variable even once, MSR would have it. If it later is missing, there's actually no way for MSR to know it's missing, it thinks it's just not being updated/no updates for it, so it keeps it at the last value it got. The only way to reset that cached state is to restart MSR.

                                      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
                                      • cw-kidC Offline
                                        cw-kidC Offline
                                        cw-kid
                                        wrote on last edited by cw-kid
                                        #23

                                        This is confusing.

                                        This is the SDATA for this device, "armed" is indeed present:

                                        { "name": "Deck Floodlight", "altid": "133", "id": 699, "category": 3, "subcategory": 0, "room": 5, "parent": 1, "status": "0", "configured": "1", "armedtripped": "0", "lasttrip": "1617376314", "tripped": "0", "armed": "0" },
                                        

                                        However I cannot see that variable in the Vera UI7 web GUI even after reloading the LUUP engine and hard refreshing the browser.

                                        1 Reply Last reply
                                        0
                                        • toggledbitsT Offline
                                          toggledbitsT Offline
                                          toggledbits
                                          wrote on last edited by
                                          #24

                                          Change out sdata for status and see what it reports.

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

                                          cw-kidC 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Recent Topics

                                          • VEC Virtual Switch Auto Off
                                            S
                                            SweetGenius
                                            0
                                            1
                                            12

                                          • Access control - allowing anonymous user to dashboard
                                            tunnusT
                                            tunnus
                                            0
                                            1
                                            15

                                          • Upcoming Storage Change -- Got Back-ups?
                                            toggledbitsT
                                            toggledbits
                                            0
                                            1
                                            15

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

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

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

                                          • Possible feature request 2?
                                            CatmanV2C
                                            CatmanV2
                                            0
                                            3
                                            67

                                          • Reactor (Multi-System/Multi-Hub) Announcements
                                            toggledbitsT
                                            toggledbits
                                            5
                                            133
                                            79.8k

                                          • Genuinely impressed with Zigbee and HA / Reactor
                                            CatmanV2C
                                            CatmanV2
                                            1
                                            9
                                            370

                                          • Copying a global reaction
                                            toggledbitsT
                                            toggledbits
                                            0
                                            3
                                            111

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

                                          • [Reactor] Bug when sending MQTT boolean payloads
                                            toggledbitsT
                                            toggledbits
                                            0
                                            4
                                            163
                                          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