bentuino.com - Bentuino – Blog – Microcontrollers and IoT

Example domain paragraphs

Here is a simple example of how to use the Adafruit library https://github.com/adafruit/Adafruit_PM25AQI with a Custom Sensor in ESPHome.

# YAML File esphome: name: bentoair platform: ESP32 board: esp-wrover-kit includes: - BentoAir.h libraries: - "Adafruit PM25 AQI Sensor" - "Adafruit BusIO" - "SPI" wifi: ssid: "..." password: "..." # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Air Quality Fallback Hotspot" password: "NSZIXXkPiruF" captive_portal: # Enable logging logger: # Enable Home Assistant API api: ota: i2c: sda: 21 scl: 22 scan: True id: bus_a sensor: - platform: custom lambda: |- auto my_sensor =

Head over to the NXP IEEE802.15.4 Page . You must register and login first before you can download the  BeyondStudio for NXP toolchain (JN-SW-4141). Then add the  JN516x IEEE 802.15.4 SDK (JN-SW-4163)   to your installation by following the NXP installation instructions. I also installed the Flash Programmer (JN-SW-4107) . Now that your SDK and toolchain are installed download the ZigBee Home Automation Demo  (JN-AN-1189) from the NXP web site. Unpack and import it into your Eclipse workspace as an “Existin