-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
[FR] Fallback value of a variable to another variable #84
Comments
Agree, a good idea, was thinking about same many times. |
Use a conditional card.
A non-existent sensor will always return unavailable. |
I would say this is a bug in HA frontend because a non-existing entity's state is |
Woops, sorry. I meant unknown, not unavailable.
…On Fri, Jul 12, 2024, 4:30 PM ildar170975 ***@***.***> wrote:
A non-existent sensor will always return unavailable.
I would say this is a bug in HA frontend because a non-existing entity's
state is unknown.
—
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL3LCMMQOXF7K2H76P5T2N3ZMA4FFAVCNFSM6AAAAABJ7TG5PCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRWGMYDSNZTGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Thanks for the suggestion, however that example is only a simple use-case where the request would be useful. There are many more cases where the request comes handy. |
It is important to allow "templating" in the default values as well, so one could do as follows: defaults:
- entity: 'binary_sensor.[[area]]_presence' This way, you could override the entity to be something else, or just go with the default based on the area name 😎 |
Describe the solution you'd like
Is it possible to define the default value of a variable, as the value of another variable?
Someting like:
And when I call it withoiut specifying a value for
history_entity
it will use the value specified for theentity
variable:The text was updated successfully, but these errors were encountered: