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

updatedTargets in Zone Configurator using wrong method for matching entities #253

Closed
pugson opened this issue Nov 29, 2024 · 0 comments
Closed

Comments

@pugson
Copy link

pugson commented Nov 29, 2024

Error fetching live data when sensors do not end with a matching string.

image
  • updatedTargets in your javascript is using entity.id.endsWith
  • Home Assistant decided to give my sensor IDs such as sensor.everything_presence_lite_hallway_target_2_distance_2
  • as you can see the logic for detecting the correct sensor is broken because mine are ending with “_2”
  • instead of using endsWith you should change that to use includes for partial string matching

PR opened in the correct repo EverythingSmartHome/everything-presence-addons#16

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

1 participant