gurbyz/power-wheel-card

Error after updating HA to 0.106

cacelotto opened this issue · 7 comments

I have read the wiki about what to try first before creating a bug report.

Which custom card does give you issues?
power-wheel-card

Which version of HA do you use? Home Assistant 0.106.0

Which version of the card do you use? const __VERSION = "0.0.16";

Describe the bug
A clear and concise description of what the bug is. Paste any error messages.
Like the bug opened by VDRainer. Initially I had v.0.0.15 installed. I understood that installing version 0.0.16 all would have worked nicely.

Configuration of the card
Copy the complete configuration of the card, even if you think it isn't relevant.

- type: custom:power-wheel-card
      solar_power_entity: sensor.inverter_current_power
      grid_power_consumption_entity: sensor.inverter_current_export_power
      grid_power_production_entity: sensor.inverter_current_import_power 

Dev console debug output
Add debug: true to your card parameters. Copy the complete output of the card that is logged to your dev console.
Sorry, I don't know what the dev console is.

Expected behavior
A clear and concise description of what you expected to happen.
All worked well since end of november, when my FV panels have been activated. This card is fantastic.

Screenshots
If applicable, add screenshots to help explain your problem.
power-wheel-Home Assistant

Additional context
no additional info

I have the same issue with a different error:
Screenshot 2020-02-27 at 16 18 16

My configuration is:

auto_toggle_view_period: 10
color_icons: true
consuming_color: 'var(--label-badge-yellow, #f4b400)'
debug: false
energy_decimals: 3
grid_power_consumption_entity: sensor.import_power
grid_power_production_entity: sensor.export_power
home_icon: 'mdi:home-assistant'
initial_auto_toggle_view: false
initial_view: power
money_decimals: 2
money_unit: €
power_decimals: 0
producing_color: 'var(--label-badge-green, #0da035)'
production_is_positive: 1
solar_icon: 'mdi:solar-power'
solar_power_entity: sensor.sdm120power
title: Power Now
title_energy: Power Now
title_money: Power Now
title_power: Power Now
type: 'custom:power-wheel-card'

I have the same issue with a different error:
Screenshot 2020-02-27 at 16 18 16

My configuration is:

auto_toggle_view_period: 10
color_icons: true
consuming_color: 'var(--label-badge-yellow, #f4b400)'
debug: false
energy_decimals: 3
grid_power_consumption_entity: sensor.import_power
grid_power_production_entity: sensor.export_power
home_icon: 'mdi:home-assistant'
initial_auto_toggle_view: false
initial_view: power
money_decimals: 2
money_unit: €
power_decimals: 0
producing_color: 'var(--label-badge-green, #0da035)'
production_is_positive: 1
solar_icon: 'mdi:solar-power'
solar_power_entity: sensor.sdm120power
title: Power Now
title_energy: Power Now
title_money: Power Now
title_power: Power Now
type: 'custom:power-wheel-card'

Same here fails to work after updating to 0.106.0

  • type: custom:power-wheel-card
    title: Stroom voorziening
    solar_power_entity: sensor.toon_p1_power_solar

    grid_power_consumption_entity: sensor.toon_p1_power_use_high

    grid_power_consumption_entity: sensor.grid_power_use_total

    grid_power_production_entity: sensor.toon_p1_power_prod_high

    grid_power_production_entity: sensor.grid_power_prod_total
    update_interval: 60

Error:
Cannot add property production_is_positive, object is not extensible
type: 'custom:power-wheel-card'
title: Stroom voorziening
solar_power_entity: sensor.toon_p1_power_solar
grid_power_consumption_entity: sensor.grid_power_use_total
grid_power_production_entity: sensor.grid_power_prod_total
update_interval: 60

Hi, I suspect something is tricking you with serving an old version of the card. Could be the old version that's still in the cache or could be a HACS issue that I'm not aware of. There is a user reporting a workaround for the HACS issue here: https://community.home-assistant.io/t/lovelace-power-wheel-card/82374/310?u=gurbyz Wyx087 says: "I pressed Reinstall in HACS and the card started to work after a refresh."

Could you try that (if you were using HACS)?

Confirmed, reinstall fixes the problem. Thanks for that!

Maybe a combination of coincidences: reinstalled HACS and PWC: nothing happened. Shut down and restarted manually my raspberry: nothing happened. Then I noticed the PWC plugin named url: /community_plugin/power-wheel-card/power-wheel-card.js; instead I found the file both in www and community directories. Also ui-lovelace used the www url instead of the community one. Probably I installed the plugin manually and forgot to change the url when activated it through HACS.

Now it works. Thank you for the time you wasted running behind my mistakes.
For me the issue is closed now.

Super!