]> git.basschouten.com Git - openhab-addons.git/blob
6eb4513518965fc64e7bbe6522ea48289a437db6
[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.yamahamusiccast.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17 import org.openhab.core.thing.type.ChannelTypeUID;
18
19 /**
20  * The {@link YamahaMusiccastBindingConstants} class defines common constants, which are
21  * used across the whole binding.
22  *
23  * @author Lennert Coopman - Initial contribution
24  * @author Florian Hotze - Add volume in decibel
25  */
26 @NonNullByDefault
27 public class YamahaMusiccastBindingConstants {
28
29     private static final String BINDING_ID = "yamahamusiccast";
30
31     // List of all Thing Type UIDs
32     public static final ThingTypeUID THING_DEVICE = new ThingTypeUID(BINDING_ID, "device");
33     public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
34
35     // List of all Channel Type UIDs
36     public static final ChannelTypeUID CHANNEL_TYPE_UID_POWER = new ChannelTypeUID("system:power");
37     public static final ChannelTypeUID CHANNEL_TYPE_UID_MUTE = new ChannelTypeUID("system:mute");
38     public static final ChannelTypeUID CHANNEL_TYPE_UID_VOLUME = new ChannelTypeUID("system:volume");
39     public static final ChannelTypeUID CHANNEL_TYPE_UID_VOLUMEABS = new ChannelTypeUID(BINDING_ID, "volumeAbs");
40     public static final ChannelTypeUID CHANNEL_TYPE_UID_VOLUMEDB = new ChannelTypeUID(BINDING_ID, "volumeDB");
41     public static final ChannelTypeUID CHANNEL_TYPE_UID_INPUT = new ChannelTypeUID(BINDING_ID, "input");
42     public static final ChannelTypeUID CHANNEL_TYPE_UID_SOUNDPROGRAM = new ChannelTypeUID(BINDING_ID, "soundProgram");
43     public static final ChannelTypeUID CHANNEL_TYPE_UID_SELECTPRESET = new ChannelTypeUID(BINDING_ID, "selectPreset");
44     public static final ChannelTypeUID CHANNEL_TYPE_UID_SLEEP = new ChannelTypeUID(BINDING_ID, "sleep");
45     public static final ChannelTypeUID CHANNEL_TYPE_UID_RECALLSCENE = new ChannelTypeUID(BINDING_ID, "recallScene");
46     public static final ChannelTypeUID CHANNEL_TYPE_UID_MCLINKSTATUS = new ChannelTypeUID(BINDING_ID, "mclinkStatus");
47
48     // List of all Channel ids
49     public static final String CHANNEL_POWER = "power";
50     public static final String CHANNEL_MUTE = "mute";
51     public static final String CHANNEL_VOLUME = "volume";
52     public static final String CHANNEL_VOLUMEABS = "volumeAbs";
53     public static final String CHANNEL_VOLUMEDB = "volumeDB";
54     public static final String CHANNEL_INPUT = "input";
55     public static final String CHANNEL_SOUNDPROGRAM = "soundProgram";
56     public static final String CHANNEL_SELECTPRESET = "selectPreset";
57     public static final String CHANNEL_PLAYER = "player";
58     public static final String CHANNEL_SLEEP = "sleep";
59     public static final String CHANNEL_RECALLSCENE = "recallScene";
60     public static final String CHANNEL_ARTIST = "artist";
61     public static final String CHANNEL_TRACK = "track";
62     public static final String CHANNEL_ALBUM = "album";
63     public static final String CHANNEL_ALBUMART = "albumArt";
64     public static final String CHANNEL_REPEAT = "repeat";
65     public static final String CHANNEL_SHUFFLE = "shuffle";
66     public static final String CHANNEL_MCLINKSTATUS = "mclinkStatus";
67     public static final String CHANNEL_PLAYTIME = "playTime";
68     public static final String CHANNEL_TOTALTIME = "totalTime";
69
70     public static final int CONNECTION_TIMEOUT_MILLISEC = 5000;
71     public static final int LONG_CONNECTION_TIMEOUT_MILLISEC = 60000;
72     public static final String HTTP = "http://";
73     public static final String YAMAHA_EXTENDED_CONTROL = "/YamahaExtendedControl/v1/";
74 }