esphome / esphome/issues

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

Open
#6,025 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
313
Forks
40
PR merge metrics
No merged PRs in 30d

Description

### 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

```yaml
- 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?

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

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.