Announcement

Collapse
No announcement yet.

Maximum Daily Value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Maximum Daily Value

    Have an air quality sensor reporting 2.5 PM to a virtual device in Homeseer 3 using Michael's MQTT plugin v5.20.1.3. Is there a way to have another virtual device to report todays maximum reading? Want to email this everyday to me. Thanks

    #2
    The general question is if mcsMQTT provides multiple devices with each updated on some received data. The answer is yes with versions starting with 5.26.6.0. I suspect 5.20.1.3 will not support the desired functionality.

    This has not been tried, but the design intent is that the Edit tab it used to create a rate/extra device. In the Edit tab expression for the extra device the MAX function is used to evaluate a reading that is considered the MAX. Look at Table 3 in mcsMQTT.pdf (https://plugins.homeseer.com/guides/410_mcsMQTT.pdf) for Max function syntax. If daily rather than absolute reading is desired then an additional event is needed to reset the device monitoring the max to 0 at midnight. This is just a simple setting the DeviceValue to 0 at midnight.

    As a note, be careful that you are entering the MAX function in the Expression box of the rate/extra device and not the Expression box of the raw device that has been associated with HS. Also look at replacement variables in Table 23. DVR: (ref): is what you will want as part of the Expression for the current Max value that is store in the ref HS device. (no space after the colon. Space added to avoid the emoji).

    I think you will need to update to version at https://forums.homeseer.com/forum/hs...ge-log-hs4-hs3. The unzipped .dll & .pdb goes in \bin\mcsMQTT folder.

    I will evaluate a test case to confirm there are no unexpected behavior it you do not have success with the above guidance.

    Comment

    Working...
    X