19#ifndef SRC_SUPLA_SENSOR_VIRTUAL_BINARY_H_
20#define SRC_SUPLA_SENSOR_VIRTUAL_BINARY_H_
22#include <supla/sensor/binary_base.h>
24#include "../action_handler.h"
30 explicit VirtualBinary(
bool keepStateInStorage =
false);
31 bool getValue()
override;
33 void handleAction(
int event,
int action)
override;
44 void setKeepStateInStorage(
bool);
48 bool keepStateInStorage =
false;
Definition action_handler.h:21
void onSaveState() override
Method called periodically during SuplaDevice iteration.
Definition virtual_binary.cpp:41
void onLoadState() override
Second method called on element in SuplaDevice.begin().
Definition virtual_binary.cpp:47
void onInit() override
Third method called on element in SuplaDevice.begin()
Definition virtual_binary.cpp:37