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

For conditions in Trigger Based Template Sensors: Error message "Property condition is not allowed". Side effect of very high RAM usage and increased CPU usage! #891

Open
alexsaas opened this issue Oct 27, 2024 · 4 comments

Comments

@alexsaas
Copy link

I made use of the option with Core 2024.10 to also use conditions in a trigger based template sensor. Unfortunately, the error message "Property condition is not allowed" is then displayed in the condition line in Studio Code Server.

The screenshot shows the error message (separate template.yaml):
image
PS: conditions (plural) does not change the error message and is not yet supported in Trigger Based Template Sensors.

In addition, with this error message, the RAM usage increases extremely and the CPU usage also increases significantly. I also noticed the same behavior with the syntax changes with Core 2024.09 and Core 2024.10, such as the change from platform to trigger, or the new syntax to plural like triggers instead of trigger. I can only stop the high resource usage if I close all files in Sudio Code Server, stop the addon once and then start it again without opening any files again.

(Why the issue was filed)

There should be no error messages with native core syntax or, as promised, old syntax that can still be used, and these error messages should not put too much strain on hardware resources.

(What you expected to happen)

Actual behavior

(What actually happened)

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

Workaround: Close all files in Sudio Code Server, stop the addon once and then start it again without opening any files again.

@jeremiebidault
Copy link

jeremiebidault commented Oct 28, 2024

Same here. Raspbery pi 5 with HAOS
After having installed 2024.10.4, high cpu/ram usage. And after having stopped vscode (5.17.2). Cpu/ram goes normal.
Screenshot_20241028-110423
Screenshot_20241028-110458

Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Nov 28, 2024
@alexsaas
Copy link
Author

The problem still exists and unfortunately has not been addressed yet.

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Nov 29, 2024
@Swimmer71
Copy link

Hi, same problem here: error message appears in editor but trigger sensor with condition works!

Screenshot 20241217-103434

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants