supla-device
|
RemoteOutputInterface class is used as an interface for remote HVAC devices over which we don't have explicit control. More...
#include <remote_output_interface.h>
Public Member Functions | |
RemoteOutputInterface (bool onOffOnly) | |
Contructor. | |
void | setOutputValueFromRemote (int value) |
Set output value from a remote device. | |
int | getOutputValue () const override |
Returns current output value. | |
void | setOutputValue (int value) override |
Override base class method in order to disable setting output value by HvacBase. | |
bool | isOnOffOnly () const override |
Returns if output is on/off only or 0-100%. | |
bool | isControlledInternally () const override |
Returns false - output is not controlled internally. | |
RemoteOutputInterface class is used as an interface for remote HVAC devices over which we don't have explicit control.
When used, HvacBase will not set output value to the device. It allows to set output value from remote device via setOutputValueFromRemote method and it's state will be shared to Supla.
|
explicit |
Contructor.
onOffOnly | if true, output value will be 0 or 1. If false, output value will be 0-100 % |
|
overridevirtual |
Returns current output value.
Implements Supla::Control::OutputInterface.
|
overridevirtual |
Returns false - output is not controlled internally.
Reimplemented from Supla::Control::OutputInterface.
|
overridevirtual |
Returns if output is on/off only or 0-100%.
Implements Supla::Control::OutputInterface.
|
overridevirtual |
Override base class method in order to disable setting output value by HvacBase.
value |
Implements Supla::Control::OutputInterface.
void RemoteOutputInterface::setOutputValueFromRemote | ( | int | value | ) |
Set output value from a remote device.
Use this method to set output value received from a remote device.
value | 0 - off, 1 - on (for on/off only), or 1-100 % |