Skip to content

Conversation

dbuezas
Copy link
Owner

@dbuezas dbuezas commented Jan 24, 2023

Work in progress. Implementation of #130

  • Functions are allowed everywhere with this format:
type: custom:plotly-graph-dev
entities:
  - entity: sensor.garden_temperature
    offset: $fn () => "0d"
    name: |
      $fn({ys, vars}) => {
        vars.title = ys[0];
        return ys[ys.length-1]
      }
  - entity: sensor.keller_humidity
title: $fn({ vars }) => vars.title
hours_to_show: 2

@dbuezas dbuezas mentioned this pull request Jan 24, 2023
@dbuezas dbuezas marked this pull request as ready for review January 29, 2023 20:20
@dbuezas dbuezas merged commit a3b670b into master Jan 29, 2023
@dbuezas dbuezas deleted the experiment/universal-fn branch January 29, 2023 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant