-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
Comments
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. |
…, Fix Python Code Inputs running pylint
There's now a yet-to-be released fix on the master branch that should fix this. |
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. |
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](https://private-user-images.githubusercontent.com/12551280/270094452-ff977189-341d-4aa0-ae11-58fe43141d55.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgwNzcxMjgsIm5iZiI6MTcxODA3NjgyOCwicGF0aCI6Ii8xMjU1MTI4MC8yNzAwOTQ0NTItZmY5NzcxODktMzQxZC00YWEwLWFlMTEtNThmZTQzMTQxZDU1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjExVDAzMzM0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNmOGMyZTZlN2FmY2RlODZhOTMwNTQ2YjBlYTdlMzRiMzM1YTA4NTkzYjc4YzJiYjM4NzdiYzM1YjdmNTZiMzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CHJWjh976tIOGC1WfRVTtVJ1y1Rv4n4Clz3oblVvvQw)
Here are the [Action] Equation (Single-Measurement) settings...
![Screenshot at 2023-09-23 00-44-25](https://private-user-images.githubusercontent.com/12551280/270094633-aba38bf8-b04b-426e-87e0-de4b60b88c1b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgwNzcxMjgsIm5iZiI6MTcxODA3NjgyOCwicGF0aCI6Ii8xMjU1MTI4MC8yNzAwOTQ2MzMtYWJhMzhiZjgtYjA0Yi00MjZlLTg3ZTAtZGU0YjYwYjg4YzFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjExVDAzMzM0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmNzRmODE5NzNhMDRjN2ZhZDk4ZGVjMjA5YTNjNWYyZTFkNzgwZGFkZDJkZmFjMjBhZWQyYjMwMTdkZWM4NDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VhrtwArPTgbpWaNb5dGKTraOpCMWQqVIespGe_thLtI)
Here are the sensor readings from the Mycodo Live Measurements page...
![Screenshot at 2023-09-23 00-40-12](https://private-user-images.githubusercontent.com/12551280/270094688-53c9c78b-0808-46a6-b198-a041d3b5fd85.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgwNzcxMjgsIm5iZiI6MTcxODA3NjgyOCwicGF0aCI6Ii8xMjU1MTI4MC8yNzAwOTQ2ODgtNTNjOWM3OGItMDgwOC00NmE2LWIxOTgtYTA0MWQzYjVmZDg1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjExVDAzMzM0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhNjY5MmJhNDNhZDBmODQ5NDZmY2QwNTdlMmYxOGUyNjY5MWNiNzE3Y2Q5MWMzZjg0MGMxODE1MjA3ZjlmYTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.iEn0Qbv3hUOQgyz0OeBlef3ZBoSKqxfe0jsOYM0TuHo)
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.
The text was updated successfully, but these errors were encountered: