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.enocean.internal.profiles;
15 import static org.openhab.binding.enocean.internal.EnOceanBindingConstants.*;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.library.CoreItemFactory;
19 import org.openhab.core.thing.profiles.ProfileType;
20 import org.openhab.core.thing.profiles.ProfileTypeBuilder;
21 import org.openhab.core.thing.profiles.ProfileTypeUID;
24 * The {@link EnOceanProfiles} class defines profile constants
26 * @author Daniel Weber - Initial contribution
29 public class EnOceanProfiles {
30 public static final ProfileTypeUID ROCKERSWITCHACTION_TOGGLE_SWITCH = new ProfileTypeUID(BINDING_ID,
31 "rockerswitchaction-toggle-switch");
33 public static final ProfileTypeUID ROCKERSWITCHACTION_TOGGLE_PLAYER = new ProfileTypeUID(BINDING_ID,
34 "rockerswitchaction-toggle-player");
36 static final ProfileType ROCKERSWITCHACTION_TOGGLE_SWITCH_TYPE = ProfileTypeBuilder
37 .newTrigger(ROCKERSWITCHACTION_TOGGLE_SWITCH, "Rocker Switch Action Toggle Switch")
38 .withSupportedItemTypes(CoreItemFactory.SWITCH)
39 .withSupportedChannelTypeUIDs(CHANNELTYPE_ROCKERSWITCH_ACTION_UID).build();
41 static final ProfileType ROCKERSWITCHACTION_TOGGLE_PLAYER_TYPE = ProfileTypeBuilder
42 .newTrigger(ROCKERSWITCHACTION_TOGGLE_PLAYER, "Rocker Switch Action Toggle Player")
43 .withSupportedItemTypes(CoreItemFactory.PLAYER)
44 .withSupportedChannelTypeUIDs(CHANNELTYPE_ROCKERSWITCH_ACTION_UID).build();