mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-10 10:56:49 +00:00
Update configuration for Sure Petcare integration and add a ne… (#11962)
* update configuration and add new way to get the IDs
* Update source/_integrations/surepetcare.markdown
Co-Authored-By: Franck Nijhof <frenck@frenck.nl>
* Update source/_integrations/surepetcare.markdown
Co-Authored-By: Franck Nijhof <frenck@frenck.nl>
* Update source/_integrations/surepetcare.markdown
Co-Authored-By: Franck Nijhof <frenck@frenck.nl>
* implement suggestions from @frenck & add screenshot
* ✏️ Change the way the image is embeded
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
0cfc373ede
commit
a40ef039ad
@ -20,11 +20,11 @@ To add a flap and pet, add the following to your `configuration.yaml` file:
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
surepetcare:
|
surepetcare:
|
||||||
username: x@y.com
|
username: YOUR_SURE_PETCARE_LOGIN
|
||||||
password: v3rys3cr3t!
|
password: YOUR_SURE_PETCARE_PASSWORD
|
||||||
household_id: 1337
|
feeders: [12345, 67890]
|
||||||
flaps: [{id: 2337, name: Flap}]
|
flaps: [13579]
|
||||||
pets: [{id: 3337, name: Pet}]
|
pets: [24680]
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
@ -36,10 +36,6 @@ surepetcare:
|
|||||||
description: The Sure Petcare Password
|
description: The Sure Petcare Password
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
household_id:
|
|
||||||
description: The Sure Petcare household_id
|
|
||||||
required: true
|
|
||||||
type: integer
|
|
||||||
flaps:
|
flaps:
|
||||||
description: The Sure Petcare flaps
|
description: The Sure Petcare flaps
|
||||||
required: true
|
required: true
|
||||||
@ -53,6 +49,19 @@ surepetcare:
|
|||||||
description: A name for the flap
|
description: A name for the flap
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
feeders:
|
||||||
|
description: The Sure Petcare flaps
|
||||||
|
required: true
|
||||||
|
type: map
|
||||||
|
keys:
|
||||||
|
id:
|
||||||
|
description: The Sure Petcare id of a flap
|
||||||
|
required: true
|
||||||
|
type: integer
|
||||||
|
name:
|
||||||
|
description: A name for the flap
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
pets:
|
pets:
|
||||||
description: Pets managed by Sure Petcare flap(s)
|
description: Pets managed by Sure Petcare flap(s)
|
||||||
required: true
|
required: true
|
||||||
@ -83,6 +92,14 @@ surepetcare:
|
|||||||
type: device_class
|
type: device_class
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## Getting the IDs of your household, flaps and pets
|
## Getting the IDs of your flaps, feeders and pets
|
||||||
|
|
||||||
For now, please use the [sp_cli.py](https://github.com/rcastberg/sure_petcare/blob/master/sp_cli.py) from [@rcastberg](https://github.com/rcastberg) to fetch the IDs from the Sure Petcare API. With default setting, the IDs will be written as JSON to `~/.surepet.cache`.
|
There are (at least) two ways:
|
||||||
|
|
||||||
|
- Use the [sp_cli.py](https://github.com/rcastberg/sure_petcare/blob/master/sp_cli.py) from [@rcastberg](https://github.com/rcastberg) to fetch the IDs from the Sure Petcare API. With the default setting, the IDs will be written as JSON to `~/.surepet.cache`.
|
||||||
|
- Visit [surepetcare.io](https://surepetcare.io) and log in with your Sure Petcare credentials. Open the developer tools in Chrome/Firefox, switch to the "Network" tab and refresh the page. Now look for calls to `start` (`pets`, `<household id>` and others are also possible, but `start` shows you all information at once). Click on this call and in the JSON displayed you will find all the needed IDs.
|
||||||
|
|
||||||
|
<p class='img'>
|
||||||
|
<a href='/images/integrations/surepetcare/spc_ids.png' target='_blank'>
|
||||||
|
<img src='/images/integrations/surepetcare/spc_ids.png' alt='Where to find the IDs vie Browser developer console' /></a>
|
||||||
|
</p>
|
||||||
|
BIN
source/images/integrations/surepetcare/spc_ids.png
Normal file
BIN
source/images/integrations/surepetcare/spc_ids.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 200 KiB |
Loading…
x
Reference in New Issue
Block a user