ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code

ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code

prusaprinters

<p>I started my Home Assistant instalation a few day ago and now added these sensors to it (will make a window reed contact next on the same base).</p> <p>The ESP ist running on the ESPhome software (you can find a good guide in how to wire up the esp12 here - <a href="http://domoticx.com/esp8266-wifi-esp-12-module-aansluiten/">http://domoticx.com/esp8266-wifi-esp-12-module-aansluiten/</a>). For the deep sleep mode you need to connect the GPIO16 pin to reset. Otherwise the ESP will not wake up.</p> <p>I'm using the following code in ESPhome - for the first test you can delete the deep sleep lines at the end.</p> <p>With one meassurement every 10min. it should run for at least 6 month on two AA Eneloops. The ESP cunsumes ~70mA when active and 0,017mA when in deep sleep.</p> <p>Right now I'm waiting for the 5mm nickel stripes for proper battery contacts.</p> <p>esphomeyaml:</p> <p>name: bme280</p> <p>platform: ESP8266</p> <p>board: esp12e</p> <p>wifi:</p> <p>ssid: 'XXXXXXXXXXXXXXX'</p> <p>password: 'XXXXXXXXXXXXXXX'</p> <p>manual_ip:</p> <p>static_ip: 192.168.0.23</p> <p>gateway: 192.168.0.1</p> <p>subnet: 255.255.255.0 logger:</p> <p>api:</p> <p>ota:</p> <p>i2c:</p> <p>sda: 4</p> <p>scl: 5</p> <p>scan: False</p> <p>sensor:</p> <ul> <li>platform: bme280</li> </ul> <p>temperature:</p> <p>name: "BME280 Temperature"</p> <p>id: bme280_temperature</p> <p>pressure:</p> <p>name: "BME280 Pressure"</p> <p>id: bme280_pressure</p> <p>humidity:</p> <p>name: "BME280 Realtive Humidity"</p> <p>id: bme280_humidity</p> <p>address: 0x76</p> <p>iir_filter: 16x</p> <p>update_interval: 1s</p> <ul> <li>platform: template</li> </ul> <p>name: "Altitude"</p> <p>lambda: |-</p> <p>const float STANDARD_SEA_LEVEL_PRESSURE = 1013.25; //in hPa, see note</p> <p>return ((id(bme280_temperature).state + 273.15) / 0.0065)* (powf((STANDARD_SEA_LEVEL_PRESSURE / id(bme280_pressure).state), 0.190234) - 1); // in meter</p> <p>update_interval: 1s</p> <ul> <li>platform: template</li> </ul> <p>name: "Absolute Humidity"</p> <p>lambda: |-</p> <p>const float mw = 18.01534; // molar mass of water g/mol</p> <p>const float r = 8.31447215; // Universal gas constant J/mol/K</p> <p>return (6.112<em>powf(2.718281828, (17.67</em> id(bme280_temperature).state) / (id(bme280_temperature).state + 243.5))<em>id(bme280_humidity).state</em> mw) / ((273.15 + id(bme280_temperature).state)* r); // in grams/m^3</p> <p>update_interval: 1s</p> <ul> <li>platform: adc</li> </ul> <p>pin: VCC</p> <p>name: "ESP voltage"</p> <p>update_interval: 1s</p> <p>deep_sleep:</p> <p>run_duration: 3s</p> <p>sleep_duration: 600s</p> Category: Household

Download Model from prusaprinters

With this file you will be able to print ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code.