ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
sendspin_media_player.h
Go to the documentation of this file.
1#pragma once
2
4
5#if defined(USE_ESP32) && defined(USE_MEDIA_PLAYER) && defined(USE_SENDSPIN_CONTROLLER)
6
9
10namespace esphome::sendspin_ {
11
13 public:
14 void setup() override;
15 void dump_config() override;
16
17 // MediaPlayer implementations
19
20 void set_volume_increment(float volume_increment) { this->volume_increment_ = volume_increment; }
21
22 bool is_muted() const override { return this->muted_; }
23
24 protected:
25 // Receives commands from HA
26 void control(const media_player::MediaPlayerCall &call) override;
27
28 float volume_increment_{0.05f};
29 bool muted_{false};
30};
31
32} // namespace esphome::sendspin_
33#endif
Base class for all sendspin subcomponents.
void set_volume_increment(float volume_increment)
media_player::MediaPlayerTraits get_traits() override
void control(const media_player::MediaPlayerCall &call) override