Convert sensor to degrees?

Hi, I’m trying to convert this sensor to measure a level in degrees,

I’m using the average integration, and combining multiple sensors to make up the measurement.

Is there anyway I can convert this instead of m/s to show degrees?

Thanks

  - platform: average
    name: 'Pool Level Average'
    entities:
      - sensor.pool_level_monitor_mpu6050_accel_x
      - sensor.pool_level_monitor_mpu6050_accel_y
      - sensor.pool_level_monitor_mpu6050_accel_z
      - sensor.pool_level_monitor_mpu6050_gyro_x
      - sensor.pool_level_monitor_mpu6050_gyro_y
      - sensor.pool_level_monitor_mpu6050_gyro_z

What are the units for each of those entities, and how do you want them combined to show a measurement (or multiple measurements, as this appears to relate to a surface in 3D space?) in degrees?

3 of the 6 sensors measure in m/s2 and the other 3 just in m/s

Looks to me like you have three rotational speed sensors (the gyros in °/s: so pitch, roll and yaw rates) and three linear accelerometers (the accels, in m/s²).

Those are all independent measurements: I don’t see how you can combine them from a mathematical point of view. It’s like asking for the average of the Niagara Falls flow rate and the exchange rate of the US dollar to the Euro.

From a HA point of view, you can combine them however you want regardless of whether the result is invalid nonsense. If you can explain in arithmetical terms how you want them combined into an output number, we can help with that.

2 Likes