/** * Copyright (c) 2010-2016 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org.openhab.binding.mochadx10.commands; import org.openhab.core.events.EventPublisher; import org.openhab.core.library.types.OnOffType; /** * Implementation of the X10 On command * * @author Jack Sleuters * @since 1.7.0 * */ public class MochadX10OnCommand extends MochadX10Command { /** * Constructor * * @param eventPublisher Required to post the command on the openhab bus * @param address The address for which this command was received */ public MochadX10OnCommand(EventPublisher eventPublisher, MochadX10Address address) { super(eventPublisher, address); } @Override public void postCommand(String itemName, int currentLevel) { eventPublisher.postCommand(itemName, OnOffType.ON); } @Override public int getLevel() { return 100; } }