Support templated custom attributes for all template entities #2782
Unanswered
evercape
asked this question in
Template engine
Replies: 2 comments 4 replies
-
|
@Petro31 could you maybe have a look at this please, seeing that you worked on binary_sensor before? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This would be a very valuable addition, instead on relying on yaml. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the enhancement
Summary
Extend the existing attributes: support available in template sensors and template binary_sensors to other template-based platforms, specifically:
• switch
• fan
• light
• climate
Current behavior
The template integration allows defining custom attributes for:
• sensor
• binary_sensor
Example (works today)
However, the same attributes: key is ignored or unsupported when used with:
• template switches
• template fans
• template lights
• template climate entities
This forces users to create companion template sensors purely to hold metadata or derived attributes.
Example usage
Beta Was this translation helpful? Give feedback.
All reactions