org.smarthomej.binding.amazonechocontrol.internal.AmazonEchoControlBindingConstants Maven / Gradle / Ivy
/**
* Copyright (c) 2010-2021 Contributors to the openHAB project
* Copyright (c) 2021 Contributors to the SmartHome/J project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.smarthomej.binding.amazonechocontrol.internal;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.openhab.core.thing.ThingTypeUID;
import org.openhab.core.thing.type.ChannelTypeUID;
/**
* The {@link AmazonEchoControlBindingConstants} class defines common constants, which are
* used across the whole binding.
*
* @author Michael Geramb - Initial contribution
*/
@NonNullByDefault
public class AmazonEchoControlBindingConstants {
public static final String BINDING_ID = "amazonechocontrol";
public static final String BINDING_NAME = "Amazon Echo Control";
// List of all Thing Type UIDs
public static final ThingTypeUID THING_TYPE_ACCOUNT = new ThingTypeUID(BINDING_ID, "account");
public static final ThingTypeUID THING_TYPE_ECHO = new ThingTypeUID(BINDING_ID, "echo");
public static final ThingTypeUID THING_TYPE_ECHO_SPOT = new ThingTypeUID(BINDING_ID, "echospot");
public static final ThingTypeUID THING_TYPE_ECHO_SHOW = new ThingTypeUID(BINDING_ID, "echoshow");
public static final ThingTypeUID THING_TYPE_ECHO_WHA = new ThingTypeUID(BINDING_ID, "wha");
public static final ThingTypeUID THING_TYPE_FLASH_BRIEFING_PROFILE = new ThingTypeUID(BINDING_ID,
"flashbriefingprofile");
public static final ThingTypeUID THING_TYPE_SMART_HOME_DEVICE = new ThingTypeUID(BINDING_ID, "smartHomeDevice");
public static final ThingTypeUID THING_TYPE_SMART_HOME_DEVICE_GROUP = new ThingTypeUID(BINDING_ID,
"smartHomeDeviceGroup");
public static final Set SUPPORTED_ECHO_THING_TYPES_UIDS = Set.of(THING_TYPE_ACCOUNT, THING_TYPE_ECHO,
THING_TYPE_ECHO_SPOT, THING_TYPE_ECHO_SHOW, THING_TYPE_ECHO_WHA, THING_TYPE_FLASH_BRIEFING_PROFILE);
public static final Set SUPPORTED_SMART_HOME_THING_TYPES_UIDS = Set.of(THING_TYPE_SMART_HOME_DEVICE,
THING_TYPE_SMART_HOME_DEVICE_GROUP);
// List of all Channel ids
public static final String CHANNEL_PLAYER = "player";
public static final String CHANNEL_VOLUME = "volume";
public static final String CHANNEL_EQUALIZER_TREBLE = "equalizerTreble";
public static final String CHANNEL_EQUALIZER_MIDRANGE = "equalizerMidrange";
public static final String CHANNEL_EQUALIZER_BASS = "equalizerBass";
public static final String CHANNEL_ERROR = "error";
public static final String CHANNEL_SHUFFLE = "shuffle";
public static final String CHANNEL_LOOP = "loop";
public static final String CHANNEL_IMAGE_URL = "imageUrl";
public static final String CHANNEL_TITLE = "title";
public static final String CHANNEL_SUBTITLE1 = "subtitle1";
public static final String CHANNEL_SUBTITLE2 = "subtitle2";
public static final String CHANNEL_PROVIDER_DISPLAY_NAME = "providerDisplayName";
public static final String CHANNEL_BLUETOOTH_MAC = "bluetoothMAC";
public static final String CHANNEL_BLUETOOTH = "bluetooth";
public static final String CHANNEL_BLUETOOTH_DEVICE_NAME = "bluetoothDeviceName";
public static final String CHANNEL_RADIO_STATION_ID = "radioStationId";
public static final String CHANNEL_RADIO = "radio";
public static final String CHANNEL_AMAZON_MUSIC_TRACK_ID = "amazonMusicTrackId";
public static final String CHANNEL_AMAZON_MUSIC = "amazonMusic";
public static final String CHANNEL_AMAZON_MUSIC_PLAY_LIST_ID = "amazonMusicPlayListId";
public static final String CHANNEL_TEXT_TO_SPEECH = "textToSpeech";
public static final String CHANNEL_TEXT_TO_SPEECH_VOLUME = "textToSpeechVolume";
public static final String CHANNEL_TEXT_COMMAND = "textCommand";
public static final String CHANNEL_REMIND = "remind";
public static final String CHANNEL_PLAY_ALARM_SOUND = "playAlarmSound";
public static final String CHANNEL_START_ROUTINE = "startRoutine";
public static final String CHANNEL_MUSIC_PROVIDER_ID = "musicProviderId";
public static final String CHANNEL_PLAY_MUSIC_VOICE_COMMAND = "playMusicVoiceCommand";
public static final String CHANNEL_START_COMMAND = "startCommand";
public static final String CHANNEL_LAST_VOICE_COMMAND = "lastVoiceCommand";
public static final String CHANNEL_MEDIA_PROGRESS = "mediaProgress";
public static final String CHANNEL_MEDIA_LENGTH = "mediaLength";
public static final String CHANNEL_MEDIA_PROGRESS_TIME = "mediaProgressTime";
public static final String CHANNEL_ASCENDING_ALARM = "ascendingAlarm";
public static final String CHANNEL_NOTIFICATION_VOLUME = "notificationVolume";
public static final String CHANNEL_NEXT_REMINDER = "nextReminder";
public static final String CHANNEL_NEXT_ALARM = "nextAlarm";
public static final String CHANNEL_NEXT_MUSIC_ALARM = "nextMusicAlarm";
public static final String CHANNEL_NEXT_TIMER = "nextTimer";
public static final String CHANNEL_SAVE = "save";
public static final String CHANNEL_ACTIVE = "active";
public static final String CHANNEL_PLAY_ON_DEVICE = "playOnDevice";
// List of channel Type UIDs
public static final ChannelTypeUID CHANNEL_TYPE_BLUETHOOTH_MAC = new ChannelTypeUID(BINDING_ID, "bluetoothMAC");
public static final ChannelTypeUID CHANNEL_TYPE_AMAZON_MUSIC_PLAY_LIST_ID = new ChannelTypeUID(BINDING_ID,
"amazonMusicPlayListId");
public static final ChannelTypeUID CHANNEL_TYPE_PLAY_ALARM_SOUND = new ChannelTypeUID(BINDING_ID, "playAlarmSound");
public static final ChannelTypeUID CHANNEL_TYPE_CHANNEL_PLAY_ON_DEVICE = new ChannelTypeUID(BINDING_ID,
"playOnDevice");
public static final ChannelTypeUID CHANNEL_TYPE_MUSIC_PROVIDER_ID = new ChannelTypeUID(BINDING_ID,
"musicProviderId");
public static final ChannelTypeUID CHANNEL_TYPE_START_COMMAND = new ChannelTypeUID(BINDING_ID, "startCommand");
// List of all Properties
public static final String DEVICE_PROPERTY_SERIAL_NUMBER = "serialNumber";
public static final String DEVICE_PROPERTY_FAMILY = "deviceFamily";
public static final String DEVICE_PROPERTY_FLASH_BRIEFING_PROFILE = "configurationJson";
public static final String DEVICE_PROPERTY_ID = "id";
// Other
public static final String FLASH_BRIEFING_COMMAND_PREFIX = "FlashBriefing.";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy