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

ValueError when render template is present in the entity name #305

Closed
xaviml opened this issue May 21, 2021 · 1 comment
Closed

ValueError when render template is present in the entity name #305

xaviml opened this issue May 21, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@xaviml
Copy link
Owner

xaviml commented May 21, 2021

Bug report

Description

The render template feature does not work properly for the entity fields (light, media_player, etc). This happens when render template is used when the get_state function is called.

Additional information

  • Devices involved:
    • Model: [ eg. IKEA 1744 ] as [ Light | Media Player | Controller ]
    • ...
  • Integration: z2m
  • ControllerX version: 4.11.0

AppDaemon app configuration

example_app:
  module: controllerx
  class: E1810Controller
  controller: sensor.controller_action
  light: "{{ states('input_select.lights') }}"
  # This is recommendable if the lights you want to loop through have different supported actions
  update_supported_features: true
  merge_mapping:
    arrow_left_click:
      - service: input_select.select_previous
        data:
          entity_id: input_select.lights
    arrow_right_click:
      - service: input_select.select_next
        data:
          entity_id: input_select.lights```

Logs

ValueError: `supported_features` could not be read from `{{ states('input_select.lights') }}`. Entity might not be available.
@xaviml xaviml added the bug Something isn't working label May 21, 2021
@xaviml xaviml self-assigned this May 21, 2021
@xaviml xaviml changed the title [BUG] ValueError when render template is present in the entity name May 21, 2021
@xaviml
Copy link
Owner Author

xaviml commented May 21, 2021

Fixed in ControllerX v4.11.1.

@xaviml xaviml closed this as completed May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant