Closed Destix closed 2 years ago
Hello. How can i help to add this sensor to esphome?
I manage to make it work, even if I don't use all its functionality, I believe that my code could help you. in my code I just read values from Chirp, in the same way, you could write registers to trigger light measurement or temperature by adding the "writeI2CRegister8bit( addr, value)"
Setup for ESPHome is below + the attached extra code "chirp.h" - Remove the ".txt"
esphome: includes:
i2c: sda: GPIO4 scl: GPIO5 scan: false
sensor:
platform: custom lambda: |- auto chirp = new Chirp(); App.register_component(chirp); return {chirp -> humidity_RAW, chirp -> humidity, chirp -> calibStatus}; sensors:
name: ${upper_devicename}.Humidity_RAW unit_of_measurement: "LSB" accuracy_decimals: 0 icon: mdi:water-percent
name: ${upper_devicename}.Humidity unit_of_measurement: "%" accuracy_decimals: 0 icon: mdi:water-percent
name: ${upper_devicename}.Calib_Status icon: mdi:information-outline accuracy_decimals: 0
Attachement: chirp.h.txt
Describe the problem you have/What new integration you would like
Please add support for i2c sensor: chirp! - the plant watering alarm
description and code: https://wemakethings.net/chirp/ replica available on Aliexpress (CJMCU Plant https://www.aliexpress.com/af/CJMCU-Plant.html ) https://www.aliexpress.com/item/32912460636.html https://www.aliexpress.com/item/32842054964.html
Please describe your use case for this integration and alternatives you've tried:
i2c capacitive humidity sensor for plants
Additional context
Sample Arduino code