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.hydrawise.internal.api.local.dto;
16 * The {@link Relay} class models the Relay response message
18 * @author Dan Cunningham - Initial contribution
22 public Integer relayId;
32 public Integer frequency;
34 public String timestr;
36 public Integer runSeconds;
39 * Returns back the actual relay number when multiple controllers are chained.
43 public int getRelayNumber() {
44 int quotient = relay / 100;
45 return (relay - (quotient * 100)) + (quotient * 12);