6static const char *
const TAG =
"output.sigma_delta";
14 ESP_LOGCONFIG(TAG,
"Sigma Delta Output:");
15 LOG_PIN(
" Pin: ", this->
pin_);
17 ESP_LOGCONFIG(TAG,
" State change automation configured");
20 ESP_LOGCONFIG(TAG,
" Turn on automation configured");
23 ESP_LOGCONFIG(TAG,
" Turn off automation configured");
25 LOG_UPDATE_INTERVAL(
this);
26 LOG_FLOAT_OUTPUT(
this);
31 const bool next_value = this->
accum_ > 0;
37 if (next_value != this->
value_) {
virtual void digital_write(bool value)=0
std::unique_ptr< Trigger<> > turn_on_trigger_
void dump_config() override
std::unique_ptr< Trigger<> > turn_off_trigger_
std::unique_ptr< Trigger< bool > > state_change_trigger_