From e130c58c89af5457a788a893ccae990245b18004 Mon Sep 17 00:00:00 2001 From: t0urista Date: Mon, 28 Oct 2024 15:04:36 +0100 Subject: [PATCH] Update bthome.h --- esphome/components/bthome/bthome.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/esphome/components/bthome/bthome.h b/esphome/components/bthome/bthome.h index c91869d232..f48e431478 100644 --- a/esphome/components/bthome/bthome.h +++ b/esphome/components/bthome/bthome.h @@ -207,12 +207,15 @@ class BTHome : public Component, public esp32_ble_tracker::ESPBTDeviceListener { #ifdef USE_BINARY_SENSOR void set_window(binary_sensor::BinarySensor *window); + void set_motion(binary_sensor::BinarySensor *motion); #endif #ifdef USE_SENSOR void set_angle(sensor::Sensor *angle); void set_illuminance(sensor::Sensor *illuminance); void set_battery_level(sensor::Sensor *battery_level); + void set_temperature(sensor::Sensor *temperature); + void set_humidity(sensor::Sensor *humidity); #endif protected: @@ -230,11 +233,14 @@ class BTHome : public Component, public esp32_ble_tracker::ESPBTDeviceListener { #ifdef USE_BINARY_SENSOR binary_sensor::BinarySensor *window_{nullptr}; + binary_sensor::BinarySensor *motion_{nullptr}; #endif #ifdef USE_SENSOR sensor::Sensor *angle_{nullptr}; sensor::Sensor *illuminance_{nullptr}; sensor::Sensor *battery_level_{nullptr}; + sensor::Sensor *temperature_{nullptr}; + sensor::Sensor *humidity_{nullptr}; #endif };