Browse Source

lights: update kelvin constants

master
Max Prokhorov 5 years ago
parent
commit
18b403bb56
1 changed files with 20 additions and 4 deletions
  1. +20
    -4
      code/espurna/config/general.h

+ 20
- 4
code/espurna/config/general.h View File

@ -1148,11 +1148,27 @@
#define LIGHT_MAX_BRIGHTNESS 255 // Maximum brightness value #define LIGHT_MAX_BRIGHTNESS 255 // Maximum brightness value
#endif #endif
#define LIGHT_MIN_KELVIN 1000
#define LIGHT_MAX_KELVIN 40000
// Default mireds & kelvin to the Philips Hue limits
// https://developers.meethue.com/documentation/core-concepts
//
// Home Assistant also uses these, see Light::min_mireds, Light::max_mireds
// https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/light/__init__.py
#ifndef LIGHT_MIN_KELVIN
#define LIGHT_MIN_KELVIN 2000
#endif
#ifndef LIGHT_MAX_KELVIN
#define LIGHT_MAX_KELVIN 6536
#endif
#ifndef LIGHT_MIN_MIREDS
#define LIGHT_MIN_MIREDS 153
#endif
#define LIGHT_MIN_MIREDS 153 // Default to the Philips Hue value that HA also use.
#define LIGHT_MAX_MIREDS 500 // https://developers.meethue.com/documentation/core-concepts
#ifndef LIGHT_MAX_MIREDS
#define LIGHT_MAX_MIREDS 500
#endif
#ifndef LIGHT_STEP #ifndef LIGHT_STEP
#define LIGHT_STEP 32 // Step size #define LIGHT_STEP 32 // Step size


Loading…
Cancel
Save