diff --git a/esphome/components/remote_base/remote_base.h b/esphome/components/remote_base/remote_base.h index d8eb1be356..6035e2fd57 100644 --- a/esphome/components/remote_base/remote_base.h +++ b/esphome/components/remote_base/remote_base.h @@ -293,7 +293,7 @@ template class RemoteReceiverBinarySensor : public Remot bool matches(RemoteReceiveData src) override { auto proto = T(); auto res = proto.decode(src); - return res.has_value(); + return res.has_value() && *res == this->data_; } public: