Skip to content

Commit d94152b

Browse files
committed
Finalize GPL-3.0 licensing and openScale attribution
- Replace the shortened LICENSE with the complete official GPLv3 text. - Rewrite the README License section: project is GPL-3.0, openScale (RealmeSmartScaleHandler / YunmaiLib) attribution preserved, and the project is an independent community project (no affiliation claims). - Add consistent GPLv3 copyright headers to every distributed component module. bia.py and scale_controller.py carry the verified upstream openScale copyright notice (C) 2025 olie.xdev in their headers; all other modules are original realme-scale-ha code, Copyright (C) 2026 Kapil Mahawar. - No functional changes; only comments/headers/docs/LICENSE.
1 parent 2331027 commit d94152b

15 files changed

Lines changed: 901 additions & 29 deletions

File tree

LICENSE

Lines changed: 670 additions & 21 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,18 @@ python -m pytest tests/ -v
364364

365365
---
366366

367-
## License & attribution
367+
## License
368368

369-
This project contains protocol and body-composition code derived from
370-
[openScale](https://github.com/oliexdev/openScale)
371-
(`RealmeSmartScaleHandler`, `YunmaiLib`), which is distributed under the
372-
**GNU GPL v3**. This project is therefore licensed under the
373-
**GNU GPL v3** — see [LICENSE](LICENSE).
369+
This project is licensed under the GNU General Public License v3.0.
374370

375-
This is an independent community project. It is not affiliated with,
376-
endorsed by, or sponsored by realme, openScale or Home Assistant.
371+
Parts of the Realme Smart Scale protocol implementation and
372+
body-composition functionality are derived from the
373+
[openScale](https://github.com/oliexdev/openScale) project, including code
374+
originating from `RealmeSmartScaleHandler` and `YunmaiLib`.
375+
376+
openScale is licensed under the GNU General Public License v3.0.
377+
378+
See the `LICENSE` file for the complete license text.
379+
380+
`realme-scale-ha` is an independent community project. It is not affiliated
381+
with, endorsed by, or sponsored by realme, openScale, or Home Assistant.

custom_components/realme_scale/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Copyright (C) 2026 Kapil Mahawar
2+
#
3+
# This file is part of the realme-scale-ha Home Assistant integration.
4+
#
5+
# This program is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation, either version 3 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
117
"""The Realme Smart Scale (RMH2011) integration."""
218

319
from __future__ import annotations

custom_components/realme_scale/assignment.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Copyright (C) 2026 Kapil Mahawar
2+
#
3+
# This file is part of the realme-scale-ha Home Assistant integration.
4+
#
5+
# This program is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation, either version 3 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
117
"""Automatic user identification (pure logic, no HA imports).
218
319
Separates *identity* from *latest measurement*:

custom_components/realme_scale/bia.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
# Copyright (C) 2026 Kapil Mahawar
2+
#
3+
# This file is a Python port derived from openScale
4+
# (https://github.com/oliexdev/openScale): YunmaiLib.kt,
5+
# Copyright (C) 2025 olie.xdev <olie.xdeveloper@googlemail.com>,
6+
# licensed under the GNU General Public License v3. The port and the
7+
# integration code around it are original realme-scale-ha contributions.
8+
#
9+
# This program is free software: you can redistribute it and/or modify
10+
# it under the terms of the GNU General Public License as published by
11+
# the Free Software Foundation, either version 3 of the License, or
12+
# (at your option) any later version.
13+
#
14+
# This program is distributed in the hope that it will be useful,
15+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
# GNU General Public License for more details.
18+
#
19+
# You should have received a copy of the GNU General Public License
20+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
121
"""Local body-composition ("BIA") calculation engine.
222
323
Faithful Python port of openScale ``YunmaiLib.kt`` (GPL-3.0):

custom_components/realme_scale/binary_sensor.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Copyright (C) 2026 Kapil Mahawar
2+
#
3+
# This file is part of the realme-scale-ha Home Assistant integration.
4+
#
5+
# This program is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation, either version 3 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
117
"""Binary sensor platform for the Realme Smart Scale integration."""
218

319
from __future__ import annotations

custom_components/realme_scale/config_flow.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Copyright (C) 2026 Kapil Mahawar
2+
#
3+
# This file is part of the realme-scale-ha Home Assistant integration.
4+
#
5+
# This program is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation, either version 3 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
117
"""Config flow for the Realme Smart Scale integration.
218
319
The scale is discovered through Home Assistant's Bluetooth integration

custom_components/realme_scale/const.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# Copyright (C) 2026 Kapil Mahawar
2+
#
3+
# This file is part of the realme-scale-ha Home Assistant integration.
4+
# Protocol facts referenced here originate from openScale
5+
# (https://github.com/oliexdev/openScale), GPL-3.0.
6+
#
7+
# This program is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or
10+
# (at your option) any later version.
11+
#
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
119
"""Constants for the Realme Smart Scale (RMH2011) integration.
220
321
Protocol reference: openScale ``RealmeSmartScaleHandler.kt`` (GPL-3.0),

custom_components/realme_scale/coordinator.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Copyright (C) 2026 Kapil Mahawar
2+
#
3+
# This file is part of the realme-scale-ha Home Assistant integration.
4+
#
5+
# This program is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation, either version 3 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
117
"""Coordinator for the Realme Smart Scale integration.
218
319
Responsibilities:

custom_components/realme_scale/metrics.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Copyright (C) 2026 Kapil Mahawar
2+
#
3+
# This file is part of the realme-scale-ha Home Assistant integration.
4+
#
5+
# This program is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation, either version 3 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
117
"""Derived body metrics and interpretation tables (pure, no HA imports).
218
319
Values that need only the latest measurement and the user profile are

0 commit comments

Comments
 (0)