2 * Copyright (c) 2010-2022 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.lutron.internal.radiora.protocol;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Feedback (LMP) that gives the state of all phantom LEDs
30 * Phantom LEDs 1 and 5 are ON, all others are OFF
36 * @author Jeff Lauterbach - Initial Contribution
40 public class LEDMapFeedback extends RadioRAFeedback {
42 private String bitmap; // 15 bit String of (0,1). 1 is ON, 0 is OFF
44 public LEDMapFeedback(String msg) {
45 String[] params = parse(msg, 1);
50 public String getBitmap() {
54 public char getZoneValue(int zone) {
55 if (zone < 1 || zone > bitmap.length()) {
59 return bitmap.charAt(zone - 1);