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

Call Service doesn't work with spaces in comma-delimited entity ID list #170

Closed
rogersmj opened this issue Nov 30, 2019 · 0 comments
Closed

Comments

@rogersmj
Copy link

Describe the bug
If there are spaces between the comma-delimited list of Entity IDs in the Call Service node, only the first item in the list is acted upon.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Call Service node. Set Domain: homeassistant, Service: turn_off
  2. Put multiple items in the Entity ID list, with a space between each (which is what the auto-complete functionality does). For example, group.kitchen_lights, light.foyer_light, group.basement_lights, group.exterior_lights
  3. Run the node. Observe that only the first item in the list turns off.

If I delete the spaces between the items, so that it reads:

group.kitchen_lights,light.foyer_light,group.basement_lights,group.exterior_lights

It works.

Expected behavior
All items in the Entity ID list would be included in the service call.

Environment (please complete the following information):

  • Node Red Version: [e.g. 0.19.5] 1.0.2
  • Node.js Version: [e.g. 8.12.0] not sure
  • NR Home Assistant Plugin Version: [e.g. 0.5.0] 0.16.3
  • Is Node Red running in Docker: [e.g. yes/no/hassio] hassio

Other (please complete the following information):
Note that the auto-complete feature for entity IDs automatically puts spaces between the entities. This caused a lot of confusion, and it took awhile to hunt down why my Call Service wasn't working properly.

  • Have you searched previous issues for duplicates?:
    Yes
@zachowj zachowj closed this as completed in 564670a Dec 1, 2019
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