mirror of
https://github.com/ratgdo/esphome-ratgdo.git
synced 2025-02-13 05:30:07 +00:00
26 lines
570 B
C
26 lines
570 B
C
|
#pragma once
|
||
|
|
||
|
#include "../ratgdo.h"
|
||
|
#include "esphome/core/component.h"
|
||
|
#include "esphome/components/output/float_output.h"
|
||
|
|
||
|
namespace esphome {
|
||
|
namespace ratgdo {
|
||
|
|
||
|
enum OutputType {
|
||
|
RATGDO_TEST
|
||
|
};
|
||
|
|
||
|
class RATGDOFloatOutput : public output::FloatOutput, public RATGDOClient, public Component {
|
||
|
public:
|
||
|
void setup() override;
|
||
|
void write_state(float state) override;
|
||
|
void dump_config() override;
|
||
|
void set_output_type(OutputType output_type);
|
||
|
|
||
|
protected:
|
||
|
OutputType output_type_;
|
||
|
};
|
||
|
|
||
|
} //namespace ratgdo
|
||
|
} //namespace esphome
|