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

Errors around 'appliance_socket' in template #35

Open
scottfridwin opened this issue May 10, 2024 · 1 comment
Open

Errors around 'appliance_socket' in template #35

scottfridwin opened this issue May 10, 2024 · 1 comment

Comments

@scottfridwin
Copy link

Not sure when this started or why, but I am seeing these errors and the associated automated have stopped working:

2024-05-10 15:31:49.089 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'appliance_socket' is undefined when rendering '{{ states(appliance_socket) == 'off' }}' 2024-05-10 15:31:49.090 WARNING (MainThread) [homeassistant.helpers.script] Error in 'choose[0]' evaluation: In 'template' condition: UndefinedError: 'appliance_socket' is undefined

I was able to find and fix the issue in the source yaml. I'll create a PR with the changes and link it here so others who run into the same issue might be able to fix it.

@scottfridwin
Copy link
Author

PR: #36
Targeting the dev branch (I assume that is where new changes go).

If anyone sees this and is trying to fix their own implementation you will want to edit the blueprints/automation/leofabri/appliance-status-monitor.yaml file manually and replace the template conditions with state conditions like I show in the PR.

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