public class HomeAutomationImpl extends Object implements HomeAutomation
| Constructor and Description |
|---|
HomeAutomationImpl(FritzBoxSession session)
construct me from a session
|
| Modifier and Type | Method and Description |
|---|---|
DeviceList |
getDeviceListInfos()
get the Device List
|
String |
getResponse(String ain,
String command)
get the result for the given ain and command
|
Double |
getSwitchEnergy(String ain)
getswitchenergy
|
List<String> |
getSwitchList()
getswitchlist
|
String |
getSwitchName(String ain)
get the name of the given switch
|
Double |
getSwitchPowerWatt(String ain)
getswitchpower
|
String |
getSwitchPresent(String ain)
getswitchpresent
|
String |
getSwitchState(String ain)
getswitchstate
|
Double |
getTemperature(String ain)
gettemperature
|
String |
setSwitchOnOff(String ain,
boolean newState)
switch the power state of the given device
|
public static final String BASE_URL
public HomeAutomationImpl(FritzBoxSession session)
session - public List<String> getSwitchList() throws Exception
HomeAutomationgetSwitchList in interface HomeAutomationExceptionpublic DeviceList getDeviceListInfos() throws Exception
getDeviceListInfos in interface HomeAutomationExceptionpublic String setSwitchOnOff(String ain, boolean newState) throws Exception
setSwitchOnOff in interface HomeAutomationain - newState - Exceptionpublic String getSwitchName(String ain) throws Exception
getSwitchName in interface HomeAutomationain - Exceptionpublic String getSwitchState(String ain) throws Exception
HomeAutomationgetSwitchState in interface HomeAutomationExceptionpublic String getSwitchPresent(String ain) throws Exception
HomeAutomationgetSwitchPresent in interface HomeAutomationExceptionpublic Double getSwitchPowerWatt(String ain) throws Exception
HomeAutomationgetSwitchPowerWatt in interface HomeAutomationExceptionpublic Double getSwitchEnergy(String ain) throws Exception
HomeAutomationgetSwitchEnergy in interface HomeAutomationExceptionpublic Double getTemperature(String ain) throws Exception
HomeAutomationgetTemperature in interface HomeAutomationExceptionCopyright © 2018. All rights reserved.