public class HomeAutomationImpl extends Object implements HomeAutomation
Constructor and Description |
---|
HomeAutomationImpl(FritzBoxSession session)
construct me from a session
|
Modifier and Type | Method and Description |
---|---|
String |
getAinForName(String deviceName)
get the ain for the given devicename
|
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
|
boolean |
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
HomeAutomation
getSwitchList
in interface HomeAutomation
Exception
public DeviceList getDeviceListInfos() throws Exception
getDeviceListInfos
in interface HomeAutomation
Exception
public String setSwitchOnOff(String ain, boolean newState) throws Exception
setSwitchOnOff
in interface HomeAutomation
ain
- newState
- Exception
public String getSwitchName(String ain) throws Exception
getSwitchName
in interface HomeAutomation
ain
- Exception
public boolean getSwitchState(String ain) throws Exception
HomeAutomation
getSwitchState
in interface HomeAutomation
Exception
public String getSwitchPresent(String ain) throws Exception
HomeAutomation
getSwitchPresent
in interface HomeAutomation
Exception
public Double getSwitchPowerWatt(String ain) throws Exception
HomeAutomation
getSwitchPowerWatt
in interface HomeAutomation
Exception
public Double getSwitchEnergy(String ain) throws Exception
HomeAutomation
getSwitchEnergy
in interface HomeAutomation
Exception
public Double getTemperature(String ain) throws Exception
HomeAutomation
getTemperature
in interface HomeAutomation
Exception
public String getResponse(String ain, String command) throws Exception
ain
- command
- Exception
public String getAinForName(String deviceName) throws Exception
getAinForName
in interface HomeAutomation
deviceName
- Exception
Copyright © 2018 BITPlan GmbH. All rights reserved.