Compare commits

..

8 Commits

4 changed files with 32 additions and 5 deletions

17
.github/workflows/mirror.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Mirroring
on: [push, delete]
jobs:
to_gitlab:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url:
git@gitlab.com:rogs/ute_homeassistant_integration.git
ssh_private_key:
${{ secrets.GITLAB_SSH_PRIVATE_KEY }}

View File

@ -1,6 +1,14 @@
# UTE (Administración Nacional de Usinas y Trasmisiones Eléctricas) for Home Assistant 🇺🇾
# THIS PROJECT NO LONGER WORKS
UTE has deprecated the API that this integration relied on. The only way to make it work again is to do another reverse engineering to the new UTE app.
I already sent a PR to remove it from the HACS repos. When the PR is merged, I'll archive this repository.
![License](https://img.shields.io/github/license/rogsme/ute_homeassistant_integration)
[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg)](https://github.com/rogsme/ute_homeassistant_integration)
[![hacs_badge](https://img.shields.io/badge/HACS-Official-41BDF5.svg)](https://github.com/rogsme/ute_homeassistant_integration)
<p align="center">
<img src="https://github.com/rogsme/ute_homeassistant_integration/blob/master/icon.png?raw=true" alt="UTE"/>
@ -15,9 +23,11 @@ This is an integration to get UTE power information in HomeAssistant.
# Installation via HACS
Have [HACS](https://hacs.xyz/) installed, this will allow you to update easily.
You need to have [HACS](https://hacs.xyz/) installed.
* Add `https://github.com/rogsme/ute_homeassistant_integration` as a custom repository of type Integration in HACS.
<a href="https://my.home-assistant.io/redirect/hacs_repository/?owner=rogsme&repository=ute_homeassistant_integration" target="_blank"><img src="https://my.home-assistant.io/badges/hacs_repository.svg" alt="Open your Home Assistant instance and open a repository inside the Home Assistant Community Store." /></a>
* Search for `ute` in HACS.
* Click Install on the `UTE Uruguay` integration.
* Restart the Home Assistant.

View File

@ -7,6 +7,6 @@
"documentation": "https://github.com/rogsme/homeassistant_ute",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/rogsme/homeassistant_ute/issues",
"requirements": ["ute-wrapper==1.1.0"],
"requirements": ["ute-wrapper==2.4.0"],
"version": "1.1.0"
}

View File

@ -32,7 +32,7 @@ from ute_wrapper.ute import UTEClient
_LOGGER = logging.getLogger(__name__)
# Time between updating data from UTE
SCAN_INTERVAL = timedelta(minutes=3)
SCAN_INTERVAL = timedelta(minutes=2)
CONF_PHONE_NUMBER = "phone_number"
CONF_POWER_FACTOR = "power_factor"