2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.somneo.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link SomneoBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Michael Myrcik - Initial contribution
25 public class SomneoBindingConstants {
27 private static final String BINDING_ID = "somneo";
29 // List of all Thing properties
30 public static final String PROPERTY_VENDOR_NAME = "Philips";
32 // List of all Thing Type UIDs
33 public static final ThingTypeUID THING_TYPE_HF367X = new ThingTypeUID(BINDING_ID, "hf367x");
35 // List of all Channel ids
36 public static final String CHANNEL_AUDIO_AUX = "audio#aux";
37 public static final String CHANNEL_AUDIO_FREQUENCY = "audio#frequency";
38 public static final String CHANNEL_AUDIO_PRESET = "audio#preset";
39 public static final String CHANNEL_AUDIO_RADIO = "audio#radio";
40 public static final String CHANNEL_AUDIO_VOLUME = "audio#volume";
41 public static final String CHANNEL_LIGHT_MAIN = "light#main";
42 public static final String CHANNEL_LIGHT_NIGHT = "light#night";
43 public static final String CHANNEL_RELAX_BREATHING_RATE = "relax#breathingRate";
44 public static final String CHANNEL_RELAX_DURATION = "relax#duration";
45 public static final String CHANNEL_RELAX_GUIDANCE_TYPE = "relax#guidanceType";
46 public static final String CHANNEL_RELAX_LIGHT_INTENSITY = "relax#lightIntensity";
47 public static final String CHANNEL_RELAX_REMAINING_TIME = "relax#remainingTime";
48 public static final String CHANNEL_RELAX_SWITCH = "relax#switch";
49 public static final String CHANNEL_RELAX_VOLUME = "relax#volume";
50 public static final String CHANNEL_SENSOR_ILLUMINANCE = "sensor#illuminance";
51 public static final String CHANNEL_SENSOR_HUMIDITY = "sensor#humidity";
52 public static final String CHANNEL_SENSOR_NOISE = "sensor#noise";
53 public static final String CHANNEL_SENSOR_TEMPERATURE = "sensor#temperature";
54 public static final String CHANNEL_SUNSET_AMBIENT_NOISE = "sunset#ambientNoise";
55 public static final String CHANNEL_SUNSET_COLOR_SCHEMA = "sunset#colorSchema";
56 public static final String CHANNEL_SUNSET_DURATION = "sunset#duration";
57 public static final String CHANNEL_SUNSET_LIGHT_INTENSITY = "sunset#lightIntensity";
58 public static final String CHANNEL_SUNSET_REMAINING_TIME = "sunset#remainingTime";
59 public static final String CHANNEL_SUNSET_SWITCH = "sunset#switch";
60 public static final String CHANNEL_SUNSET_VOLUME = "sunset#volume";
62 // List of all Web Service Endpoints
63 public static final String AUDIO_ENDPOINT = "/1/wuply";
64 public static final String DEVICE_ENDPOINT = "/1/device";
65 public static final String FIRMWARE_ENDPOINT = "/0/firmware";
66 public static final String LIGHT_ENDPOINT = "/1/wulgt";
67 public static final String PRESET_ENDPOINT = "/1/wufmp/00";
68 public static final String RADIO_ENDPOINT = "/1/wufmr";
69 public static final String RELAX_ENDPOINT = "/1/wurlx";
70 public static final String TIMER_ENDPOINT = "/1/wutmr";
71 public static final String SENSORS_ENDPOINT = "/1/wusrd";
72 public static final String SUNSET_ENDPOINT = "/1/wudsk";
73 public static final String WIFI_ENDPOINT = "/0/wifi";