esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

[E][mlx90393:085]: failed to read data #6025

Open deanfourie1 opened 4 months ago

deanfourie1 commented 4 months ago

The problem

My weather station is now failing to read data from the MLX90393. The sensor is used for reporting the wind direction.

Which version of ESPHome has the issue?

2024.6.6

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.7.1

What platform are you using?

ESP32

Board

esp32minikit

Component causing the issue

mlx90393

Example YAML snippet

- platform: mlx90393
    address: 0x0c
    id: mlx
    x_axis:
      name: "mlx_x"
      id: "mlx_x"
    y_axis:
      name: "mlx_y"
      id: "mlx_y"
    z_axis:
      name: "mlx_z"
    update_interval: 2s

  - platform: template
    id: 'wind_direction'
    name: 'Wind Direction'
    update_interval: 2s
    lambda: |-
      float w1 = id(mlx_x).state;  // magnetometer X
      float w0 = id(mlx_y).state;  // magnetometer Y
      float w = atan2(w0, w1);     // arctangent2 = radians
      w = (w * 180) / M_PI;    // radians to degrees
      w += 19.50;              // magnetic declination
      w += 50.00;              // seems to be off by 90
      if ( w < 0 ) w += 360.0; // adjust for negatives
      return w;

Anything in the logs that might be useful for us?

Just keeps reporting [E][mlx90393:085]: failed to read data every time its scheduled to send its data.

Additional information

No response

deanfourie1 commented 3 months ago

bump. Anyone?