Skip to content

Nikfinn99/Esp8266-multi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Esp8266-multi

Installation

The Project uses Git Submodules. Therefore you must clone the repository recursively. Otherwise the lib/* folders will be empty and compilation will not work.

git clone --recursive https://github.com/Nikfinn99/Esp8266-multi.git

As an alternative you could use GitHub-Desktop

Compilation

The Project uses PlatformIO. If you have not installed it yet, follow instructions on https://platformio.org/

  1. Open the Project in PlatformIO and the necessary dependencies should be downloaded.
  2. Compile and upload project to esp8266
  3. Create your own config.json from config_example.json
    This config Example is not a valid config as the pins are used multiple times
  4. Upload config as config.json to the ESP SPIFFS root:
  1. Reboot ESP to load config
  2. Configure your Home Automation software to send correct packets over MQTT
    (use retained messages for lights as the esp does not store the last power state)
  • MQTT commands for lights follow the scheme:
    cmnd/[mqtt.topic]/[lights[i].name]/rgb -> RED,GREEN,BLUE in range from 0 to 255
    cmnd/[mqtt.topic]/[lights[i].name]/bri -> BRIGHTNESS in range from 0 to 255
    cmnd/[mqtt.topic]/[lights[i].name]/power -> POWER as either ON or OFF
  1. For lights to turn on RGB, Brightness and Power State has to be initialized once

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published