This is a custom Home Assistant integration for monitoring Carpool Kids schedules. It was converted from the AppDaemon script to a proper Home Assistant custom component.
- Track today's carpool events
- View upcoming carpool events
- Monitor the next scheduled event
- Individual sensors for the next 5 events
- Status monitoring
- UI-based configuration (Config Flow)
- Automatic updates every hour
-
Copy the
custom_components/carpool_kidsfolder to your Home Assistantconfig/custom_componentsdirectory.Your directory structure should look like:
config/ custom_components/ carpool_kids/ __init__.py manifest.json config_flow.py sensor.py carpool_api.py const.py strings.json -
Restart Home Assistant
-
Go to Settings → Devices & Services → Add Integration
-
Search for "Carpool Kids" and select it
-
Enter your configuration:
- Email: Your Carpool Kids account email
- Android ID: Your device's Android ID (see below for how to obtain)
- Token: Your Google authentication token (see below for how to obtain)
-
Click Submit
To use this integration, you need to obtain your Android ID and authentication token:
- Install Device ID on your Android device
- Open the app and copy the "Android ID" value
- Use this value in the integration setup
- Install TokenForGApps or similar token extraction tool
- Request a token for the email account linked to Carpool Kids
- Copy the "Token" value (starts with "aas_et/")
- Use this value in the integration setup
Note: These credentials are stored securely in your Home Assistant configuration and are only used to authenticate with the Carpool Kids API.
The integration creates the following sensors:
-
sensor.carpool_today- Count of today's carpool events- Attributes include the full list of today's events with details
-
sensor.carpool_upcoming- Count of upcoming carpool events- Attributes include up to 10 upcoming events with details
-
sensor.carpool_next_event- Next scheduled carpool event- Shows date and time of the next event
- Attributes include location, driver, and rider count
-
sensor.carpool_status- Integration status- Shows "online" or "error"
- Attributes include last update time and total event count
sensor.carpool_event_1throughsensor.carpool_event_5- Each shows details for one of the next 5 events
- Includes date, location, and leg information
Each event includes:
- Date and day of week
- Location
- Legs (pickup/dropoff times)
- Time (formatted as 12-hour)
- Driver name
- Number of seats
- List of riders with parent names
automation:
- alias: "Carpool Reminder"
trigger:
- platform: time
at: "07:00:00"
condition:
- condition: template
value_template: "{{ states('sensor.carpool_today') != 'none' }}"
action:
- service: notify.mobile_app
data:
title: "Carpool Today"
message: >
Next carpool: {{ state_attr('sensor.carpool_next_event', 'time') }}
at {{ state_attr('sensor.carpool_next_event', 'location') }}
Driver: {{ state_attr('sensor.carpool_next_event', 'driver') }}type: entities
entities:
- entity: sensor.carpool_next_event
- entity: sensor.carpool_today
- entity: sensor.carpool_upcoming
- entity: sensor.carpool_status
title: Carpool ScheduleThe custom component version has several improvements over the AppDaemon script:
- UI Configuration: No need to edit YAML files, configure through the UI
- Better Integration: Uses Home Assistant's native entity system
- Data Coordinator: Efficient data updates with automatic retry logic
- Entity Management: Proper entity lifecycle management
- Error Handling: Better error reporting and recovery
- Standards Compliant: Follows Home Assistant integration best practices
- Make sure you restarted Home Assistant after copying the files
- Check that the folder structure is correct
- Look in Home Assistant logs for any errors
- Verify your email address, Android ID, and token are correct
- Check Home Assistant logs for specific error messages
- Your token may expire and need to be regenerated periodically
- Ensure you're using the correct token format (should start with "aas_et/")
- Check
sensor.carpool_statusto see if updates are working - Verify you have events scheduled in the Carpool Kids app
- Look at the
last_updateattribute on the status sensor
This integration was converted from an AppDaemon script to follow Home Assistant's modern integration architecture based on the official documentation at https://developers.home-assistant.io/docs/creating_component_index
For issues and feature requests, please use the GitHub repository.