Skip to content

Add hub, subdevices and decoder.#7

Open
RenierM26 wants to merge 10 commits intoRemboooo:masterfrom
RenierM26:linter_run_add_decoder
Open

Add hub, subdevices and decoder.#7
RenierM26 wants to merge 10 commits intoRemboooo:masterfrom
RenierM26:linter_run_add_decoder

Conversation

@RenierM26
Copy link

@RenierM26 RenierM26 commented Oct 12, 2025

  • Ran linters (mypy and ruff), completed typing etc.
  • Added support for new hub and subdevices.
  • Implemented decoder.
  • Added auth manager to handle api throttling.
  • Updated main with new switch to output unknow device info. (Hopefully make it easier to support more devices)
  • Update main to also work with arguments.

Added a few cli options:
This would build model_specs.json for unkown devices, as long as the model code is entered

python -m homgarapi --email myuser@psdfsd.com --password 'LongComplexPassword' --model-specs-code 277 --model-specs-output

I also have a working home assistant custom integration based on https://github.com/[bapesupreme/homgar-homeassistant

INFO:main:Home (48005) My Home
INFO:main: Hub RainPoint Gateway Hub "Rain point hub" (DID 16858734) with 4 subdevices
INFO:main: Subdevice Outdoor Air Humidity Sensor "Patio outside temp" (DID 1049833) at address 1: 16.3°C / 90%
INFO:main: Subdevice Soil Moisture Sensor "Vegetable soil sensor" (DID 1207967851) at address 2: 15.9°C / 42% / 927.1lx
INFO:main: Subdevice Pool Temperature Sensor "Pool temp" (DID 2885274) at address 3: 21.6°C water, 70.8°F water, Battery 100%
INFO:main: Subdevice Soil Moisture Sensor "HCS021FRF" (DID 1207985507) at address 4: 22.8°C / 0% / 13.5lx
INFO:main: Hub RainPoint Gateway Hub "Rainpoint hallway hub" (DID 16949691) with 2 subdevices
INFO:main: Subdevice High Precision Rain Sensor "Rainfall" (DID 2293825) at address 1: 6.0mm total / 0.0mm 1h / 6.0mm 24h / 6.0mm 7days
INFO:main: Subdevice CO₂ Sensor "Sensor 02" (DID 4063745) at address 2: 536ppm CO₂, 24.3°C, 53% RH

@RenierM26 RenierM26 changed the title Mypy, ruff and linter fixes. Add hub, subdevices and decoder. Oct 13, 2025
@RenierM26
Copy link
Author

@RenierM26 RenierM26 marked this pull request as draft October 19, 2025 07:00
@RenierM26 RenierM26 marked this pull request as ready for review October 19, 2025 07:08
@shaundekok
Copy link

shaundekok commented Oct 19, 2025

@RenierM26 , I would be interested to understand the exact info you are using to decode the values from "This seems to be the decoder for the hex strings: GET https://region3.homgarus.com:1443/app/common/core/productModel/json HTTP/1.1 returns the decode" I have a node-red flow that a few people used to get the data into HA until they encoded the data. Did you get the HACS integration working?

@RenierM26
Copy link
Author

Hi @shaundekok, I'm busy adding modifications to output the definitions as well as map them directly in constants.py. It should make a lot more sense then, just busy testing the logic.

@RenierM26
Copy link
Author

This home assistant pull request works: bapesupreme/homgar-homeassistant#2

@shaundekok
Copy link

shaundekok commented Nov 9, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants