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

Add Smart Home device group management #9

Open
Apollon77 opened this issue Jul 24, 2018 · 0 comments
Open

Add Smart Home device group management #9

Apollon77 opened this issue Jul 24, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@Apollon77
Copy link
Owner

Apollon77 commented Jul 24, 2018

Retrieve Groups:
in phoenix reply parallel to first amazonBridgeDetails:

"applianceGroups": {
                    "applianceGroups": {
                        "amzn1.HomeAutomation.ApplianceGroup.XXXXXX.550a4bf5-4852-4a35-81c4-b3568b222033": {
                            "applianceGroupName": "Lichter Küche",
                            "applianceGroupIdentifier": {
                                "value": "amzn1.HomeAutomation.ApplianceGroup.XXXXX.550a4bf5-4852-4a35-81c4-b3568b222033"
                            },
                            "spaceTypes": [],
                            "children": [],
                            "alexaEndpoints": [],
                            "defaults": []
                        }
                    }
                }

Create group:

POST https://alexa.amazon.de/api/phoenix/group
applianceIds	[…]
    0	SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLXXXXXXEtNDhhOS1iYzBhLWQzZDNiZGU4YjVmYyIsInN0YWdlIjoibGl2ZSJ9_Licht_K_che
    1	SKILL_eyJza2lsbElkIjoiYW16bjEXXXXXXZjEtNDhhOS1iYzBhLWQzZDNiZGU4YjVmYyIsInN0YWdlIjoibGl2ZSJ9_Deckenlicht_K_che
groupId	null
name	Lichter Küche
--> keine

Read a group:

GET https://alexa.amazon.de/api/phoenix/group?_=1532329020882
{"applianceGroups":[{"applianceIds":["SKILL_eyJza2lsbElkIjoiYWXXXXXXXNDhhOS1iYzBhLWQzZDNiZGU4YjVmYyIsInN0YWdlIjoibGl2ZSJ9_Licht_K_che","SKILL_eyJza2lsbElkIjoiYW16XXXXXXZjEtNDhhOS1iYzBhLWQzZDNiZGU4YjVmYyIsInN0YWdlIjoibGl2ZSJ9_Deckenlicht_K_che"],"defaults":[],"groupId":"amzn1.HomeAutomation.ApplianceGroup.YYYYYYYYYY.6e1ee4e0-d152-4ca4-8755-3e826c99dcab","name":"Lichter Küche"}]}

Change a group:

PUT https://alexa.amazon.de/api/phoenix/group/amzn1.HomeAutomation.ApplianceGroup.YYYYYYYYYY.6e1ee4e0-d152-4ca4-8755-3e826c99dcab
applianceIds	[…]
    0	SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxXXXXXXS1iYzBhLWQzZDNiZGU4YjVmYyIsInN0YWdlIjoibGl2ZSJ9_Licht_K_che
    1	SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWXXXXXX1iYzBhLWQzZDNiZGU4YjVmYyIsInN0YWdlIjoibGl2ZSJ9_Deckenlicht_K_che
defaults	[]
groupId	amzn1.HomeAutomation.ApplianceGroup.YYYYYYYYYY.6e1ee4e0-d152-4ca4-8755-3e826c99dcab
name	Lichter Küche
@Apollon77 Apollon77 added the enhancement New feature or request label Jun 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant