-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add power meter home assistant
- Loading branch information
Showing
15 changed files
with
76 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# About | ||
|
||
Early 2024, I built a solar router following the instruction of [F1ATB](https://f1atb.fr) ![france](images/france.png). This solar router is very versatil but I was not satisfy about the integration with [HomeAssistant](https://homeassistant.io). | ||
I then found the job made by [Rem81](https://domo.rem81.com/) ![france](images/france.png) who create a solar router directly [ESPHome](https://esphome.io) and I thought it was certainly possible to have the modularity of F1ATB router with the level of integration in HomeAssistant of an ESPHome device... and this project was born. | ||
I then found the job made by [Rem81](https://domo.rem81.com/) ![france](images/france.png) who create a solar router directly [ESPHome](https://esphome.io) and I thought it was certainly possible to have the modularity of F1ATB router with the level of integration in Home Assistant of an ESPHome device... and this project was born. | ||
|
||
### Authors | ||
|
||
- [@XavierBerger](https://github.com/XavierBerger) - Creator of Solar Router for ESPHome | ||
- [@XavierBerger](https://github.com/XavierBerger) - Creator of Solar Router for ESPHome | ||
- [@tikismoke](https://github.com/tikismoke) : Home Assistant power meter first prototype |
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,25 @@ | ||
# Fronius Home Assistant | ||
|
||
This power meter is designed get power consumption directly from Home Assistant sensor. | ||
|
||
To use this package, add the following lines to your configuration file: | ||
|
||
```yaml linenums="1" | ||
packages: | ||
power_meter: | ||
url: http://github.com/XavierBerger/ESPHome-Solar-Router/ | ||
file: solar_router/power_meter_home_assistant.yaml | ||
``` | ||
This package needs to know the sensor to use to get the power consumption. This sensor has to be defined by `main_power_sensor` into `subtsitution` section of your configuration as in example ballow: | ||
|
||
```yaml linenums="1" | ||
substitutions: | ||
# Power meter source ----------------------------------------------------------- | ||
# Sensor in home assistant gathering the power consumption | ||
main_power_sensor: sensor.main_power | ||
``` | ||
!!! warning Data availability and refresh rate | ||
This power meter rely on Home Assistant to gather the value of energy exchanged with the grid. It also depends on the rate of sensor update. If a sensor is updated too slowly, the regulation may not work as expected. | ||
|
||
Contrary to Home Assistant power meter, native power meters are autonomous and can continue to regulate even is Home Assistant is offline. Some power meter can have a direct access to the measure and may even be independent to the network. |
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
File renamed without changes.
File renamed without changes.
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,13 @@ | ||
# ---------------------------------------------------------------------------------------------------- | ||
# Define sensor for power collection | ||
# ---------------------------------------------------------------------------------------------------- | ||
|
||
sensor: | ||
# Sensor showing the actual power consumption | ||
- platform: homeassistant | ||
id: real_power | ||
entity_id: ${main_power_sensor} | ||
internal: False | ||
name: "Real Power" | ||
device_class: "power" | ||
unit_of_measurement: "W" |