diff --git a/firmware/esphome/esp8266-dc-sensor.conf b/firmware/esphome/esp8266-dc-sensor.conf new file mode 100644 index 0000000..249d839 --- /dev/null +++ b/firmware/esphome/esp8266-dc-sensor.conf @@ -0,0 +1,82 @@ +esphome: + name: dc-sensor + comment: DC Sensor WIP + +wifi: + ssid: ZERO + password: Triemlistrasse0815 + ap: + ssid: DC Sensor + password: 0123456789 + +esp8266: + board: esp12e + framework: + version: recommended + +web_server: + port: 80 +# auth: +# username: "admin" +# password: "your-web-password" + +mqtt: + broker: homeassistant.local + discovery: True + +prometheus: + +api: +# password: "your-api-password" + +i2c: + sda: GPIO14 #GPIO02 #GPIO13 #D13 # GPIO for SDA (adjust based on your wiring) + scl: GPIO13 #GPIO14 #D14 # GPIO for SCL (adjust based on your wiring) + scan: true # Optional, helps verify the I2C connection + +sensor: +# - platform: aht10 +# update_interval: 15s +# temperature: +# name: Temperature +# accuracy_decimals: 1 +# humidity: +# name: Humidity +# accuracy_decimals: 1 + + - platform: sht3xd + address: 0x44 + update_interval: 15s + temperature: + name: Temperature + accuracy_decimals: 1 + humidity: + name: Humidity + accuracy_decimals: 1 + + - platform: adc + pin: A0 + name: "USB Voltage" + update_interval: 1s # Update every 1 second + accuracy_decimals: 1 # Set number of decimal places + #attenuation: 0dB # Set the ADC attenuation for correct voltage readings + filters: + - multiply: 6 # Scale the ADC value (if needed for your specific circuit) + +output: + - platform: gpio + pin: GPIO4 + id: led1 + + - platform: gpio + pin: GPIO5 + id: led2 + +light: + - platform: binary + name: LED 1 + output: led1 + + - platform: binary + name: LED 2 + output: led2