]> git.basschouten.com Git - openhab-addons.git/blob
da0b2fa1cef3cd34e4558bc14b2a75071a6d4e53
[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.ihc.internal.profiles;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.library.CoreItemFactory;
17 import org.openhab.core.thing.profiles.ProfileTypeBuilder;
18 import org.openhab.core.thing.profiles.ProfileTypeUID;
19 import org.openhab.core.thing.profiles.TriggerProfileType;
20
21 /**
22  * IHC / ELKO profile constants.
23  *
24  * @author Pauli Anttila - initial contribution.
25  *
26  */
27 @NonNullByDefault
28 public interface IhcProfiles {
29
30     ProfileTypeUID PUSHBUTTON_COMMAND = new ProfileTypeUID("ihc", "pushbutton-to-command");
31
32     TriggerProfileType PUSHBUTTON_COMMAND_TYPE = ProfileTypeBuilder
33             .newTrigger(PUSHBUTTON_COMMAND, "Push Button To Command")
34             .withSupportedItemTypes(CoreItemFactory.DIMMER, CoreItemFactory.ROLLERSHUTTER, CoreItemFactory.CONTACT,
35                     CoreItemFactory.SWITCH, CoreItemFactory.PLAYER)
36             .build();
37 }