public class TadoConnector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static okhttp3.MediaType |
FORM |
Constructor and Description |
---|
TadoConnector(java.lang.String username,
java.lang.String password) |
TadoConnector(java.lang.String username,
java.lang.String password,
java.lang.String clientSecret) |
Modifier and Type | Method and Description |
---|---|
void |
deleteZoneOverlay(int homeId,
int zoneId) |
void |
deleteZoneOverlay(TadoZone zone) |
java.lang.String |
getBearer() |
java.util.List<TadoDevice> |
getDevices(int homeId) |
java.util.List<TadoDevice> |
getDevices(TadoHome tadoHome) |
TadoHome |
getHome(int id) |
java.util.List<TadoHome> |
getHomes() |
java.util.List<java.lang.Integer> |
getHomesIDs() |
TadoState |
getHomeState(int homeId) |
TadoState |
getHomeState(TadoHome tadoHome) |
java.util.List<TadoInstallation> |
getInstallations(int homeId) |
java.util.List<TadoInstallation> |
getInstallations(TadoHome tadoHome) |
MobileDevice |
getMobileDevice(int deviceId,
int homeId) |
MobileDevice |
getMobileDevice(int deviceId,
TadoHome tadoHome) |
java.util.List<MobileDevice> |
getMobileDevices(int homeId) |
java.util.List<MobileDevice> |
getMobileDevices(TadoHome tadoHome) |
java.util.Map<java.lang.String,java.lang.Object> |
getMobileDeviceSettings(int homeId,
int deviceId) |
java.util.Map<java.lang.String,java.lang.Object> |
getMobileDeviceSettings(MobileDevice device) |
java.lang.String |
getPassword() |
java.lang.String |
getRefreshToken() |
java.lang.String |
getUsername() |
java.util.List<User> |
getUsers(int homeId) |
java.util.List<User> |
getUsers(TadoHome tadoHome) |
TadoWeather |
getWeather(int homeId) |
TadoWeather |
getWeather(TadoHome tadoHome) |
Capability |
getZoneCapabilities(int homeId,
int zoneId) |
Capability |
getZoneCapabilities(TadoZone tadoZone) |
boolean |
getZoneEarlyStart(int homeId,
int zoneId) |
boolean |
getZoneEarlyStart(TadoZone tadoZone) |
TadoOverlay |
getZoneOverlay(int homeId,
int zoneId) |
TadoOverlay |
getZoneOverlay(TadoZone tadoZone) |
java.util.List<TadoZone> |
getZones(int homeId) |
java.util.List<TadoZone> |
getZones(TadoHome tadoHome) |
TadoZoneState |
getZoneState(int homeId,
int idZone) |
TadoZoneState |
getZoneState(TadoZone tadoZone) |
void |
initialize() |
void |
refresh() |
void |
setDebug(boolean debug) |
boolean |
setGeoTracking(int homeId,
int deviceId,
boolean enabled) |
boolean |
setGeoTracking(MobileDevice device,
boolean enabled) |
void |
setPassword(java.lang.String password) |
void |
setUsername(java.lang.String username) |
boolean |
setZoneEarlyStart(int homeId,
int zoneId,
boolean enabled) |
boolean |
setZoneEarlyStart(TadoZone zone,
boolean enabled) |
TadoOverlay |
setZoneOverlay(int homeId,
int zoneId,
TadoOverlay overlay) |
TadoOverlay |
setZoneOverlay(TadoZone zone,
TadoOverlay overlay) |
public TadoConnector(java.lang.String username, java.lang.String password, java.lang.String clientSecret)
public TadoConnector(java.lang.String username, java.lang.String password)
public void setDebug(boolean debug)
public void initialize() throws TadoException
TadoException
public void refresh() throws TadoException
TadoException
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public java.lang.String getBearer()
public java.lang.String getRefreshToken()
public java.util.List<java.lang.Integer> getHomesIDs() throws TadoException
TadoException
public java.util.List<TadoHome> getHomes() throws TadoException
TadoException
public TadoHome getHome(int id) throws TadoException
TadoException
public java.util.List<TadoZone> getZones(TadoHome tadoHome) throws TadoException
TadoException
public java.util.List<TadoZone> getZones(int homeId) throws TadoException
TadoException
public TadoState getHomeState(TadoHome tadoHome) throws TadoException
TadoException
public TadoState getHomeState(int homeId) throws TadoException
TadoException
public TadoZoneState getZoneState(TadoZone tadoZone) throws TadoException
TadoException
public TadoZoneState getZoneState(int homeId, int idZone) throws TadoException
TadoException
public TadoWeather getWeather(TadoHome tadoHome) throws TadoException
TadoException
public TadoWeather getWeather(int homeId) throws TadoException
TadoException
public java.util.List<TadoDevice> getDevices(TadoHome tadoHome) throws TadoException
TadoException
public java.util.List<TadoDevice> getDevices(int homeId) throws TadoException
TadoException
public java.util.List<TadoInstallation> getInstallations(TadoHome tadoHome) throws TadoException
TadoException
public java.util.List<TadoInstallation> getInstallations(int homeId) throws TadoException
TadoException
public java.util.List<User> getUsers(TadoHome tadoHome) throws TadoException
TadoException
public java.util.List<User> getUsers(int homeId) throws TadoException
TadoException
public java.util.List<MobileDevice> getMobileDevices(TadoHome tadoHome) throws TadoException
TadoException
public java.util.List<MobileDevice> getMobileDevices(int homeId) throws TadoException
TadoException
public MobileDevice getMobileDevice(int deviceId, TadoHome tadoHome) throws TadoException
TadoException
public MobileDevice getMobileDevice(int deviceId, int homeId) throws TadoException
TadoException
public java.util.Map<java.lang.String,java.lang.Object> getMobileDeviceSettings(MobileDevice device) throws TadoException
TadoException
public java.util.Map<java.lang.String,java.lang.Object> getMobileDeviceSettings(int homeId, int deviceId) throws TadoException
TadoException
public Capability getZoneCapabilities(TadoZone tadoZone) throws TadoException
TadoException
public Capability getZoneCapabilities(int homeId, int zoneId) throws TadoException
TadoException
public boolean getZoneEarlyStart(TadoZone tadoZone) throws TadoException
TadoException
public boolean getZoneEarlyStart(int homeId, int zoneId) throws TadoException
TadoException
public TadoOverlay getZoneOverlay(TadoZone tadoZone) throws TadoException
TadoException
public TadoOverlay getZoneOverlay(int homeId, int zoneId) throws TadoException
TadoException
public boolean setGeoTracking(MobileDevice device, boolean enabled) throws TadoException
TadoException
public boolean setGeoTracking(int homeId, int deviceId, boolean enabled) throws TadoException
TadoException
public boolean setZoneEarlyStart(TadoZone zone, boolean enabled) throws TadoException
TadoException
public boolean setZoneEarlyStart(int homeId, int zoneId, boolean enabled) throws TadoException
TadoException
public TadoOverlay setZoneOverlay(TadoZone zone, TadoOverlay overlay) throws TadoException
TadoException
public TadoOverlay setZoneOverlay(int homeId, int zoneId, TadoOverlay overlay) throws TadoException
TadoException
public void deleteZoneOverlay(TadoZone zone) throws TadoException
TadoException
public void deleteZoneOverlay(int homeId, int zoneId) throws TadoException
TadoException