-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
Numeric Trigger-based template sensor fails when state template renders to none
#117397
Comments
Hey there @PhracturedBlue, @tetienne, @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) template documentation |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Not stale. Still an issue on 2024.8.2 |
none
none
I see the same issue in 2024.8.3 |
I just checked out and ran 2023.2.1 based on the suggestion above of this being related to #85605. I had the intention of trying to run a
And the sensor just used the value of |
I believe I have a solution that fixes this issue in #125873. Hopefully it gets approved and merged. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Still a problem in 2024.12.3 |
The problem
As per the documentation:
However, when a trigger-based template sensor contains a state template that renders to
none
an error will result. The same state template can be used in a state-based template sensor and no errors will occur.What version of Home Assistant Core has the issue?
2024.5.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Template
Link to integration documentation on our website
https://www.home-assistant.io/integrations/template/#state
Diagnostics information
No response
Example YAML snippet
input_number.test
1
, the two new template sensors will be zero. When the input helper is changed to1
then only the state template sensor will go tounknown
. The trigger template sensor will cause an error.Anything in the logs that might be useful for us?
Additional information
I have not confirmed this, but it's possible this error may have begun after this PR was merged: #85605
The text was updated successfully, but these errors were encountered: