ESPHome 2026.8.0-dev
Loading...
Searching...
No Matches
power_switch.h
Go to the documentation of this file.
1#pragma once
2
4
5#include "../pcm5122.h"
6
7namespace esphome::pcm5122 {
8
13
14class PCM5122PowerSwitch final : public switch_::Switch, public Parented<PCM5122> {
15 public:
17
18 protected:
19 void write_state(bool state) override;
20
22};
23
24} // namespace esphome::pcm5122
BedjetMode mode
BedJet operating mode.
Helper class to easily give an object a parent of type T.
Definition helpers.h:1875
void write_state(bool state) override
void set_power_mode(PCM5122PowerSwitchMode mode)
Base class for all switches.
Definition switch.h:38
bool state
The current reported state of the binary sensor.
Definition switch.h:55
@ PCM5122_POWER_SWITCH_MODE_STANDBY
@ PCM5122_POWER_SWITCH_MODE_POWERDOWN