Giter VIP home page Giter VIP logo

higrow_esphome's Introduction

ESPHome code for LilyGo Higrow boards

This is first but also working version of ESPHome code to get HiGrow board from LilyGo working.

For now only version with DHT sensor are supported but I plan to add support for BME version also.

Setup

Copy YAML file of your choice (for now only higrow_dht.yaml is tested and working) into your ESPHom folder. Change file name to match your future plant name.

You now have option to use MQTT instead of or parallel with API Home Assistant integration.

Configuration

Minimum reqiured configuration is to adapt/change subsctitution section in YAML file:

substitutions:
  devicename: "schefflera_arboricola"
  upper_devicename: Schefflera Arboricola
  awake_duration: 6s      
  sleep_duration: 90min   
  update_interval: 5s
  fixed_ip: 192.168.2.50
  • devicename should be lowercas name of the plant. If you use - instead of _, you will probably receive error when installing or validating code.
  • upper_devicename is used to create user friendly name in Home Assistant
  • awake_duration is time that board will stay awake. Due to WiFi connection problems, don't lower this. Even at 5 seconds it can decrease chance for successful connection
  • sleep_duration is period how long will board sleep to preserve battery usage
  • update_interval is period when board should make sure it updates sensor data and sends to HA. Needs to be less than awake time
  • fixed_ip is used to define FIXED IP address of the board. DHCP can add extra lag for connection.
  • gateway_ip is you network gateway IP address
  • subnet_mask is subnet mask used in your network

Secrets

Don't forget to add to secrets file:

wifi_ssid: YOUR_WIFI_SSID
wifi_password: "YOUT_WIFI_PASSWORD"

Also, if you plan to use MQTT, uncomment MQTT section in YAML file:

#mqtt:
#  broker: mqtt_ip
#  username: mqtt_user
#  password: mqtt_password

If you are not useing MQTT authentication with username and password, you can leave them commented out. And in secrets file from ESPHome add following 3 lines:

# MQTT
mqtt_ip: 192.168.1.XXX
mqtt_user: MQTT_USER
mqtt_password: MQTT_PASSWORD

Calibration

Calibration is not necessary, but will definitly improve your experience.

I use glass of water to calibrate maximum soil humidity (minimum is just dry it off).

And next optiona calibration is battery maximum V.

Issues

I'm still playing with battery % as it's not reading it correctly. It always stays at 100%, but I think I've managed to pinpoint on possible issues.

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.