ESPHome 2025.5.0
Loading...
Searching...
No Matches
fujitsu_general.h
Go to the documentation of this file.
1#pragma once
2
3#include "esphome/core/log.h"
7
8namespace esphome {
9namespace fujitsu_general {
10
11const uint8_t FUJITSU_GENERAL_TEMP_MIN = 16; // Celsius // TODO 16 for heating, 18 for cooling, unsupported in ESPH
12const uint8_t FUJITSU_GENERAL_TEMP_MAX = 30; // Celsius
13
14// clang-format off
48// clang-format on
49
51 public:
58
59 protected:
61 void transmit_state() override;
63 void transmit_off_();
64
66 bool on_receive(remote_base::RemoteReceiveData data) override;
67
69 void transmit_(uint8_t const *message, uint8_t length);
70
72 uint8_t checksum_state_(uint8_t const *message);
73
75 uint8_t checksum_util_(uint8_t const *message);
76
77 // true if currently on - fujitsus transmit an on flag on when the remote moves from off to on
78 bool power_{false};
79};
80
81} // namespace fujitsu_general
82} // namespace esphome
ClimateIR(float minimum_temperature, float maximum_temperature, float temperature_step=1.0f, bool supports_dry=false, bool supports_fan_only=false, std::set< climate::ClimateFanMode > fan_modes={}, std::set< climate::ClimateSwingMode > swing_modes={}, std::set< climate::ClimatePreset > presets={})
Definition climate_ir.h:26
uint8_t checksum_state_(uint8_t const *message)
Calculate checksum for a state message.
void transmit_state() override
Transmit via IR the state of this climate controller.
uint8_t checksum_util_(uint8_t const *message)
Calculate cecksum for a util message.
bool on_receive(remote_base::RemoteReceiveData data) override
Parse incoming message.
void transmit_off_()
Transmit via IR power off command.
void transmit_(uint8_t const *message, uint8_t length)
Transmit message as IR pulses.
@ CLIMATE_SWING_OFF
The swing mode is set to Off.
@ CLIMATE_SWING_HORIZONTAL
The fan mode is set to Horizontal.
@ CLIMATE_SWING_VERTICAL
The fan mode is set to Vertical.
@ CLIMATE_SWING_BOTH
The fan mode is set to Both.
@ CLIMATE_FAN_MEDIUM
The fan mode is set to Medium.
@ CLIMATE_FAN_AUTO
The fan mode is set to Auto.
@ CLIMATE_FAN_LOW
The fan mode is set to Low.
@ CLIMATE_FAN_QUIET
The fan mode is set to Quiet.
@ CLIMATE_FAN_HIGH
The fan mode is set to High.
const uint8_t FUJITSU_GENERAL_TEMP_MAX
const uint8_t FUJITSU_GENERAL_TEMP_MIN
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
uint16_t length
Definition tt21100.cpp:0