This is a custom component integration for Splitwise API
profile
and select Your Account
Your Account
section, select Your Apps
under the Privacy and Security
section Register your Application
http://localhost:8123
http://localhost:8123/api/splitwise/callback
If you are using a reverse proxy in front of your home assistant server, use the public address (https://home.<your-domain>.com>/api/splitwise/callback
) as the callback URL in the application settings. Otherwise the oauth authentication won't work
Register and get API key
Consumer Key
and Consumer Secret
values and store it some place safeSplitwise Sensor
in HACS console and install it.Copy the contents of the folder custom_components/splitwise
into <hass-config-directory>/custom_components/splitwise
Add the following lines to the configuration.yaml
sensor:
- platform: splitwise
client_id: '<consumer-id>'
client_secret: '<consumer-secret>'
Once you login to Homeassistant again, you should see a persistent notification with an authorization URL link in it:
This component will fire events:
The event types are defined in the API documentation