mirror of
https://github.com/esphome/esphome.git
synced 2024-12-03 13:34:01 +01:00
Enable addidtional distance and SNR uart outputs
This commit is contained in:
parent
1d26bbb986
commit
faa52b9cc0
@ -69,6 +69,7 @@ class DfrobotSen0395SettingsAction : public Action<Ts...>, public Parented<Dfrob
|
||||
int8_t val = this->presence_via_uart_.value(x...);
|
||||
if (val >= 0) {
|
||||
this->parent_->enqueue(make_unique<UartOutputCommand>(val));
|
||||
this->parent_->enqueue(make_unique<UartOutputCommand>(2, val));
|
||||
}
|
||||
}
|
||||
if (this->sensitivity_.has_value()) {
|
||||
|
@ -25,6 +25,7 @@ void Sen0395UartPresenceSwitch::write_state(bool state) {
|
||||
this->parent_->enqueue(make_unique<PowerCommand>(false));
|
||||
}
|
||||
this->parent_->enqueue(make_unique<UartOutputCommand>(state));
|
||||
this->parent_->enqueue(make_unique<UartOutputCommand>(2, state));
|
||||
this->parent_->enqueue(make_unique<SaveCfgCommand>());
|
||||
if (was_active) {
|
||||
this->parent_->enqueue(make_unique<PowerCommand>(true));
|
||||
|
Loading…
Reference in New Issue
Block a user