Skip to content

$fn inside fn in filter (syntax - don't know how) #368

Answered by dbuezas
luissimoes asked this question in Q&A
Discussion options

You must be logged in to vote

Right, I think you missed my comment at the end of the last answer:

Although if you need the hass.states['sensor.from_netz_daily'].state just use it wherever you were about to use the var.
Beware that if you have refresh_interval: auto, the plot won't auto update unless you use entity: sensor.from_netz_daily somewhere.

That means: don't use a var inside the indicator. Instead, set entity: sensor.from_netz_daily and usevalue: $ex ys.at(-1).

If this doesn't solve it, please post your full yaml inside a code block

```yaml
type: custom:plotly-graph
entities:
  - entity: blah
```

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
12 replies
@luissimoes
Comment options

@dbuezas
Comment options

Answer selected by luissimoes
@luissimoes
Comment options

@dbuezas
Comment options

@luissimoes
Comment options

@dbuezas
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants