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.mqtt.homeassistant.internal.config.dto;
15 import org.eclipse.jdt.annotation.Nullable;
17 import com.google.gson.annotations.SerializedName;
20 * MQTT topic subscribed to receive availability (online/offline) updates. Must not be used together with
23 * @author Anton Kharuzhy - Initial contribution
25 public class Availability {
26 @SerializedName("payload_available")
27 protected String payloadAvailable = "online";
28 @SerializedName("payload_not_available")
29 protected String payloadNotAvailable = "offline";
30 @SerializedName("value_template")
31 protected @Nullable String valueTemplate;
32 protected String topic;
34 public String getPayloadAvailable() {
35 return payloadAvailable;
38 public String getPayloadNotAvailable() {
39 return payloadNotAvailable;
42 public String getTopic() {
46 public @Nullable String getValueTemplate() {