ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
sendspin_text_sensor.h
Go to the documentation of this file.
1#pragma once
2
4
5#if defined(USE_ESP32) && defined(USE_SENDSPIN_METADATA) && defined(USE_TEXT_SENSOR)
6
9
10#include <sendspin/metadata_role.h>
11
12namespace esphome::sendspin_ {
13
15 TITLE,
16 ARTIST,
17 ALBUM,
19};
20
22 public:
23 void dump_config() override;
24 void setup() override;
25
26 void set_metadata_type(SendspinTextMetadataTypes metadata_type) { this->metadata_type_ = metadata_type; }
27
28 protected:
29 const char *extract_value_(const sendspin::ServerMetadataStateObject &metadata) const;
30 void publish_if_changed_(const char *value);
31
33};
34
35} // namespace esphome::sendspin_
36#endif
Base class for all sendspin subcomponents.
void set_metadata_type(SendspinTextMetadataTypes metadata_type)
const char * extract_value_(const sendspin::ServerMetadataStateObject &metadata) const