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

Data template dictionary is not supported #2995

Closed
definitio opened this issue Jan 2, 2024 · 0 comments · Fixed by #3000
Closed

Data template dictionary is not supported #2995

definitio opened this issue Jan 2, 2024 · 0 comments · Fixed by #3000
Labels

Comments

@definitio
Copy link
Contributor

    - service: light.turn_on
      entity_id: light.stairs
      data: "{{ {'effect': 'Addressable DDP'} if target else {} }}"

Screenshot_20240102_162525

Error: Incorrect type. Expected "object".
The syntax is correct - https://www.home-assistant.io/docs/scripts/service-calls/#use-templates-to-determine-the-attributes

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

Successfully merging a pull request may close this issue.

1 participant