Skip to content

Commit 43b904d

Browse files
committed
Migrate to daikin_onecta
* .github/ISSUE_TEMPLATE/issue_report.md: * custom_components/daikin_residential_altherma/__init__.py: * custom_components/daikin_residential_altherma/const.py: * custom_components/daikin_residential_altherma/daikin_api.py: * custom_components/daikin_residential_altherma/daikin_base.py: * custom_components/daikin_residential_altherma/device.py: * custom_components/daikin_residential_altherma/manifest.json: * custom_components/daikin_residential_altherma/strings.json: * custom_components/daikin_residential_altherma/translations/en.json: * custom_components/daikin_residential_altherma/translations/it.json: * custom_components/daikin_residential_altherma/translations/nl.json: * custom_components/daikin_residential_altherma/translations/sk.json: * hacs.json: * readme.md:
1 parent 7d8f8b8 commit 43b904d

File tree

14 files changed

+34
-34
lines changed

14 files changed

+34
-34
lines changed

.github/ISSUE_TEMPLATE/issue_report.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ assignees: ''
77

88
---
99

10-
<!-- When reporting an issue *always* attach the device diagnostics (see Settings/Device&Services/Daikin Residential Controller including Altherma/Download diagnostics). Remove all tokens from the device diagnostics and log files before attaching it to this issue. Also attach the debug log, see https://github.com/jwillemsen/daikin_residential_altherma#setting-the-log-level for how to enable debug logging.
10+
<!-- When reporting an issue *always* attach the device diagnostics (see Settings/Device&Services/Daikin Onecta/Download diagnostics). Remove all tokens from the device diagnostics and log files before attaching it to this issue. Also attach the debug log, see https://github.com/jwillemsen/daikin_onecta#setting-the-log-level for how to enable debug logging.
1111
12-
When you have an issue about missing or incorrect data compared to the Onecta app please attach also some screenshots of the Onecta app. Please enable the debug log as described at https://github.com/jwillemsen/daikin_residential_altherma#setting-the-log-level and attach the log also to this issue.
12+
When you have an issue about missing or incorrect data compared to the Onecta app please attach also some screenshots of the Onecta app. Please enable the debug log as described at https://github.com/jwillemsen/daikin_onecta#setting-the-log-level and attach the log also to this issue.
1313
1414
Sharing, selling, or distribution access and refresh tokens is strictly prohibited according to the Daikin developer terms of use. Sharing them could case serious issues for you as user!
1515
-->

custom_components/daikin_residential_altherma/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
COMPONENT_TYPES = ["climate", "sensor", "water_heater", "switch", "select"]
3232

3333
async def async_setup(hass, config):
34-
"""Setup the Daikin Residential component."""
34+
"""Setup the Daikin Onecta component."""
3535

3636
async def _handle_reload(service):
3737
"""Handle reload service call."""

custom_components/daikin_residential_altherma/const.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Constants for Daikin Residential Controller."""
1+
"""Constants for Daikin Oncecta."""
22

33
from homeassistant.const import (
44
CONF_DEVICE_CLASS,
@@ -23,7 +23,7 @@
2323
EntityCategory
2424
)
2525

26-
DOMAIN = "daikin_residential_altherma"
26+
DOMAIN = "daikin_onecta"
2727

2828
DAIKIN_DATA = "daikin_data"
2929
DAIKIN_API = "daikin_api"

custom_components/daikin_residential_altherma/daikin_api.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=10)
2525

2626
class DaikinApi:
27-
"""Daikin Residential API."""
27+
"""Daikin Onecta API."""
2828

2929
def __init__(self,
3030
hass: core.HomeAssistant,
3131
entry: config_entries.ConfigEntry,
3232
implementation: config_entry_oauth2_flow.AbstractOAuth2Implementation,):
33-
"""Initialize a new Daikin Residential Altherma API."""
34-
_LOGGER.debug("Initialing Daikin Residential Altherma API...")
33+
"""Initialize a new Daikin Onecta API."""
34+
_LOGGER.debug("Initialing Daikin Onecta API...")
3535
self.hass = hass
3636
self._config_entry = entry
3737
self.session = config_entry_oauth2_flow.OAuth2Session(
@@ -48,7 +48,7 @@ def __init__(self,
4848
# to prevent receiving old settings while a PATCH is ongoing.
4949
self._cloud_lock = asyncio.Lock()
5050

51-
_LOGGER.info("Daikin Residential Altherma API initialized.")
51+
_LOGGER.info("Daikin Onecta API initialized.")
5252

5353
async def async_get_access_token(self) -> str:
5454
"""Return a valid access token."""
@@ -112,7 +112,7 @@ async def getCloudDeviceDetails(self):
112112
return json_puredata
113113

114114
async def getCloudDevices(self):
115-
"""Get array of DaikinResidentialDevice objects and get their data."""
115+
"""Get array of DaikinOnectaDevice objects and get their data."""
116116
self.json_data = await self.getCloudDeviceDetails()
117117

118118
res = {}

custom_components/daikin_residential_altherma/daikin_base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import logging
44

5-
from .device import DaikinResidentialDevice
5+
from .device import DaikinOnectaDevice
66

77
_LOGGER = logging.getLogger(__name__)
88

9-
class Appliance(DaikinResidentialDevice):
9+
class Appliance(DaikinOnectaDevice):
1010
"""Daikin main appliance class."""
1111

1212
def __init__(self, jsonData, apiInstance):

custom_components/daikin_residential_altherma/device.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
_LOGGER = logging.getLogger(__name__)
1111

12-
class DaikinResidentialDevice:
13-
"""Class to represent and control one Daikin Residential Device."""
12+
class DaikinOnectaDevice:
13+
"""Class to represent and control one Daikin Onecta Device."""
1414

1515
def __init__(self, jsonData, apiInstance):
16-
"""Initialize a new Daikin Residential Device."""
16+
"""Initialize a new Daikin Onecta Device."""
1717
self.api = apiInstance
1818
# get name from climateControl
1919
self._available = True
@@ -26,7 +26,7 @@ def __init__(self, jsonData, apiInstance):
2626
if management_point_type == "climateControl":
2727
self.name = management_point["name"]["value"]
2828

29-
_LOGGER.info("Initialized Daikin Residential Device '%s' (id %s)", self.name, self.getId())
29+
_LOGGER.info("Initialized Daikin Onecta Device '%s' (id %s)", self.name, self.getId())
3030

3131
@property
3232
def available(self) -> bool:
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"domain": "daikin_residential_altherma",
3-
"name": "Daikin Residential Controller including Altherma",
2+
"domain": "daikin_onecta",
3+
"name": "Daikin Onecta",
44
"codeowners": [
55
"@jwillemsen"
66
],
77
"config_flow": true,
88
"dependencies": ["application_credentials"],
9-
"documentation": "https://github.com/jwillemsen/daikin_residential_altherma",
9+
"documentation": "https://github.com/jwillemsen/daikin_onecta",
1010
"iot_class": "cloud_polling",
11-
"issue_tracker": "https://github.com/jwillemsen/daikin_residential_altherma/issues",
11+
"issue_tracker": "https://github.com/jwillemsen/daikin_onecta/issues",
1212
"requirements": [],
1313
"version": "4.0.0"
1414
}

custom_components/daikin_residential_altherma/strings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"config": {
33
"step": {
44
"user": {
5-
"title": "Configure Daikin Residential Controller AC",
5+
"title": "Configure Daikin Onecta",
66
"description": "Enter the email and password you use to login to Daikin Cloud, then press Submit.",
77
"data": {
88
"email": "[%key:common::config_flow::data::email]",

custom_components/daikin_residential_altherma/translations/en.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"password": "Password"
2222
},
2323
"description": "Enter the email address and password you use to login to Daikin Cloud, then press Submit.",
24-
"title": "Configure Daikin Residential Controller AC"
24+
"title": "Configure Daikin Onecta"
2525
}
2626
}
2727
},

custom_components/daikin_residential_altherma/translations/it.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"password": "Password"
2323
},
2424
"description": "Non \u00e8 necessario introdurre parametri di configurazione in questo menu.\n\nAssicurati solo di aver ottenuto il tuo file tokenset.json usando la procedura con il MITM proxy, e di averlo salvato nella tua directory di configurazione, poi premi Submit per procedere.",
25-
"title": "Configura Daikin Residential for Altherma 3"
25+
"title": "Configura Daikin Onecta"
2626
}
2727
}
2828
}
29-
}
29+
}

custom_components/daikin_residential_altherma/translations/nl.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"password": "Wachtwoord"
1111
},
1212
"description": "Voer het email adres en wachtwoord in voor het inloggen bij Daikin.",
13-
"title": "Daikin Residential Controller AC instellen"
13+
"title": "Daikin Onecta instellen"
1414
}
1515
}
1616
},

custom_components/daikin_residential_altherma/translations/sk.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"password": "Heslo"
2222
},
2323
"description": "Zadajte e-mailovú adresu a heslo, ktoré používate na prihlásenie do Daikin Cloud, a potom stlačte Odoslať.",
24-
"title": "Konfigurácia Daikin Residential Controller AC"
24+
"title": "Konfigurácia Daikin Onecta"
2525
}
2626
}
2727
},

hacs.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Daikin Residential including Altherma 3",
2+
"name": "Daikin Onecta",
33
"render_readme": true,
44
"homeassistant": "2024.2.0dev0"
55
}

readme.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
[![](https://img.shields.io/github/release/jwillemsen/daikin_residential_altherma/all.svg?style=for-the-badge)](https://github.com/jwillemsen/daikin_residential_altherma/releases)
1+
[![](https://img.shields.io/github/release/jwillemsen/daikin_onecta/all.svg?style=for-the-badge)](https://github.com/jwillemsen/daikin_onecta/releases)
22
<!---
33
[![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg?style=for-the-badge)](https://github.com/hacs/integration)
44
-->
55
[![](https://img.shields.io/badge/MAINTAINER-%40jwillemsen-green?style=for-the-badge)](https://github.com/jwillemsen)
66

77

8-
# Daikin Residential including Altherma 3 Heat Pump
8+
# Daikin Onecta
99

10-
Home Assistant Integration for Daikin devices including Daikin Altherma 3 Heat Pump.
10+
Home Assistant Integration for Daikin devices using the Daikin Onecta API.
1111

1212
> [!IMPORTANT]
1313
> Starting with v4.0.0 the cloud API has changed to the Daikin provided official API. In order to use this new API you need to create an account on the Daikin Developer Portal at https://developer.cloud.daikineurope.com/login.
@@ -23,11 +23,11 @@ Install with [HACS](https://hacs.xyz): Search for "Daikin Residential for Alther
2323

2424
# Manual Installation
2525

26-
Copy the `daikin_residential_altherma` folder and all of its contents into your Home Assistant's `custom_components` folder. This is often located inside of your `/config` folder. If you are running Hass.io, use SAMBA to copy the folder over. If you are running Home Assistant Supervised, the `custom_components` folder might be located at `/usr/share/hassio/homeassistant`. It is possible that your `custom_components` folder does not exist. If that is the case, create the folder in the proper location, and then copy the `daikin_residential_altherma` folder and all of its contents inside the newly created `custom_components` folder. Then you have to restart Home Assistant for the component to be loaded properly.
26+
Copy the `daikin_onecta` folder and all of its contents into your Home Assistant's `custom_components` folder. This is often located inside of your `/config` folder. If you are running Hass.io, use SAMBA to copy the folder over. If you are running Home Assistant Supervised, the `custom_components` folder might be located at `/usr/share/hassio/homeassistant`. It is possible that your `custom_components` folder does not exist. If that is the case, create the folder in the proper location, and then copy the `daikin_onecta` folder and all of its contents inside the newly created `custom_components` folder. Then you have to restart Home Assistant for the component to be loaded properly.
2727

2828
# Using config flow
2929

30-
Start by going to Settings - Devices & Services and pressing the `+ ADD INTEGRATION` button to create a new Integration, then select `Daikin Residential Controller including Altherma 3` in the drop-down menu.
30+
Start by going to Settings - Devices & Services and pressing the `+ ADD INTEGRATION` button to create a new Integration, then select `Daikin Onecta` in the drop-down menu.
3131

3232
Follow the instructions, you have to login at Daikin and authorize the application. After pressing the "Submit" button, the integration will be added, and the Daikin devices connected to your cloud account will be created.
3333

@@ -40,15 +40,15 @@ If you'd like to see more granular logs, to investigate the communication or for
4040
```
4141
logger:
4242
logs:
43-
custom_components.daikin_residential_altherma: debug
43+
custom_components.daikin_onecta: debug
4444
```
4545

4646
If you only want to change log level on a per module basis, you can do that as well, for example if you only want debug logs for the climate:
4747

4848
```
4949
logger:
5050
logs:
51-
custom_components.daikin_residential_altherma.climate: debug
51+
custom_components.daikin_onecta.climate: debug
5252
```
5353

5454
# Thanks to:

0 commit comments

Comments
 (0)