Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after updating HA to 0.106 #35

Closed
cacelotto opened this issue Feb 27, 2020 · 7 comments
Closed

Error after updating HA to 0.106 #35

cacelotto opened this issue Feb 27, 2020 · 7 comments

Comments

@cacelotto
Copy link

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

@PierreScerri
Copy link

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'

1 similar comment
@PierreScerri
Copy link

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'

@Ysbrand
Copy link

Ysbrand commented Feb 27, 2020

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

@gurbyz
Copy link
Owner

gurbyz commented Feb 27, 2020

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)?

@Ysbrand
Copy link

Ysbrand commented Feb 27, 2020

Confirmed, reinstall fixes the problem. Thanks for that!

@cacelotto
Copy link
Author

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.

@gurbyz
Copy link
Owner

gurbyz commented Feb 28, 2020

Super!

This was referenced Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants