Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Action] Equation (Single-Measurement) is not working for MQTT Subscribe (value payload) Input #1336

Closed
LucidEye opened this issue Sep 23, 2023 · 3 comments

Comments

@LucidEye
Copy link

Mycodo 8.15.9
R-Pi 4B 4GB
Latest Bullseye R-Pi OS

I have an MQTT Subscribe (value payload) Input setup. The input is working, receiving telemetry from the remote sensor via MQTT.
However, this sensor is a little off, and I am using the Equation (Single-Measurement) Action to "adjust / calibrate" the measurement.
The problem is that this action does not appear to be working.

Here is a shot of the sensor's direct reading from the ESP32 firmware running the remote sensor...
Screenshot at 2023-09-23 00-39-10

Here are the [Action] Equation (Single-Measurement) settings...
Screenshot at 2023-09-23 00-44-25

Here are the sensor readings from the Mycodo Live Measurements page...
Screenshot at 2023-09-23 00-40-12

As you can see, the measurements still read the same after being received by the Mycodo input, and the Equation (single-measurement) doesn't appear to have been applied.

I am using the Equation (single-measurement) on another sensor that is on I2C, and that is working, it is adjusting the measurement on that input, just not the MQTT input.

@kizniche
Copy link
Owner

I found the issue, which is related to any Input that has a variable number of measurements. These inputs store measurements to the database differently than others and, consequently, are not executing actions. I'm currently attempting to develop a solution.

kizniche added a commit that referenced this issue Nov 21, 2023
@kizniche
Copy link
Owner

There's now a yet-to-be released fix on the master branch that should fix this.

@LucidEye
Copy link
Author

Thank you. I would prefer to wait until the next official release to test this on my live system since I currently don't have a dedicated test system running anymore... I needed that Pi for another project.

@kizniche kizniche closed this as completed Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants