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

Invalid config #25

Open
elpaul opened this issue Jul 27, 2024 · 4 comments
Open

Invalid config #25

elpaul opened this issue Jul 27, 2024 · 4 comments

Comments

@elpaul
Copy link

elpaul commented Jul 27, 2024

After instalation:

Invalid config
The following integrations and platforms could not be set up:

[ina219_ups_hat](https://github.com/odya/hass-ina219-ups-hat) ([Show logs](http://192.168.0.10:8123/config/logs?filter=ina219_ups_hat))
ina219_ups_hat.sensor ([Show logs](http://192.168.0.10:8123/config/logs?filter=ina219_ups_hat.sensor))
Please check your config and [logs](http://192.168.0.10:8123/config/logs).

image

My configuratrion.yaml:
sensor:

  • platform: ina219_ups_hat
    name: Hassio UPS # Required
    unique_id: hassio_ups # Required
    addr: 0x42 # Required
    scan_interval: 10 # Required
    batteries_count: 2 # Optional
    battery_capacity: 3600 # Optional
    max_soc: 91 # Optional
    sma_samples: 5 # Optional
    min_online_current: -100 # Optional, mA
    min_charging_current: 55 # Optional, mA

Where is the problem?

@e3e6
Copy link

e3e6 commented Jul 29, 2024

Have you enabled i2c?

@elpaul
Copy link
Author

elpaul commented Jul 31, 2024

Yes. On version 0.2.1 to 0.3.0 everything working good.
the problem appeared after updating to 0.3.9.
I went back to 0.3.0 and it's OK, but I wanted to test the latest version.

@e3e6
Copy link

e3e6 commented Jul 31, 2024

The 0.3.9 uses a completely different configuration, JFYI:

ina219_ups_hat:
  name: Hassio UPS HAT B        # Optional
  unique_id: hassio_ups_hat_b     # Optional
  addr: 0x42                # Required
  scan_interval: 60         # Optional
  batteries_count: 2        # Optional
  max_soc: 89               # Optional
  battery_capacity: 6800    # Optional
  sma_samples: 5            # Required
  min_online_current: -100  # Optional, mA
  min_charging_current: 50  # Optional, mA

@odya
Copy link
Owner

odya commented Sep 2, 2024

Must be fixed in v0.3.11
But, yes, check your configuration format

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

3 participants