Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
daikin-controller-cloud
Advanced tools
Readme
Library to generate/retrieve tokens to communicate with the Daikin cloud and to control Daikin devices via the cloud adapters like (BRP069C4x).
All product and company names or logos are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them or any associated subsidiaries! This personal project is maintained in spare time and has no business goal. Daikin is a trademark of DAIKIN INDUSTRIES, LTD.
The newer Daikin devices sold since 2020 contain a newer Wifi Adapter (e.g. BRP069C4x) which only connects to the Daikin Cloud and is no longer reachable locally. These devices are only controllable with the Daikin Onecta App.
This library allows to initially (hopefully once) retrieve tokens by using a proxy to login to the Daikin Cloud. After that these tokens can be used and refreshed to interact with teh devices.
Note: For devices with older WLAN-Adapters like BRP069A4x which can only be used by the Daikin Controller App please use the Daikin-Controller lib instead.
The easy mode is to use the login
method of the DaikinControllerCloud
class and provide the E-Mail and the Password.
An automatic login is tried in this case and the tokens are retrieved.
It can happen that this process do not work because the Daikin Website requires you to solve a captcha. In this can you can use the following trick:
Login into the Daikin Cloud to retrieve the tokens
link at the end of the instructions page and login there once and solve the captcha.For more information on the Proxy progress for end users - because you need to trust and whitelist them and such - can be found in PROXY.md! Info: This project is not grabbing any username or password, just the created tokens after you logged in.
When you integrate this library please make sure users do not refresh data out of the cloud too fast. Please still think about the needed resources and costs on Daikin side to operate the cloud services and only allow meaningful poll intervals!
For now while being in basic development install from Github:
npm i Apollon77/daikin-controller-cloud
If your only interest is to save the tokens exchanged by Daikin Cloud and yourself (for instance, when you want to use them with your own code or home automation), use the tokensaver.js in the example
folder
From within the main directory, run:
node example/tokensaver.js
Or, more conveniently, use one of the binaries (Linux, macOS and Windows) supplied with the Releases.
Alternatively you can execute npx daikin-controller-cloud
which will also execute the tokensaver.js without the need to install the library (Node.js is required to be installed).
Calling tokensaver.js without any parameters will open a proxy where you can login to the Daikin Cloud and the tokens will be fetched.
Alternatively execute
node tokensaver.js "mydaikin@email.com" "my-daikin-password"
(replace data with your daikin cloud login credentials) and we try to fetch the tokens without the proxy.
See example folder, check the settings (add your own IP at minimum!) and start it with node example.js
.
When getting or setting data you need to look at the complete data structure returned by the device. SO best go a "getData()" and check the structure. The getData/setData parameters mirror the structure. In fact you awlways eed to provide the first two levels, maybe a "path style third level".
FAQs
Interact with Daikin Cloud devices and retrieve Tokens
The npm package daikin-controller-cloud receives a total of 45 weekly downloads. As such, daikin-controller-cloud popularity was classified as not popular.
We found that daikin-controller-cloud demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.