4#ifndef SRC_SUPLA_CONTROL_LIGHT_RELAY_H_
5#define SRC_SUPLA_CONTROL_LIGHT_RELAY_H_
7#include <supla-common/proto.h>
17 explicit LightRelay(
int pin,
bool highIsOn =
true);
22 void turnOn(_supla_int_t duration = 0);
27 _supla_int_t turnOnSecondsCumulative;
28 uint32_t turnOnTimestamp;
Definition light_relay.h:14
void onSaveState()
Method called periodically during SuplaDevice iteration.
Definition light_relay.cpp:95
void iterateAlways()
Method called on each SuplaDevice iteration.
Definition light_relay.cpp:109
int handleCalcfgFromServer(TSD_DeviceCalCfgRequest *request)
Handles CALCFG requests from server.
Definition light_relay.cpp:54
void handleGetChannelState(TDSC_ChannelState *channelState)
Handles "get channel state (i)" request from server.
Definition light_relay.cpp:46
void onLoadState()
Second method called on element in SuplaDevice.begin().
Definition light_relay.cpp:79