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.volumio.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link VolumioBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Patrick Sernetz - Initial Contribution
23 * @author Chris Wohlbrecht - Adaption for openHAB 3
24 * @author Michael Loercher - Adaption for openHAB 3
27 public class VolumioBindingConstants {
29 private static final String BINDING_ID = "volumio";
31 // List of all Thing Type UIDs
32 public static final ThingTypeUID THING_TYPE_VOLUMIO = new ThingTypeUID(BINDING_ID, "player");
34 // List of all Channel ids
35 public static final String CHANNEL_TITLE = "title";
36 public static final String CHANNEL_ARTIST = "artist";
37 public static final String CHANNEL_ALBUM = "album";
38 public static final String CHANNEL_VOLUME = "volume";
39 public static final String CHANNEL_PLAYER = "player";
40 public static final String CHANNEL_COVER_ART = "album-art";
41 public static final String CHANNEL_TRACK_TYPE = "track-type";
42 public static final String CHANNEL_PLAY_RADIO_STREAM = "play-radiostream";
43 public static final String CHANNEL_PLAY_PLAYLIST = "play-playlist";
44 public static final String CHANNEL_CLEAR_QUEUE = "clear-queue";
45 public static final String CHANNEL_PLAY_RANDOM = "random";
46 public static final String CHANNEL_PLAY_REPEAT = "repeat";
47 public static final String CHANNEL_PLAY_URI = "play-uri";
48 public static final String CHANNEL_PLAY_FILE = "play-file";
49 public static final String CHANNEL_SYSTEM_COMMAND = "system-command";
50 public static final String CHANNEL_STOP = "stop-command";
52 // discovery properties
53 public static final String DISCOVERY_SERVICE_TYPE = "_Volumio._tcp.local.";
54 public static final String DISCOVERY_NAME_PROPERTY = "volumioName";
55 public static final String DISCOVERY_UUID_PROPERTY = "UUID";
58 public static final String CONFIG_PROPERTY_HOSTNAME = "hostname";
59 public static final String CONFIG_PROPERTY_PORT = "port";
60 public static final String CONFIG_PROPERTY_PROTOCOL = "protocol";
61 public static final String CONFIG_PROPERTY_TIMEOUT = "timeout";