Skip to content

Commit

Permalink
change project stucture for hacs
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebou12 committed Sep 8, 2023
1 parent c8a155c commit fd118fd
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion __init__.py → custom_components/renpho/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from homeassistant.helpers import service
from .const import (
from .custom_components.renpho.const import (
CONF_USER_ID, DOMAIN, CONF_EMAIL, CONF_PASSWORD,
CONF_REFRESH, CONF_PUBLIC_KEY,
EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
60 changes: 60 additions & 0 deletions info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Renpho Weight Scale Integration for Home Assistant

## About

This custom component allows you to seamlessly integrate Renpho's weight scale into Home Assistant. Get real-time updates on your weight, BMI, body fat percentage, and other health metrics right on your Home Assistant dashboard.

![Renpho Weight Scale](renpho.png)

## Features

- **Real-Time Health Metrics**: Fetches weight, BMI, body fat, and other health metrics.
- **User-Friendly**: Easily configurable via the Home Assistant UI.
- **Multi-User Support**: Supports tracking metrics for multiple users.
- **Automations**: Use your health metrics in automations, like sending alerts or updating other connected devices.

## Installation

### 1. Prerequisites

- Make sure you have [HACS](https://hacs.xyz/) installed.

### 2. Install the Custom Component

- Go to HACS -> Integrations -> Explore & Add Repositories.
- Search for "Renpho Weight Scale Integration" and click "Install".

### 3. Configuration

- Navigate to **Configuration > Integrations > Add Integration**.
- Search for `Renpho` and click to add.
- Provide your Renpho account email, password, and optionally a `user_id`.
- Set the refresh rate in milliseconds for how often you want to poll for updates.

## Configuration/Customization

### 1. User ID (Optional)

If you're using this integration for multiple users, each user should have a unique `user_id`.

### 2. Refresh Rate

Set how often the component should fetch new data from the Renpho servers. Note: A too frequent refresh rate may result in rate limiting.

## Support

For issues, feature requests or further assistance, head over to our [GitHub Repository](https://github.com/antoinebou12/hass_renpho/issues).

[![HACS Badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg?style=for-the-badge)](https://github.com/hacs/integration)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/antoinebou12/hass_renpho?color=41BDF5&style=for-the-badge)](https://github.com/antoinebou12/hass_renpho/releases/latest)
[![Integration Usage](https://img.shields.io/badge/dynamic/json?color=41BDF5&style=for-the-badge&logo=home-assistant&label=usage&suffix=%20installs&cacheSeconds=15600&url=https://analytics.home-assistant.io/custom_integrations.json&query=$.hass_renpho.total)](https://analytics.home-assistant.io/)

## Contributors

- [@antoinebou12](https://github.com/antoinebou12)

## Acknowledgments

Inspired by other health metric integrations and the Home Assistant community.

For more details, please refer to the [Documentation](https://github.com/antoinebou12/hass_renpho).
6 changes: 3 additions & 3 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
from base64 import b64decode, b64encode

import requests
from ..sensor import RenphoSensor, WeightSensor, TimeSensor, setup_platform
from ..RenphoWeight import RenphoWeight
from ..custom_components.renpho.sensor import RenphoSensor, WeightSensor, TimeSensor, setup_platform
from ..custom_components.renpho.RenphoWeight import RenphoWeight
from .. import setup
from ..const import CONF_EMAIL, CONF_PASSWORD, CONF_REFRESH, DOMAIN
from ..custom_components.renpho.const import CONF_EMAIL, CONF_PASSWORD, CONF_REFRESH, DOMAIN


class TestEncryption(unittest.TestCase):
Expand Down

0 comments on commit fd118fd

Please sign in to comment.