Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netatmo - Add new scopes #533

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/OAuth/OAuth2/Service/Netatmo.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ class Netatmo extends AbstractService
const SCOPE_THERMOSTAT_READ = 'read_thermostat';
// Used to configure the thermostat (syncschedule, setthermpoint)
const SCOPE_THERMOSTAT_WRITE = 'write_thermostat';
// Used to retrieve Welcome data (Gethomedata, Getcamerapicture)
const SCOPE_READ_CAMERA = 'read_camera';
// Used to tell Welcome a specific person or everybody has left the Home (Setpersonsaway)
const SCOPE_WRITE_CAMERA = 'write_camera';
// Used to access the camera, the videos and the live stream.
const SCOPE_ACCESS_CAMERA = 'access_camera';
// Used to retrieve Presence data (Gethomedata, Getcamerapicture)
const SCOPE_READ_PRESENCE = 'read_presence';
// Used to access the camera, the videos and the live stream.
const SCOPE_ACCESS_PRESENCE = 'access_presence';
// Used to read data coming from Healthy Home Coach (gethomecoachsdata).
const SCOPE_READ_HOMECOACH = 'read_homecoach';

public function __construct(
CredentialsInterface $credentials,
Expand Down