This is a fork of the Mazda Connected Services integration originally written by bdr99 that has been packaged into a HACS compatible custom integration. The original code was part of the Home Assistant core integrations prior to a DMCA takedown notice issue by Mazda Motor Corporation. It should restore all functionality previously available in the core integration.
- Mazda has moved NA, EU, and CA, to v2 of their API with a new authentication method. However the Australian region is currently still using the v1 API. Android app changes indicate the switch is coming (has v2 information coded for AU), but Mazda is staggering release. EU was December, and NA/CA was February. The intgration should be ready for you as soon as Mazda switches your region.
- PLEASE STAY ON 1.8.5 for now. Use the manual installation instructions below or manually select v1.8.5 in HACS under the 'mazda_cs' HACS page -> 3 dots top right-> Download/Redownload -> 'Need Another Vesion'.
- マツダは、北米(NA)、欧州(EU)、およびカナダ(CA)の各地域について、新しい認証方式を採用したAPIのバージョン2(v2)への移行を完了しました。しかしながら、オーストラリア地域については、現時点では依然としてv1 APIが使用されています。モバイルアプリの更新内容からは、まもなく移行が実施される兆候が見受けられます(アプリのコード内にオーストラリア向けのv2関連情報がすでに組み込まれています)が、マツダは各地域へのリリースを段階的に進めているようです。欧州地域への適用は12月に、北米・カナダ地域への適用は2月にそれぞれ行われました。マツダ側で貴殿の地域への切り替えが完了し次第、本連携機能も直ちにご利用いただけるようになる見込みです。(Google 翻訳)
- 当面の間は 1.8.5 に留まってください 以下の手動インストール手順を使用するか、HACS の「mazda_cs」ページから手動で v1.8.5 を選択してください。右上の 3 つのドット→ダウンロード / 再ダウンロード→別のバージョンが必要。(Google 翻訳)
- Add this repository as a custom repository in HACS.
- Download the integration.
- Restart Home Assistant
Copy the mazda_cs directory, from custom_components in this repository,
and place it inside your Home Assistant Core installation's custom_components directory. Restart Home Assistant prior to moving on to the Setup section.
Note: If installing manually, in order to be alerted about new releases, you will need to subscribe to releases from this repository.
Important
A browser extension is required to successfully authenticate with Mazda. Do not skip this step! The chrome extension is tied to the folder location on your computer and may disappear if you move the folder.
Mazda Connected Services uses OAuth authentication which blocks automated logins. Authentication requires a browser-based OAuth flow using a browser extension to capture the mobile app redirect URL.
- Download the latest chrome-extension.zip from releases (or use
./browser-extensions/chrome-extension/from source) - Extract the zip file (or use source)
- Open Google Chrome and navigate to
chrome://extensions/or Edgeedge://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the extracted folder
- Try to authenticate
Requires Xcode and a free developer account
- Download the latest safari-extension.zip from releases (or use
./browser-extensions/safari-extension/from source) - Extract the zip file
- Open the Xcode project
- Go to project settings and set your free developer account as the 'Team' for both Targets (
com.mazda.oauth-helperandcom.mazda.oauth-helper.extension). Also ensure 'Signing Certificate' is set to 'Development' - Quit Safari if open and build the extension
- Open Safari and enable the extension in Safari settings
- Build the extension again
- The app window should indicate the extension is 'On'.