ESPHome 2026.8.0b4
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
30
31 float volume_increment_{0.05f};
32 bool muted_{false};
33};
34
35} // namespace esphome::sendspin_
36#endif
Base class for all sendspin subcomponents.
void set_playback_state_(media_player::MediaPlayerState new_state)
Publishes new_state if it differs from the current state.
void set_volume_increment(float volume_increment)
media_player::MediaPlayerTraits get_traits() override
void control(const media_player::MediaPlayerCall &call) override