mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #359] Unable to have a calculated value for parameter x_end #1868
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @metscore on GitHub (Aug 14, 2024).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/359
Describe the bug
I'm trying to draw a rectangle with a calculated value derived from a state. When I paste the yaml into the automation of HomeAssistant and reload the same yaml directly, the calculated value is
x_end: "[object Object]": nullwhich makes the automation fail.To Reproduce
Steps to reproduce the behavior:
x_end: "[object Object]": nullIf I try to use the following code, i.e. no state object, just values
x_end: {{ 123 | int * 10 + 80 - 2 }}this also results in a
x_end: "[object Object]": nullExpected behavior
For instance I expected the following
x_end: {{ 123 | int * 10 + 80 - 2 }}to result in 1308 since it works perfectly in HA developer tools template.
Additional context
I use HA core 2024.7.4
HA OS 12.4
OpenEPaperLink 0.4.9.1
@jonasniesner commented on GitHub (Aug 15, 2024):
Please report HA related issues here
https://github.com/OpenEPaperLink/Home_Assistant_Integration