6 int repeat_start_interval,
int repeat_interval)
8 integer_false_{integer_false},
9 repeat_start_interval_{repeat_start_interval},
10 repeat_interval_{repeat_interval},
20 ESP_LOGD(__FILENAME__,
"Repeating press report");
26 ESP_LOGD(__FILENAME__,
"Starting press report repeat");
55 String
const expected[] = {
"repeat_start_interval",
"repeat_interval"};
56 for (
auto str : expected) {
57 if (!config[str].is<JsonVariant>()) {
67 return R
"###({"type":"object","properties":{"repeat_start_interval":{"title":"Start repeating after (ms)","type":"integer"},"repeat_interval":{"title":"Repeat report interval (ms)","type":"integer"}}})###";
virtual bool load() override
Load and populate the object from a persistent storage.
A transform that takes boolean inputs and adds button behaviors familiar to many device end users....
virtual bool from_json(const JsonObject &config) override
PressRepeater(const String &config_path="", int integer_false=0, int repeat_start_interval=1500, int repeat_interval=250)
int repeat_start_interval_
elapsedMillis last_value_sent_
virtual bool to_json(JsonObject &root) override
virtual void set(const bool &new_value) override
void emit(const T &new_value)
const String ConfigSchema(const SmartSwitchController &obj)
std::shared_ptr< reactesp::EventLoop > event_loop()