]> git.basschouten.com Git - openhab-addons.git/blob
9384285ba26e77bf3f79af6ae90a2a260943784d
[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.enocean.internal.profiles;
14
15 import static org.openhab.binding.enocean.internal.EnOceanBindingConstants.*;
16
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;
22
23 /**
24  * The {@link EnOceanProfiles} class defines profile constants
25  *
26  * @author Daniel Weber - Initial contribution
27  */
28 @NonNullByDefault
29 public class EnOceanProfiles {
30     public static final ProfileTypeUID ROCKERSWITCHACTION_TOGGLE_SWITCH = new ProfileTypeUID(BINDING_ID,
31             "rockerswitchaction-toggle-switch");
32
33     public static final ProfileTypeUID ROCKERSWITCHACTION_TOGGLE_PLAYER = new ProfileTypeUID(BINDING_ID,
34             "rockerswitchaction-toggle-player");
35
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();
40
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();
45 }