Open deanfourie1 opened 4 months ago
My weather station is now failing to read data from the MLX90393. The sensor is used for reporting the wind direction.
2024.6.6
Home Assistant Add-on
2024.7.1
ESP32
esp32minikit
mlx90393
- 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;
Just keeps reporting [E][mlx90393:085]: failed to read data every time its scheduled to send its data.
No response
bump. Anyone?
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
Anything in the logs that might be useful for us?
Additional information
No response