ESPHome  2024.11.3
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::pipsolar::PipsolarOutput Class Reference

#include <pipsolar_output.h>

Inheritance diagram for esphome::pipsolar::PipsolarOutput:
esphome::output::FloatOutput esphome::output::BinaryOutput

Public Member Functions

 PipsolarOutput ()
 
void set_parent (Pipsolar *parent)
 
void set_set_command (const std::string &command)
 
void set_possible_values (std::vector< float > possible_values)
 
void set_value (float value)
 
- Public Member Functions inherited from esphome::output::FloatOutput
void set_max_power (float max_power)
 Set the maximum power output of this component. More...
 
void set_min_power (float min_power)
 Set the minimum power output of this component. More...
 
void set_zero_means_zero (bool zero_means_zero)
 Sets this output to ignore min_power for a 0 state. More...
 
void set_level (float state)
 Set the level of this float output, this is called from the front-end. More...
 
virtual void update_frequency (float frequency)
 Set the frequency of the output for PWM outputs. More...
 
float get_max_power () const
 Get the maximum power output. More...
 
float get_min_power () const
 Get the minimum power output. More...
 
- Public Member Functions inherited from esphome::output::BinaryOutput
void set_inverted (bool inverted)
 Set the inversion state of this binary output. More...
 
void set_power_supply (power_supply::PowerSupply *power_supply)
 Use this to connect up a power supply to this output. More...
 
virtual void set_state (bool state)
 Enable or disable this binary output. More...
 
virtual void turn_on ()
 Enable this binary output. More...
 
virtual void turn_off ()
 Disable this binary output. More...
 
bool is_inverted () const
 Return whether this binary output is inverted. More...
 

Protected Member Functions

void write_state (float state) override
 
- Protected Member Functions inherited from esphome::output::FloatOutput
void write_state (bool state) override
 Implement BinarySensor's write_enabled; this should never be called. More...
 

Protected Attributes

std::string set_command_
 
Pipsolarparent_
 
std::vector< float > possible_values_
 
- Protected Attributes inherited from esphome::output::FloatOutput
float max_power_ {1.0f}
 
float min_power_ {0.0f}
 
bool zero_means_zero_
 
- Protected Attributes inherited from esphome::output::BinaryOutput
bool inverted_ {false}
 
power_supply::PowerSupplyRequester power_ {}
 

Detailed Description

Definition at line 14 of file pipsolar_output.h.

Constructor & Destructor Documentation

◆ PipsolarOutput()

esphome::pipsolar::PipsolarOutput::PipsolarOutput ( )
inline

Definition at line 16 of file pipsolar_output.h.

Member Function Documentation

◆ set_parent()

void esphome::pipsolar::PipsolarOutput::set_parent ( Pipsolar parent)
inline

Definition at line 17 of file pipsolar_output.h.

◆ set_possible_values()

void esphome::pipsolar::PipsolarOutput::set_possible_values ( std::vector< float >  possible_values)
inline

Definition at line 19 of file pipsolar_output.h.

◆ set_set_command()

void esphome::pipsolar::PipsolarOutput::set_set_command ( const std::string &  command)
inline

Definition at line 18 of file pipsolar_output.h.

◆ set_value()

void esphome::pipsolar::PipsolarOutput::set_value ( float  value)
inline

Definition at line 20 of file pipsolar_output.h.

◆ write_state()

void esphome::pipsolar::PipsolarOutput::write_state ( float  state)
overrideprotectedvirtual

Implements esphome::output::FloatOutput.

Definition at line 10 of file pipsolar_output.cpp.

Field Documentation

◆ parent_

Pipsolar* esphome::pipsolar::PipsolarOutput::parent_
protected

Definition at line 25 of file pipsolar_output.h.

◆ possible_values_

std::vector<float> esphome::pipsolar::PipsolarOutput::possible_values_
protected

Definition at line 26 of file pipsolar_output.h.

◆ set_command_

std::string esphome::pipsolar::PipsolarOutput::set_command_
protected

Definition at line 24 of file pipsolar_output.h.


The documentation for this class was generated from the following files: