28 lines
766 B
C
Raw Normal View History

2023-06-07 09:49:24 -05:00
#pragma once
#include "esphome/core/helpers.h"
2023-06-07 09:59:09 -05:00
#include "ratgdo.h"
2023-06-07 10:06:51 -05:00
#include "ratgdo_state.h"
2023-06-07 09:49:24 -05:00
namespace esphome {
namespace ratgdo {
2023-06-07 09:51:22 -05:00
// Forward declare RATGDOComponent
class RATGDOComponent;
2023-06-07 10:02:53 -05:00
2023-06-07 09:51:22 -05:00
class RATGDOClient : public Parented<RATGDOComponent> {
public:
2023-06-07 10:03:38 -05:00
virtual void on_door_state(esphome::ratgdo::DoorState state) = 0;
virtual void on_light_state(esphome::ratgdo::LightState state) = 0;
virtual void on_lock_state(esphome::ratgdo::LockState state) = 0;
virtual void on_motion_state(esphome::ratgdo::MotionState state) = 0;
virtual void on_obstruction_state(esphome::ratgdo::ObstructionState state) = 0;
2023-06-07 09:49:24 -05:00
2023-06-07 09:51:22 -05:00
protected:
friend RATGDOComponent;
};
2023-06-07 09:49:24 -05:00
2023-06-07 09:51:22 -05:00
} // namespace ratgdo
} // namespace esphome