]> git.basschouten.com Git - openhab-addons.git/blob
eb7f4dc685b1459fddc9c5f4b9ff6237c1c52e2e
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.boschshc.internal.devices;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link BoschSHCBindingConstants} class defines common constants, which
20  * are used across the whole binding.
21  *
22  * @author Stefan Kästle - Initial contribution
23  * @author Christian Oeing - added Shutter Control, ThermostatHandler
24  * @author Christian Oeing - Added WallThermostatHandler
25  * @author David Pace - Added cameras, intrusion detection system, smart plugs, battery state support and smart bulbs
26  * @author Christian Oeing - Added smoke detector
27  */
28 @NonNullByDefault
29 public class BoschSHCBindingConstants {
30
31     public static final String BINDING_ID = "boschshc";
32
33     // List of all Thing Type UIDs
34     public static final ThingTypeUID THING_TYPE_SHC = new ThingTypeUID(BINDING_ID, "shc");
35
36     public static final ThingTypeUID THING_TYPE_INWALL_SWITCH = new ThingTypeUID(BINDING_ID, "in-wall-switch");
37     public static final ThingTypeUID THING_TYPE_TWINGUARD = new ThingTypeUID(BINDING_ID, "twinguard");
38     public static final ThingTypeUID THING_TYPE_WINDOW_CONTACT = new ThingTypeUID(BINDING_ID, "window-contact");
39     public static final ThingTypeUID THING_TYPE_WINDOW_CONTACT_2 = new ThingTypeUID(BINDING_ID, "window-contact-2");
40     public static final ThingTypeUID THING_TYPE_MOTION_DETECTOR = new ThingTypeUID(BINDING_ID, "motion-detector");
41     public static final ThingTypeUID THING_TYPE_SHUTTER_CONTROL = new ThingTypeUID(BINDING_ID, "shutter-control");
42     public static final ThingTypeUID THING_TYPE_SHUTTER_CONTROL_2 = new ThingTypeUID(BINDING_ID, "shutter-control-2");
43     public static final ThingTypeUID THING_TYPE_THERMOSTAT = new ThingTypeUID(BINDING_ID, "thermostat");
44     public static final ThingTypeUID THING_TYPE_CLIMATE_CONTROL = new ThingTypeUID(BINDING_ID, "climate-control");
45     public static final ThingTypeUID THING_TYPE_WALL_THERMOSTAT = new ThingTypeUID(BINDING_ID, "wall-thermostat");
46     public static final ThingTypeUID THING_TYPE_CAMERA_360 = new ThingTypeUID(BINDING_ID, "security-camera-360");
47     public static final ThingTypeUID THING_TYPE_CAMERA_EYES = new ThingTypeUID(BINDING_ID, "security-camera-eyes");
48     public static final ThingTypeUID THING_TYPE_INTRUSION_DETECTION_SYSTEM = new ThingTypeUID(BINDING_ID,
49             "intrusion-detection-system");
50     public static final ThingTypeUID THING_TYPE_SMART_PLUG_COMPACT = new ThingTypeUID(BINDING_ID, "smart-plug-compact");
51     public static final ThingTypeUID THING_TYPE_SMART_BULB = new ThingTypeUID(BINDING_ID, "smart-bulb");
52     public static final ThingTypeUID THING_TYPE_SMOKE_DETECTOR = new ThingTypeUID(BINDING_ID, "smoke-detector");
53     public static final ThingTypeUID THING_TYPE_UNIVERSAL_SWITCH = new ThingTypeUID(BINDING_ID, "universal-switch");
54     public static final ThingTypeUID THING_TYPE_UNIVERSAL_SWITCH_2 = new ThingTypeUID(BINDING_ID, "universal-switch-2");
55     public static final ThingTypeUID THING_TYPE_SMOKE_DETECTOR_2 = new ThingTypeUID(BINDING_ID, "smoke-detector-2");
56     public static final ThingTypeUID THING_TYPE_LIGHT_CONTROL_2 = new ThingTypeUID(BINDING_ID, "light-control-2");
57     public static final ThingTypeUID THING_TYPE_DIMMER = new ThingTypeUID(BINDING_ID, "dimmer");
58
59     public static final ThingTypeUID THING_TYPE_USER_DEFINED_STATE = new ThingTypeUID(BINDING_ID, "user-defined-state");
60
61     // List of all Channel IDs
62     // Auto-generated from thing-types.xml via script, don't modify
63     public static final String CHANNEL_SCENARIO_TRIGGERED = "scenario-triggered";
64     public static final String CHANNEL_TRIGGER_SCENARIO = "trigger-scenario";
65     public static final String CHANNEL_POWER_SWITCH = "power-switch";
66     public static final String CHANNEL_TEMPERATURE = "temperature";
67     public static final String CHANNEL_TEMPERATURE_RATING = "temperature-rating";
68     public static final String CHANNEL_HUMIDITY = "humidity";
69     public static final String CHANNEL_HUMIDITY_RATING = "humidity-rating";
70     public static final String CHANNEL_ENERGY_CONSUMPTION = "energy-consumption";
71     public static final String CHANNEL_POWER_CONSUMPTION = "power-consumption";
72     public static final String CHANNEL_PURITY = "purity";
73     public static final String CHANNEL_AIR_DESCRIPTION = "air-description";
74     public static final String CHANNEL_PURITY_RATING = "purity-rating";
75     public static final String CHANNEL_COMBINED_RATING = "combined-rating";
76     public static final String CHANNEL_CONTACT = "contact";
77     public static final String CHANNEL_LATEST_MOTION = "latest-motion";
78     public static final String CHANNEL_LEVEL = "level";
79     public static final String CHANNEL_VALVE_TAPPET_POSITION = "valve-tappet-position";
80     public static final String CHANNEL_SETPOINT_TEMPERATURE = "setpoint-temperature";
81     public static final String CHANNEL_CHILD_LOCK = "child-lock";
82     public static final String CHANNEL_CHILD_PROTECTION = "child-protection";
83     public static final String CHANNEL_PRIVACY_MODE = "privacy-mode";
84     public static final String CHANNEL_CAMERA_NOTIFICATION = "camera-notification";
85     public static final String CHANNEL_SYSTEM_AVAILABILITY = "system-availability";
86     public static final String CHANNEL_ARMING_STATE = "arming-state";
87     public static final String CHANNEL_ALARM_STATE = "alarm-state";
88     public static final String CHANNEL_ACTIVE_CONFIGURATION_PROFILE = "active-configuration-profile";
89     public static final String CHANNEL_ARM_ACTION = "arm-action";
90     public static final String CHANNEL_DISARM_ACTION = "disarm-action";
91     public static final String CHANNEL_MUTE_ACTION = "mute-action";
92     public static final String CHANNEL_BATTERY_LEVEL = "battery-level";
93     public static final String CHANNEL_LOW_BATTERY = "low-battery";
94     public static final String CHANNEL_COLOR = "color";
95     public static final String CHANNEL_BRIGHTNESS = "brightness";
96     public static final String CHANNEL_SMOKE_CHECK = "smoke-check";
97     public static final String CHANNEL_SILENT_MODE = "silent-mode";
98     public static final String CHANNEL_ILLUMINANCE = "illuminance";
99     public static final String CHANNEL_BYPASS_STATE = "bypass-state";
100     public static final String CHANNEL_SIGNAL_STRENGTH = "signal-strength";
101     public static final String CHANNEL_KEY_CODE = "key-code";
102     public static final String CHANNEL_KEY_NAME = "key-name";
103     public static final String CHANNEL_KEY_EVENT_TYPE = "key-event-type";
104     public static final String CHANNEL_KEY_EVENT_TIMESTAMP = "key-event-timestamp";
105
106     // numbered channels
107     // the rationale for introducing numbered channels was discussed in
108     // https://github.com/openhab/openhab-addons/pull/16400
109     public static final String CHANNEL_POWER_SWITCH_1 = "power-switch-1";
110     public static final String CHANNEL_POWER_SWITCH_2 = "power-switch-2";
111     public static final String CHANNEL_CHILD_PROTECTION_1 = "child-protection-1";
112     public static final String CHANNEL_CHILD_PROTECTION_2 = "child-protection-2";
113
114     public static final String CHANNEL_USER_DEFINED_STATE = "user-state";
115
116     // static device/service names
117     public static final String SERVICE_INTRUSION_DETECTION = "intrusionDetectionSystem";
118 }