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 when updating from 1.5.1 to 1.6.1 #70

Closed
danielraffel opened this issue Feb 12, 2025 · 0 comments
Closed

Error when updating from 1.5.1 to 1.6.1 #70

danielraffel opened this issue Feb 12, 2025 · 0 comments

Comments

@danielraffel
Copy link

danielraffel commented Feb 12, 2025

Update: found this comment which alluded to the update needing the cache to be flushed in the browser. Yep! That fixed this. Can also confirm sensor.dongle_40_4c_XX_XX_XX_XX_tinner works.

When upgrading from version 1.5.1 to 1.6.1, I encounter an error in Home Assistant: undefined is not an object (evaluating 'this._config.temp.is_used'). As a result, the card no longer loads. However, downgrading back to 1.5.1 restores functionality when using the code below and the card loads correctly. Note: I am using a 3rd party dongle with EG4.

      - type: custom:lux-power-distribution-card
        inverter_count: 1
        battery_soc:
          entities:
            - sensor.dongle_40_4c_XX_XX_XX_XX_soc
        battery_flow:
          entities:
            - sensor.dongle_40_4c_XX_XX_XX_XX_batteryflow_live
        home_consumption:
          entities:
            - sensor.dongle_40_4c_XX_XX_XX_XX_pload
        grid_flow:
          entities:
            - sensor.dongle_40_4c_XX_XX_XX_XX_gridflow_live
        pv_power:
          entities:
            - sensor.dongle_40_4c_XX_XX_XX_XX_pall
          show_individual: false
        battery_voltage:
          entities:
            - sensor.dongle_40_4c_XX_XX_XX_XX_vbat
        update_time:
          entities:
            - sensor.last_bank_update_formatted
          show_last_update: true
        grid_indicator:
          hue: true
        status_codes:
          entities:
            - sensor.dongle_40_4c_XX_XX_XX_XX_warningcode
          no_grid_is_warning: true
        refresh_button: right

BTW, I also tried adding the following internal temperature reading as suggested in this comment, but the same error persisted regardless of whether:
a) is_used was set to true,
b) is_used was set to false,
c) is_used was omitted, or
d) the temp setting was excluded entirely.

I had to downgrade to 1.5.1 to restore functionality.

        temp:
          is_used: true
          entities:
            - sensor.dongle_40_4c_XX_XX_XX_XX_tinner
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

1 participant