diff --git a/Arduino/McLighting/McLighting.ino b/Arduino/McLighting/McLighting.ino index 37ad8d4..89a63ae 100644 --- a/Arduino/McLighting/McLighting.ino +++ b/Arduino/McLighting/McLighting.ino @@ -889,7 +889,7 @@ void setup() { DynamicJsonDocument jsonBuffer(200); JsonObject json = jsonBuffer.to(); - json["pixel_pount"] = WS2812FXStripSettings.stripSize; + json["pixel_count"] = WS2812FXStripSettings.stripSize; json["rgb_order"] = WS2812FXStripSettings.RGBOrder; json["pin"] = WS2812FXStripSettings.pin; String json_str; diff --git a/Arduino/McLighting/request_handlers.h b/Arduino/McLighting/request_handlers.h index 4ba7210..4f0f445 100644 --- a/Arduino/McLighting/request_handlers.h +++ b/Arduino/McLighting/request_handlers.h @@ -1412,7 +1412,9 @@ bool readStateFS() { main_color.green = json["green"]; main_color.blue = json["blue"]; - if(mode != OFF) stateOn = true; + #ifdef ENABLE_HOMEASSISTANT + if(mode != OFF) stateOn = true; + #endif strip->setMode(ws2812fx_mode); strip->setSpeed(convertSpeed(ws2812fx_speed)); strip->setBrightness(brightness); diff --git a/README.md b/README.md index a95aec5..73b89d5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # McLighting v2 - The ESP8266 based multi-client lighting gadget -[![Gitter](https://badges.gitter.im/mclighting/Lobby.svg)](https://gitter.im/mclighting/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Build Status](https://travis-ci.com/toblum/McLighting.svg?branch=master)](https://travis-ci.com/toblum/McLighting) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![version](https://img.shields.io/badge/version-v2.2.1-blue.svg)](https://github.com/toblum/McLighting/blob/master/Arduino/McLighting/version.h) +[![Gitter](https://badges.gitter.im/mclighting/Lobby.svg)](https://gitter.im/mclighting/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Build Status](https://travis-ci.com/toblum/McLighting.svg?branch=master)](https://travis-ci.com/toblum/McLighting) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![version](https://img.shields.io/badge/version-v2.2.2-blue.svg)](https://github.com/toblum/McLighting/blob/master/Arduino/McLighting/version.h) McLighting (the multi-client lighting gadget) is a very cheap internet-controllable lighting solution based on the famous ESP8266 microcontroller and WS2811/2812 led strips. It features among other things a web-interface, a REST-API and a websocket connector.