Comments (6)
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.
@mkanet: as you had this working, can you clarify where to put that card_mod
snippet?
from tesla-style-solar-power-card.
@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.
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.
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.
from tesla-style-solar-power-card.
@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)
- HA log file - SyntaxError: The string did not match the expected pattern.
- Add second PV HOT 7
- Wrong bubble if solar loading battery
- Centre bubbles showing over lovelace header HOT 1
- Replicate Tesla Solar Dashboard View
- Make circles a little bigger in respect to icon and font HOT 1
- indicate grid import/export in icon HOT 1
- Feature Request: House bubble - more than 1 color/source
- Documentation for Powerwall integration usage has wrong entity names
- Display width leads to strange behavior
- Help with Growatt Sensors HOT 1
- feature request: appliance1 call action switch-toggle
- Error with new unit_of_measurement
- Stopped working on core 2024.6.0 HOT 1
- 2024.6.0 appears to have broken visual alignment HOT 12
- 2024.6.1 scaling after update HOT 6
- problem with resized card
- Read version/release number from js-file?
- not loading properly in Lovelace HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tesla-style-solar-power-card.