Skip to content

I2C scan can find IP5306 device on M5Stack Basic #85

@zpowellman

Description

@zpowellman

Greetings
I'm trying to use your IP5306 External Component.
Is this code working on the M5Stack Core 1 device? if so, it's not found.
Here's my code and the log entries:

external_components:
  - source:
      type: git
      url: https://github.com/ssieb/custom_components
    components: [ip5306]
i2c:
  sda: 21
  scl: 22
  frequency: 400kHz
  scan: True

ip5306:
  battery_level:   # sensor
    name: Battery Level
  charger_connected:  # binary_sensor
    id: connected
    on_press:
      then:
        - lambda: ESP_LOGD("TEST", "charging");
    on_release:
      then:
        - lambda: ESP_LOGD("TEST", "not charging");
  charge_full:  # binary_sensor
    id: full
    on_press:
      then:
        - lambda: ESP_LOGD("TEST", "fully charged");
    on_release:
      then:
        - lambda: ESP_LOGD("TEST", "still charging");
[09:45:48][C][i2c.arduino:071]: I2C Bus:
[09:45:48][C][i2c.arduino:072]:   SDA Pin: GPIO21
[09:45:48][C][i2c.arduino:073]:   SCL Pin: GPIO22
[09:45:48][C][i2c.arduino:074]:   Frequency: 400000 Hz
[09:45:48][C][i2c.arduino:086]:   Recovery: bus successfully recovered
[09:45:48][I][i2c.arduino:096]: Results from i2c bus scan:
[09:45:48][I][i2c.arduino:098]: Found no i2c devices!

This component seems handy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions