Documentation
T9602 Extension
The T9602 extension connects to a T9602 I2C sensor to gather temperature and humidity readings.
Overview
The t9602 extension connects to a T9602 sensor over I2C to gather temperature and humidity readings. This extension uses the smbus2 library for I2C communication.
This extension does not require extension-level configuration and is focused on interfaces.
Sensor Interface
Provides a sensor that returns T9602 readings.
| Option | Type | Required | Description |
|---|---|---|---|
key |
String | Yes | Unique slug identifier for the component |
address |
Integer | Yes | I2C address as integer. Default: 40 (0x28) |
name |
String | No | Friendly display name for the component |
mudpi.config.json
{
"sensor": [
{
"key": "t9602_sensor",
"interface": "t9602",
"address": 40,
"name": "Climate Sensor T9602"
}
]
}
Sensor Data
The sensor returns a dict with temperature and humidity values:
T9602 Sensor Data
{
"temperature": 50,
"humidity": 64
}
Tip
Combine the T9602 sensor with a state trigger to automate climate control, such as turning on a fan when temperature exceeds a threshold.