-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
template switch helper "e is not iterable" on "actions to turn on" or "..off" #139631
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
Comments
Hey there @PhracturedBlue, @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) template documentation |
im experiencing this regression on automations that i've set up 2+ years ago, OR conditions, when I trace my automation it's now failing each time i leave home due to same error "e is not iterable" condition: or
Screenshot of trace: |
Note that error is only related to the display in the trace viewer, it has nothing to do with the actual function of your automation. It's just failing to render the name of the condition. |
@ptryk - your error and Sleinous's error are two different/unrelated bugs. I was responding to his comment. Your issue is being looked at in Fix device actions in step-flow-form home-assistant/frontend#24539, but it seems there are multiple problems in both frontend and backend, so it won't be completely solved by that. |
The problem
in using the template switch helper I and others are getting the response "e is not iterable" when adding a device (no entities allowed?) in "actions to turn on" / or .. off
eg:
What version of Home Assistant Core has the issue?
Version core-2025.2.5 Installation type Home Assistant OS Development false Supervisor true Docker true User root Virtual environment false Python version 3.13.1 Operating system family Linux Operating system version 6.6.62-haos-raspi CPU architecture aarch64 Timezone Europe/Stockholm Configuration directory /config
What was the last working version of Home Assistant Core?
not sure, never used this feature before
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Template switch
Link to integration documentation on our website
https://www.home-assistant.io/integrations/switch.template/
Diagnostics information
not sure how to go about this.. it is all devices in the template helper - switch when adding a action
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
as above:
please see post 4 here:
https://community.home-assistant.io/t/error-in-describing-condition-e-is-not-iterable/832113/4
I also show how I found a work around.
--
how to reproduce
open helper
choose template
choose switch
add a device on "actions to turn on" or ..off
error
also, I find it strange one can not choose an entity for an action but that is maybe normal (?) but my workaround consists of avoid the device and use entity (see post linked above)
The text was updated successfully, but these errors were encountered: