pantherale0 / ha-nintendoparentalcontrols

Home Assistant integration for Nintendo Switch Parental Controls
MIT License
69 stars 6 forks source link
api home-assistant integration nintendo-switch parental-control parental-control-tool

Nintendo Switch Parental Controls

GitHub Release GitHub Activity License

hacs

Integration to integrate with ha-nintendoparentalcontrols.

This integration will set up the following platforms.

Platform Description
sensor Read only states (such as current screen time)
switch Per app and device controls
time Control limit time and bonus time for current day

Supported features

Installation

  1. Add repository URL into HACS and install "Nintendo Switch Parental Controls"
  2. Restart Home Assistant
  3. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Nintendo Switch Parental Controls
  4. You will be prompted for an access token, click the link provided in the description of the dialog (this is unique) and login to your Nintendo account.
  5. After login, you will see a Linking an External Account screen. For the account you wish to link, right click on the red button Select this person and click Copy Link
  6. Optional# - If you inspect the link you should find the following format npf54789befxxxxxxxx://auth#session_token_code={redacted}&state={redacted}&session_state={redacted}

  7. Close the Nintendo Account tab
  8. Paste the previously copied value into the Access token field (the entire string you copied)
  9. Click Submit
  10. The configuration flow should then show some additional options, don't adjust the first box as this is the refresh token that will be used to refresh the access tokens in the background and is retrieved from Nintndo using the token you previously provided.
  11. Click Submit

Configuration is done in the UI

You can configure applications to register entites for within the "CONFIGURE" menu after setting up the integration for the first time.

Enabling debugging will produce a lot of log entiries.

Known issues

Contributions are welcome!

If you want to contribute to this please read the Contribution guidelines