SinricPro Library
|
Device to control Window Air Conditioner. More...
#include <SinricProWindowAC.h>
Public Member Functions | |
bool | sendPushNotification (String notification) |
Sending push notifications to SinricPro App. | |
void | onPowerState (PowerStateCallback cb) |
Set callback function for powerState request. | |
bool | sendPowerStateEvent (bool state, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send setPowerState event to SinricPro Server indicating actual power state. | |
void | onRangeValue (SetRangeValueCallback cb) |
Set callback function for setRangeValue request. | |
void | onRangeValue (const String &instance, GenericSetRangeValueCallback_int cb) |
Set callback function for setRangeValue request on a specific instance (custom device) | |
void | onAdjustRangeValue (AdjustRangeValueCallback cb) |
Set callback function for adjustRangeValue request. | |
bool | sendRangeValueEvent (int rangeValue, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send rangeValue event to report curent rangeValue to SinricPro server. | |
bool | sendRangeValueEvent (const String &instance, int rangeValue, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send rangeValue event to report curent rangeValue to SinricPro server for a specific instance (custom device) | |
void | onThermostatMode (ThermostatModeCallback cb) |
Set callback function for setThermostatMode request. | |
void | onTargetTemperature (SetTargetTemperatureCallback cb) |
Set callback function for targetTemperature request. | |
void | onAdjustTargetTemperature (AdjustTargetTemperatureCallback cb) |
Set callback function for adjustTargetTemperature request. | |
bool | sendThermostatModeEvent (String thermostatMode, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send thermostatMode event to report a the new mode the device has been set to. | |
bool | sendTargetTemperatureEvent (float temperature, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send targetTemperature event to report target temperature change. | |
Device to control Window Air Conditioner.
Support
AUTO
, COOL
, HEAT
|
inherited |
Set callback function for adjustRangeValue
request.
cb | Function pointer to a AdjustRangeValueCallback function |
|
inherited |
Set callback function for adjustTargetTemperature
request.
cb | Function pointer to a AdjustTargetTemperatureCallback function |
|
inherited |
Set callback function for powerState
request.
cb | Function pointer to a PowerStateCallback function |
|
inherited |
Set callback function for setRangeValue
request on a specific instance (custom device)
instance | String instance name (custom device) |
cb | Function pointer to a GenericSetRangeValueCallback function |
|
inherited |
Set callback function for setRangeValue
request.
cb | Function pointer to a SetRangeValueCallback function |
|
inherited |
Set callback function for targetTemperature
request.
cb | Function pointer to a SetTargetTemperatureCallback function |
|
inherited |
Set callback function for setThermostatMode
request.
cb | Function pointer to a ThermostatModeCallback function |
|
inherited |
Send setPowerState
event to SinricPro Server indicating actual power state.
state | true = device turned on false = device turned off |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Sending push notifications to SinricPro App.
notification | String with the notification |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Send rangeValue
event to report curent rangeValue to SinricPro server for a specific instance (custom device)
instance | String instance name |
rangeValue | Value between 0..3 |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Send rangeValue
event to report curent rangeValue to SinricPro server.
rangeValue | Value between 0..3 |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Send targetTemperature
event to report target temperature change.
temperature | Float with actual target temperature the device is set to |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Send thermostatMode
event to report a the new mode the device has been set to.
thermostatMode | String with actual mode (AUTO , COOL , HEAT ) the device is set to |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |