2 * Copyright (c) 2010-2024 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.mqtt.generic.internal.handler;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.core.library.types.OnOffType;
20 * The {@link GenericMQTTThingHandler} manages Things that are responsible for MQTT components.
21 * This class contains the necessary configuration for such a Thing handler.
23 * @author Jochen Klein - Initial contribution
26 public class GenericThingConfiguration {
28 * topic for the availability channel
30 public @Nullable String availabilityTopic;
33 * payload for the availability topic when the device is available.
35 public String payloadAvailable = OnOffType.ON.toString();
38 * payload for the availability topic when the device is *not* available.
40 public String payloadNotAvailable = OnOffType.OFF.toString();
43 * transformation pattern for the availability payload
45 public @Nullable String transformationPattern;