question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Use templates in all configuration values

See original GitHub issue

Love mini-graph-card!

Forgive me if this has been requested. I’d like to be able to use jinja templates in attribute values to, for example, change the lower_bound and upper_bound to be relative to the current value, for example:

type: custom:mini-graph-card
entities:
  - entity: sensor.temperature_2
    name: Outdoor Temp
lower_bound: "{{ states('sensor.temperature_2') }} - 5 | float }}"
upper_bound: "{{ states('sensor.temperature_2') }} + 5 | float }}"

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
jlsjonascommented, Mar 6, 2022

Still considering this for a few elements (like state, icon, …) for next release; but I’m foreseeing a lot of potential side-effects & complications when adding this to any element inside the graph. Updated the issue for transparency.

0reactions
ildar170975commented, Sep 8, 2022

Also for color_thresholds: https://github.com/kalkih/mini-graph-card/issues/834

color_thresholds:
  - value: "{{ ((states.sensor.hallway_temperature.state) | float +0) }}"
    color: '#0066ff'
  - value: "{{ ((states.sensor.hallway_temperature.state) | float +3) }}"
    color: '#d35400'
Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring issue templates for your repository - GitHub Docs
Creating issue templates ... Under your repository name, click Settings. ... In the "Features" section, under "Issues," click Set up templates. ... Use...
Read more >
Add configurable parameters to templates—Portal for ArcGIS
You can add configurable parameters to templates you've created that allow users to customize the appearance and behavior of your app.
Read more >
Defining configuration templates - IBM
In the Values section, complete all fields to set the values for the various states that are applicable to your change management process....
Read more >
Feature Request Template | Project.co
Since this template has 'Standard' privacy settings, any of your internal users can access the project and create their own requests, in the...
Read more >
Aha! Roadmaps | Create templates for features, activities, and ...
You may use a template like this for all of your requirements. ... To do this, navigate to Settings ⚙️ Workspace Configure Workflow...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found