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