kylemanna / sniffer

ESP32 Air Quality Sensor with PMSA003 + BME680 and 1.14" LCD
Other
120 stars 15 forks source link

New issues due to ESPhome updates #18

Open jruben4 opened 4 months ago

jruben4 commented 4 months ago

sniffer_common has errors now with the new version of ESPhome due to the new way ESPhome wants you to program shared pins (pins defined in more than one place).

Ralphy140 commented 4 months ago

Has been resolved in issue 15 and new code has been merged into this repo

jruben4 commented 4 months ago

Trying the new code. Getting error "Couldn't find ID 'temp2'." in sniffer_common.

michaellunzer commented 2 months ago

hey @jruben4 same "temp2" error here. any suggestions?

jruben4 commented 2 months ago

hey @jruben4 same "temp2" error here. any suggestions?

Yes, I edited sniffer_common.yaml to take out all the temp2 references. Here it is: `esphome: name: $devicename platform: ESP32 board: featheresp32

wifi: ssid: !secret wifi_ssid password: !secret wifi_password

Enable fallback hotspot (captive portal) in case wifi connection fails

ap: ssid: "${upper_devicename} Hotspot" password: "lost_sniffuh"

captive_portal:

Enable logging

logger:

Enable Home Assistant API

api: encryption: key: !secret ha_api_key

ota: password: !secret ota_password

color:

Grab font from https://fonts.google.com/specimen/Roboto and place in same directory as this file

font:

binary_sensor:

switch:

time:

spi: clk_pin: GPIO18 mosi_pin: GPIO19

display:

Particulate matter configuration entry

uart: rx_pin: GPIO27 baud_rate: 9600

For temp + humidity sensor

i2c: sda: 21 scl: 22 scan: True id: bus_a

sensor: