Skip to content

Commit

Permalink
Upgrade instructions added
Browse files Browse the repository at this point in the history
  • Loading branch information
herikw committed Jan 3, 2022
1 parent e60da06 commit 1d94255
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ It reads the Current Temperature and other parameters like central heating water
* use HACS (Home Assistant Community Store) to install this component into your HA instance
* Component Name "Atag One"

### Upgrade

Remove the "climate: - platform: atagone" and "Sensor - platform: atagone" sections from your configuration.yaml first and restart Home Assistant.

Then add the new component using

[![my badge](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start?domain=atagone)

### Usage

Use the following link to add the integration to you HA installation
Expand Down
14 changes: 11 additions & 3 deletions custom_components/atagone/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
"""The atagone component."""
"""
Atag API wrapper for ATAG One Custom Component
Author: herikw
https://github.com/herikw/home-assistant-custom-components
"""

from .const import DOMAIN
from datetime import timedelta
import logging
Expand Down Expand Up @@ -57,15 +63,15 @@ async def _async_update_data():

return True


async def options_update_listener(hass: HomeAssistant, config_entry: ConfigEntry):

"""Handle options update."""

await hass.config_entries.async_reload(config_entry.entry_id)


async def async_unload_entry(hass, entry):
"""Unload Atag config entry."""

unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)

if unload_ok:
Expand All @@ -78,6 +84,7 @@ class AtagOneEntity(CoordinatorEntity):

def __init__(self, coordinator: DataUpdateCoordinator, atag_id: str) -> None:
"""Initialize the entity."""

super().__init__(coordinator)

self._id = atag_id
Expand All @@ -87,6 +94,7 @@ def __init__(self, coordinator: DataUpdateCoordinator, atag_id: str) -> None:
@property
def device_info(self) -> DeviceInfo:
"""Return info for device registry."""

return DeviceInfo(
identifiers={(DOMAIN, self.coordinator.data.id)},
manufacturer="Atag",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/atagone/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "atagone",
"name": "ATAG One",
"version": "2.0.0",
"version": "2.0.1",
"config_flow": true,
"documentation": "https://github.com/herikw/home-assistant-custom-components",
"dependencies": [],
Expand Down
12 changes: 10 additions & 2 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ It reads the Current Temperature and other parameters like central heating water

{% endif %}

### Upgrade

Remove the "climate: - platform: atagone" and "Sensor - platform: atagone" sections from your configuration.yaml first and restart Home Assistant.

Then add the new component using

[![my badge](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start?domain=atagone)

### Usage

Use the following link to add the integration to you HA installation
Expand All @@ -26,11 +34,11 @@ Use the following link to add the integration to you HA installation

The configuration is now done in the Homeassistant UI during the installation

1. Specify the IP address or Hostname of your ATAG One device into the host field
Specify the IP address or Hostname of your ATAG One device into the host field

![alt tag](https://github.com/herikw/home-assistant-custom-components/blob/master/screenshots/AoneDetails.png?raw=true "Screenshot")

The port is the default port that Atag One device is using. When using a reverse proxy, you probably need to change this.
The port is the default port that Atag One device is using. When using a reverse proxy, you probably need to change this

![alt tag](https://github.com/herikw/home-assistant-custom-components/blob/master/screenshots/AoneSucces.png?raw=true "Screenshot")

Expand Down

0 comments on commit 1d94255

Please sign in to comment.