SHT3X humidity not displayed in Mainsail

Basic Information:

Printer Model: Creality Ender 3 S1 Pro
MCU / Printerboard: Default / stm32f401xc
Host / SBC Main: CB1
Host / SBC Sensor: RP2040
klippy.log (25.6 KB)

Hello,

I have installed SHT3X sensor to monitor conditions in the chamber, however I’m unable to get it to display humidity information in the Mainsail dashboard.

SHT3X is connected to RP2040 via I2C, which is then connected to Klipper host via USB.

The sensor is defined and does display temperature correctly on the dashboard, but the humidity is not shown.
I created a query macro following https://github.com/Villiem/klipper_i2c and I can manually query the temperature and humidity using the macro, it’s just that the humidity doesn’t show up on the dashboard.

Here’s the portion of the config related to the sensor:

[mcu Xiao_RP2040]
serial: /dev/serial/by-id/usb-Klipper_rp2040_4150324E3037350C-if00
restart_method: command

[temperature_sensor chamber]
sensor_type: SHT3X
#i2c_address:
#   Default is 68 (0x44).
i2c_mcu: Xiao_RP2040
#i2c_bus:
i2c_software_scl_pin: gpio7
i2c_software_sda_pin: gpio6

[gcode_macro QUERY_CHAMBER]
gcode:
    {% set sensor = printer["sht3x chamber"] %}
    {action_respond_info(
        "Temperature: %.2f C\n"
        "Humidity: %.2f%%" % (
            sensor.temperature,
            sensor.humidity))}

Here’s the relevant portion of my dashboard:

How can I get get the humidity to display on the dashboard?
What am I missing here?

Thank you for any suggestions

Most probably you want a recent enough mainsail.

Thank you bringing this up @nefelim4ag

I saw the #2025 and mistakenly assumed it was already part to the main release since it was marked as Merged, without checking the release notes :man_facepalming:

I’m running the most recent version from main branch, being v2.13.2, which doesn’t seem to include this feature yet.
I don’t want to mess around trying to switch to develop branch, don’t even know where to start, so I guess I’ll have to wait for the new release.

Thank you for helping me clear up the misunderstanding.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.