]> git.basschouten.com Git - openhab-addons.git/blob
37e18b48281341f0240eb2ae39a593926dba7356
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.milight.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Contains a led bulb state including the HSB value, white color temperature and animation values.
19  *
20  * @author David Graeff - Initial contribution
21  */
22 @NonNullByDefault
23 public class MilightThingState {
24     public int animationMode;
25     public int colorTemperature; // only for led bulbs which include white leds applicable
26     public int brightness;
27     public int hue360; // only for rgb(w) leds applicable (v3+)
28     public int saturation; // only for rgbww leds applicable (v6+)
29
30     public MilightThingState() {
31         reset();
32     }
33
34     public void reset() {
35         animationMode = 0;
36         colorTemperature = 100; // only for led bulbs which include white leds applicable
37         brightness = 100;
38         hue360 = 180; // only for rgb(w) leds applicable (v3+)
39         saturation = 100; // only for rgbww leds applicable (v6+)
40     }
41 }