GithubHelp home page GithubHelp logo

Comments (6)

pohly avatar pohly commented on July 22, 2024

Note that https://github.com/thomasloven/lovelace-card-mod needs to be installed for that, for example via HACS. I did that, but I am unsure where I should place that snippet.

I tried both at the end and in the view, but neither of these worked. For reference:

views:
  - title: Home
    type: custom:tesla-style-solar-power-card
    name: Stromfluss
    grid_to_house_entity: sensor.flow_grid_to_house
    grid_to_battery_entity: sensor.flow_grid_to_battery
    ...
    appliance1_extra_entity: switch.keller_plug
    card_mod:
      style: |
        ha-card {
          zoom: 1.5 !important;
        }
title: Stromfluss

from tesla-style-solar-power-card.

pohly avatar pohly commented on July 22, 2024

@mkanet: as you had this working, can you clarify where to put that card_mod snippet?

from tesla-style-solar-power-card.

mkanet avatar mkanet commented on July 22, 2024

@mkanet: as you had this working, can you clarify where to put that card_mod snippet?

This is what it would look like:

type: custom:tesla-style-solar-power-card
grid_entity: sensor.apf_grid_entity
grid_extra_entity: sensor.pge_electric_cost_to_date
house_entity: sensor.apf_real_house_load
generation_entity: sensor.apf_generation_entity
battery_entity: sensor.apf_battery_entity
grid_to_house_entity: sensor.apf_grid2house
grid_to_battery_entity: sensor.apf_grid2batt
generation_to_grid_entity: sensor.apf_solar2grid
generation_to_battery_entity: sensor.apf_solar2batt
generation_to_house_entity: sensor.apf_solar2house
battery_to_house_entity: sensor.apf_batt2house
battery_to_grid_entity: sensor.apf_batt2grid
battery_extra_entity: sensor.powerwall_charge
change_house_bubble_color_with_flow: 1
hide_inactive_lines: 1
speed_factor: 0.05
show_gap: true
card_mod:
  style: |
    ha-card {
      zoom: 1.5 !important;
    }

from tesla-style-solar-power-card.

pohly avatar pohly commented on July 22, 2024

Solved: when the zoom factor is too high, some other mechanism kicks in and scales back. With zoom: 1.1 I got a slightly larger card.

from tesla-style-solar-power-card.

valimaties avatar valimaties commented on July 22, 2024

There must do something with icons size and text position and size, because if it is a good view in web, there is worng in mobile, and vice-versa.
However, the zoom factor does not work good. It must be done somehow in other way.
And more than that, the icon end text must have a gap between them, always. The icon seems to be centering every time and text is bellow icon, which will make the text going too down.

image

from tesla-style-solar-power-card.

mkanet avatar mkanet commented on July 22, 2024

@valimaties you might consider switching to https://github.com/flixlix/power-flow-card-plus it doesn't have this weird display issue.

from tesla-style-solar-power-card.

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.