-
Notifications
You must be signed in to change notification settings - Fork 9
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
Adapter only partly working or strange behavior: #211
Comments
Thanks for reporting a new issue @Quacoo!
Otherwise this issue will be closed. |
Values are transferred from
I don't understand what you are searching for. The statistics adapter doesn't log any values to history. |
It depends on the configuration of the InfluxDB-Logging which states/changes will be logged. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. |
Describe the bug:
Adapter only partly working or strange behavior:
States in alias.0 (coming from sensors) are processed, states in userdata.0. (coming from javascript.0) are not.
States in alias.0 are shorter in variable names then states in userdata.0..
For instance:
![image](https://private-user-images.githubusercontent.com/150238060/281350786-81547382-1d80-4303-8004-09922561a6c1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMTY5NDYsIm5iZiI6MTcyNjExNjY0NiwicGF0aCI6Ii8xNTAyMzgwNjAvMjgxMzUwNzg2LTgxNTQ3MzgyLTFkODAtNDMwMy04MDA0LTA5OTIyNTYxYTZjMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQwNDUwNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYmEwMzMzMTZjMDg5NDA4YTlhMjM4M2E4YzlkZmU3ODNjZDI5NTk5NzdlNGQ4M2VkMTMzN2Q1NDgxN2Q2YWRhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.-saAup-PqbNrkclSKyei7JyQTY7CM0pcPzfz_4u8uKw)
![image](https://private-user-images.githubusercontent.com/150238060/281353822-6095d357-6c7e-4967-b40a-0c48ceafb35e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMTY5NDYsIm5iZiI6MTcyNjExNjY0NiwicGF0aCI6Ii8xNTAyMzgwNjAvMjgxMzUzODIyLTYwOTVkMzU3LTZjN2UtNDk2Ny1iNDBhLTBjNDhjZWFmYjM1ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQwNDUwNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNzVjMzA0ODY1NDBmNzY0ZGI3ODQ2NWVmYjdhN2ViNTI2YmFmMjNhZDdkNmQ5Y2U3ODdiODJjZjMxNmMyNGY4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.m-3ifuLpXk4W-hegLYgwfeg0GpYUi9KGNv2g61olazg)
statistics.0.save.minmax.0_userdata.0.BerechneteWerte_Herne.Gewaehlte_Aussetemperatur_Herne
looks like this, and does not change:
statistics.0.save.minmax.alias.0.Air_quality_sensor_innen_her.co2.absMax
looks like this, and seems to change:
History:
![image](https://private-user-images.githubusercontent.com/150238060/281356276-327953a3-83c8-46ec-8595-af4028a4c700.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMTY5NDYsIm5iZiI6MTcyNjExNjY0NiwicGF0aCI6Ii8xNTAyMzgwNjAvMjgxMzU2Mjc2LTMyNzk1M2EzLTgzYzgtNDZlYy04NTk1LWFmNDAyOGE0YzcwMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQwNDUwNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zYjA1OGYyZjgwMjIxYjgyMzRjM2ExNDIzMDlmYTkyMWYwZTQwN2M0YjQ4MDk4OWQwZmNlODBkMDRlMjdiNzcxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.sBCahrY3AyWewemeYC9QOCm0drPzuNT_RE78AF7j7yI)
![image](https://private-user-images.githubusercontent.com/150238060/281357915-351a73e9-0c45-43e4-9896-f58cef2a2738.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMTY5NDYsIm5iZiI6MTcyNjExNjY0NiwicGF0aCI6Ii8xNTAyMzgwNjAv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JlgtQW16LVNpZ25hdHVyZT0xNjcxNzdjMmJmY2E5Y2YwYTZmZWNjZDZkNDQxMTQ5MDAyNTE5ZmY2NzBlYTlmZGVhNjNiNTRhOTYzY2IyZTU3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.AbicjAbdFqH-j78s8nrsNTjKu0kI0cORKjXKFVJmf8E)
And when you look into the history of the states you will find that not all values come from the statistics.0 adapter but from the influx.0 adapter:
or
or in the other case:
I am not sure if this is a bug, it just not what I expected.
Expected behavior:
I would expect a daily value in dayMax or dayMin coming from statistics.0, bud nothing coming from influx.0. I would expect the values to vary every day ore at least at most days.
The other values accordingly.
Screenshots & Logfiles:
![image](https://private-user-images.githubusercontent.com/150238060/281360722-5c1fefc6-0e03-4f2a-9abc-bebfda48d7a6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMTY5NDYsIm5iZiI6MTcyNjExNjY0NiwicGF0aCI6Ii8xNTAyMzgwNjAvMjgxMzYwNzIyLTVjMWZlZmM2LTBlMDMtNGYyYS05YWJjLWJlYmZkYTQ4ZDdhNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQwNDUwNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNTJhNzc0MDI2YzhhZjAwYzhlMDZhYWFlMTViN2JmNzM0YmMwMGRhY2UxNzZkMjJmNmRlNWEzZDFmMDcxOTZmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.pcw65pJGdibg2Cz6RNwCO2vmsZMtScMc7belu3MzY4w)
![image](https://private-user-images.githubusercontent.com/150238060/281361270-3f141309-a22e-42a3-a7ea-bb05e44832c6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMTY5NDYsIm5iZiI6MTcyNjExNjY0NiwicGF0aCI6Ii8xNTAyMzgwNjAvMjgxMzYxMjcwLTNmMTQxMzA5LWEyMmUtNDJhMy1hN2VhLWJiMDVlNDQ4MzJjNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQwNDUwNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZTlkYjc0M2IyZTM3NWZiZWIwOTg1ZWU1NGM4NjA0NmNmOGY1MDM0OThlY2RhZTNiZjZiYzVkOWI5NjJhNjQzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.RX2S3TLEF0q77l0Fh7q46Q9J9lAKKI2jNU3cNk3mTB4)
![image](https://private-user-images.githubusercontent.com/150238060/281361952-0e35d7b9-0272-433a-9c25-da0a75a6a935.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250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WFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQwNDUwNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zN2RmMGE1ZWI5YWUwZmU2NTFmNWE4MjgzOWIwZDFkZDM4ZTgyN2JhNmJiNGQ5MWVjNWY5NjQ4NGQzODcyOTJkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.qb74309TLyMVf8TmA1h5_yVlJWQoTmLKWMKcjBCNWrE)
or
Versions:
Additional context:
Very good adapter, great possibility.
Is there any explanation about the mathematics behind the averaging?
Is there any explanation about expected behavior, according to this issue?
Thanks for answering.
The text was updated successfully, but these errors were encountered: