Comments (3)
Actually, I worked around this by creating a combined power sensor in the configuration.yaml that takes the net power usage from both sensors on the phases and combines them into a single one:
template:
-
sensor:
- name: "Stroomverbruik netto L1"
unique_id: "stroom_netto_l1"
unit_of_measurement: "W"
state: >
{{ states ('sensor.phases_power_consumed_phase_l1') | float(0) | round(0)
- states ('sensor.phases_power_produced_phase_l1') | float(0) | round(0) }}
- name: "Stroomverbruik netto L1"
-
sensor:
- name: "Stroomverbruik netto L2"
unique_id: "stroom_netto_l2"
unit_of_measurement: "W"
state: >
{{ states ('sensor.phases_power_consumed_phase_l2') | float(0) | round(0)
- states ('sensor.phases_power_produced_phase_l2') | float(0) | round(0) }}
- name: "Stroomverbruik netto L2"
-
sensor:
- name: "Stroomverbruik netto L3"
unique_id: "stroom_netto_l3"
unit_of_measurement: "W"
state: >
{{ states ('sensor.phases_power_consumed_phase_l3') | float(0) | round(0)
- states ('sensor.phases_power_produced_phase_l3') | float(0) | round(0) }}
- name: "Stroomverbruik netto L3"
from ha-energy-overview-card.
I'm not sure if I should change the implementation of my card here.
I'd rather have Template Support, so you don't have to create template sensors, but do it inline.
What do you think about that?
from ha-energy-overview-card.
Having that in the card would be definitely nice. But if it's a major development hurdle like you mentioned, is it -really- worth it. Given you can quite easily do it with template sensors (took me 30 mins of fiddling to get it working). And if you need to do some corner cases, like me adding in-house real time usage based on PV delivery and power meter values, I may fall back to template sensors in the end after all..
Do love this card, thanks for it :)
from ha-energy-overview-card.
Related Issues (20)
- Is it possible to add a label/name to the card? HOT 6
- Add parameter current frequency HOT 4
- Power value in kW HOT 6
- Voltage and Current are too close to each other HOT 5
- Support power factor of max 1 HOT 3
- Animation not working plus a feature request HOT 9
- Invert sensor for Goodwe inverter? HOT 6
- Feature Request: Hide entities when template evaluates to true HOT 2
- Feature Request: Order by consumption HOT 2
- Feature Request: Different view for long names HOT 2
- Feature Request: More information on click HOT 2
- Feature Request: Template Support HOT 5
- Unable to see this card in "Add card" menu HOT 2
- Limiting the value decimals / precision? HOT 13
- Jump in visualization when values update HOT 4
- Sorting not working HOT 7
- Enhancement: order_by to define top row HOT 1
- Is there a title field available? HOT 3
- Dynamic color 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 ha-energy-overview-card.