Very basic component for esphome to fetch temperature in celcius from a PCT2075.
Based off the official dht12 temp/humidity sensor library.
Add the pct2075 folder to your esphome components directory to install.
Add to your esphome yaml sensor block:
sensor:
- platform: pct2075
temperature:
name: "PCT2075 Temperature"
update_interval: 30s
temperature (Required): The information for the temperature sensor.
-
name (Required, string): The name for the temperature sensor.
-
id (Optional, ID): Set the ID of this sensor for use in lambdas.
-
All other options from Sensor.
update_interval (Optional, Time): The interval to check the sensor. Defaults to 60s.
Implement the interrupt/alert functionality that's available on the chip.