12 class DallasTemperatureSensor;
19 void setup()
override;
30 std::vector<DallasTemperatureSensor *>
sensors_;
39 uint8_t *get_address8();
40 uint64_t get_address();
42 const std::string &get_address_name();
45 void set_address(uint64_t address);
49 void set_index(uint8_t index);
51 uint8_t get_resolution()
const;
53 void set_resolution(uint8_t resolution);
55 uint16_t millis_to_wait_for_conversion()
const;
58 bool read_scratch_pad();
60 bool check_scratch_pad();
64 std::string unique_id()
override;
73 uint8_t scratch_pad_[9] = {
std::vector< DallasTemperatureSensor * > sensors_
const float DATA
For components that import data from directly connected sensors like DHT.
float get_setup_priority() const override
Internal class that helps us create multiple sensors for one Dallas hub.
void dump_config() override
std::vector< uint64_t > found_sensors_
This class simplifies creating components that periodically check a state.
optional< uint8_t > index_
void set_parent(DallasComponent *parent)
void set_pin(InternalGPIOPin *pin)
DallasComponent * parent_
friend DallasTemperatureSensor
void register_sensor(DallasTemperatureSensor *sensor)
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Base-class for all sensors.
std::string address_name_