mullerdavid / hass_GreeExt

Gree Extension for built in integration
8 stars 1 forks source link

Cannot configure - Error #4

Closed sthevenp closed 6 days ago

sthevenp commented 8 months ago

Dear All,

I've installed the module via HACS and configured accordingly:

Custom Component Installation Copy the custom_components folder to your own hassio /config folder.

In your configuration.yaml add the following:

gree_ext: .......................... I got his error: 2023-11-01 20:27:10.724 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration gree: No setup or config entry setup function defined. 2023-11-01 20:27:10.898 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of gree_ext. Setup failed for dependencies: gree 2023-11-01 20:27:10.898 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration gree_ext: (DependencyError(...), 'Could not setup dependencies: gree') ...................... However, I've configured all the 6 Gree climate one by one in a climate.yaml file and all the 6 GREE climate is able to control from HASSIO.

I do not know what I missed or where else to find the issue.

Core 2023.11.0 Supervisor 2023.10.1 Operating System 11.1 Frontend 20231030.1

mullerdavid commented 8 months ago

Hi, I just update my config to 2023.11.0, but it still works without any problem. I added my climate from the user interface not with the climate.yaml, and only added gree_ext: as a single line to my config.yaml. The extension is sitting here: kép

sthevenp commented 5 months ago

I still cannot configure this module:

from home-assistant.log:

2024-02-05 11:26:38.394 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration gree_ext which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-02-05 11:26:47.778 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'gree_ext'. Setup failed for dependencies: gree 2024-02-05 11:26:47.778 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'gree_ext': (DependencyError(...), 'Could not setup dependencies: gree')

configuration.yaml:

Gree Extension

gree_ext:

I can control all my climate with the Gree.climate module via Home Assistant, but this gree_ext module is still expecting a gree module however the Gree module name I am using is gree.climate. With this I can control all the 6 climate I have without any issue.

from home-assistant.log:

2024-02-05 11:46:51.977 INFO (SyncWorker_22) [custom_components.gree.climate] Setting acOptions with retrieved HVAC values 2024-02-05 11:46:51.977 INFO (SyncWorker_22) [custom_components.gree.climate] Setting Pow: 0 2024-02-05 11:46:51.977 INFO (SyncWorker_22) [custom_components.gree.climate] Setting Mod: 4 2024-02-05 11:46:51.977 INFO (SyncWorker_22) [custom_components.gree.climate] Setting SetTem: 26 2024-02-05 11:46:51.978 INFO (SyncWorker_22) [custom_components.gree.climate] Setting WdSpd: 0 2024-02-05 11:46:51.978 INFO (SyncWorker_22) [custom_components.gree.climate] Setting Air: 0 2024-02-05 11:46:51.978 INFO (SyncWorker_22) [custom_components.gree.climate] Setting Blo: 0 2024-02-05 11:46:51.978 INFO (SyncWorker_22) [custom_components.gree.climate] Setting Health: 0 2024-02-05 11:46:51.978 INFO (SyncWorker_22) [custom_components.gree.climate] Setting SwhSlp: 0 2024-02-05 11:46:51.978 INFO (SyncWorker_22) [custom_components.gree.climate] Setting Lig: 1 2024-02-05 11:46:51.978 INFO (SyncWorker_22) [custom_components.gree.climate] Setting SwingLfRig: 1 2024-02-05 11:46:51.978 INFO (SyncWorker_22) [custom_components.gree.climate] Setting SwUpDn: 1 2024-02-05 11:46:51.979 INFO (SyncWorker_22) [custom_components.gree.climate] Setting Quiet: 0 2024-02-05 11:46:51.979 INFO (SyncWorker_22) [custom_components.gree.climate] Setting Tur: 0 2024-02-05 11:46:51.979 INFO (SyncWorker_22) [custom_components.gree.climate] Setting StHt: 0 2024-02-05 11:46:51.979 INFO (SyncWorker_22) [custom_components.gree.climate] Setting TemUn: 0 2024-02-05 11:46:51.979 INFO (SyncWorker_22) [custom_components.gree.climate] Setting HeatCoolType: 0 2024-02-05 11:46:51.979 INFO (SyncWorker_22) [custom_components.gree.climate] Setting TemRec: 0 2024-02-05 11:46:51.979 INFO (SyncWorker_22) [custom_components.gree.climate] Setting SvSt: 0 2024-02-05 11:46:51.979 INFO (SyncWorker_22) [custom_components.gree.climate] Setting SlpMod: 0 2024-02-05 11:46:51.979 INFO (SyncWorker_22) [custom_components.gree.climate] Done setting acOptions 2024-02-05 11:46:51.980 INFO (SyncWorker_22) [custom_components.gree.climate] HA target temp set according to HVAC state to: 26 2024-02-05 11:46:51.980 INFO (SyncWorker_22) [custom_components.gree.climate] HA lights option set according to HVAC state to: on 2024-02-05 11:46:51.980 INFO (SyncWorker_22) [custom_components.gree.climate] HA xfan option set according to HVAC state to: off 2024-02-05 11:46:51.980 INFO (SyncWorker_22) [custom_components.gree.climate] HA health option set according to HVAC state to: off 2024-02-05 11:46:51.980 INFO (SyncWorker_22) [custom_components.gree.climate] HA powersave option set according to HVAC state to: off 2024-02-05 11:46:51.980 INFO (SyncWorker_22) [custom_components.gree.climate] HA sleep option set according to HVAC state to: off 2024-02-05 11:46:51.980 INFO (SyncWorker_22) [custom_components.gree.climate] HA 8℃ heat option set according to HVAC state to: off 2024-02-05 11:46:51.980 INFO (SyncWorker_22) [custom_components.gree.climate] HA air option set according to HVAC state to: off 2024-02-05 11:46:51.981 INFO (SyncWorker_22) [custom_components.gree.climate] HA operation mode set according to HVAC state to: off 2024-02-05 11:46:51.981 INFO (SyncWorker_22) [custom_components.gree.climate] HA swing mode set according to HVAC state to: Swing in full range 2024-02-05 11:46:51.981 INFO (SyncWorker_22) [custom_components.gree.climate] HA fan mode set according to HVAC state to: Auto 2024-02-05 11:46:51.981 INFO (SyncWorker_22) [custom_components.gree.climate] Finished SyncState

climate.yaml:

Living Room

Or I'm mistaken about the gree dependency module?

"dependencies": ["gree"],

Could it be this is the issue?

Do I need to install another gree module other than the one I am using and if yes where can I find it ...

Please advise.

mullerdavid commented 5 months ago

Hi, i am using the built in gree module (https://www.home-assistant.io/integrations/gree/), and the extension is for that.

Based on the "custom_components.gree.climate" in your logs, can I assume that you are using some other gree integration? (found this: https://github.com/RobHofmann/HomeAssistant-GreeClimateComponent)

sthevenp commented 5 months ago

For me the the Built-in Gree integration redirect to this page: https://github.com/RobHofmann/HomeAssistant-GreeClimateComponent

So I configured based on this my climate integration.

Is there any chance to alter this component to be compatible with this kind of Gree integration? Would it be a big work?

mullerdavid commented 5 months ago

I can add the integration from the stock HA: kép Maybe the installed custom integration hides the original? Have you tried uninstalling it as an experiment and use the built in one? Adding support for this integration requires a complete rewrite for this. Probably doable, but I don't have time to experiment with such big change for the foreseeable future.

mullerdavid commented 5 months ago

I checked the source, and your integration might already has the swing mode built in.

sthevenp commented 5 months ago

You are right!

I already have the vertical swing modes and these are working fine:

2024-02-06 10:24:15.959 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']

These are missing:

Horizontal swing mode: