A Home Assistant custom integration for tracking family members' temperature and medication data.
- Track temperature measurements for multiple family members
- Record medication administration (Paracetamol/Ibuprofen)
- Timestamp tracking for all measurements
- Individual entities for temperature and medication
- Easy configuration through Home Assistant UI
- Clone this repository
- Copy the
custom_components/family_health_tracker
directory to your Home Assistant's custom_components directory - Restart Home Assistant
- Add the integration through UI (Configuration -> Integrations -> Add Integration)
- Go to Configuration > Integrations
- Click the "+ ADD INTEGRATION" button
- Search for "Family Health Tracker"
- Enter the required information:
- Name: A name for the integration
- Family Members: Comma-separated list of family members to track
Each family member will have two sensor entities:
- Temperature sensor: Shows the latest temperature measurement with timestamp
- Medication sensor: Shows the latest medication administered with timestamp
You can add new measurements using the service call in two ways:
- Go to Developer Tools -> Services
- Search for "Family Health Tracker: Add Measurement"
- Fill in the service data:
name: "John" # The family member's name
temperature: 37.5 # Temperature in Celsius
medication: "paracetamol" # The medication given
service: family_health_tracker.add_measurement
data:
name: "John"
temperature: 37.5
medication: "none" # Options: "none", "paracetamol", "ibuprofen"
The following medication options are supported:
none
: No medication givenparacetamol
: Paracetamol was administeredibuprofen
: Ibuprofen was administered
- Recording temperature without medication:
service: family_health_tracker.add_measurement
data:
name: "John"
temperature: 37.2
medication: "none"
- Recording temperature with medication:
service: family_health_tracker.add_measurement
data:
name: "John"
temperature: 38.5
medication: "paracetamol"
This integration was developed for use with Home Assistant. To set up a development environment:
- Set up Home Assistant development container
- Copy the custom component to the appropriate directory
- Configure Home Assistant with the basic configuration provided in
test_config.yaml
- Test the integration through the UI and service calls