-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Revert the compressor frequency sensor patch.
- Add a new sensor for current input power in Watts. - Add a new sensor for total consumed energy in kWh. - Add a new sensor for total indoor unit runtime in hours. - Try to prevent outside air temperature sensor from changing to incorrect values when it's unavailable.
- Loading branch information
Miika Pekkarinen
committed
Oct 8, 2024
1 parent
3dc94fc
commit e5b233f
Showing
11 changed files
with
201 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
#include "esphome/components/sensor/sensor.h" | ||
#include "esphome/core/component.h" | ||
|
||
|
||
namespace esphome { | ||
|
||
class InputPowerSensor : public sensor::Sensor, public Component { | ||
public: | ||
InputPowerSensor() { | ||
this->set_unit_of_measurement("W"); | ||
this->set_device_class("power"); | ||
this->set_state_class(sensor::StateClass::STATE_CLASS_MEASUREMENT); | ||
this->set_accuracy_decimals(0); | ||
} | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
#include "esphome/components/sensor/sensor.h" | ||
#include "esphome/core/component.h" | ||
|
||
|
||
namespace esphome { | ||
|
||
class kWhSensor : public sensor::Sensor, public Component { | ||
public: | ||
kWhSensor() { | ||
this->set_unit_of_measurement("kWh"); | ||
this->set_device_class("energy"); | ||
this->set_state_class(sensor::StateClass::STATE_CLASS_TOTAL_INCREASING); | ||
this->set_accuracy_decimals(1); | ||
} | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.