GithubHelp home page GithubHelp logo

aguilaair / photon Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 11.09 MB

Photon | Smart Temperature and Humidity Monitoring

C++ 10.82% C 89.10% CMake 0.01% Makefile 0.01% Shell 0.02% Ruby 0.01% Python 0.03% HTML 0.01% JavaScript 0.01%

photon's Introduction

Photon | Smart Temperature and Humidity Monitoring

Photon | Temperature and Humidity Monitoring via MQTT for Home Assistant

Welcome! This simple project is a great way to start learning the basics of Arduino, MQTT, wifi communication and management, soldering and 3d design.

Bill of materials

  • ESP8266 based development borad
    • Wemos D1 mini (recommended)
    • NodeMCU v2/v3
  • BME280 temperaturen humidity and pressure sensor
  • A 0,96" OLED screen
  • 3x7 cm protoboard

Setting up

  1. Download all of the libaries and insert them into your IDE
  2. Open the temphum.ino file and upload it into the board
  3. Set up the board connection like shown below
  4. Connect to the generated hotspot
  5. Configure Wifi details and MQTT info using the web interface
  6. Done!

Connecting to Home Assistant

I recommend using the mosquito broker you can install using Hass.io use the following JSON and start it up (Please change the username and password)

logins:
  - username: sensor1
    password: CHNAGEME1
anonymous: false
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false

Then add your topics to the config.yaml using the following example:

sensor temp1:
platform: mqtt
unit_of_measurement: 'ºC'
state_topic: "room/myroom/sensor/temp"
name: "Temperatura"
icon: mdi:home-thermometer


sensor hum1:
platform: mqtt
unit_of_measurement: '%'
state_topic: "rooms/myroom/sensor/hum"
name: "Humedad"
icon: mdi:water

Great job! There is only one more step! Let's make it show it to us on the front page by adding it via Lovelace UI. I hope you already know how to do it. Right? no? fine... I'll put up an example soonTM :)

photon's People

Contributors

aguilaair avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.