]> git.basschouten.com Git - openhab-addons.git/blob
410ef720f89f777ad71e17bc3878cc8153953744
[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.sonyaudio.internal;
14
15 import java.util.Set;
16 import java.util.stream.Collectors;
17 import java.util.stream.Stream;
18
19 import org.openhab.core.thing.ThingTypeUID;
20
21 /**
22  * The {@link SonyAudioBindingConstants} class defines common constants, which are
23  * used across the whole binding.
24  *
25  * @author David - Initial contribution
26  */
27 public class SonyAudioBindingConstants {
28
29     private static final String BINDING_ID = "sonyaudio";
30
31     public static final String SONY_TYPE_STRDN1080 = "STR-DN1080";
32     public static final String SONY_TYPE_HTCT800 = "HT-CT800";
33     public static final String SONY_TYPE_HTST5000 = "HT-ST5000";
34     public static final String SONY_TYPE_HTZ9F = "HT-Z9F";
35     public static final String SONY_TYPE_HTZF9 = "HT-ZF9";
36     public static final String SONY_TYPE_HTMT500 = "HT-MT500";
37     public static final String SONY_TYPE_SRSZR5 = "SRS-ZR5";
38
39     // List of all Thing Type UIDs
40     public static final ThingTypeUID THING_TYPE_STRDN1080 = new ThingTypeUID(BINDING_ID, SONY_TYPE_STRDN1080);
41     public static final ThingTypeUID THING_TYPE_HTCT800 = new ThingTypeUID(BINDING_ID, SONY_TYPE_HTCT800);
42     public static final ThingTypeUID THING_TYPE_HTST5000 = new ThingTypeUID(BINDING_ID, SONY_TYPE_HTST5000);
43     public static final ThingTypeUID THING_TYPE_HTZ9F = new ThingTypeUID(BINDING_ID, SONY_TYPE_HTZ9F);
44     public static final ThingTypeUID THING_TYPE_HTZF9 = new ThingTypeUID(BINDING_ID, SONY_TYPE_HTZF9);
45     public static final ThingTypeUID THING_TYPE_HTMT500 = new ThingTypeUID(BINDING_ID, SONY_TYPE_HTMT500);
46     public static final ThingTypeUID THING_TYPE_SRSZR5 = new ThingTypeUID(BINDING_ID, SONY_TYPE_SRSZR5);
47
48     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Stream
49             .of(THING_TYPE_STRDN1080, THING_TYPE_HTCT800, THING_TYPE_HTST5000, THING_TYPE_HTZ9F, THING_TYPE_HTZF9,
50                     THING_TYPE_HTMT500, THING_TYPE_SRSZR5)
51             .collect(Collectors.toSet());
52
53     // List of thing parameters names
54     public static final String HOST_PARAMETER = "ipAddress";
55     public static final String SCALAR_PORT_PARAMETER = "port";
56     public static final String SCALAR_PATH_PARAMETER = "path";
57     public static final String REFRESHINTERVAL = "refreshInterval";
58
59     // List of all Channel ids
60     public static final String CHANNEL_POWER = "power";
61     public static final String CHANNEL_INPUT = "input";
62     public static final String CHANNEL_VOLUME = "volume";
63     public static final String CHANNEL_MUTE = "mute";
64     public static final String CHANNEL_SOUND_FIELD = "soundField";
65
66     public static final String CHANNEL_MASTER_POWER = "master#power";
67     public static final String CHANNEL_MASTER_SOUND_FIELD = "master#soundField";
68
69     public static final String CHANNEL_ZONE1_POWER = "zone1#power";
70     public static final String CHANNEL_ZONE1_INPUT = "zone1#input";
71     public static final String CHANNEL_ZONE1_VOLUME = "zone1#volume";
72     public static final String CHANNEL_ZONE1_MUTE = "zone1#mute";
73
74     public static final String CHANNEL_ZONE2_POWER = "zone2#power";
75     public static final String CHANNEL_ZONE2_INPUT = "zone2#input";
76     public static final String CHANNEL_ZONE2_VOLUME = "zone2#volume";
77     public static final String CHANNEL_ZONE2_MUTE = "zone2#mute";
78
79     public static final String CHANNEL_ZONE3_POWER = "zone3#power";
80     public static final String CHANNEL_ZONE3_INPUT = "zone3#input";
81     public static final String CHANNEL_ZONE3_VOLUME = "zone3#volume";
82     public static final String CHANNEL_ZONE3_MUTE = "zone3#mute";
83
84     public static final String CHANNEL_ZONE4_POWER = "zone4#power";
85     public static final String CHANNEL_ZONE4_INPUT = "zone4#input";
86     public static final String CHANNEL_ZONE4_VOLUME = "zone4#volume";
87     public static final String CHANNEL_ZONE4_MUTE = "zone4#mute";
88
89     public static final String CHANNEL_RADIO_FREQ = "radio#broadcastFreq";
90     public static final String CHANNEL_RADIO_STATION = "radio#broadcastStation";
91     public static final String CHANNEL_RADIO_SEEK_STATION = "radio#broadcastSeekStation";
92
93     public static final String CHANNEL_NIGHTMODE = "nightMode";
94
95     // Used for Discovery service
96     public static final String MANUFACTURER = "SONY";
97     public static final String UPNP_DEVICE_TYPE = "MediaRenderer";
98 }