Giter Club home page Giter Club logo

cloud-free-humidifier's Introduction

ESP8266 firmware for zhimi.humidifier.ca1 humidifier

This is a replacement for mt7697 module with esp8266 to make cloud-free humidifier.

MQTT protocol

The MQTT protocol has json format and works both ways to send data to humidifier and receive current status.

To humidifier topic esp8266/XXXXXX/set:

  • state - controls power, can be ON or OFF
  • preset_mode - controls preset mode, one of silent, medium, high, auto
  • command - restart to restart esp8266 and reset to remove the configuration and restart
{
  "state": "ON",
  "preset_mode": "high"
}

From humidifier topic esp8266/XXXX:

{
  "state": "ON",
  "temperature": 24.3,
  "humidity": 48,
  "preset_mode": "silent",
  "depth": 21
}

Example home-assistant configuration

fan:
  - platform: mqtt
    name: Humidifier
    state_topic: esp8266/XXXXXX
    state_value_template: "{{ value_json.state }}"
    json_attributes_topic: esp8266/XXXXXX
    availability_topic: esp8266/XXXXXX/availability
    command_topic: esp8267/XXXXXX/set
    command_template: "{ state: '{{ value }}'}"
    preset_mode_command_topic: esp8266/XXXXXX/set
    preset_mode_command_template: "{ preset_mode: '{{ value }}'}"
    preset_mode_value_template: "{{ value_json.preset_mode }}"
    preset_modes:
      - "auto"
      - "high"
      - "medium"
      - "silent"

File list

  • src/ - esp8266 firmware
  • tools/get-tz.py - generate timezone list for esp8266 firmware
  • protocol.txt - uart protocol between mt7697 and stm32

cloud-free-humidifier's People

Contributors

condemil 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.