Skip to content

Commit

Permalink
update hass 2024.2.1, custom components
Browse files Browse the repository at this point in the history
- Update Home Assistant to 2024.2.1
- Migrate proximity
- Migrate time_date
- Add always_available to utility meters
- Update python to 3.12 in ESPHome Check
  • Loading branch information
zanix committed Feb 10, 2024
1 parent ae2643e commit b9741fb
Show file tree
Hide file tree
Showing 17 changed files with 119 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .HA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.1.6
2024.2.1
4 changes: 2 additions & 2 deletions .github/workflows/home-assistant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ jobs:
steps:
- name: 📥 Check out repository
uses: actions/[email protected]
- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ If you want to back up your own Home Assistant configuration to GitHub, follow [

Description | Value
-------------- | --
All Entities | 2477
Sensors | 1090
All Entities | 2509
Sensors | 1122
Binary Sensors | 207
Lights | 55
Switches | 115
Expand Down Expand Up @@ -346,7 +346,7 @@ Home Assistant integration providing day of package counts and USPS informed del

Authors: [@moralmunky](https://github.com/moralmunky), [@firstof9](https://github.com/firstof9).

### [Spook 👻 Not Your Homie](https://github.com/frenck/spook) [v2.1.2]
### [Spook 👻 Not Your Homie](https://github.com/frenck/spook) [v2.2.0]

Spook 👻 Not your homie

Expand Down Expand Up @@ -394,7 +394,7 @@ Authors: [@AlexxIT](https://github.com/AlexxIT).

Customizable Animated Bar card for Home Assistant Lovelace

### [Battery State Card / Entity Row](https://github.com/maxwroc/battery-state-card) [v3.1.5]
### [Battery State Card / Entity Row](https://github.com/maxwroc/battery-state-card) [v3.1.6]

Battery state card for Home Assistant

Expand Down Expand Up @@ -775,7 +775,7 @@ Readme generated by the [custom readme integration](https://github.com/custom-co
[home-assistant]: https://home-assistant.io

[ha-version]: https://www.home-assistant.io/blog/categories/release-notes/
[ha-version-shield]: https://img.shields.io/badge/2024.1.6-555555?style=flat-square&logo=home-assistant
[ha-version-shield]: https://img.shields.io/badge/2024.2.1-555555?style=flat-square&logo=home-assistant

[github-build-status-shield]: https://img.shields.io/github/actions/workflow/status/zanix/home-assistant-config/home-assistant.yaml?branch=master&style=flat-square&logo=github-actions&logoColor=838B95
[github-build-status]: https://github.com/zanix/home-assistant-config/actions/workflows/home-assistant.yaml
Expand Down
1 change: 0 additions & 1 deletion configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ mqtt:
binary_sensor: !include_dir_list entities/mqtt/binary_sensor
sensor: !include_dir_list entities/mqtt/sensor
notify: !include_dir_list entities/notify
proximity: !include_dir_merge_named entities/proximity
rest_command: !include_dir_merge_named entities/rest_command
sensor: !include_dir_list entities/sensor
shell_command: !include_dir_merge_named entities/shell_command
Expand Down
7 changes: 0 additions & 7 deletions entities/proximity/amy_home.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions entities/proximity/joshua_home.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions entities/sensor/datetime/time_date.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion entities/template/sensor/datetime/date.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
sensor:
- name: Date
icon: mdi:calendar
state: '{{ as_timestamp(utcnow()) | timestamp_custom("%-m/%-d/%Y", True) }}'
state: '{{ as_timestamp(now()) | timestamp_custom("%-m/%-d/%Y") }}'
2 changes: 1 addition & 1 deletion entities/template/sensor/datetime/time.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
sensor:
- name: Time
icon: mdi:clock
state: '{{ as_timestamp(utcnow()) | timestamp_custom("%-I:%M %p", True) }}'
state: '{{ as_timestamp(now()) | timestamp_custom("%-I:%M %p") }}'
15 changes: 15 additions & 0 deletions entities/utility_meter/daily_energy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,27 @@ sol_ark_load_daily:
unique_id: sol_ark_load_daily
name: Sol-Ark Load daily
source: sensor.sol_ark_load_power_kwh
always_available: true
cycle: daily
sol_ark_pv_daily:
unique_id: sol_ark_pv_daily
name: Sol-Ark PV daily
source: sensor.sol_ark_pv_power_kwh
always_available: true
cycle: daily

sol_ark_grid_net_daily:
unique_id: sol_ark_grid_net_daily
name: Sol-Ark Grid Net daily
source: sensor.sol_ark_grid_power_kwh
always_available: true
cycle: daily
net_consumption: true
sol_ark_grid_net_tou_daily:
unique_id: sol_ark_grid_net_tou_daily
name: Sol-Ark Grid Net ToU Energy
source: sensor.sol_ark_grid_power_kwh
always_available: true
cycle: daily
net_consumption: true
tariffs:
Expand All @@ -37,57 +41,68 @@ sol_ark_grid_in_daily:
unique_id: sol_ark_grid_in_daily
name: Sol-Ark Grid In daily
source: sensor.sol_ark_grid_power_in_kwh
always_available: true
cycle: daily
sol_ark_grid_out_daily:
unique_id: sol_ark_grid_out_daily
name: Sol-Ark Grid Out daily
source: sensor.sol_ark_grid_power_out_kwh
always_available: true
cycle: daily

sol_ark_battery_net_daily:
unique_id: sol_ark_battery_net_daily
name: Sol-Ark Battery Net daily
source: sensor.sol_ark_battery_power_kwh
always_available: true
cycle: daily
net_consumption: true
sol_ark_battery_in_daily:
unique_id: sol_ark_battery_in_daily
name: Sol-Ark Battery In daily
source: sensor.sol_ark_battery_power_in_kwh
always_available: true
cycle: daily
sol_ark_battery_out_daily:
unique_id: sol_ark_battery_out_daily
name: Sol-Ark Battery Out daily
source: sensor.sol_ark_battery_power_out_kwh
always_available: true
cycle: daily

sol_ark_pv_surplus_daily:
unique_id: sol_ark_pv_surplus_daily
name: Sol-Ark PV Surplus daily
source: sensor.sol_ark_pv_surplus_power_kwh
always_available: true
cycle: daily
sol_ark_battery_house_used_daily:
unique_id: sol_ark_battery_house_used_daily
name: Sol-Ark Battery House Used daily
source: sensor.sol_ark_battery_house_used_power_kwh
always_available: true
cycle: daily
sol_ark_grid_battery_used_daily:
unique_id: sol_ark_grid_battery_used_daily
name: Sol-Ark Grid Battery Used daily
source: sensor.sol_ark_grid_battery_used_power_kwh
always_available: true
cycle: daily
sol_ark_grid_house_used_daily:
unique_id: sol_ark_grid_house_used_daily
name: Sol-Ark Grid House Used daily
source: sensor.sol_ark_grid_house_used_power_kwh
always_available: true
cycle: daily
sol_ark_pv_battery_used_daily:
unique_id: sol_ark_pv_battery_used_daily
name: Sol-Ark PV Battery Used daily
source: sensor.sol_ark_pv_battery_used_power_kwh
always_available: true
cycle: daily
sol_ark_pv_house_used_daily:
unique_id: sol_ark_pv_house_used_daily
name: Sol-Ark PV House Used daily
source: sensor.sol_ark_pv_house_used_power_kwh
always_available: true
cycle: daily
14 changes: 14 additions & 0 deletions entities/utility_meter/lifetime_energy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,60 +8,74 @@ sol_ark_load_lifetime:
unique_id: sol_ark_load_lifetime
name: Sol-Ark Load lifetime
source: sensor.sol_ark_load_power_kwh
always_available: true
sol_ark_pv_lifetime:
unique_id: sol_ark_pv_lifetime
name: Sol-Ark PV lifetime
source: sensor.sol_ark_pv_power_kwh
always_available: true

sol_ark_grid_net_lifetime:
unique_id: sol_ark_grid_net_lifetime
name: Sol-Ark Grid net lifetime
source: sensor.sol_ark_grid_power_kwh
always_available: true
net_consumption: true
sol_ark_grid_in_lifetime:
unique_id: sol_ark_grid_in_lifetime
name: Sol-Ark Grid in lifetime
source: sensor.sol_ark_grid_power_in_kwh
always_available: true
sol_ark_grid_out_lifetime:
unique_id: sol_ark_grid_out_lifetime
name: Sol-Ark Grid out lifetime
source: sensor.sol_ark_grid_power_out_kwh
always_available: true

sol_ark_battery_net_lifetime:
unique_id: sol_ark_battery_net_lifetime
name: Sol-Ark Battery net lifetime
source: sensor.sol_ark_battery_power_kwh
always_available: true
net_consumption: true
sol_ark_battery_in_lifetime:
unique_id: sol_ark_battery_in_lifetime
name: Sol-Ark Battery in lifetime
source: sensor.sol_ark_battery_power_in_kwh
always_available: true
sol_ark_battery_out_lifetime:
unique_id: sol_ark_battery_out_lifetime
name: Sol-Ark Battery out lifetime
source: sensor.sol_ark_battery_power_out_kwh
always_available: true

sol_ark_pv_surplus_lifetime:
unique_id: sol_ark_pv_surplus_lifetime
name: Sol-Ark PV Surplus lifetime
source: sensor.sol_ark_pv_surplus_power_kwh
always_available: true
sol_ark_battery_house_used_lifetime:
unique_id: sol_ark_battery_house_used_lifetime
name: Sol-Ark Battery House Used lifetime
source: sensor.sol_ark_battery_house_used_power_kwh
always_available: true
sol_ark_grid_battery_used_lifetime:
unique_id: sol_ark_grid_battery_used_lifetime
name: Sol-Ark Grid Battery Used lifetime
source: sensor.sol_ark_grid_battery_used_power_kwh
always_available: true
sol_ark_grid_house_used_lifetime:
unique_id: sol_ark_grid_house_used_lifetime
name: Sol-Ark Grid House Used lifetime
source: sensor.sol_ark_grid_house_used_power_kwh
always_available: true
sol_ark_pv_battery_used_lifetime:
unique_id: sol_ark_pv_battery_used_lifetime
name: Sol-Ark PV Battery Used lifetime
source: sensor.sol_ark_pv_battery_used_power_kwh
always_available: true
sol_ark_pv_house_used_lifetime:
unique_id: sol_ark_pv_house_used_lifetime
name: Sol-Ark PV House Used lifetime
source: sensor.sol_ark_pv_house_used_power_kwh
always_available: true
Loading

0 comments on commit b9741fb

Please sign in to comment.