Code Monkey home page Code Monkey logo

Comments (2)

JonasPed avatar JonasPed commented on July 4, 2024

I don't think I will implement this as this break backwards compatibility. Further I don't see any issue in having multiple entities in HA. You don't have to display them all on the dashboard.

from homeassistant-eloverblik.

Aephir avatar Aephir commented on July 4, 2024

I don't show any of them in the dashboard (only used in the background), but they're still in the States overview. I do, however, see that the HA devs are trying to limit the amount of data in attributes (as they answered my comment here), so I think your approach is probably what they'd prefer.

The main argument (aesthetics of the states tab aside) is what I argued in that thread: It's very difficult to work with from the UI - especially on mobile - when you have many entities with very similar names (on mobile you can't see the end o the name, so you don't know which of the 24 your are selecting). I'd think that anywhere on the dashboard you'd want to use all these for would probably be a series anyway (e.g. for the Apexcharts card), where it's actually much easier to have one entity with the different times in attributes.

There it would be as simple as this:
series:
  - entity: sensor.nordpool_kwh_dk2_dkk_3_095_0
    name: Today
    data_generator: |
      return entity.attributes.raw_today.map((entry) => {
        return [new Date(entry.start), entry.value];
      });
    type: column
    show:
      legend_value: false
      in_header: false
  - entity: sensor.nordpool_kwh_dk2_dkk_3_095_0
    name: Tomorrow
    data_generator: |
      return entity.attributes.raw_tomorrow.map((entry) => {
        return [new Date(entry.start), entry.value];
      });
    type: column
    show:
      legend_value: false
      in_header: false

to do this with the 48 hours of prices in the nordpool sensor and the apexcharts card:
Screenshot 2022-10-23 at 22 30 40

That said, it's of course completely up to you, so I'll close and just say thanks for the integration. I'm mainly suggesting based on personal preference of a "cleaner" entity overview (not dashboard) and being able to edit cards on mobile in bed anyway :) And I agree that the backwards compatibility is a good point.

from homeassistant-eloverblik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.