Closed andiweli closed 9 months ago
Hey, can you please share your whole config for the card as well as the version that is being shown in the console?
I've installed 0.1.8.1
The config is as follows...
type: custom:power-flow-card-plus
use_new_flow_rate_model: true
watt_threshold: 1000
min_flow_rate: 1
max_flow_rate: 5
display_zero_lines:
mode: hide
transparency: 50
grey_color:
- 189
- 189
- 189
entities:
home:
entity: sensor.Stromverbrauch_Gesamt
color: '#4599DF'
color_icon: true
grid:
entity: sensor.Stromverbrauch_Netzbezug
display_state: one_way
color:
production: '#4599DF'
consumption: '#4599DF'
color_value: false
color_circle: true
color_icon: true
solar:
entity: sensor.Wechselrichter_HMmitZendure
color: '#F2AA3C'
color_icon: true
battery:
entity:
consumption: sensor.SolarFlow_StromausgangAkku
production: sensor.SolarFlow_LadevorgangAkku
state_of_charge: sensor.SolarFlow_Akkuladung
display_state: one_way
color:
consumption: '#5C9D51'
production: '#5C9D51'
color_value: false
color_circle: true
color_icon: true
individual2:
entity: sensor.Verteiler_3er_Lukas_Computer_POWER
name: Gaming PC
color_icon: true
display_zero: true
icon: mdi:desktop-classic
Works fine, I really like this card... except the individual2 which should appear below the house :)
Funny thing, if I only exchange "individial2" to "fossil_fuel_percentage" I get this... wrong usage I know, but the code seems correct.
Maybe I figured it out. Are your entities states negative? The card does not accept that, can you try supplying the individual1 with your solar entity?
Hmm, no they are all positive...
I already tried a few other values, here with the solar entity...
Sidenote: I am running on ioBroker and using Lovelace. So far every card I tried worked without problems. I don't hope that could be an issue...
This is very weird indeed...
Just to make sure, what version of the card is shown in the browser console?
Hmm I can't find any info or so regarding a version...
But I have checked the file size with the latest 0.1.8.1 and even replaced it and rebooted Lovelace. Still the same.
Similar problem here. Can't see "individual1". Just installed this card. Version 0.1.8.1 is installed. Here is my code:
type: custom:power-flow-card-plus
entities:
battery:
entity: sensor.scb_home_power_from_battery
state_of_charge: sensor.scb_battery_soc
grid:
entity: sensor.scb_grid_power
solar:
entity: sensor.scb_solar_power
display_zero_state: true
individual1:
entity: sensor.keba_p30_charging_power
icon: mdi:car-electric
name: Wallbox
unit_of_measurement: kW
clickable_entities: true
display_zero_lines: true
use_new_flow_rate_model: true
w_decimals: null
kw_decimals: 2
min_flow_rate: 0.75
max_flow_rate: 6
max_expected_power: 2000
min_expected_power: 0.01
watt_threshold: 1000
transparency_zero_lines: 0
Same issue here when using the card within Lovelace on ioBroker. Used card version is 0.1.8.1, used version of home-assistant-frontend@20230906.1, version of Browser Mod: 2.3.0 I can confirm the feedback from @andiweli a few lines above. "individial1" or "individial2" is not shown, but if I change the entity to "fossil_fuel_percentage" it works. @flixlix: I saw in the cards source code that the individual1 and 2 part is defined a little bit different than all the "main" entities. Looks like using arrays or structures for the 1 and 2 to avoid double maintenance. Maybe this causes the trouble in our environment. Any advice for debugging?
Anyhow, great card, thanks a lot for your work!
fossil_fuel_percentage also works for me, but that's not what individual1 + 2 is meant for. fossil_fuel_percentage is production, individual1 + 2 are consumption.
I'm not sure what might be going wrong here, maybe the card has some conflicts with iobroker... I can't check if this is compatible since I don't have any iobroker installation...
Same Problem here with IOBroker:
Apart from the problem with individual1 and 2. I also have the problem that the value for fossil_fuel_percentage is not displayed:
I have also opened an issue for this in the IOBroker Adapter [(https://github.com/ioBroker/ioBroker.lovelace/issues/483)] YAML:
type: custom:power-flow-card-plus
entities:
grid:
entity:
consumption: sensor.Elektro_Bezug
production: sensor.Elektro_Einspeisung
display_state: two_way
color_circle: true
solar:
entity: sensor.Elektro_Solar
name: DachPV
home:
entity: sensor.Elektro_Statistik_Verbrauch
name: Homebase
override_state: true
battery:
name: Battery
icon: mdi:bat
entity:
consumption: sensor.battery_consumption
production: sensor.battery_production
fossil_fuel_percentage:
entity: sensor.Elektro_Solar2
name: PV2
color_icon: true
display_zero: true
color: '#ff8080'
icon: mdi:motorbike-electric
clickable_entities: true
display_zero_lines: true
use_new_flow_rate_model: true
w_decimals: 0
kw_decimals: 1
min_flow_rate: 3
max_flow_rate: 6
max_expected_power: 2000
min_expected_power: 0.01
watt_threshold: 1000
transparency_zero_lines: 0
title: Aktueller elektrischer Verbrauch
FYI: "individual" now working in IOBroker Lovelace Instance ;)
I want to show a power usage of a computer as "individual1" or "individual2" icon - but it isn't shown.
I used the code from GitHub with my sensor for the power usage of the computer:
individual1: entity: sensor.computer_power name: Computer icon: mdi:desktop-classic display_zero: true
The device is currently using 300 watts... What's wrong with my configuration? Thanks.