HomeAssistant-GreeClimateComponent icon indicating copy to clipboard operation
HomeAssistant-GreeClimateComponent copied to clipboard

Add autodiscovery to Gree config flow

Open RobHofmann opened this issue 6 months ago • 3 comments

Summary

  • support device autodiscovery when setting up integration
  • require greeclimate library
  • document autodiscovery in README and info

Testing

  • python -m py_compile custom_components/gree/config_flow.py
  • pytest -q
  • python -m compileall -q custom_components/gree

https://chatgpt.com/codex/tasks/task_e_6841ae7f44748321bfbbdeb617aaf956

RobHofmann avatar Jun 05 '25 15:06 RobHofmann

I'm unable to test this one. My devices are in different subnets, so i'm seeing this:

2025-06-06 01:11:32.862 INFO (MainThread) [custom_components.gree.config_flow] Starting Gree device discovery for config flow
2025-06-06 01:11:32.863 INFO (MainThread) [custom_components.gree.config_flow] Scanning network for Gree devices ...
2025-06-06 01:11:34.869 INFO (MainThread) [custom_components.gree.config_flow] Discovery finished with 0 device(s) found
2025-06-06 01:11:34.869 INFO (MainThread) [custom_components.gree.config_flow] No devices discovered, showing manual configuration form
2025-06-06 01:11:34.869 INFO (MainThread) [custom_components.gree.config_flow] Showing manual configuration form

If anyone is able to test this (and share some screenshots :)), that would be awesome.

Tagging @ardeus-ua because of https://github.com/RobHofmann/HomeAssistant-GreeClimateComponent/issues/52.

Let me know :).

RobHofmann avatar Jun 05 '25 23:06 RobHofmann

asking @spacerokk @Riffaells for some help.

Could you guys give this a try? :)

RobHofmann avatar Jun 11 '25 13:06 RobHofmann

Yeah, I'll give it a shot.

spacerokk avatar Jun 11 '25 14:06 spacerokk

Outdated branch now. Closing this.

RobHofmann avatar Aug 16 '25 12:08 RobHofmann